Create an API key
Creates a site key and returns its token. Keys made through the API always have origin api. A key's kind can't be set through the API: sending kind returns 422 invalid_params. Full-access keys are created in the dashboard only.
An account can have up to 10,000 active site keys. Past that, creating returns 422 site_key_cap_reached. The name of a connected integration, such as the Webflow Designer key or a connected Shopify store, is reserved: 422 reserved_name.
Send an Idempotency-Key header to retry safely.
Request
- Base URL: https://alttext.ai/api/v1
- URL: https://alttext.ai/api/v1/api_keys
- Auth: API key in header X-API-Key
Headers
A unique string you generate, such as a UUID. Retrying the same request with the same Idempotency-Key within 24 hours returns the original result instead of creating or rotating a second time. A retry is the same request only when the path and body match; otherwise you get idempotency_key_reused. A replay returns the token only while it is still the key's current token. After a later rotation or revocation it returns 409 idempotent_replay_superseded instead. A request that failed is not stored, so retrying it runs again.
Request body
Response
The new key, with its token.
Changes
No recorded changes to this operation across all 1 revision of this API.