Integrations API
Read the configurations an organization saved for your integration, and report whether each one works.
Every integration uses the integrations API. It is how your integration learns where an organization switched it on, and how it says whether it works there. Your integration reads its configurations, then reports each one ready or failed.
Hydda One starts to use an integration only after it reports a configuration ready. The billing queues and signing sends wait for that report.
This page is the reference for the calls. If you are new to integrations, read How integrations work first, then follow Build your own integration.
What the token needs
The caller is the integration itself. No role is needed. Two kinds of token are accepted:
| Integration | Token |
|---|---|
| Your own integration | A token from the client_credentials grant, for the client id the integration was created with. |
| A connector from Hydda | A token from the installation-token grant, for the installation. |
See Authentication for both grants.
The integration must be installed and active. A disabled integration, or a token that belongs to no installed integration, answers 403. A request without a token answers 401.
The calls
| Call | What it does |
|---|---|
GET /v1/integrations/configurations |
Lists your integration’s configurations in the organization, with their values and secrets. |
POST /v1/integrations/configurations/{configurationId}/ready |
Reports that the configuration works. Answers 204. |
POST /v1/integrations/configurations/{configurationId}/failed |
Reports that it cannot work, with a code and a reason. Answers 204. |
POST /v1/integrations/connection-references/redeem |
Only with a setup address: exchanges the reference the administrator arrived with for the configuration being connected. |
Each call is described in the integrations reference.
Read your configurations when your integration starts. Check each one that is not ready, and report on it.
An integration with a setup address also redeems a connection reference when an administrator opens its page. That flow is in Connect on your own page.
What a configuration carries
| Field | What it is |
|---|---|
id |
The configuration id. The status reports take it as configurationId. |
operationalContextId |
The organization or business context the configuration applies to. |
level |
organization or business_context. |
values |
The settings the administrator entered, except the secret ones. See Values and secrets. |
secrets |
The secret settings the administrator entered, in plain text. |
status |
pending, ready or failed. |
manifestVersion |
The version of the integration’s definition the configuration was saved against. It rises by one each time the definition changes. |
updatedAt |
When the configuration last changed. |
Values and secrets
An integration often needs settings that only the organization knows: which account to use at the external system, and the credentials for it. values and secrets are how those settings reach the integration.
It works in three steps:
- The integration defines fields. Each field has a key, a label and a type, such as a text field
client_idlabelled “Client id”. - An administrator fills them in. The admin console shows the fields as a form when the administrator configures the integration, once for the organization or once for each business context.
- The integration reads what was entered. Each configuration in the list carries the answers, keyed by field key.
The answers are split in two objects by how sensitive they are:
| Object | Holds | In the admin console |
|---|---|---|
values |
Every field that is not a secret: names, ids, choices, dates. | Shown to administrators, who can read and change them. |
secrets |
Every field of the type secret: passwords, API keys, client secrets. |
Never shown again after saving. An administrator can only replace one. |
Secrets are returned in plain text on this one route, to the integration they belong to.
An example
Take an invoicing connector that defines three fields for a business context:
| Label in the form | Field key | Type | The administrator enters |
|---|---|---|---|
| Environment | environment |
enum |
Production |
| Client id | client_id |
string |
acme-housing |
| Client secret | client_secret |
secret |
s3cr3t-fr0m-the-erp |
The connector then reads this configuration:
{
"id": "0b9f3c1e-5a4d-4c2b-8e7f-6a5b4c3d2e1f",
"operationalContextId": "9b7a2d10-3c44-4e0a-8f6e-1d2c3b4a5f6e",
"level": "business_context",
"values": {
"environment": "production",
"client_id": "acme-housing"
},
"secrets": {
"client_secret": "s3cr3t-fr0m-the-erp"
},
"status": "pending",
"manifestVersion": 3,
"updatedAt": "2026-11-16T09:12:44.000Z"
}
How each field type arrives
| Field type | Arrives in | As |
|---|---|---|
string |
values |
A string. |
number |
values |
A number. |
boolean |
values |
true or false. |
enum |
values |
A string: one of the options the field lists. |
date |
values |
A string in the form YYYY-MM-DD. |
mapping |
values |
An object with one string for each item of a Hydda One list. A field that maps delivery methods arrives as { "e-invoice": "…", "email": "…", "post": "…" }, with the external system’s code for each. |
secret |
secrets |
A string, in plain text. |
- An optional field the administrator left empty is absent. It is not
nulland not an empty string. - A field with a default arrives with the default when the administrator did not change it.
- A key the integration does not define never appears.
Organization settings fill in for a business context
Where a connector has fields at both levels, a business context configuration can leave a field empty when the organization configuration has a field with the same key and type. Hydda One then fills it from the organization configuration before it answers. A value saved at the business context wins. This holds for values and secrets alike, so the integration never merges them itself.
Configuration statuses
status |
Meaning |
|---|---|
pending |
Your integration has not reported on this version of the configuration. |
ready |
Your integration reported that the configuration works. |
failed |
Your integration reported that it cannot use the configuration. The administrator sees your code and reason. |
You can report failed on a ready configuration, for example when a credential stops working. You can report ready on a failed one once it works again.
When an administrator changes a configuration, its status returns to pending and updatedAt changes. Check it and report again.
Rules for callers
Reports are safe to repeat
Reporting ready again changes nothing. Reporting failed again with the same code and reason also changes nothing. Both answer 204.
Keep secrets secret
The configurations list is the only place Hydda One returns secrets, and only to the integration they belong to. Never log them. Never put one in a failure reason, because the administrator reads it.
Connection references
A reference works once, within ten minutes, and only for the integration it was made for. If the administrator starts a new connection, the earlier reference stops working.
Every refused reference gets the same answer: 400 with INTEGRATIONS_CONNECTION_REFERENCE_INVALID. The answer does not say whether the reference was unknown, expired, used, replaced or another integration’s. A refused redeem does not count as the one use.
Limits
| What | Limit |
|---|---|
code on failed |
Lower snake case, such as invalid_api_key. 1 to 100 characters. |
reason on failed |
1 to 500 characters. |
reference on redeem |
1 to 200 characters. |
Requests under /v1/integrations |
60 a minute from each IP address. |
Read your configurations when your integration starts and after each redeem, not before every call. A request over the rate limit gets 429.
Errors to handle
| Code | Status | When |
|---|---|---|
INTEGRATIONS_CONNECTION_REFERENCE_INVALID |
400 | The reference cannot be redeemed. A new reference comes only when an administrator starts the connection again. |
INTEGRATIONS_CONFIGURATION_NOT_FOUND |
404 | The configurationId is not one of your integration’s configurations. |
VALIDATION_FAILED |
400 | A body or path parameter does not match its schema. |
Each operation in the API reference lists the codes it can return.