Skip to Content
Integrations

Issue a restricted key; show its secret once

POST
/integrations/{integration_id}/keys

Authorization

studioSession
cookie__Secure-avatarstudio.session_token<token>

An authenticated Studio session. Each operation enforces its resource and role permissions.

Path Parameters

integration_idrequiredstring
Match^ipr_[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$

Request Body

application/json
  1. body
namerequiredstring
Match^[^\u0000-\u001f\u007f]+$
Length1 <= length <= 100
scopesrequiredarray<>
Items1 <= items <= 9
expires_in_secondsinteger

Default 30 days; minimum 60 seconds; maximum 90 days.

Range60 <= value <= 7776000
Default2592000
Issue a restricted key; show its secret once
curl -X POST 'https://example.com/v1/integrations/string/keys' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "string",
  "scopes": [
    "experiences:read"
  ]
}'
{
  "id": "string",
  "object": "integration.key",
  "integration_id": "string",
  "name": "string",
  "display_prefix": "string",
  "scopes": [
    "experiences:read"
  ],
  "created_at": -9007199254740991,
  "expires_at": -9007199254740991,
  "revoked_at": -9007199254740991,
  "secret": "string"
}

Response Body

OK

application/json
  1. response
idrequiredstring
Match^key_[0-9a-f]{32}$
objectrequiredunknown
integration_idrequiredstring
Match^ipr_[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
namerequiredstring
display_prefixrequiredstring
scopesrequiredarray<>
Items1 <= items <= 9
created_atrequiredinteger
Range-9007199254740991 <= value <= 9007199254740991
expires_atrequiredinteger
Range-9007199254740991 <= value <= 9007199254740991
revoked_atrequired|null
secretrequiredstring

Shown once. Store securely on a trusted server; never place in browser code or a URL.