v2 API Keys

Create a key (secret is shown once)

post/api/v2/api-keys

Request

  • Base URL: https://pdf2md.dev
  • URL: https://pdf2md.dev/api/v2/api-keys
  • Auth: one of:
    • API key in cookie p2m_session
    • HTTP bearer

Request body

namestring required
scopesstring[]
expires_atstring date-time nullable

Response

Key created

idstring uuid required
namestring required
prefixstring required
scopesstring[] required
last_used_atstring date-time nullable
expires_atstring date-time nullable
created_atstring date-time required
secretstring required

Full secret p2m_... — shown ONCE; only the hash is stored on the server (security.md)

Example response

{
  "prefix": "p2m_AbC123",
  "secret": "p2m_AbC123def456..."
}

Changes

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