Skip to content
Hydda One API
Esc
↑↓navigate↵open⌘Jpreview

List the operational contexts the token can act in

The first call an integration makes. Most other endpoints act in one operational context, and this list is where their operationalContextId comes from. It holds every context the roles granted to the Application reach. The token must belong to an organization.

GET/v1/operational-contexts
Authorization
AuthorizationOAuth2 access token · headerrequired

An access token for an Application, from the client_credentials grant. An integration of your own uses the same grant. A connector from Hydda gets its token from the installation-token grant instead. Send it as Authorization: Bearer <token>.

Query parameters
typesstring | string[]

Only return operational contexts of these types, for example organization or coworking. Repeat the parameter for several types.

cursorstring

The nextCursor of the previous page. Leave it out for the first page.

min length 1
limitinteger

The most operational contexts to return, up to 100.

max 100
Responses
200

One page of operational contexts.

operationalContextsobject[]required

The operational contexts on this page.

Show properties
Array of object
idstring<uuid>required

The operational context id. Other endpoints take it as operationalContextId.

namestringrequired

The name the operator gave it.

typestringrequired

What kind of context it is: organization, a business context (coworking, residential or facility_management), a unit (office or apartment) or tenant. More types can be added.

nextCursorstring

Pass it as cursor to read the next page. Absent on the last page.

400

The request is not valid, or a business rule refused it. code names the rule.

typestringrequired

Always about:blank.

titlestringrequired

The HTTP status phrase, for example Not Found.

statusintegerrequired

The HTTP status code.

min -9007199254740991 · max 9007199254740991
detailstring

What went wrong, for a person to read. Do not parse it.

codestring

Names the rule that refused the request, when the failure has one. Match on this, not on detail.

Allowed:VALIDATION_FAILED
parametersobject

Values the refusal names, keyed by what they are, for example occurrenceDate with BOOKING_SERIES_CONFLICT.

issuesobject[]

With VALIDATION_FAILED: one entry per field that failed validation, each with its path and message.

401

The access token is missing, expired or not valid.

typestringrequired

Always about:blank.

titlestringrequired

The HTTP status phrase, for example Not Found.

statusintegerrequired

The HTTP status code.

min -9007199254740991 · max 9007199254740991
detailstring

What went wrong, for a person to read. Do not parse it.

codestring

Names the rule that refused the request. Match on this, not on detail.

parametersobject

Values the refusal names, keyed by what they are, for example occurrenceDate with BOOKING_SERIES_CONFLICT.

issuesobject[]

With VALIDATION_FAILED: one entry per field that failed validation, each with its path and message.

403

The token does not allow this request.

typestringrequired

Always about:blank.

titlestringrequired

The HTTP status phrase, for example Not Found.

statusintegerrequired

The HTTP status code.

min -9007199254740991 · max 9007199254740991
detailstring

What went wrong, for a person to read. Do not parse it.

codestring

Names the rule that refused the request. Match on this, not on detail.

parametersobject

Values the refusal names, keyed by what they are, for example occurrenceDate with BOOKING_SERIES_CONFLICT.

issuesobject[]

With VALIDATION_FAILED: one entry per field that failed validation, each with its path and message.

Request
curl -X GET 'https://idp.hydda.one/v1/operational-contexts' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "operationalContexts": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "name": "string",
      "type": "string"
    }
  ],
  "nextCursor": "string"
}

Was this page helpful?