Developers

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.

  1. Call availability.list with the application, host and duration. Pick one of the returned start and end times.
  2. Call interviews.create with that slot, the same participants, the time zone and the place. Save data.id. If the time was taken, the API returns 409 interview-time-taken. Find another slot and book it with a new key.
  3. Subscribe to interview.rescheduled before anyone moves the interview. Verify the webhook signature. Match data.id to the saved interview and update your system with data.starts_at and data.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.

ParameterMeaning
application_idRequired. Application UUID.
host_idRequired. Host’s member UUID.
interviewer_idsUp to 10 other member UUIDs, separated by commas.
duration_minutes5 to 480 minutes in steps of 5. Defaults to 30.
fromEarliest start, as an RFC 3339 timestamp. Defaults to now.
toLatest end. Defaults to 14 days after from. The maximum range is 92 days.
availability_modeall (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.

ParameterMeaning
application_idFilter by application UUID.
job_idFilter by job UUID.
host_idFilter by the host’s member UUID.
statusscheduled, cancelled or ended.
starts_afterStart at or after this RFC 3339 timestamp.
starts_beforeStart strictly before this RFC 3339 timestamp.
updated_sinceLast changed at or after this RFC 3339 timestamp.
orderSort by updated_at, then id. Use oldest (default) or newest.
limitInterviews per page, 1 to 100. Defaults to 25.
cursorSend 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.

FieldMeaning
idInterview UUID.
application_idApplication UUID.
job_idJob UUID, or null if there is no job.
statusscheduled, cancelled or ended.
titleInterview title. null uses the default title.
starts_atStart in UTC.
ends_atEnd in UTC.
time_zoneIANA time zone for displaying the times.
placeteams, meet, video_link, phone or onsite.
join_urlMeeting link, or null when there is none.
host_workspace_member_idHost’s UUID. Can be null on older interviews.
participantsHost first. Each entry contains workspace_member_id, role (host or interviewer) and attendance (required or optional).
booking_request_idBooking request UUID, or null for a fixed-time booking.
cancelled_atCancellation time in UTC, or null.
cancel_reasonReason recorded for members, or null.
urlLink to the application in Attia.
created_atCreation time in UTC.
updated_atLast 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 fieldMeaning
application_idRequired. Application UUID.
host_idRequired. UUID of an active member who can see the application.
starts_atRequired. Future start time in RFC 3339 format.
ends_atRequired. RFC 3339 end time. Allow 5 to 480 minutes in steps of 5.
time_zoneRequired. IANA time zone, such as Europe/Oslo.
placeRequired. 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_urlRequired for video_link only. Supply an HTTPS URL of up to 2,048 characters.
interviewer_idsOptional array of up to 10 distinct member UUIDs. Exclude the host. Defaults to [].
titleOptional title, up to 255 characters.
notify_candidateOptional boolean. Set to true to tell the candidate.
messagePlain 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 fieldMeaning
reasonOptional. Why the interview is cancelled, up to 500 characters. Members see it. The candidate does not.
messageOptional. 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 fieldMeaning
application_idRequired. Application UUID.
messageRequired. Markdown text above the booking link, up to 4,000 characters.
duration_minutesRequired. 5 to 480 minutes in steps of 5.
window_daysRequired. Give the candidate 1 to 90 days to pick a time.
placeRequired. Interview place, such as phone or onsite.
host_idRequired. Host’s member UUID.
interviewer_idsOptional array of up to 10 other member UUIDs. Defaults to [].
availability_modeall (default) offers times when everyone is free. host checks only the host.
titleOptional interview title, up to 255 characters.
notify_candidateDefaults 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.

FieldMeaning
idBooking request UUID.
application_idApplication UUID.
message_idUUID of the portal message that holds the booking link.
statepending until the candidate books. New values can be added later.
respond_byExpiry time in UTC. The request expires unless the candidate books before then.
settingsduration_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.