Partner keys
Issue a key for one of the account’s buyers or publishers; the key is answered once
Needs the partner-keys:write scope. About scopes
keyheader
AuthorizationBearer <traki_account_…>application/json- body
api*stringValue in
"buyer""publisher"holderId*stringFormat
uuidname*stringLength
1 <= length <= 80mode?stringDefault
"live"Value in
"live""test"preset?stringDefault
"read_only"Value in
"read_only""full_access""custom"scopes?array<>Items
items <= 80ipAllowlist?array<>Items
items <= 50Default
[]expiresInDays?|||Default
nullSuccess
application/json- response
key*secret*stringcurl -X POST 'https://api.traki.io/v1/account/partner-keys' \ -H "Authorization: Bearer $TRAKI_KEY" \ -H 'Content-Type: application/json' \ -H 'Idempotency-Key: a-unique-id-for-this-change' \ -d '{ "api": "buyer", "holderId": "76fac108-7d9e-45e5-9a3e-37a6c5b125a8", "name": "string"}'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"}