Skip to main content
POST
Create an API key

Authorizations

Authorization
string
header
required

Authentication using either a FormBnB session JWT (issued by /auth) or an API key (prefixed with sk_). Both token types are passed as Bearer tokens in the Authorization header.

Body

application/json
name
string
required

API key name

Required string length: 1 - 50

Response

Created API key

apiKey
object
required