Skip to main content
GET
/
v3beta1
/
enterprise
/
service-users
/
{service_user_id}
/
api-keys
List API keys for service user
curl --request GET \
  --url https://api.devin.ai/v3beta1/enterprise/service-users/{service_user_id}/api-keys \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "api_key_id": "<string>",
      "api_key_name": "<string>",
      "created_at": 123,
      "expires_at": 123,
      "is_active": true,
      "last_used_at": 123,
      "revoked_at": 123
    }
  ],
  "end_cursor": "<string>",
  "has_next_page": false,
  "total": 123
}

Permissions

Requires a service user with the ManageServiceUsers permission at the enterprise level.

Authorizations

Authorization
string
header
required

Service User credential (prefix: cog_)

Path Parameters

service_user_id
string
required

Service user ID (prefix: service-user-)

Example:

"service-user-abc123def456"

Query Parameters

status
enum<string>
default:all
Available options:
active,
revoked,
expired,
all

Response

Successful Response

items
ApiKeyResponse · object[]
required
end_cursor
string | null

Cursor to fetch the next page, or None if this is the last page.

has_next_page
boolean
default:false

Whether there are more items available after this page.

total
integer | null

Optional total count (can be omitted for performance).