Skip to main content
POST
Create an API key

Authorizations

Authorization
string
header
required

An API key (fb_live_…)

Body

application/json
name
string
required

Its name.

Required string length: 1 - 255
scopes
string[]

What the key may do: <area>.read, <area>.write, <area>.* or *.

Required array length: 1 - 32 elements
Maximum string length: 64
resource
string

A sandbox the key is bound to: it works on that sandbox only.

Required string length: 1 - 255
expires_in_sec
integer

Seconds until the key stops working: 60 to 365 days. Never, unless set.

Required range: 60 <= x <= 31536000

Response

Success

id
string<uuid>
required

Its ID.

name
string
required

Its name.

key
string
required

Shown once

scopes
string[]
required

What the key may do: <area>.read, <area>.write, <area>.* or *.

resource
string | null
required

A sandbox the key is bound to: it works on that sandbox only.

expires_at
string<date-time> | null
required

When its lifetime ends and it is deleted; null when it has none (kept until you delete it).