Skip to main content
POST
developers.key.create

Authorizations

Authorization
string
header
required

A Lath API key: lath_live_sk… or lath_test_sk… on a server, lath_live_pk… or lath_test_pk… in a browser.

Headers

Idempotency-Key
string

Replays the stored response for the same key and input; refuses different input.

Body

application/json
name
string
required
Required string length: 1 - 60
kind
enum<string>
default:secret
Available options:
secret,
publishable
permissions
enum<string>[]

Required for a secret key; not allowed for a publishable key

Minimum array length: 1
Available options:
account:read,
account:write,
auth:read,
auth:write,
email:read,
email:write,
sms:read,
sms:write,
audience:read,
audience:write,
developers:read,
developers:write,
billing:read,
billing:write

Response

{ activityId, result }. activityId is empty for reads.

activityId
string
required

The activity this call created, or empty for a read.

result
object
required
Last modified on September 13, 2026