projects

Mint an API key for a project

The secret is shown once. A key can only grant scopes it holds itself. Requires an Idempotency-Key header (CONTRACT §1): the same key with the same body within 24 h replays the stored response; a different body returns 409 idempotency_conflict.

post/v1/projects/{id}/keys

Request

  • Base URL: https://api.portproof.org
  • URL: https://api.portproof.org/v1/projects/{id}/keys
  • Auth: HTTP bearer

Path parameters

idstring required

Request body

scopesstring[] required
expires_atstring date-time

Response

Default Response

idstring required
prefixstring required
secretstring required
scopesstring[] required

Changes

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