Skip to main content
POST
Add an API key to a company site

Authorizations

Authorization
string
header
required

A company admin credential for your company, or a droplet installation token with the website scope for reads, except on the share routes, which refuse a droplet token.

Path Parameters

id
string<uuid>
required

The site's id.

Body

application/json

The new key's name, unwrapped. Any other field is refused.

name
string
required

The name, 1 to 64 characters after trimming.

Minimum string length: 1

Response

The key was added. Store secret now.

The key just added, with its secret.

api_key
object
required

The key, and its secret, which is never shown again.

status
integer
required

The HTTP status.

meta
object
required

Response metadata included on every response body.