account

Mint an API key

Create a new ck_ API key for the signed-in account. The raw key is returned exactly once; store it and pass it as the Authorization bearer on api.close.city. Accounts hold at most 3 active keys.

post/keys

Request

  • Base URL: https://account.close.city
  • URL: https://account.close.city/keys
  • Auth: API key in cookie __Host-wtm_session

Headers

X-CSRF-Tokenstring required

The session's CSRF token, from GET /auth/csrf.

Request body

labelstring

Optional label.

Response

The new key, shown once.

keystring
prefixstring
tokens_remaininginteger

The account's current token balance. The signup grant is once per account, so this can be 0 for a returning account.

Changes

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