List API keys for a service account
List all API keys associated with a specific service account.
Returns all API keys that belong to the specified service account. The user must have access to the service account to view its API keys.
Context:
- Only returns API keys for the specified service account
- User must have access to the service account
- Returns empty list if no API keys exist for the account
Related Endpoints:
- GET /service-accounts/ - Get service account details
- POST /api-keys - Create a new API key
Authorizations
API key authentication. Include your API key in the X-API-Key header as: X-API-Key YOUR_API_KEY
Example:
JWT Bearer token authentication. Include your access token in the Authorization header as: Bearer YOUR_ACCESS_TOKEN
Example:
Path Parameters
UUID of the service account to list API keys for
Query Parameters
Number of records to skip for pagination
x >= 0Maximum number of records to return
1 <= x <= 1000Response
List of API keys retrieved successfully
Human-readable name for this API key.
255"API Key"
UUID of the organization this API key belongs to.
"550e8400-e29b-41d4-a716-446655440000"
Prefix of the authentication token for display purposes. Full token is only shown once during creation.
40"saf_org_550e8400_abc123"
Optional description explaining the purpose and usage of this API key.
"API key for external integrations"
UUID of the service account this API key belongs to. NULL for user keys.
"550e8400-e29b-41d4-a716-446655440000"
UUID of the user this API key belongs to. NULL for service account keys.
"550e8400-e29b-41d4-a716-446655440000"