Services
A service is one of the systems your company uses, connected once for the whole company. Its operations are what your flows can call.
Adding a service
An admin opens Services → Add a service and either picks it from OneAPI's gallery or imports it from the service's published OpenAPI description. Then the admin signs in, and OneAPI checks the sign-in before keeping it:
- Sign inPaste an API key, enter a username and password, or click "Sign in with …". Each service says exactly what it needs and where to find it.
- CheckOneAPI makes one harmless call, like "who am I", with the sign-in.Rejected: nothing is saved
- Keep, encryptedThe sign-in is stored encrypted and is never shown again, only replaced. It's added last to every call, so nothing a flow sends can override it.
The sign-in belongs to the company, not to a person: the service sees "OneAPI", and OneAPI's call log records which person or system each call was for. A company can add the same service more than once, for example two e-conomic agreements, or a test account next to the real one.
The gallery
Gallery services are described and kept up to date by OneAPI: the address, how to sign in, and the operations a typical integration needs, with names people understand ("List customers", "Create the draft invoice"). When OneAPI improves an entry, every company using it gets the improvement. The gallery holds 84 services today:
Any service with an OpenAPI description
A service that isn't in the gallery can be imported from the address where it publishes its OpenAPI (or Swagger) description. OneAPI reads the operations, their inputs and their answers, and asks how to sign in. Only published descriptions are accepted, no uploaded files, so OneAPI can tell when the service changes its API.
Every night, OneAPI fetches each imported description again. When it has changed, admins are told what changed and which flows it affects. Nothing changes until an admin re-imports.
Ways to sign in
| Kind | What the admin does |
|---|---|
| Sign in with the service | Clicks "Sign in with …" and approves OneAPI at the service. OneAPI renews the access by itself. |
| API key or token | Makes a key in the service's settings and pastes it. |
| Username and password | Enters the account's credentials, as the service asks. |
| Client credentials | Enters a client id and secret from the service's developer settings. |
Some services also need settings per account, such as your Atlassian site
(yourcompany.atlassian.net), a region, or the payment terms new e-conomic customers get. Admins set
them on the service's page, and flows can use them as values.
When a service has trouble
- Down or slow: OneAPI tries once more after 5 seconds, then answers
503naming the service. A write is only retried when it can't have arrived. - Sign-in rejected (the key was revoked, the password changed): the service is marked "sign-in needed", it shows on the Services page and in the sidebar, and admins are emailed, at most once a day.
- Rate limited: the caller gets
429with the service's name and can try again later.