/Docs
Search docs or ask a question⌘K
DocsAgent
Changelog
API Reference List API Keys

List API Keys

List all active API keys for a project.

GET/v1/projects/{projectId}/api-keysTry it
Session token

Returns all active (non-revoked) API keys for a project, newest first. The full key value is never returned after creation — only the prefix and the last four characters.

Note

Any member of the workspace can list keys (prefix and last4 only). Creating, rotating and revoking keys needs the admin or owner role.

Path Parameters

NameDescription
projectId:stringpathRequired
The project ID.

Response

NameDescription
last4:string | null
The last four characters of the full key, for display (for example stx_a1b2c3d4_…Once). null for keys created before this field existed — only a hash of those keys is stored, so their suffix can't be recovered. Rotate such a key to get a last4.

Key Scopes

ScopeAllows
readBuilds, build logs, export bundles, version diffs and hosted content reads
buildEverything in read, plus trigger and cancel builds, deploy, promote, roll back, and publish hosted content
fullEverything in build, plus restore a content revision and import content

No scope reaches endpoints that need a session JWT — see Authentication.

Was this page helpful? Yes No
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl https://api.syntext.dev/v1/projects/3f2a9c1e-8b4d-4e7a-9c21-5d6e7f8a9b0c/api-keys \
-H "Authorization: Bearer $SYNTEXT_JWT"
Responseapplication/json
json
{
"data": [
{
"id": "key_789",
"name": "CI deploy key",
"prefix": "stx_a1b2c3d4",
"last4": "Once",
"scope": "build",
"lastUsedAt": "2026-07-01T09:12:00Z",
"expiresAt": null,
"createdAt": "2026-05-15T10:00:00Z"
}
]
}
Product
Resources
Company
© 2026 SyntextBuilt with Syntext