Skip to main content
POST
/
v1
/
publishable-keys
Create Publishable Key
curl --request POST \
  --url https://api.oneinbox.ai/v1/publishable-keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "allowed_origins": [
    "<string>"
  ],
  "scopes": [
    "<string>"
  ]
}
'
{
  "id": "<string>",
  "name": "<string>",
  "key": "<string>",
  "key_prefix": "<string>",
  "is_active": true,
  "allowed_origins": [
    "<string>"
  ],
  "scopes": [
    "<string>"
  ],
  "last_used_at": "2023-11-07T05:31:56Z",
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
Required string length: 1 - 255
allowed_origins
string[]
scopes
string[] | null

Response

Successful Response

id
string
required
name
string
required
key
string
required
key_prefix
string
required
is_active
boolean
required
allowed_origins
string[]
required
scopes
string[]
required
last_used_at
string<date-time> | null
required
created_at
string<date-time>
required