---
title: "WordPress sites hosted elsewhere connected to the AI assistant (owners and admins see all; members their own)"
method: GET
path: "/wordpress/connections"
tags: ["WordPress"]
---

# WordPress sites hosted elsewhere connected to the AI assistant (owners and admins see all; members their own)

`GET /wordpress/connections`

## Request

- Base URL: `https://hostingsurge.com/api/v1`
- URL: `https://hostingsurge.com/api/v1/wordpress/connections`
- 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`

Connections

- object
  - `items` object[], required
    - `id` string, uuid, required
    - `organizationId` string, uuid, required
    - `siteUrl` string, required
    - `siteName` string, nullable, required
    - `username` string, required
    - `userDisplayName` string, nullable, required
    - `status` 'active' | 'error' | 'disconnected', required
    - `seoPlugin` 'yoast' | 'rankmath' | 'null', nullable, required
    - `lastVerifiedAt` string, nullable, required: ISO-8601 timestamp
    - `lastError` string, nullable, required
    - `createdAt` string, required: ISO-8601 timestamp
    - `createdBy` string, uuid, nullable, required
    - `disconnectedAt` string, nullable, required: ISO-8601 timestamp
    - `authKind` 'application_password' | 'connector'
    - `scopes` string[]
    - `projectId` string, uuid, nullable
    - `pluginVersion` string, nullable

## 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)
