Storyden
Admin

Admin O Auth Dynamic Registration Access Token Create

Issue an Initial Access Token authorizing autonomous agent registration. The opaque bearer token is returned once. It grants no account or API permissions. Expiry is required; max_registrations defaults to one.

POST
/admin/oauth/dcr-iats

Issue an Initial Access Token authorizing autonomous agent registration. The opaque bearer token is returned once. It grants no account or API permissions. Expiry is required; max_registrations defaults to one.

Authorization

cookiestoryden-session<token>

Request Body

application/json
  1. body
label*string
Length1 <= length <= 200
expires_at*string

Must be in the future.

Formatdate-time
max_registrations?integer
Range1 <= value <= 2147483647
Default1

Response Body

Registration token issued.

application/json
  1. response
iat*
token*string

Opaque bearer credential shown only once.

Example Request
curl -X POST 'https://example.com/api/admin/oauth/dcr-iats' \  -H 'Content-Type: application/json' \  -d '{  "label": "string",  "expires_at": "2019-08-24T14:15:22Z"}'
Example Response
{  "iat": {    "id": "string",    "createdAt": "2019-08-24T14:15:22Z",    "label": "string",    "creator_account_id": "string",    "expires_at": "2019-08-24T14:15:22Z",    "max_registrations": 0,    "registration_count": 0,    "revoked_at": "2019-08-24T14:15:22Z"  },  "token": "string"}