Skip to content

List sites

Request

List all the sites in the portfolio along with the organisations that own them.

Security
api_key
Query
organisationIdstring, (uuid)

The ID of an organisation.

userIdstring

The ID of a user.

statestring

Site state.

Enum:"active""deleted"
curl -i -X GET \
  'https://coreapi.hoxton.ai/_mock/v1/sites?organisationId=497f6eca-6276-4993-bfeb-53cbbbba6f08&userId=string&state=active' \
  -H 'Authorization: YOUR_API_KEY_HERE'

Responses

OK.

Bodyapplication/json
Array [
addressstring
idstring or null, (uuid)
namestring, non-emptyrequired
openingHourobject or null
organisationIdstring, (uuid)
statestring
Enum:"active""deleted"
tzstring
]
Response
[ { "address": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "openingHour": {}, "organisationId": "c9b3f279-e3b5-4204-ad99-646257417f98", "state": "active", "tz": "string" } ]