Syndai Docs

List the workspace's sites

GET
/api/v1/external/coding/customers/{customer_id}/sites

Every site of the workspace, oldest first: hosted (published by Syndai, listed while live on an active repository), github (a repository deployed elsewhere) and website (an address only, no longer supported: its state is unsupported and it has no moves). state is an open string: needs_address, connect_google, ready, members_only, offline, lost or unsupported. google_state is an open string: none, pending, restricted, full or lost. open_moves counts the site's listed search moves. With repo, returns that repository's site in any state, or an empty list when it has none yet.

Authorization

CustomerApiKey
headerAuthorizationBearer <API Key>

Customer API key sent as a bearer token

Path Parameters

customer_id*string
Formatuuid

Query Parameters

repo?|null

Response Body

Request fulfilled, document follows

application/json
  1. response
sites*array<>
Example Request
curl -X GET 'https://api.syndai.ai/api/v1/external/coding/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/sites'
Example Response
{  "sites": [    {      "coding_repository_id": "0d18edb4-5201-4374-8af8-14fdbf761813",      "display_name": "string",      "google_state": "string",      "open_moves": 0,      "origin": "string",      "site_id": "72771e6a-6f5e-4de4-a5b9-1266c4197811",      "source": "string",      "state": "string"    }  ]}