API Keys

Create an API key

Creates a new API key for the authenticated organization. The full key is returned in the response — this is the only time it will be shown. Requires dashboard authentication: requests authenticated with an API key are rejected, so a leaked key cannot be used to mint further keys.

post/v1/api-keys

Request

  • Base URL: https://api.astrocal.dev
  • URL: https://api.astrocal.dev/v1/api-keys
  • Auth: HTTP bearer

Request body

namestring required
mode'live' | 'test' required
expires_atstring date-time

Response

API key created

idstring required
org_idstring required
namestring required
keystring required
key_prefixstring required
mode'live' | 'test' required
expires_atstring nullable required
created_atstring required
warningstring required

Changes

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