API key routes
Create, list and revoke API keys.
Requires team capability apikeys.read. Acts on the team in the X-Team-Id header. If omitted, the caller's only team membership is used.
ttrTokenttr-token<token>Session token issued by sign-in. Sent as the ttr-token header.
limit?integer1 <= value <= 100offset?integer0 <= valuestatus?string"active""revoked""all"sort?stringx-team-id?stringTeam to act on. Required only when the caller belongs to more than one team.
Default Response
curl -X GET 'https://your-app-node-url/v1/api-keys' \ -H 'ttr-token: <session-token>'Requires team capability apikeys.write. Acts on the team in the X-Team-Id header. If omitted, the caller's only team membership is used.
ttrTokenttr-token<token>Session token issued by sign-in. Sent as the ttr-token header.
x-team-id?stringTeam to act on. Required only when the caller belongs to more than one team.
application/json- body
name*stringlength <= 255expiry_at?integerDefault Response
curl -X POST 'https://your-app-node-url/v1/api-keys' \ -H 'ttr-token: <session-token>' \ -H 'Content-Type: application/json' \ -d '{ "name": "string"}'Requires team capability apikeys.read. Acts on the team in the X-Team-Id header. If omitted, the caller's only team membership is used.
ttrTokenttr-token<token>Session token issued by sign-in. Sent as the ttr-token header.
api_key_id?stringts_start?integerts_end?integergranularity?string"hour""day""week""month"x-team-id?stringTeam to act on. Required only when the caller belongs to more than one team.
Default Response
curl -X GET 'https://your-app-node-url/v1/api-keys/usage' \ -H 'ttr-token: <session-token>'Requires team capability apikeys.read. Acts on the team in the X-Team-Id header. If omitted, the caller's only team membership is used.
ttrTokenttr-token<token>Session token issued by sign-in. Sent as the ttr-token header.
id*stringx-team-id?stringTeam to act on. Required only when the caller belongs to more than one team.
Default Response
curl -X GET 'https://your-app-node-url/v1/api-keys/string' \ -H 'ttr-token: <session-token>'Requires team capability apikeys.write. Acts on the team in the X-Team-Id header. If omitted, the caller's only team membership is used.
ttrTokenttr-token<token>Session token issued by sign-in. Sent as the ttr-token header.
id*stringx-team-id?stringTeam to act on. Required only when the caller belongs to more than one team.
application/json- body
name*stringlength <= 255Default Response
curl -X PATCH 'https://your-app-node-url/v1/api-keys/string' \ -H 'ttr-token: <session-token>' \ -H 'Content-Type: application/json' \ -d '{ "name": "string"}'Requires team capability apikeys.write. Acts on the team in the X-Team-Id header. If omitted, the caller's only team membership is used.
ttrTokenttr-token<token>Session token issued by sign-in. Sent as the ttr-token header.
id*stringx-team-id?stringTeam to act on. Required only when the caller belongs to more than one team.
Default Response
curl -X DELETE 'https://your-app-node-url/v1/api-keys/string' \ -H 'ttr-token: <session-token>'Requires platform admin.
ttrTokenttr-token<token>Session token issued by sign-in. Sent as the ttr-token header.
application/json- body
teamId?string1 <= lengthdryRun?booleankeyIds?array<>1 <= items <= 500Default Response
curl -X POST 'https://your-app-node-url/v1/admin/api-keys/backfill-team' \ -H 'ttr-token: <session-token>' \ -H 'Content-Type: application/json' \ -d '{}'