Syntext DOCS
Get Started
API List API Keys
GET/v1/projects/{projectId}/api-keys

List API Keys

Returns all active (non-revoked) API keys for a project. The full key value is never returned after creation — only the prefix.

Path Parameters

The project ID.

Example

curl https://api.syntext.dev/v1/projects/prj_abc123/api-keys \
-H "Authorization: Bearer stx_abc12345_..."
const keys = await client.apiKeys.list('prj_abc123')

Response

{
  "data": [
    {
      "id": "key_789",
      "name": "CI deploy key",
      "prefix": "stx_a1b2c3d4",
      "scope": "build",
      "lastUsedAt": "2026-07-01T09:12:00Z",
      "expiresAt": null,
      "createdAt": "2026-05-15T10:00:00Z"
    }
  ]
}

Key Scopes

Scope Allows
full All project operations
build Triggering builds and deploys only
read Read-only access
Assistant
Responses are generated using AI and may contain mistakes.

Ask me anything about the documentation.

ESC