---
title: "Whether the AI assistant and connecting sites hosted elsewhere are available to the team (paid add-ons) and configured"
method: GET
path: "/wordpress/ai"
tags: ["WordPress"]
---

# Whether the AI assistant and connecting sites hosted elsewhere are available to the team (paid add-ons) and configured

`GET /wordpress/ai`

## Request

- Base URL: `https://hostingsurge.com/api/v1`
- URL: `https://hostingsurge.com/api/v1/wordpress/ai`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `__Host-hs_session`

## Query parameters

- `orgId` string: Organization id (required when you belong to several)

## Response `200`

Status

- object
  - `configured` boolean, required: false: the server has no AI model configured (runs answer not_configured)
  - `assistant` object, required: wordpress.ai_assistant
    - `allowed` boolean, required
    - `requires` 'plan' | 'plan_or_credits', required
    - `plan` string, required
    - `creditsPerUse` number, nullable, required
  - `connectExternal` object, required: wordpress.connect_external
    - `allowed` boolean, required
    - `requires` 'plan' | 'plan_or_credits', required
    - `plan` string, required
    - `creditsPerUse` number, nullable, required
  - `usdPerCredit` number, required

## Other responses

- `400`: Invalid request (code invalid_request)
- `401`: Missing or invalid session/token (code unauthorized)
- `402`: A paid add-on (code upgrade_required, details.feature) or no Build Credits left (code limit_reached)
- `403`: Authenticated but not permitted (code forbidden)
- `404`: Not found or not visible to the caller (code not_found)
- `409`: Conflicting state: a run is already running on the site, or the result was already saved (code conflict)
- `429`: Too many requests, or the AI assistant's daily capacity is used up (code rate_limited); see Retry-After
- `501`: No AI model, or no public API address for the site containers, on this server (code not_configured)
- `503`: The site or the model did not answer (code provider_unavailable)

---

[API](https://skmtc.dev/hostingsurge/apis/hostingsurge-platform-api.md) · [All operations](https://skmtc.dev/hostingsurge/apis/hostingsurge-platform-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hostingsurge/apis/hostingsurge-platform-api/revisions/4d08337cdff1?raw)
