Skip to main content
POST
/
v1
/
api-keys
Create API key
curl --request POST \
  --url https://reelmirror.com/api/v1/api-keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "scopes": [
    "<string>"
  ]
}
'
{
  "id": "<string>",
  "name": "<string>",
  "key": "<string>",
  "scopes": [
    "<string>"
  ],
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

API key (rm_xxx) or JWT token

Body

application/json
name
string
required

Display name for the key

scopes
string[]

Permission scopes. Defaults to all except billing:read.

Response

201 - application/json

API key created. The full key is only returned once.

id
string
name
string
key
string

Full API key (only shown once)

scopes
string[]
created_at
string<date-time>