Skip to main content
Generate a new user-scoped API key for authenticating with the PIN API. You can assign a custom name to distinguish keys. The full key value is returned only in this response and cannot be retrieved later.

Endpoint

POST /v1/apikeys Authentication: Bearer API key

Request body

string
default:"default"
Human-readable name for the new key.

Response

string
Unique key identifier.
string
Name assigned to the key.
string
Full plaintext API key. Store it immediately; it will not be shown again.
string
ISO 8601 timestamp when the key was created.

Example

Use the create API key endpoint to generate a new API key for programmatic access. Provide a name to identify the key. The full key value is returned only once and cannot be retrieved again.

Endpoint

Authentication

Requires a valid Authorization: Bearer <jwt-or-api-key> header.

Request Body

string
required
Human-readable name for the new API key.

Response

string
Unique identifier for the created API key.
string
The name provided in the request.
string
The full API key value. This is shown only once; store it securely.