cURL
curl --request GET \ --url https://api-eu.cybedefend.com/integrations/github-container-registry/organization/{organizationId}/pat/status
{ "hasPat": true, "status": { "valid": true, "scopes": [ "read:packages", "repo" ], "hasPackagesReadScope": true, "githubUsername": "my-github-user", "expiresAt": "2025-12-31T23:59:59Z", "validatedAt": "2025-01-16T12:00:00Z", "errorMessage": "Token expired" } }
Checks if a Personal Access Token is stored and validates it. Returns information about the token without exposing the actual token value.
CybeDefend organization ID
"550e8400-e29b-41d4-a716-446655440000"
PAT status retrieved successfully
Whether a PAT is stored for this organization
true
PAT status (only if hasPat is true)
Show child attributes