latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-11485662.0 KB

42816b90d8d6

Create an API key

Creates a new API key (client credentials) for the specified space. Requires user authentication (JWT). API keys cannot create other API keys.

post/spaces/{space_id}/api_keys

Path parameters

space_idstring required

Ghost space ID.

Request body

namestring required

User-provided label for the new API key.

Response

API key created

api_keystring required

Bearer token for the key. Use as Authorization: Bearer <api_key>.

access_keystring required

Use as the username in HTTP Basic auth.

secret_keystring required

Use as the password in HTTP Basic auth.