POST

Authorizations

Authorization
string
header
required

Developer session token from POST /v1/auth/login or POST /v1/auth/register. Valid 7 days.

Authenticates the developer control plane. It also reaches the server and build endpoints, which a dashboard has to drive and which no session can otherwise call: an API key's value is returned once, at mint, so nothing can read back a key for an existing project. On those endpoints a session names its project with project_id, or is resolved from the resource it addresses, and is always checked against the account that owns it.

It reaches no player-facing game endpoint.

Path Parameters

project_id
string
required

Project identifier.

Example:

"proj_abc123"

Body

application/json
kind
enum<string>
required

server mints an sk_live_ key with full access to the project. client mints a ck_live_ key for shipped game binaries.

Available options:
server,
client
name
string
Example:

"Production Server Key"

Response

Key created. This is the only response that contains key.

Returned once, on creation. key is the only time the full value exists outside the caller. Simpl cannot show it again, and a lost key must be replaced rather than recovered.

key_id
string
required
Example:

"key_abc123"

key
string
required

The full key. Store it now; it is never returned again.

Example:

"sk_live_abc123...xyz"

kind
enum<string>
required

server mints an sk_live_ key with full access to the project. client mints a ck_live_ key for shipped game binaries.

Available options:
server,
client
prefix
enum<string>
required
Available options:
sk_live_,
ck_live_
last_four
string
required
Example:

"xyz"

created_at
string<date-time>
required
name
string
Example:

"Production Server Key"