Skip to main content
POST
/
v1
/
platform
/
keys
Create a platform API key
curl --request POST \
  --url https://api.withsplendor.com/v1/platform/keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>"
}
'
{
  "created_at": "2026-01-15T09:30:00Z",
  "id": 1,
  "last_used_at": "2026-01-15T09:30:00Z",
  "name": "production",
  "revoked_at": null,
  "token": "splpk.v1.cG9vbC1kYXk.EXAMPLE-secret-shown-once"
}

Authorizations

Authorization
string
header
required

API token issued from the Splendor console.

Body

application/json

Platform request (authenticated by an existing platform key) to mint an additional key for itself — the create half of key rotation.

name
string
required
Required string length: 1 - 255

Response

Successful Response

A platform API key. The plaintext token is returned only when the key is minted; thereafter only the metadata is retrievable.

created_at
string<date-time>
required
id
integer
required
name
string
required
last_used_at
string<date-time> | null
revoked_at
string<date-time> | null
token
string | null