v1

latestOpenAPI 3.0.32026-07-17485661.9 KB

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.