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

Introduction

The two hosts, who calls the API, and where to start for each kind of integration.

The Hydda One API is plain HTTPS with JSON bodies. Every request carries an access token.

Two hosts

Host What it serves
https://idp.hydda.one The token endpoint, OpenID discovery, the signing keys and the operational contexts list.
https://api.hydda.one Every other route, under /v1/booking, /v1/billing, /v1/crm and /v1/integrations.

The development environment uses idp.dev.hydda.one and api.dev.hydda.one. Credentials from one environment do not work in the other.

Where to start

Who calls the API

Three kinds of client call the API.

Client What it is Signs in with
An Application Credentials an organization creates for a system of its own, such as the backend of its website. A client id and a client secret.
An integration of your own A system you build that takes over a job from Hydda One: delivering invoices, or sending contracts for signature. It is an Application that also fills an integration point. A client id and a client secret.
A connector from Hydda An integration that Hydda runs for a provider, such as Payer or Scrive. It uses the same API. Its own private key.

All three get a short-lived access token from the token endpoint. See Authentication. How integrations work explains what an integration is.

What a token can reach

A token belongs to one organization: one property operator on Hydda One. An administrator grants it roles, and each role holds in one part of the organization. Hydda One calls those parts operational contexts. The most important kind is the business context: one line of business the organization runs, such as a co-working space or a housing portfolio.

Organizations and contexts explains the model, with pictures. Roles lists which role opens which routes.

To see what a token reaches, list its operational contexts with GET /v1/operational-contexts on the identity host.

Conventions

  • Bodies are JSON, sent with Content-Type: application/json.
  • Ids are UUIDs.
  • Times are ISO 8601 in UTC. Dates without a time are YYYY-MM-DD.
  • Money is an integer amount in minor units, with an ISO 4217 currency. 12500 in SEK is 125.00 kronor.
  • A list that can grow returns a nextCursor. Pass it as cursor to read the next page.
  • Every failure returns a problem details body with a machine-readable code. See Errors.

Was this page helpful?