API reference
A REST API for candidates, recordings, Talent Dashboards and CVs, with signed webhooks for what happens in a workspace. Both are on Pro and Scale.
Contents
Keys
Send a key with every request as Authorization: Bearer hk_... An owner or admin makes keys under Settings, API and webhooks, on a plan that includes the API.
Every address on this page is under https://vivolto.com/api/v1. A Talent Dashboard is called a shortlist in the API's addresses and field names.
curl "https://vivolto.com/api/v1/candidates?limit=50&offset=0" \
-H "Authorization: Bearer hk_..."Lists and errors
List endpoints take ?limit=50&offset=0 (limit up to 100) and answer with total.
Every error answers { "error": { "message", "code" } }: message is a sentence for a person and code is always there. 400 invalid_json (the body of a POST is not JSON), invalid_request (the body is not a JSON object, or a field is missing or is not what the endpoint takes; message says which), invalid_query (?q= holds characters that cannot be searched for, or ?type= or ?status= is not one of the values its endpoint lists; message names them), invalid_event (?event= is not an event), invalid_url (a webhook address that is not a public https address) or invalid_source. 401 unauthenticated or key_revoked (the person who made the key is no longer an owner or admin of the workspace). 402 workspace_read_only (writes only). 403 plan_without_api or missing_scope (a read only key was used to change something). 404 not_found (nothing in this workspace has that id, or the address is not an endpoint). 405 method_not_allowed (the address is an endpoint that does not take that method; the Allow header names the ones it does). 409 too_many_endpoints. 429 rate_limited. POST /intro-requests can also answer 400 prompt_holds_link. A 500 with no_owner means the workspace has no owner to act for, which is a fault on Vivolto's side to report to support.
Up to 600 requests a minute from one address, and up to 600 a minute with one key. A 429 answer carries Retry-After in seconds.
{
"error": {
"message": "Too many requests. Try again in a minute.",
"code": "rate_limited"
}
}Endpoints
| Request | What it does |
|---|---|
GET /me | The workspace a key belongs to, the key's name and scopes, and the plan. It needs only the key, so it is the call that checks one |
GET /candidates | List candidates (?q= searches) |
POST /candidates | Create a candidate { name, email?, phone?, location?, currentTitle?, currentEmployer?, salaryExpectation?, noticePeriod?, externalIds? } -> { data, created }. 201 with created true when the candidate was made. The call is safe to repeat with an email: when the workspace already holds a candidate with that address, whatever its capitals, no candidate is made, nothing on the one held is changed, and the answer is 200 with that candidate and created false. A deleted candidate's address does not count, and a call with no email always makes a candidate |
GET /candidates/:id | One candidate with recordings, CVs and Talent Dashboards |
GET /recordings | List recordings (?type=message|interview|upload, ?candidateId=). Any other type is 400 invalid_query |
GET /recordings/:id | One recording with its transcript and summary. Each is null until it has been made, which is after recording.ready is sent: transcript.ready says when both are there |
GET /shortlists | List Talent Dashboards (?status=draft|sent|in_progress|closed). Any other status is 400 invalid_query |
POST /shortlists | Create a Talent Dashboard { title, clientCompanyId?, jobId?, description? } |
GET /shortlists/:id | One Talent Dashboard with its candidates, reactions, comments and interview requests |
POST /shortlists/:id/candidates | Add a candidate to a Talent Dashboard { candidateId } -> { id, shortlistId, candidateId, position }. 201 when the candidate was added. The call is safe to repeat: a candidate who is already on the dashboard is not added again, and the answer is 200 with the card that is there |
GET /cvs | List CVs with download links for the formatted files (?candidateId=) |
POST /intro-requests | Ask a candidate for a 60-second intro { candidateId, prompt?, jobId?, send? } -> { id, url, prompt, emailed }. A workspace can ask for 60 in 24 hours, counted together with the ones asked for in the app; after that the answer is 429 rate_limited with Retry-After. During a free trial a prompt that would be emailed cannot hold a web address (400 prompt_holds_link). emailed says the email was queued: the workspace's daily email allowance is applied when it is sent |
GET /webhooks | List webhook endpoints, with active, disabledAt and disabledReason. A read only key is given each endpoint's host in url, not its whole address |
POST /webhooks | Subscribe { url, events?: string[], description?, source? } -> 201 { id, url, events, source, secret }. The secret signs every delivery and is given once, in this answer. url is a public https address (anything else is 400 invalid_url). Leave events out, or send an empty list, and the endpoint is sent every event, including any added later; a name that is not an event is dropped, and events in the answer says what was kept. source says what made the endpoint: leave it out for your own code and it reads "manual"; a connector sends "zapier" or "make", and any other value is 400 invalid_source. A workspace can have 20 endpoints with the source "manual" and 100 made by connectors, counted apart; one more is 409 too_many_endpoints |
DELETE /webhooks/:id | Unsubscribe. Nothing more is sent to the endpoint, and the record of what it was sent stays: each delivery is kept until it is 30 days old. The answer is 204 with no body whether or not the workspace had an endpoint with that id, so the call is safe to repeat and a wrong id is not reported: GET /webhooks lists what is subscribed |
GET /events | The events lately sent to the workspace's webhook endpoints, newest first, each in the shape of a delivery's body { id, event, createdAt, data } (?event= keeps one event, ?limit= up to 100). Read from the record of deliveries, so it still lists what was sent to an endpoint that has since been removed. Empty while no endpoint has been subscribed |
Webhooks
An endpoint is an address of yours that Vivolto posts to when something happens in the workspace. Add one under Settings, API and webhooks, or with POST /webhooks, and choose which events it gets.
| Event | Sent when |
|---|---|
recording.ready | A recording is ready to watch: its video has been prepared. Its transcript and summary are made after this, so GET /recordings/:id can still answer transcript null and summary null. Sent once for a recording |
transcript.ready | A recording's transcript and summary are ready: both steps have finished, and GET /recordings/:id has them. It follows recording.ready. hasSpeech is false for a recording nobody speaks in, which has an empty transcript and no summary. Sent again when the transcript or the summary is made again, and not sent when either could not be made |
shortlist.opened | A client opens a Talent Dashboard |
reaction.added | A client answers yes, maybe or no |
comment.added | A client comments |
interview.requested | A client asks for an interview |
intro.received | A candidate sends their intro |
cv.formatted | A CV is formatted |
candidate.placed | A candidate is marked as placed |
Checking a delivery
Each delivery is a POST with a JSON body. Its X-Vivolto-Signature header reads t=<time>,v1=<signature>: the signature is the HMAC-SHA256 of "<time>.<body>", made with the endpoint's signing secret and written in hex.
Refuse a delivery whose time is more than 5 minutes from your own clock.
| Header | What it carries |
|---|---|
X-Vivolto-Event | the event's name |
X-Vivolto-Delivery | the delivery's id, the same on every try |
X-Vivolto-Signature | t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<body>" with the endpoint's signing secret> |
When a delivery fails
Answer with a 2xx status within 10 seconds. A delivery that fails is tried again after 1, 5 and 30 minutes, then after 2, 4, 8 and 9 hours: 8 tries in all. X-Vivolto-Delivery is the same on every try, so a repeat can be dropped. Redirects are not followed.
An endpoint that answers 410 Gone has said its subscription is over: Vivolto switches it off at once and does not try that delivery again.
When a delivery has used every try and nothing else reached the endpoint in that time, Vivolto switches the endpoint off and tells the workspace's owners and admins. It can be switched back on under Settings, API and webhooks.
While a workspace is read-only, nothing is sent to its endpoints. Events from that time are not sent later.
A record of each delivery is kept for 30 days, under Settings, API and webhooks. Removing an endpoint does not remove its record: each delivery stays until it is 30 days old, there and in GET /events.
The reference as JSON
Everything on this page is also served as JSON at /api/v1, without a key, for a program to read.
The integrations page lists what else Vivolto connects to. Questions about the API go to support@vivolto.com.