Partner keys
Roll a partner key: a new secret, the old one working for the chosen overlap
Needs the partner-keys:write scope. About scopes
keyheader
AuthorizationBearer <traki_account_…>id*stringFormat
uuidapplication/json- body
overlap?stringDefault
"24h"Value in
"now""1h""24h""7d"Success
application/json- response
key*secret*stringcurl -X POST 'https://api.traki.io/v1/account/partner-keys/497f6eca-6276-4993-bfeb-53cbbbba6f08/roll' \ -H "Authorization: Bearer $TRAKI_KEY" \ -H 'Content-Type: application/json' \ -H 'Idempotency-Key: a-unique-id-for-this-change' \ -d '{}'Example Response
{ "key": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "keyId": "string", "api": "account", "mode": "live", "name": "string", "preview": "string", "holder": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string" }, "scopes": [ "string" ], "ipAllowlist": [ "string" ], "version": "string", "state": "active", "suspendedReason": "string", "expiresAt": "string", "lastUsedAt": "string", "lastUsedIp": "string", "rotatedAt": "string", "previousExpiresAt": "string", "createdBy": "string", "createdAt": "string" }, "secret": "string"}