Create an interview
Interviews
POST create an interview
Endpoint
POST /api/v1/interviews/
Parameters
Name | Description |
---|---|
interview[kind] required | Interview kind |
interview[start_at] required | Interview start at |
interview[end_at] required | Interview end at |
interview[interviewee_id] required | Interview interviewee |
interview[interviewer_id] required | Interview interviewer |
interview[location] | Interview location |
Request
Route
POST /api/v1/interviews/
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI5NzYiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NDI0NjQ5MjgsImV4cCI6MTc0NTA1NjkyOCwianRpIjoiZjQwYmUyOGItOWYwNC00NzkzLTg3ODctOGIwMTEyZWRkZjI3In0.m1WRRKOz4uC9PKhHMqrr5D2wFlJgP5L1pdQ8QpAZfeg
Host: example.org
Cookie:
Body
{
"interview": {
"interviewee_id": 271,
"interviewer_id": 975,
"kind": "video_call",
"location": "https://zoom.com",
"start_at": "2025-03-20T10:02:08Z",
"end_at": "2025-03-20T10:32:08Z"
}
}
Response
Simulated Response
Status
200
Headers
x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"daafeab6c919bbefa6eaabcc732b200a"
cache-control: max-age=0, private, must-revalidate
x-request-id: 3d3e99f0-6474-42b1-afdc-5d3bb2ce1295
x-runtime: 0.049185
content-length: 528
Body
{
"interview": {
"id": 26,
"amend_end_at": null,
"amend_start_at": null,
"amended_by": null,
"end_at": "2025-03-20T10:32:08.000Z",
"interviewee": {
"id": 271,
"driver": {
"id": 973,
"image": null,
"phone_number": "123",
"title": "Marybelle Ebert"
},
"kind": "interview",
"updated_at": "2025-03-20T10:02:08.557Z"
},
"interviewee_id": 271,
"interviewer": {
"id": 975,
"contact_phone_number": null,
"image": null,
"title": "Rosemarie Armstrong"
},
"interviewer_id": 975,
"kind": "video_call",
"location": "https://zoom.com",
"start_at": "2025-03-20T10:02:08.000Z",
"status": "pending"
}
}