Interviews

Create an interview

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.eyJzdWIiOiI5NzUiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NDg1MTY1MTYsImV4cCI6MTc1MTEwODUxNiwianRpIjoiMGNlMGY4NWUtYzkwNy00ODBiLWFkNTEtYjE3MGViMmFiMjdhIn0.ZaSCmfhvDXZo4J6td8EkM8M_klYVaKrwS0w8Ma95D_c
Host: example.org
Cookie: 

Body

{
  "interview": {
    "interviewee_id": 270,
    "interviewer_id": 974,
    "kind": "video_call",
    "location": "https://zoom.com",
    "start_at": "2025-05-29T11:01:56Z",
    "end_at": "2025-05-29T11:31:56Z"
  }
}

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/"a2fb36af0ee0d2390d741d333623a816"
cache-control: max-age=0, private, must-revalidate
x-request-id: 07662651-dec5-452f-9181-82c5ca8e56e7
x-runtime: 0.050356
content-length: 520

Body

{
  "interview": {
    "id": 26,
    "amend_end_at": null,
    "amend_start_at": null,
    "amended_by": null,
    "end_at": "2025-05-29T11:31:56.000Z",
    "interviewee": {
      "id": 270,
      "driver": {
        "id": 972,
        "image": null,
        "phone_number": "123",
        "title": "Deangelo Rohan"
      },
      "kind": "interview",
      "updated_at": "2025-05-29T11:01:56.809Z"
    },
    "interviewee_id": 270,
    "interviewer": {
      "id": 974,
      "contact_phone_number": null,
      "image": null,
      "title": "Deadra Marks"
    },
    "interviewer_id": 974,
    "kind": "video_call",
    "location": "https://zoom.com",
    "start_at": "2025-05-29T11:01:56.000Z",
    "status": "pending"
  }
}