Ai Availability Endpoint
GET
/ai/availability/
const url = 'https://example.com/ai/availability/';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/ai/availability/ \ --header 'Authorization: Bearer <token>'Report whether builder AI chat is usable.
Requires use_ai_chat. Returns available=false when provider keys
are missing and 403 when the caller lacks permission.
Authorizations
Section titled “ Authorizations ”Responses
Section titled “ Responses ”Successful Response
Media type application/json
AIAvailabilityResponse
Public-safe AI readiness signal.
The response exposes no provider, model, or key details. Editors with
use_ai_chat can use it without access to the admin-only AI status.
object
available
required
Available
boolean
Example generated
{ "available": true}Bad request — invalid query parameters or payload
Media type application/problem+json
Unauthorized — missing or invalid credentials
Media type application/problem+json
Forbidden — caller lacks access to this resource
Media type application/problem+json
Not found
Media type application/problem+json
Validation error
Media type application/problem+json
Too many requests — retry after the advertised interval
Media type application/problem+json
Headers
Section titled “ Headers ” Retry-After
integer
Seconds until the request may be retried
Internal server error
Media type application/problem+json
Service unavailable — the database could not serve the request
Media type application/problem+json