Create a named test or live key with letter scopes; secret shown once.

post/v1/account/api-keys

Request

  • Base URL: https://paperagent.dev
  • URL: https://paperagent.dev/v1/account/api-keys
  • Auth: API key in cookie __Host-pa_session

Headers

X-CSRF-Tokenstring required

From GET /v1/account/session; also requires a same-origin browser request.

Request body

namestring required
livemodeboolean required
scopesstring[] required

Response

Success

idstring required
namestring required
secretstring required
prefixstring required
livemodeboolean required
scopesstring[] required

Changes

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