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

Redeem a connection reference from your setup address

An administrator who connects a configuration arrives at your setup address with a reference query parameter. Post it here to learn which configuration they are connecting. A reference works once, within ten minutes, and only for your integration. Every refused reference gets the same 400, and a refused redeem does not use it up.

POST/v1/integrations/connection-references/redeem
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>.

Request body
requiredapplication/json
referencestringrequired

The reference query parameter the administrator arrived at your setup address with.

min length 1 · max length 200
Responses
200

The configuration the reference was made for.

configurationIdstring<uuid>required

The configuration the administrator is connecting.

operationalContextIdstring<uuid>required

The operational context the configuration belongs to.

levelstringrequired

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

Allowed:organizationbusiness_context
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_FAILEDINTEGRATIONS_CONNECTION_REFERENCE_INVALID
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 POST 'https://api.hydda.one/v1/integrations/connection-references/redeem' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "reference": "string"
}'
Response
{
  "configurationId": "254ffdcc-3725-465c-b0a0-22afb2bec267",
  "operationalContextId": "a3f64ce2-1602-4028-b89f-abb2bb8c71bc",
  "level": "organization"
}