Skip to main content
API v0 is the legacy SiteGPT API. It stays available for existing integrations. For new work, use API v2. To move an integration, see Move from API v0 to v2.

Base URL

One endpoint uses v1 in its path: POST https://sitegpt.ai/api/v1/chatbots/{chatbotId}/links (“Add Content to Chatbot”). It uses the same API key and response format as v0.

API key

API v0 and v1 use the legacy API key. Scoped sgpt_ tokens from the Agents page do not work with v0.
  • Plan: Growth plan and above. See Plans and limits.
  • Where to find it: Open the Billing page. The key shows in the line “Your API Key is …”.
  • SiteGPT creates the key for you. You cannot create or rotate it yourself. If your plan includes API access but you do not see a key, contact support.
See Authentication for more about the legacy key. Send the key in the Authorization header:
Keep the key on your server. Anyone with the key can read and change your chatbots.

Response format

Success:
Error:
When validation fails, error.details is a list of field errors. Each item has a path and a message:

Error codes

Pagination

API v0 has no pagination. List endpoints return all items in one response. If you need pagination, use API v2. See API conventions.

Rate limits

API v0 has no per-request rate limit and sends no rate-limit headers. A 429 status means that a plan quota is used up.

SDKs

The official SDKs use API v2, not v0:

Names in API v0

API v0 uses older names for some features: Move from API v0 to v2 maps every v0 endpoint to its v2 endpoint.

Webhooks

Webhooks are set up per chatbot in Settings > Webhooks. With API v0 you can also set a messages webhook for one conversation. See Webhooks.

Support

Email support@sitegpt.ai with the endpoint, the request, and the full error response.