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

List your integration's configurations

Returns every configuration an administrator saved for your integration, one per operational context, with its secrets in plain text. Read it at start-up and after a redeem to learn where the integration is switched on. A business-context configuration has empty inheritable fields filled from the organization configuration. Only the integration itself can call it, with its own token: a client_credentials token for an integration of your own, an installation token for a connector from Hydda.

GET/v1/integrations/configurations
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>.

Responses
200

The integration's configurations.

configurationsobject[]required

Every configuration of your integration in the organization, across all operational contexts.

Show properties
Array of object
idstring<uuid>required

The configuration id. The status reports take it as configurationId.

operationalContextIdstring<uuid>required

The operational context the configuration applies to.

levelstringrequired

What the configuration covers. organization covers the whole organization, business_context one business context inside it.

Allowed:organizationbusiness_context
valuesobjectrequired

The values the administrator entered, keyed by the field keys the integration defines. Secrets are not among them. Empty for an integration with no fields.

secretsobjectrequired

The secrets the administrator entered, in plain text, keyed by field key. Never log them or send them back in a failure reason.

statusstringrequired

Where the configuration stands. pending until the integration reports on it, then ready or failed.

Allowed:pendingreadyfailed
manifestVersionintegerrequired

The version of your integration's definition the configuration was saved against. It rises by one each time the definition changes.

max 9007199254740991
updatedAtstring<date-time>required

When the configuration last changed, as an ISO 8601 UTC timestamp.

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. 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.

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://api.hydda.one/v1/integrations/configurations' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "configurations": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "operationalContextId": "a3f64ce2-1602-4028-b89f-abb2bb8c71bc",
      "level": "organization",
      "values": {
        "property1": "string",
        "property2": "string"
      },
      "secrets": {
        "property1": "string",
        "property2": "string"
      },
      "status": "pending",
      "manifestVersion": 1,
      "updatedAt": "2019-08-24T14:15:22Z"
    }
  ]
}