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.eyJzdWIiOiI5NzIiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3Mzc1NTE1NzMsImV4cCI6MTc0MDE0MzU3MywianRpIjoiNzkwOTM4OTktYTg3YS00YjE5LWE3ZjMtODA3MmJlNDIxYWM2In0.vDyqzKSnFdpoF9ZssOy-ssctCVt74MtrCD4TwDXG7tg
Host: example.org
Cookie:
Body
{
"interview": {
"interviewee_id": 274,
"interviewer_id": 971,
"kind": "video_call",
"location": "https://zoom.com",
"start_at": "2025-01-22T13:12:53Z",
"end_at": "2025-01-22T13:42:53Z"
}
}
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/"fc83219ff6010ced8534e6776b0ab86c"
cache-control: max-age=0, private, must-revalidate
x-request-id: c74b6840-32b4-45d8-ad00-bee14594c906
x-runtime: 0.027231
content-length: 519
Body
{
"interview": {
"id": 26,
"amend_end_at": null,
"amend_start_at": null,
"amended_by": null,
"end_at": "2025-01-22T13:42:53.000Z",
"interviewee": {
"id": 274,
"driver": {
"id": 969,
"image": null,
"phone_number": "123",
"title": "Lyle Rath"
},
"kind": "interview",
"updated_at": "2025-01-22T13:12:53.283Z"
},
"interviewee_id": 274,
"interviewer": {
"id": 971,
"contact_phone_number": null,
"image": null,
"title": "Hunter Dickinson"
},
"interviewer_id": 971,
"kind": "video_call",
"location": "https://zoom.com",
"start_at": "2025-01-22T13:12:53.000Z",
"status": "pending"
}
}