Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

A gateway API token (tcg_…) created in the dashboard

Headers

Idempotency-Key
string | null

Makes retries safe for 24 hours

Body

application/json
name
string
required
endpoint_ids
string[]
expires_at
string | null

RFC 3339 timestamp; omit for a key that never expires.

scope
enum<string> | null

Defaults to all. endpoints restricts the key to endpoint_ids.

Available options:
all,
endpoints

Response

Created

A key with its plaintext secret. The secret is shown only in this response.

key
object
required
secret
string
required