List service accounts
Visibility: public · internal ( OpenAPI Custom Extension: x-visibility )
List service accounts within the caller's tenant. Only tenant administrators can access this endpoint. Supports filtering by scope level, scope target, and status.
Authorization
bearerAuth Bearer token authentication using OAuth2/OIDC tokens
In: header
Query Parameters
Filter by scope level.
"organization" | "project"Filter by a specific scope target (project ID). Typically used with the scope parameter.
Filter by status.
"active" | "disabled"Opaque cursor token returned in the previous response's nextPageToken. Pass to retrieve the next page of results.
Use for: Frequently updated resources (sessions, servers, clusters, API keys, instances, networks, addresses) where cursor pagination prevents items from being skipped or duplicated when the dataset changes between requests.
Mutually exclusive with offset — include one or the other, not both.
Maximum number of items to return per page. Applies to both cursor-based and offset-based pagination.
Range: 1–500. Default: 50.
501 <= value <= 500Number of items to skip before returning results.
Use for: Stable resources that change infrequently (roles, organizations, providers, policies, groups, projects) where offset pagination enables page-number UIs and total-count displays.
When using offset, the response includes a total field with the full item count. Mutually exclusive with pageToken — include one or the other, not both.
00 <= valueResponse Body
application/json
application/json
application/json
application/json
curl -X GET "https://api.k0rdent.ai/v1/regions/global/iam/service-accounts"{
"serviceAccounts": [
{
"selfLink": "/v1/iam/service-accounts/sa-pipeline-prod",
"uid": "07cc67f4-45d6-494b-adac-09b5cbc7e2b5",
"id": "sa-pipeline-prod",
"displayName": "Production CI/CD Pipeline",
"description": "string",
"clientId": "sa-pipeline-prod@myorg.iam",
"scope": "project",
"scopeId": "proj-abc123",
"roles": [
"compute.deployer",
"storage.writer"
],
"status": "active",
"createdBy": "user-admin-001",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"activeCredentialCount": 2
}
],
"nextPageToken": "string",
"total": 0
}{
"error": {
"code": 0,
"message": "string",
"details": [
{}
]
}
}{
"error": {
"code": 0,
"message": "string",
"details": [
{}
]
}
}{
"error": {
"code": 0,
"message": "string",
"details": [
{}
]
}
}How is this guide?