API Keys

Create an API Key and reveal its secret once

post/api-keys

Request

  • Base URL: https://api.flashdata.dev/v2
  • URL: https://api.flashdata.dev/v2/api-keys
  • Auth: API key in cookie __Host-fd_session and API key in header X-CSRF-Token

Headers

Idempotency-Keystring required

Request body

namestring required
scopesstring[] required
expiresAtstring date-time

Response

Created; the same idempotent replay may return the same encrypted response for five minutes

secretstring required

Plaintext secret returned only by this create/rotate transaction. Newly issued secrets use the fd_ prefix. Previously issued fd_test_ and fd_live_ secrets still authenticate. An authenticated replay with the same Idempotency-Key and request body may receive the same KMS-encrypted response for five minutes; it is not recoverable afterward.

Changes

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