Retrieves all organizations configured in the system

GET /api/configuration/organisations

Success: 200 OK

Overview

Returns every organisation configured for your tenant. An organisation is the legal or commercial entity that sits above sites — the operator that runs the centres, or a partner working with them — and carries the name, registered address, VAT identifier and logo that appear on customer-facing documents such as invoices.

Each organisation lists the sites mapped to it, so this call is the way to work out which trading entity a site belongs to.

The full set is returned every time: no paging, no filtering, and inactive organisations are included alongside active ones — check isActive rather than assuming the list is current. To read one organisation you already have the id for, use Retrieve an organisation.

Endpoint

GET {base_url}/api/configuration/organisations

{base_url} is the environment URL issued to your integration. See Authenticating with Gladstone APIs.

Sample request

cURL
curl -X GET '{base_url}/api/configuration/organisations' \
  -H 'Authorization: Bearer {accessToken}' \
  -H 'X-Use-SSO: true'

Response fields

FieldTypeDescription
[].idinteger (int32)The organisation's identifier, and the value to pass to Retrieve an organisation.
[].typestringWhat kind of entity this is: operator for the business running the centres, or partner for an associated organisation. Those are the only two values accepted when an organisation is created or updated, compared case-insensitively.
[].namestringThe organisation's trading name, as displayed. Maximum 255 characters. Not necessarily the registered name — see legalName.
[].legalNamestringThe registered legal name of the entity, for use where a document must name the company rather than the brand. Maximum 255 characters. May be null where only a trading name was recorded.
[].descriptionstringFree-text notes about the organisation, maximum 255 characters. null when none was entered.
[].websiteUrlstringThe organisation's public website address, maximum 255 characters. Returned as entered — it is not validated as a well-formed URL, so treat it as untrusted text before rendering it as a link.
[].logoUrlstringAddress of the organisation's logo image, maximum 255 characters. Not validated as a URL and not hosted by this endpoint. null when no logo was set.
[].addressobjectThe organisation's registered or trading address. Always present as an object, but every field inside it is individually optional, so expect an object of nulls rather than a missing address.
[].address.addressLine1stringFirst line of the address, maximum 100 characters.
[].address.addressLine2stringSecond line of the address, maximum 100 characters. null when unused — the lines are not compacted, so do not assume line 2 is filled before line 3.
[].address.addressLine3stringThird line of the address, maximum 100 characters. Often null.
[].address.townstringTown or city, maximum 100 characters.
[].address.regionstringCounty, state or region, maximum 100 characters.
[].address.postCodestringPostal code, maximum 25 characters — the shortest of the address fields, and the one most likely to reject an overseas value on write. Returned as entered, with no formatting or validation applied.
[].address.countrystringCountry as free text, maximum 100 characters — not an ISO country code, and not validated against a list.
[].contactobjectThe organisation's general contact details. Always present as an object, with both fields individually optional.
[].contact.telephonestringContact telephone number as free text, maximum 100 characters. No format is enforced, so expect spacing and country codes to vary.
[].contact.emailstringContact email address, maximum 255 characters. Only the length is checked — the address is not validated, so it may not be deliverable or even well-formed.
[].vatIdstringThe organisation's VAT registration identifier, maximum 50 characters, returned as entered with no format check. null for organisations that are not VAT registered or where it was not recorded.
[].isActivebooleanWhether the organisation is in use. false means retired rather than unknown. Inactive organisations are still returned by this endpoint and still keep their site mappings — filter on this field yourself.
[].sitesarray of stringThe site codes mapped to this organisation, which is how you tell which trading entity a site belongs to. Empty rather than null when no sites are mapped. The mapping is maintained on the organisation, so a site appearing under two organisations is a configuration error rather than something to handle.

Sample response

200 OK
[
  {
    "id": 12345,
    "type": "string",
    "name": "string",
    "legalName": "string",
    "description": "string",
    "websiteUrl": "string",
    "logoUrl": "string",
    "address": {
      "addressLine1": "string",
      "addressLine2": "string",
      "addressLine3": "string",
      "town": "string",
      "region": "string",
      "postCode": "string",
      "country": "string"
    },
    "contact": {
      "telephone": "string",
      "email": "member@example.com"
    },
    "vatId": "string",
    "isActive": true,
    "sites": [
      "string"
    ]
  }
]

Errors

StatusMeaningWhen
500Internal server errorAn unexpected server-side failure while reading the organisations. The body is a generic platform error rather than a message specific to this endpoint.

This page as markdown · All pages · llms.txt