The API
The API lets your own tools and integrations use RemoteZyro: list sessions, computers and members, read your audit log and usage, and start an attended session for one of your technicians. It’s in the Professional and Business plans, and on the beta plan for everyone during the beta.
Make a key
Section titled “Make a key”Owners and admins make keys under API in the console (they need a second factor turned on).
- Give the key a name (where it’ll be used, like “Zendesk”), choose what it may do, and if you like, a date it expires.
- Choose Make a key and copy it into the tool that will use it. It’s shown only this once.
A key belongs to your organization, not to whoever made it, so an integration keeps working when that person leaves. Owners and admins see every key, when each was last used, and can revoke any of them; a revoked or expired key stops working at once. You can have up to 20.
What a key may do
Section titled “What a key may do”Each key can do only what you chose for it:
| Choice | What it allows |
|---|---|
| Read sessions | List sessions and see each one |
| Start and end attended sessions | Start a session for a technician (its code comes back once), end one |
| Read computers | List your unattended computers, and whether each is online |
| Read members | List your members and their roles |
| Read the audit log | Read the audit log, as the console shows it |
| Read usage | Read your metered usage by day |
No key can connect to an unattended computer, see or control anyone’s screen, send files, or change members, roles, billing or single sign-on. Connecting stays with a technician signed in to the console, and the person at the other end still decides what they allow.
A session started through the API is your technician’s: it shows in their console as theirs, they join it there, and the code goes to the person who needs help. The technician must be a member who can start sessions.
Using it
Section titled “Using it”Send the key in an Authorization: Bearer header to the API’s base address, shown on the API
page with a link to the reference (an OpenAPI document your tools can read). Answers are JSON;
lists come a page at a time. An error comes back as { "error": { "code", "message" } }.
When you start a session, you can send an Idempotency-Key header: if your tool sends the same
request again (after a timeout, say), no second session is made, and the answer gives the first
one’s id. Its code isn’t shown again.
Each key may make 600 requests a minute.
Webhooks
Section titled “Webhooks”Webhooks tell your systems when something happens, without them asking: RemoteZyro sends each event an endpoint wants to its address.
- Under Webhooks on the API page, enter your endpoint’s address (it must be https, on a public host name, on port 443 or 8443) and choose its events: a session started or ended, a computer added or removed, a member who joined, left or whose role changed.
- Choose Add endpoint and give the signing secret to your endpoint. It’s shown only this once. New secret makes another, which signs every delivery from then on: give it to your endpoint straight away.
Each delivery is a POST with a JSON body: the event’s id, type, createdAt, your
organizationId, who did it (actor), and data, the session, computer or member as the API
answers it. Answer with any 2xx status within 10 seconds. If your endpoint doesn’t, the delivery is
tried again after a minute, then for about four days, less and less often. An endpoint that fails
for three days in a row is switched off and your owners are emailed; switch it on again once it’s
fixed. Deliveries shows the last 50, and Send again sends one again. An event of a kind the
endpoint no longer wants isn’t sent, even one that was waiting.
Checking it came from us
Section titled “Checking it came from us”Every delivery has a RemoteZyro-Signature header like t=1763290000,v1=5257a8…. To check it:
- Take
t(the time it was sent, in seconds) and the body exactly as it arrived. - Compute the HMAC-SHA256 of
t, a full stop, and the body (1763290000.{"id":…}), with your whole signing secret as the key (whsec_included), in hexadecimal. - Accept the delivery only if it equals
v1, compared in constant time (your language’stimingSafeEqual,hmac.compare_digestor the like), and iftis within a few minutes of now (so an old delivery can’t be replayed).
Use the body’s id to ignore an event you’ve handled already: a delivery tried again has the same
id, and unlike the RemoteZyro-Event-Id header, it’s covered by the signature. Events can arrive in
any order.
What’s recorded
Section titled “What’s recorded”Every key made and revoked, every session a key starts or ends, and every webhook endpoint added, changed or removed, is in your audit log, shown with the key’s name. Neither a key nor a signing secret is ever recorded.