Quickstart
Create an interview link, receive the webhook when the interview is scored, and fetch the scorecard and its PDF, with curl and Python.
This page takes you from nothing to a scorecard in your own system: a published role, an API key, an interview link, a webhook endpoint, and the scorecard fetched when Dio says it is ready. Every call is shown with curl; the longer steps have a short Python version using requests.
You need an admin account in a Dio workspace on the Plus or Enterprise plan.
1. Publish a role in the Studio
Interview links open onto a role's published interview plan, so start with a role a recruiter has published in Dio's Studio.
You can create a role over the API with POST /v1/jobs, but it is created as a draft. Only a recruiter builds and publishes the interview plan, in the Studio; nothing in the API publishes one. Until then the role reports "published": false, and creating a link for it answers 409.
2. Mint an API key
A signed-in admin mints keys in the app, at Settings → API & webhooks. Choose Create API key and give it:
- a name that says what it is for, such as
ATS sync, so the right person can revoke it later; - a role,
memberunless the integration needs what only an admin key may do (see Authentication); - a mode,
live(test keys exist but behave exactly like live keys today); - requests a minute, 120 unless you need more.
The key, sk_live_…, is shown once. Store it in your secrets manager straight away: Dio keeps only a hash of it and cannot show it again. If you lose it, mint a new one and revoke the old one.
The examples below read the key from an environment variable:
export DIO_API_KEY="sk_live_..."
3. Check the key
GET /v1/me answers with the workspace the key belongs to and the key's own name and role.
curl https://api.getdio.ai/v1/me \
-H "Authorization: Bearer $DIO_API_KEY"
{
"workspace": {"id": "ws_3c9e1b7a5d20", "name": "Example Staffing"},
"key": {"id": "key_8f41c2d09a6e", "name": "ATS sync", "role": "member"}
}
A 401 means the key is wrong, or was revoked. The two look the same on purpose.
4. Pick a published role
GET /v1/jobs lists every role in the workspace. Offer only the ones with "published": true as places to send candidates.
curl https://api.getdio.ai/v1/jobs \
-H "Authorization: Bearer $DIO_API_KEY"
{
"jobs": [
{
"id": "job_126f809ebbe2",
"title": "Support Specialist",
"internal_title": "Support Specialist - Night shift",
"status": "published",
"published": true,
"plan_id": "plan_support_specialist",
"plan_version": "1.2.0",
"plan_sha256": "9b1f0c4e…",
"records_video": false,
"created_at": "2026-11-02T15:20:41+00:00"
}
]
}
title is what candidates see; internal_title is your team's own label. Use the role's id everywhere else.
5. Create an interview link
POST /v1/jobs/{job_id}/invites makes one private link to the role's interview. Every POST, PATCH and DELETE made with a key needs an Idempotency-Key header: a value you choose per operation, such as a UUID, so that a retry gets the first answer back instead of making a second link. Keep the value and reuse it if you have to send the request again. Idempotency explains the rules.
label is optional free text shown beside the link in the role's Invites tab in Dio. Your own application or candidate id is a good label.
IDEMPOTENCY_KEY=$(uuidgen)
curl -X POST https://api.getdio.ai/v1/jobs/job_126f809ebbe2/invites \
-H "Authorization: Bearer $DIO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{"label": "Application 4471"}'
{
"id": "inv_40478587c9d8",
"job_id": "job_126f809ebbe2",
"label": "Application 4471",
"url": "https://getdio.ai/i/aBfqPCSlX5gAen4TXROFIUaAuqBeQXEO",
"expires_at": "2026-11-23T19:12:14.485446+00:00",
"references": [],
"reused": false
}
The url comes back in this answer only; a recruiter can also copy it from the role's Invites tab in Dio. Send it to the candidate now, or store it as you would any credential. It lasts 72 hours. Store the link's id against the candidate's application: the interview it starts will carry it as invite_id.
The same call in Python:
import os
import uuid
import requests
API = "https://api.getdio.ai/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['DIO_API_KEY']}"}
def create_link(job_id: str, label: str, idempotency_key: str) -> dict:
response = requests.post(
f"{API}/jobs/{job_id}/invites",
headers={**HEADERS, "Idempotency-Key": idempotency_key},
json={"label": label},
timeout=30,
)
response.raise_for_status()
return response.json()
# One key per link. Save it with the application before the first attempt,
# and pass the same one again if you retry.
link = create_link("job_126f809ebbe2", "Application 4471", str(uuid.uuid4()))
print(link["url"])
A 409 here means no link was made. Either the role has no published plan, or the workspace cannot start new interviews right now; detail says which, and what to do. Show it to a person rather than retrying.
6. Register a webhook endpoint
Interviews take about 20 minutes and scoring takes several more, so Dio tells you when each is done rather than making you poll.
Today a signed-in admin registers an endpoint in the app: Settings → API & webhooks, then Add endpoint, with the URL Dio should post to. An endpoint receives session.completed and scorecard.ready. The URL must be a public https:// address on port 443, by hostname; Webhooks lists the rules.
Dio shows the endpoint's signing secret, whsec_…, once. Store it beside your API key.
Registering endpoints with an admin API key is in early access.
7. Verify each delivery
Every delivery is a POST of a JSON envelope, signed in the Getdio-Signature header with your endpoint's secret. Check the signature against the raw body before you trust anything in it. The verify function, in Python and JavaScript, is on the Webhooks page under Verifying a signature.
A receiver in Flask, using that verify function, looks like this:
import json
import os
from flask import Flask, request
from dio_signature import verify # the function from the Webhooks guide
app = Flask(__name__)
SECRET = os.environ["DIO_WEBHOOK_SECRET"]
@app.post("/dio/webhooks")
def dio_webhook():
body = request.get_data() # the raw bytes, before any JSON parsing
if not verify(SECRET, request.headers.get("Getdio-Signature", ""), body):
return "", 401
event = json.loads(body)
enqueue(event) # your own job queue: do the work after answering
return "", 204
Answer with a 2xx quickly and do the work afterwards. Deliveries can arrive more than once, so de-duplicate on the envelope's id.
8. Fetch the scorecard
When the interview is scored, your endpoint receives:
{
"id": "evt_3f9a1c2b4d5e",
"type": "scorecard.ready",
"version": "2026-10",
"created_at": "2026-11-20T14:02:11.483000+00:00",
"data": {
"session_id": "sess_7d0e5b9c2a14",
"job_id": "job_126f809ebbe2",
"scorecard_id": "sc_5d2e8a1f9b07",
"references": []
}
}
Events never carry names, email addresses, transcripts or scores. Fetch those with your key, using the session_id:
curl https://api.getdio.ai/v1/sessions/sess_7d0e5b9c2a14/scorecard \
-H "Authorization: Bearer $DIO_API_KEY"
Reading a scorecard explains every field. To attach a copy a person can read to the candidate's record, fetch the PDF:
curl https://api.getdio.ai/v1/sessions/sess_7d0e5b9c2a14/scorecard.pdf \
-H "Authorization: Bearer $DIO_API_KEY" \
-o scorecard.pdf
The transcript is at GET /v1/sessions/{session_id}/transcript.
def fetch_results(session_id: str) -> tuple[dict, bytes]:
scorecard = requests.get(f"{API}/sessions/{session_id}/scorecard", headers=HEADERS, timeout=30)
scorecard.raise_for_status()
pdf = requests.get(f"{API}/sessions/{session_id}/scorecard.pdf", headers=HEADERS, timeout=60)
pdf.raise_for_status()
return scorecard.json(), pdf.content
Both answer 409 until the interview is scored, which is why you wait for scorecard.ready.
Running it for real
Nothing here has a sandbox yet, so the only way to see the whole loop work is to take an interview yourself: open the url from step 5, register, and answer the questions. That interview uses one of your workspace's interviews, as a candidate's would. About 20 minutes after you start, session.completed arrives; scorecard.ready follows once scoring finishes.
Next steps
- Connecting your ATS turns these calls into a loop driven by your ATS.
- Idempotency and Errors and limits cover retries and failures.
- Webhooks lists every event and how deliveries are retried.