Skip to main content
GET
/
integrations
/
github-container-registry
/
organization
/
{organizationId}
/
pat
/
status
Get PAT status for ghcr.io
curl --request GET \
  --url https://api-eu.cybedefend.com/integrations/github-container-registry/organization/{organizationId}/pat/status \
  --header 'x-api-key: <api-key>'
{
  "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"
  }
}

Authorizations

x-api-key
string
header
required

API Key for authentication. You can generate an API key from your personal settings.

Path Parameters

organizationId
string<uuid>
required

CybeDefend organization ID

Example:

"550e8400-e29b-41d4-a716-446655440000"

Response

PAT status retrieved successfully

hasPat
boolean
required

Whether a PAT is stored for this organization

Example:

true

status
object

PAT status (only if hasPat is true)