keys

Mint a new API key. The full secret is returned EXACTLY ONCE.

post/v1/keys

Request

  • Base URL: https://api.premiumpin.com
  • URL: https://api.premiumpin.com/v1/keys
  • Auth: API key in cookie pp_session

Request body

expires_atstring date-time nullable
namestring

Response

created — secret present only in this response

created_atstring date-time
expires_atstring date-time nullable
idstring
is_activeboolean
key_prefixstring

safe-to-display; NOT the secret

last_used_atstring date-time nullable
namestring
secretstring

shown once, unrecoverable

Example response

{
  "key_prefix": "pp_live_ab12",
  "secret": "pp_live_ab12CdEf..."
}

Changes

No recorded changes to this operation across all 1 revision of this API.