Authentication
Every request carries the key in the x-kyto-key header:
POST /v2/clients/4e2a8c3d-1b9f-4e6a-8c7d-9f0a1b2c3d4e/contacts/search HTTP/1.1Host: api-agent.manoflow.comx-kyto-key: kyto_xxxxxxxx…Content-Type: application/jsonA key looks like kyto_ followed by 40 lowercase hexadecimal characters.
One key, one client
Section titled “One key, one client”- Each key belongs to a single company (one
client_id) and only opens that company’s data. - Use one key per bot, flow or system. That way you can revoke one without stopping the others, and Manoflow shows when each was last used.
401 and 403
Section titled “401 and 403”| Status | code |
Meaning |
|---|---|---|
401 |
unauthorized |
The key is missing, empty, malformed, unknown or revoked. The response is the same in every case |
403 |
forbidden |
The key is valid, but the client_id in the URL is not the key’s or does not exist. The response does not reveal which companies exist |
The key is checked before anything else: with a bad key, the API does not read the body or say anything about it.
Do not retry a 401 or a 403: they will fail the same way until you fix the key or the URL.
Keep the key secret
Section titled “Keep the key secret”- Store it in a secret configuration variable or a secrets manager, never in source code.
- Do not put it in code that runs in the browser or in a mobile app: anyone could read it.
- Do not paste it into bot exports, screenshots, tickets or chats.
- URLs never carry personal data: a contact’s phone goes in the body of
POST contacts/search, not in the URL.
Rotate or revoke a key
Section titled “Rotate or revoke a key”To change a key without downtime:
- Ask an administrator to create a new key in Manoflow.
- Put the new key in your bot or system and check that it works.
- Revoke the old key in Manoflow.
A revocation takes up to 1 minute to apply everywhere. If a key leaked, revoke it at once and create another.