Interviews
Find free times, book interviews and follow changes with webhooks.
Overview
Use the interview API to find a free time, book it for a candidate, or ask the candidate to choose. Each call acts as the member who owns the key. Reads need Read candidate data (candidates:read). Writes need Write candidate data (candidates:write). See Authentication.
Every write needs an Idempotency-Key header. Use a fresh key for each new action. To retry the same action within 24 hours, send the same key, path and body.
Book an interview from your own system
For a test booking, use an application for delivered+label@resend.dev. Replace the example IDs with the IDs of that application, its host and the interview you book.
- Call
availability.listwith the application, host and duration. Pick one of the returned start and end times. - Call
interviews.createwith that slot, the same participants, the time zone and the place. Savedata.id. If the time was taken, the API returns409 interview-time-taken. Find another slot and book it with a new key. - Subscribe to
interview.rescheduledbefore anyone moves the interview. Verify the webhook signature. Matchdata.idto the saved interview and update your system withdata.starts_atanddata.ends_at. See Webhooks.
Find free times
availability.list · GET /api/v1/availability · candidates:read
Find times within the host’s working hours and the team’s booking rules. Send these query parameters.
| Parameter | Meaning |
|---|---|
application_id | Required. Application UUID. |
host_id | Required. Host’s member UUID. |
interviewer_ids | Up to 10 other member UUIDs, separated by commas. |
duration_minutes | 5 to 480 minutes in steps of 5. Defaults to 30. |
from | Earliest start, as an RFC 3339 timestamp. Defaults to now. |
to | Latest end. Defaults to 14 days after from. The maximum range is 92 days. |
availability_mode | all (default) checks every participant. host checks only the host. |
curl "https://attia.app/api/v1/availability?application_id=00000000-0000-4000-8000-000000000001&host_id=00000000-0000-4000-8000-000000000002&duration_minutes=30" \ -H "Authorization: Bearer $ATTIA_API_KEY"The 200 response lists free slots in data, earliest first. Each slot has starts_at and ends_at in UTC. time_zone is the host’s time zone.
List interviews
interviews.list · GET /api/v1/interviews · candidates:read
List interviews on applications the member can see. All query parameters are optional.
| Parameter | Meaning |
|---|---|
application_id | Filter by application UUID. |
job_id | Filter by job UUID. |
host_id | Filter by the host’s member UUID. |
status | scheduled, cancelled or ended. |
starts_after | Start at or after this RFC 3339 timestamp. |
starts_before | Start strictly before this RFC 3339 timestamp. |
updated_since | Last changed at or after this RFC 3339 timestamp. |
order | Sort by updated_at, then id. Use oldest (default) or newest. |
limit | Interviews per page, 1 to 100. Defaults to 25. |
cursor | Send the previous page’s next_cursor. Keep the same filters. |
curl "https://attia.app/api/v1/interviews?application_id=00000000-0000-4000-8000-000000000001&status=scheduled" \ -H "Authorization: Bearer $ATTIA_API_KEY"The 200 response contains an array of interviews in data. When has_next_page is true, use next_cursor to read the next page. It is null on the last page.
Get one interview
interviews.get · GET /api/v1/interviews/{id} · candidates:read
Put the interview UUID in the path. There are no query parameters. A missing interview or one outside the member’s access returns 404.
curl "https://attia.app/api/v1/interviews/00000000-0000-4000-8000-000000000003" \ -H "Authorization: Bearer $ATTIA_API_KEY"The 200 response contains one interview in data. Listing, booking, moving and cancelling use the same interview fields.
| Field | Meaning |
|---|---|
id | Interview UUID. |
application_id | Application UUID. |
job_id | Job UUID, or null if there is no job. |
status | scheduled, cancelled or ended. |
title | Interview title. null uses the default title. |
starts_at | Start in UTC. |
ends_at | End in UTC. |
time_zone | IANA time zone for displaying the times. |
place | teams, meet, video_link, phone or onsite. |
join_url | Meeting link, or null when there is none. |
host_workspace_member_id | Host’s UUID. Can be null on older interviews. |
participants | Host first. Each entry contains workspace_member_id, role (host or interviewer) and attendance (required or optional). |
booking_request_id | Booking request UUID, or null for a fixed-time booking. |
cancelled_at | Cancellation time in UTC, or null. |
cancel_reason | Reason recorded for members, or null. |
url | Link to the application in Attia. |
created_at | Creation time in UTC. |
updated_at | Last change in UTC. |
Book an interview
interviews.create · POST /api/v1/interviews · candidates:write
Book a fixed time on one application. The host and interviewers are told. notify_candidate defaults to false. With true, the candidate gets the booking message by email and in the portal.
| JSON field | Meaning |
|---|---|
application_id | Required. Application UUID. |
host_id | Required. UUID of an active member who can see the application. |
starts_at | Required. Future start time in RFC 3339 format. |
ends_at | Required. RFC 3339 end time. Allow 5 to 480 minutes in steps of 5. |
time_zone | Required. IANA time zone, such as Europe/Oslo. |
place | Required. teams or meet creates a meeting in the host’s connected calendar. Use video_link for a fixed link, phone for a call or onsite to meet in person. |
join_url | Required for video_link only. Supply an HTTPS URL of up to 2,048 characters. |
interviewer_ids | Optional array of up to 10 distinct member UUIDs. Exclude the host. Defaults to []. |
title | Optional title, up to 255 characters. |
notify_candidate | Optional boolean. Set to true to tell the candidate. |
message | Plain text, up to 4,000 characters. Required with notify_candidate: true. Omit with false. |
curl -X POST "https://attia.app/api/v1/interviews" \ -H "Authorization: Bearer $ATTIA_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: interview-book-01" \ -d '{ "application_id": "00000000-0000-4000-8000-000000000001", "host_id": "00000000-0000-4000-8000-000000000002", "starts_at": "2030-12-09T09:00:00Z", "ends_at": "2030-12-09T09:30:00Z", "time_zone": "Europe/Oslo", "place": "phone", "notify_candidate": true, "message": "Your phone interview is booked for 10:00 on 9 December (Oslo time)."}'The 201 response contains the booked interview in data. The Location header holds its API path.
Move an interview
interviews.update · PATCH /api/v1/interviews/{id} · candidates:write
Put the interview UUID in the path. Send the fields that change in the JSON body. starts_at and ends_at take RFC 3339 timestamps. Moving only starts_at keeps the duration. You can also change time_zone or place.
Switching an existing interview to video_link returns 400 invalid-request on place. To use a fixed video link, set place to video_link and supply join_url when you create the interview.
Whenever the time or place changes, the candidate always gets one short message about that change, whoever made it. There is no notify_candidate field. An optional message of up to 4,000 characters replaces the standard text.
curl -X PATCH "https://attia.app/api/v1/interviews/00000000-0000-4000-8000-000000000003" \ -H "Authorization: Bearer $ATTIA_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: interview-move-01" \ -d '{ "starts_at": "2030-12-09T10:00:00Z"}'The 200 response contains the updated interview in data. If the new time is taken, the API returns 409 interview-time-taken.
Cancel an interview
interviews.cancel · POST /api/v1/interviews/{id}/cancel · candidates:write
Put the interview UUID in the path. Send {}, one of the fields below or both. A field you send must not be blank. The candidate always gets one short message about the cancellation, whoever cancels. There is no notify_candidate field.
| JSON field | Meaning |
|---|---|
reason | Optional. Why the interview is cancelled, up to 500 characters. Members see it. The candidate does not. |
message | Optional. Plain text of up to 4,000 characters that replaces the standard cancellation message to the candidate. Markdown is not formatted. |
curl -X POST "https://attia.app/api/v1/interviews/00000000-0000-4000-8000-000000000003/cancel" \ -H "Authorization: Bearer $ATTIA_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: interview-cancel-01" \ -d '{ "reason": "Host unavailable"}'The 200 response contains the interview with status set to cancelled in data. Cancelling it again returns the same interview without sending another message.
Ask a candidate to choose a time
booking_requests.create · POST /api/v1/booking-requests · candidates:write
Send a booking link for one application. notify_candidate controls only the email. The request appears in the candidate’s portal either way. If the candidate has no portal account, you must set notify_candidate to true so the link can reach them.
| JSON field | Meaning |
|---|---|
application_id | Required. Application UUID. |
message | Required. Markdown text above the booking link, up to 4,000 characters. |
duration_minutes | Required. 5 to 480 minutes in steps of 5. |
window_days | Required. Give the candidate 1 to 90 days to pick a time. |
place | Required. Interview place, such as phone or onsite. |
host_id | Required. Host’s member UUID. |
interviewer_ids | Optional array of up to 10 other member UUIDs. Defaults to []. |
availability_mode | all (default) offers times when everyone is free. host checks only the host. |
title | Optional interview title, up to 255 characters. |
notify_candidate | Defaults to false. Use true to email the portal message. |
curl -X POST "https://attia.app/api/v1/booking-requests" \ -H "Authorization: Bearer $ATTIA_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: interview-request-01" \ -d '{ "application_id": "00000000-0000-4000-8000-000000000001", "host_id": "00000000-0000-4000-8000-000000000002", "place": "phone", "duration_minutes": 30, "window_days": 7, "message": "Please choose a time for your phone interview.", "notify_candidate": true}'The 201 response contains the request in data.
| Field | Meaning |
|---|---|
id | Booking request UUID. |
application_id | Application UUID. |
message_id | UUID of the portal message that holds the booking link. |
state | pending until the candidate books. New values can be added later. |
respond_by | Expiry time in UTC. The request expires unless the candidate books before then. |
settings | duration_minutes, window_days, place, host_workspace_member_id, interviewer_workspace_member_ids, availability_mode and an optional title. |
Interview webhook events
Enable Candidate data in the API to receive interview events. The delivery id identifies the event. data.id identifies the booking request or interview. revision orders events on the application. Attia reads data at delivery time, so it can already reflect a later change. changed_by identifies the actor as member, candidate, automation or system.
Booking requested
interview.requested carries the booking request and its settings. The candidate has yet to choose a time.
{ "id": "1111111111111111111111111111111111111111111111111111111111111111", "type": "interview.requested", "version": "v1", "timestamp": "2030-12-03T09:00:00.000000Z", "workspace_id": "00000000-0000-4000-8000-000000000006", "revision": 10, "data": { "id": "00000000-0000-4000-8000-000000000005", "application_id": "00000000-0000-4000-8000-000000000001", "job_id": "00000000-0000-4000-8000-000000000004", "state": "pending", "duration_minutes": 30, "window_days": 7, "place": "phone", "host_workspace_member_id": "00000000-0000-4000-8000-000000000002", "respond_by": "2030-12-10T09:00:00.000000Z", "changed_by": { "type": "member", "workspace_member_id": "00000000-0000-4000-8000-000000000002" }, "created_at": "2030-12-03T09:00:00.000000Z" }}Interview scheduled
interview.scheduled tells you a time has been booked.
{ "id": "2222222222222222222222222222222222222222222222222222222222222222", "type": "interview.scheduled", "version": "v1", "timestamp": "2030-12-04T10:00:00.000000Z", "workspace_id": "00000000-0000-4000-8000-000000000006", "revision": 11, "data": { "id": "00000000-0000-4000-8000-000000000003", "application_id": "00000000-0000-4000-8000-000000000001", "job_id": "00000000-0000-4000-8000-000000000004", "status": "scheduled", "starts_at": "2030-12-09T09:00:00.000000Z", "ends_at": "2030-12-09T09:30:00.000000Z", "time_zone": "Europe/Oslo", "place": "phone", "join_url": null, "host_workspace_member_id": "00000000-0000-4000-8000-000000000002", "changed_by": { "type": "member", "workspace_member_id": "00000000-0000-4000-8000-000000000002" }, "created_at": "2030-12-04T10:00:00.000000Z", "updated_at": "2030-12-04T10:00:00.000000Z" }}Interview rescheduled
interview.rescheduled covers a move in Attia or in the host’s calendar. Read the new start and end from data.
{ "id": "3333333333333333333333333333333333333333333333333333333333333333", "type": "interview.rescheduled", "version": "v1", "timestamp": "2030-12-05T11:00:00.000000Z", "workspace_id": "00000000-0000-4000-8000-000000000006", "revision": 12, "data": { "id": "00000000-0000-4000-8000-000000000003", "application_id": "00000000-0000-4000-8000-000000000001", "job_id": "00000000-0000-4000-8000-000000000004", "status": "scheduled", "starts_at": "2030-12-09T10:00:00.000000Z", "ends_at": "2030-12-09T10:30:00.000000Z", "time_zone": "Europe/Oslo", "place": "phone", "join_url": null, "host_workspace_member_id": "00000000-0000-4000-8000-000000000002", "changed_by": { "type": "member", "workspace_member_id": "00000000-0000-4000-8000-000000000002" }, "created_at": "2030-12-04T10:00:00.000000Z", "updated_at": "2030-12-05T11:00:00.000000Z" }}Interview cancelled
interview.cancelled tells you the interview was cancelled.
{ "id": "4444444444444444444444444444444444444444444444444444444444444444", "type": "interview.cancelled", "version": "v1", "timestamp": "2030-12-06T09:00:00.000000Z", "workspace_id": "00000000-0000-4000-8000-000000000006", "revision": 13, "data": { "id": "00000000-0000-4000-8000-000000000003", "application_id": "00000000-0000-4000-8000-000000000001", "job_id": "00000000-0000-4000-8000-000000000004", "status": "cancelled", "starts_at": "2030-12-09T10:00:00.000000Z", "ends_at": "2030-12-09T10:30:00.000000Z", "time_zone": "Europe/Oslo", "place": "phone", "join_url": null, "host_workspace_member_id": "00000000-0000-4000-8000-000000000002", "changed_by": { "type": "member", "workspace_member_id": "00000000-0000-4000-8000-000000000002" }, "created_at": "2030-12-04T10:00:00.000000Z", "updated_at": "2030-12-06T09:00:00.000000Z" }}Interview ended
interview.ended tells you the scheduled end time has passed.
{ "id": "5555555555555555555555555555555555555555555555555555555555555555", "type": "interview.ended", "version": "v1", "timestamp": "2030-12-09T10:30:00.000000Z", "workspace_id": "00000000-0000-4000-8000-000000000006", "revision": 14, "data": { "id": "00000000-0000-4000-8000-000000000007", "application_id": "00000000-0000-4000-8000-000000000001", "job_id": "00000000-0000-4000-8000-000000000004", "status": "ended", "starts_at": "2030-12-09T10:00:00.000000Z", "ends_at": "2030-12-09T10:30:00.000000Z", "time_zone": "Europe/Oslo", "place": "phone", "join_url": null, "host_workspace_member_id": "00000000-0000-4000-8000-000000000002", "changed_by": { "type": "system", "workspace_member_id": null }, "created_at": "2030-12-04T10:00:00.000000Z", "updated_at": "2030-12-09T10:30:00.000000Z" }}Interviews with MCP
An AI assistant can list interviews, read one interview and find free times. The write tools are create_interview, update_interview and cancel_interview. The candidate gets no message when the assistant books an interview. Moving or cancelling it sends the standard interview message. The tools do not accept custom message text.
The booking request tool is planned for ATT-7200. A member will need to approve the request in the Inbox. See MCP for the available tools and permissions.