Use the API and webhooks
The Jevu API gives n8n, Zapier, Make or your own script read-only access to the calls of one workspace, and a webhook tells them when something happens to a call. This article covers the setup; every method and field is in the API documentation at jevu.ai/api.
In this article
What the API gives you
With an API key you can read:
- the calls of the workspace and each call’s details;
- a call’s summary, score, transcript and recording;
- the workspace itself, its plan, members and teams;
- team analytics for a period.
The API only reads. It never changes anything in Jevu. A key belongs to the workspace and reads as its Owner: every call of the workspace, private ones included, with transcripts and recordings. Keep it as secret as a password. Every plan, Free included, includes the API.
Who can manage the API
API and webhook is in Settings, under Integrations. Only the Owner of the workspace and the Admins the Owner has given the right see it. Members don’t.
Give an Admin the right
Only the Owner can do this.
- Open Settings → Workspace and the Members tab.
- In the Admin’s row, open the menu and click Open.
- Under Additional Admin rights, turn on Manage the API.
- Jevu warns that an API key opens the transcripts and recordings of all calls in the workspace. Click Give the right.
A key belongs to the workspace, not to the person who created it. It keeps working when that person leaves the workspace or loses the right, and stops only when someone revokes it or the workspace is deleted.
Create an API key
- Open Settings → API and webhook and click Create a key.
- In Key name, say what the key is for, for example Zapier. Up to 100 characters.
- Optional: in Allowed IP addresses, list the addresses that may use the key, one per line. An address (203.0.113.7) or a range (203.0.113.0/24), IPv4 or IPv6, up to 20. Leave the field empty to allow any address.
- Click Create.
- The Your new key dialog shows the key. Click Copy, save the key where your tool keeps secrets, and click Done.
The key is shown only once. Jevu keeps only a hash of it, so nobody, support included, can show it again. If you lose a key, create a new one and revoke the old one.
A key starts with jevu_. The list shows each key’s name and first characters, its IP addresses (Any address when there are none), when and by whom it was created, and when it was Last used (Never until its first request).
Change the IP addresses
Click IP addresses in the key’s row, edit the list and click Save. The change applies from the next request.
Revoke a key
Click Revoke in the key’s row and confirm. Everything that uses the key stops working at once, and this can’t be undone. A revoked key stays in the list marked Revoked.
Send your first request
The base URL is https://api.jevu.ai/v1. Send the key in the Authorization header with the Bearer scheme. This request checks the key and returns the workspace, its plan and its rate limits:
curl -s 'https://api.jevu.ai/v1/workspace' \ -H "Authorization: Bearer $JEVU_API_KEY"
Put your key in the JEVU_API_KEY environment variable first, or paste it in place of $JEVU_API_KEY. Session cookies don’t work with the API: every request needs the key.
Documentation and downloads
- Reference. Every method, parameter, error and example is in the API documentation at jevu.ai/api. The API documentation button in Settings opens it too.
- OpenAPI. To import the API into your tools, download jevu-api-openapi.json.
- Postman. Import jevu-api.postman_collection.json and set the
apiKeyvariable to your key;baseUrlis already set. For the methods of one call, take the call’sidfrom List calls first.
Limits and errors
Limits count per workspace, all its keys together.
| Methods | Limit |
|---|---|
| The workspace and its members, the list of calls, a call, its summary and score | 60 requests a minute |
| A call’s transcript and recording, team analytics | 30 requests a minute |
| All methods together | 5,000 requests in any 24 hours |
Over a limit, Jevu answers 429 with a Retry-After header that says how many seconds to wait. After 20 requests from one address are refused for a wrong key or a disallowed address within 60 seconds, every request from that address gets 429 for a while, whatever key it carries. Fix the key or the address rather than retrying.
If a request fails
| Answer | What to do |
|---|---|
401 invalid_token | The key is missing, mistyped or revoked, or the header isn’t Authorization: Bearer. Don’t retry: check the header or create a new key. |
403 ip_not_allowed | The request came from an address outside the key’s list. Add the address under IP addresses. |
402 payment_overdue | The workspace’s payment is overdue and Jevu is locked for its members too. The API works again once the workspace is paid. |
429 rate_limited | Wait the seconds in Retry-After. If the daily limit was hit, try again tomorrow. |
500 or 503 | A fault on Jevu’s side. Retry with a growing pause: 1 s, 2 s, 4 s and so on, up to a minute. |
Every answer carries an X-Request-Id header. Include it when you write to support about a request.
Set up the webhook
A workspace has one webhook. When something happens to a call, Jevu sends a signed POST request to your address. It covers every call of the workspace, private ones included.
- In Settings → API and webhook, under Webhook, enter the Webhook URL: an
https://address that is reachable from the internet. - Under Events, keep the events you need. All of them are ticked at first; at least one is required.
- Click Save webhook.
- The Your webhook secret and token dialog shows the Signing secret and the Token. Copy both and click Done. They’re shown only once.
| Event | When Jevu sends it |
|---|---|
call.transcribed | The transcript is ready. Once per call, an empty transcript too. |
call.summarized | Processing finished with a summary. Once per call; not sent when no summary could be generated. |
call.analyzed | The call was scored with a template. Every time a score is ready, also after another template is chosen. |
call.analysis_failed | Scoring the call failed, with the template and the reason. |
call.crm_synced | The call reached a CRM. Every time it’s sent. |
call.crm_sync_failed | Sending the call to a CRM didn’t work, with the reason. |
The request body is short: the event’s id, type and time, and the call’s id. Read the rest of the call with the API.
Check that a request comes from Jevu
- Signature. The
X-Jevu-Signatureheader holdst, a Unix time, andv1, the HMAC-SHA256 oft, a dot and the raw body, keyed with your signing secret. Compare it in constant time and reject a request whosetis more than 5 minutes off your clock. The steps and sample code are behind Event payloads and how to verify the signature on the screen, in the Webhooks section of jevu.ai/api. - Token. Tools that can only compare a header, such as the n8n Webhook node with Header Auth, can check
X-Jevu-Webhook-Token. The token isn’t the signing secret, so verify the signature when you can. - Repeats. A retry carries the same event id in
X-Jevu-Event-Id. Skip an id you’ve already handled.
Delivery, retries and pause
- Answer with any 2xx status within 15 seconds. Jevu reads only the status, not the body, and doesn’t follow redirects.
- Otherwise Jevu tries again, 8 attempts in all, with pauses growing from 30 seconds to 12 hours. An event older than 24 hours isn’t sent.
- After 20 failed attempts in a row over at least an hour, or at once when your server answers
410 Gone, Jevu pauses the webhook and emails the Owner and the Admins with the right. Fix the receiver and click Resume; saving the webhook resumes it too. Jevu then delivers the waiting events that are younger than 24 hours. - The webhook card shows Active or Paused, Failed attempts in a row and the Last delivery with its attempts and result.
Change or delete the webhook
- Edit changes the address or the events. Leave Webhook URL empty to keep the current address, then click Save.
- New secret creates a signing secret, shown once. For 24 hours every request is signed with both the new and the old secret, so your receiver has time to switch.
- New token creates a token, shown once. The old token stops being sent at once, so update your receiver right after.
- Delete removes the webhook. Deliveries still waiting are cancelled.
Still have questions?
Write to us at hi@jevu.ai and we’ll help you out.