Skip to Content
Developers
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

Try it with a test key

Sends to https://api.traki.io

Test keys only. The key stays in this page while it is open and is never saved.

/v1/account/partner-keys/{id}/roll

Authorization

key
headerAuthorizationBearer <traki_account_…>

Path Parameters

id*string
Formatuuid

Request Body

application/json
  1. body
overlap?string
Default"24h"
Value in"now""1h""24h""7d"

Response Body

Success

application/json
  1. response
key*
secret*string
Example Request
curl -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"}