# CoderPad

> Create interview pads and questions, and look up Screen campaigns, questions and test results.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/coderpad

## Actions

### Create an interview pad

Creates a pad owned by you, or by another user of your organization with user_email.

**Inputs**

- Title (`title`, text): Title.
- Language (`language`, text): A single-file language key. One of: `bash`, `c`, `clojure`, `coffeescript`, `cpp` (C++), `csharp` (C#), `dart`, `elixir`, `erlang`, `fsharp` (F#), and 31 more.
- Contents (`contents`, text): The code to put in the pad, for single-file languages.
- Private (`private`, true/false): Whether the waiting room is enabled, so that guests must be admitted before joining the pad.
- Question (`question_id`, number): A question from your question bank to start the pad with.

**Outputs**

- `data` (object): The response from create an interview pad.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "active_environment_id": 1,
    "allowed_interviewer_emails": [],
    "contents": "example",
    "created_at": "2026-11-18T12:00:00Z",
    "drawing": "https://example.com/",
    "ended_at": "2026-11-18T12:00:00Z",
    "events": "https://example.com/",
    "execution_enabled": true,
    "history": "https://example.com/",
    "id": "example",
    "interview_highlights": "example",
    "interview_outline": "example",
    "language": "example",
    "notes": "example",
    "owner_email": "qa@example.com",
    "pad_environment_ids": [],
    "pad_feedbacks": [
      {
        "browser_info": "example",
        "category": "example",
        "created_at": "2026-11-18T12:00:00Z",
        "environment": "example",
        "id": 1,
        "key_bindings": "example",
        "option": "example",
        "pad_id": "example",
        "text": "example",
        "user_email": "example"
      }
    ],
    "pad_interviewer_notifications": [
      {
        "auto_dismissed": true,
        "created_at": "2026-11-18T12:00:00Z",
        "dismissed_at": "2026-11-18T12:00:00Z",
        "id": 1,
        "message": "example",
        "priority": "example",
        "request_id": "example",
        "title": "example",
        "updated_at": "2026-11-18T12:00:00Z",
        "useful": true
      }
    ],
    "participants": [],
    "playback": "https://example.com/",
    "private": true,
    "question_ids": [],
    "restrict_interviewer_access": true,
    "review_reports": [
      {
        "created_at": "2026-11-18T12:00:00Z",
        "error": "example",
        "file_paths": [],
        "icon": "example",
        "id": "example",
        "prompt": "example",
        "report": "example",
        "status": "example",
        "summary": "example",
        "title": "example",
        "updated_at": "2026-11-18T12:00:00Z",
        "user_id": 1
      }
    ],
    "state": "pending",
    "status": "OK",
    "team": {
      "id": "af3dee84-a6ef-4d8a-b67c-c17f5d07a34e",
      "name": "example"
    },
    "title": "example",
    "transcript": [
      {
        "id": "example",
        "kind": "transcript",
        "language": "example",
        "language_unknown": true,
        "speaker_name": "example",
        "speaker_role": "interviewer",
        "text": "example",
        "timestamp": 1
      }
    ],
    "transcript_source_unavailable": true,
    "type": "live",
    "updated_at": "2026-11-18T12:00:00Z",
    "url": "https://example.com/"
  },
  "has_more": false,
  "next_cursor": null
}
```

### Create an Interview question

Creates a question in your question bank.

**Inputs**

- Title (`title`, text, required): Title.
- Language (`language`, text, required): A language key or a project template slug; see Languages in the introduction. One of: `bash`, `c`, `clojure`, `coffeescript`, `cpp` (C++), `csharp` (C#), `dart`, `elixir`, `erlang`, `fsharp` (F#), and 31 more.
- Description (`description`, text): Description of the question, only shown to interviewers.
- Contents (`contents`, text): Starter code, for single-file languages.

**Outputs**

- `data` (object): The response from create an Interview question.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "ai_assist_custom_system_prompt": "example",
    "author_name": "example",
    "candidate_instructions": [
      {
        "default_visible": true,
        "files": [],
        "instructions": "example",
        "name": "example"
      }
    ],
    "contents": "example",
    "contents_for_test_cases": "example",
    "created_at": "2026-11-18T12:00:00Z",
    "custom_database": {
      "description": "example",
      "id": 1,
      "language": "example",
      "schema": "example",
      "schema_json": "example",
      "title": "example"
    },
    "custom_files": [
      {
        "description": "example",
        "filename": "example",
        "filesize": "example",
        "id": "af3dee84-a6ef-4d8a-b67c-c17f5d07a34e",
        "title": "example"
      }
    ],
    "description": "example",
    "file_contents": [
      {
        "binary": true,
        "contents": "example",
        "deleted": true,
        "hidden": true,
        "path": "example"
      }
    ],
    "id": 1,
    "is_draft": true,
    "language": "example",
    "organization_name": "example",
    "owner_email": "qa@example.com",
    "pad_type": "any",
    "public_take_home_setting_id": 1,
    "question_variants": [
      {
        "display": "example",
        "id": 1,
        "language": "example",
        "project_template_id": 1,
        "project_template_slug": "example"
      }
    ],
    "shared": true,
    "solution": "example",
    "status": "OK",
    "take_home": true,
    "test_cases": [
      {
        "arguments": [],
        "id": 1,
        "return_value": "example",
        "visible": true
      }
    ],
    "test_cases_enabled": true,
    "title": "example",
    "updated_at": "2026-11-18T12:00:00Z",
    "used": 1
  },
  "has_more": false,
  "next_cursor": null
}
```

### Delete an Interview question

Delete an Interview question.

**Inputs**

- Question (`question_id`, number, required): Question ID.

**Outputs**

- `data` (object): The response from delete an Interview question.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "status": "OK"
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get a Screen campaign

Returns the test as the creation endpoint takes it, so a caller can read a test, change one field and send it back.

**Inputs**

- Campaign (`campaign_id`, number, required): id of the test campaign to be fetched.

**Outputs**

- `data` (object): The response from get a Screen campaign.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "id": 1,
    "name": "example",
    "questions": [
      {
        "configuration": {},
        "question_id": "af3dee84-a6ef-4d8a-b67c-c17f5d07a34e",
        "type": "QUESTION"
      }
    ],
    "settings": {
      "access_period": {},
      "ai_assist_enabled": true,
      "copy_paste_blocked": true,
      "enabled_coding_agents": "CLAUDE_CODE",
      "follow_up_questions": {},
      "full_screen_required": true,
      "invitation_expiration_days": 1,
      "languages": [],
      "send_candidate_simplified_report": true,
      "timer": {},
      "webcam_proctoring": {}
    },
    "team_id": "af3dee84-a6ef-4d8a-b67c-c17f5d07a34e"
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get a Screen question

Get a Screen question.

**Inputs**

- Question ID (`question_id`, text, required): id of the question to be fetched.

**Outputs**

- `data` (object): The response from get a Screen question.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "automatically_selectable": true,
    "code_details": {
      "available_programming_language_ids": [],
      "candidate_test_code": "example",
      "database_engine": {},
      "database_setup_script": "example",
      "environment": {},
      "function_signature": {},
      "mode": "SINGLE_LANGUAGE",
      "possible_solution": {},
      "programming_language_id": "example",
      "show_function_signature_in_statement": true,
      "starter_code": "example",
      "timeout_ms": 1,
      "validator_code": "example"
    },
    "comment": "example",
    "creation_time": "example",
    "difficulty": "EASY",
    "domain": "example",
    "duration_seconds": 1,
    "evaluation": {
      "choice_selection": {},
      "input_output": {},
      "rubric": {},
      "sql_query_result_comparison": {},
      "test_report": {},
      "text_answer_matching": {},
      "validation_code": {}
    },
    "file_upload_details": {
      "download_url": "example"
    },
    "from_coderpad_question_bank": true,
    "game_details": {
      "available_programming_language_ids": []
    },
    "id": "af3dee84-a6ef-4d8a-b67c-c17f5d07a34e",
    "locales": [],
    "mcq_details": {
      "choices": [],
      "randomize_choices": true,
      "selection_mode": "SINGLE"
    },
    "modification_time": "example",
    "points": 1,
    "project_details": {
      "ai_assist_additional_instructions": "example",
      "ai_assist_allowed": true,
      "download_url": "example",
      "environment": {},
      "resources": []
    },
    "resources": [
      {
        "download_url": "example",
        "filename": "example",
        "mime_type": "example"
      }
    ],
    "skill": "example",
    "statement": {},
    "team_id": "af3dee84-a6ef-4d8a-b67c-c17f5d07a34e",
    "text_details": {
      "evaluation_mode": "MANUAL"
    },
    "title": {},
    "type": "MCQ",
    "version": 1,
    "video_details": {
      "recording_media": "VIDEO"
    }
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get a Screen test session

Get a Screen test session.

**Inputs**

- Session ID (`session_id`, number, required): id of the test session to be fetched.
- With community stats (`with_community_stats`, true/false): With community stats.

**Outputs**

- `data` (object): The response from get a Screen test session.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "approval_status": "example",
    "campaign_id": 1,
    "candidate_email": "example",
    "candidate_language": "example",
    "candidate_name": "example",
    "end_time": 1,
    "id": 1,
    "id_test": 1,
    "last_activity_time": 1,
    "organization_id": "example",
    "questions": [
      {
        "answer": {},
        "answer_status": "NOT_STARTED",
        "awarded_points": 1,
        "domain": "example",
        "environment_exit_count": 1,
        "evaluation": {},
        "first_access_time": 1,
        "grading_status": "GRADED",
        "id": "af3dee84-a6ef-4d8a-b67c-c17f5d07a34e",
        "last_activity_time": 1,
        "marked_as_cheated_by_recruiter": true,
        "max_points": 1,
        "mcq_details": {},
        "result_overridden_by_recruiter": true,
        "submission_time": 1,
        "time_limit_seconds": 1,
        "time_spent_outside_environment_seconds": 1,
        "time_spent_seconds": 1,
        "timed_out": true,
        "title": "example",
        "type": "CODE",
        "version": 1,
        "warnings": []
      }
    ],
    "report": {
      "community_stats": [],
      "comparative_score": 1,
      "duration": 1,
      "environment_exit_count": 1,
      "marked_as_cheated_by_recruiter": true,
      "points": 1,
      "score": 1,
      "technologies": {},
      "time_spent_outside_environment_seconds": 1,
      "total_duration": 1,
      "total_points": 1,
      "warnings": []
    },
    "send_time": 1,
    "start_time": 1,
    "status": "aborted",
    "tags": [],
    "test_url": "example",
    "timer_type": "PER_QUESTION",
    "url": "example"
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get an interview pad

Returns the current state of a pad.

**Inputs**

- Pad (`pad_id`, text, required): Pad ID.

**Outputs**

- `data` (object): The response from get an interview pad.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "active_environment_id": 1,
    "allowed_interviewer_emails": [],
    "contents": "example",
    "created_at": "2026-11-18T12:00:00Z",
    "drawing": "https://example.com/",
    "ended_at": "2026-11-18T12:00:00Z",
    "events": "https://example.com/",
    "execution_enabled": true,
    "history": "https://example.com/",
    "id": "example",
    "interview_highlights": "example",
    "interview_outline": "example",
    "language": "example",
    "notes": "example",
    "owner_email": "qa@example.com",
    "pad_environment_ids": [],
    "pad_feedbacks": [
      {
        "browser_info": "example",
        "category": "example",
        "created_at": "2026-11-18T12:00:00Z",
        "environment": "example",
        "id": 1,
        "key_bindings": "example",
        "option": "example",
        "pad_id": "example",
        "text": "example",
        "user_email": "example"
      }
    ],
    "pad_interviewer_notifications": [
      {
        "auto_dismissed": true,
        "created_at": "2026-11-18T12:00:00Z",
        "dismissed_at": "2026-11-18T12:00:00Z",
        "id": 1,
        "message": "example",
        "priority": "example",
        "request_id": "example",
        "title": "example",
        "updated_at": "2026-11-18T12:00:00Z",
        "useful": true
      }
    ],
    "participants": [],
    "playback": "https://example.com/",
    "private": true,
    "question_ids": [],
    "restrict_interviewer_access": true,
    "review_reports": [
      {
        "created_at": "2026-11-18T12:00:00Z",
        "error": "example",
        "file_paths": [],
        "icon": "example",
        "id": "example",
        "prompt": "example",
        "report": "example",
        "status": "example",
        "summary": "example",
        "title": "example",
        "updated_at": "2026-11-18T12:00:00Z",
        "user_id": 1
      }
    ],
    "state": "pending",
    "status": "OK",
    "team": {
      "id": "af3dee84-a6ef-4d8a-b67c-c17f5d07a34e",
      "name": "example"
    },
    "title": "example",
    "transcript": [
      {
        "id": "example",
        "kind": "transcript",
        "language": "example",
        "language_unknown": true,
        "speaker_name": "example",
        "speaker_role": "interviewer",
        "text": "example",
        "timestamp": 1
      }
    ],
    "transcript_source_unavailable": true,
    "type": "live",
    "updated_at": "2026-11-18T12:00:00Z",
    "url": "https://example.com/"
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get an Interview question

Get an Interview question.

**Inputs**

- Question (`question_id`, number, required): Question ID.

**Outputs**

- `data` (object): The response from get an Interview question.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "ai_assist_custom_system_prompt": "example",
    "author_name": "example",
    "candidate_instructions": [
      {
        "default_visible": true,
        "files": [],
        "instructions": "example",
        "name": "example"
      }
    ],
    "contents": "example",
    "contents_for_test_cases": "example",
    "created_at": "2026-11-18T12:00:00Z",
    "custom_database": {
      "description": "example",
      "id": 1,
      "language": "example",
      "schema": "example",
      "schema_json": "example",
      "title": "example"
    },
    "custom_files": [
      {
        "description": "example",
        "filename": "example",
        "filesize": "example",
        "id": "af3dee84-a6ef-4d8a-b67c-c17f5d07a34e",
        "title": "example"
      }
    ],
    "description": "example",
    "file_contents": [
      {
        "binary": true,
        "contents": "example",
        "deleted": true,
        "hidden": true,
        "path": "example"
      }
    ],
    "id": 1,
    "is_draft": true,
    "language": "example",
    "organization_name": "example",
    "owner_email": "qa@example.com",
    "pad_type": "any",
    "public_take_home_setting_id": 1,
    "question_variants": [
      {
        "display": "example",
        "id": 1,
        "language": "example",
        "project_template_id": 1,
        "project_template_slug": "example"
      }
    ],
    "shared": true,
    "solution": "example",
    "status": "OK",
    "take_home": true,
    "test_cases": [
      {
        "arguments": [],
        "id": 1,
        "return_value": "example",
        "visible": true
      }
    ],
    "test_cases_enabled": true,
    "title": "example",
    "updated_at": "2026-11-18T12:00:00Z",
    "used": 1
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get Screen campaign insights

Returns the statistics of the test, the same data as the Insights tab of the Screen interface.

**Inputs**

- Campaign (`campaign_id`, number, required): id of the test campaign to be fetched.

**Outputs**

- `data` (object): The response from get Screen campaign insights.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "candidate_feedback_ratings": {
      "distribution": [],
      "sample_size": 1
    },
    "candidates": {
      "by_approval_status": [],
      "by_tag": [],
      "by_test_status": [],
      "total": 1
    },
    "id": 1,
    "invitations": {
      "by_month": [],
      "total": 1,
      "window": {}
    },
    "scores": {
      "distribution": [],
      "mean": 1,
      "sample_size": 1
    },
    "time_spent_seconds": {
      "mean": 1,
      "median": 1,
      "p25": 1,
      "p75": 1,
      "sample_size": 1
    }
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get the Interview user

Returns the user the API key belongs to.

**Inputs**: None.

**Outputs**

- `data` (object): The response from get the Interview user.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "allow_pad_creation": true,
    "analytics_id": "example",
    "name": "example",
    "status": "OK"
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get the pad quota

Returns your pad usage for the current billing cycle.

**Inputs**: None.

**Outputs**

- `data` (object): The response from get the pad quota.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "billing_cycle_pad_limit": 1,
    "overages_enabled": true,
    "pads_remaining": 1,
    "pads_used": 1,
    "quota_reset_at": "2026-11-18T12:00:00Z",
    "status": "OK",
    "trial_expires_at": "2026-11-18T12:00:00Z",
    "unlimited": true
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get the Screen user

Get the Screen user.

**Inputs**: None.

**Outputs**

- `data` (object): The response from get the Screen user.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "organization_id": "example",
    "recruiter_id": "example",
    "teams": [
      {
        "id": "example",
        "is_default": true,
        "name": "example"
      }
    ]
  },
  "has_more": false,
  "next_cursor": null
}
```

### List interview pads

Lists the pads visible to you, with the same fields as GET /pads/{id}.

**Inputs**

- Sort (`sort`, text): created_at or updated_at, optionally followed by,asc or,desc (descending by default). One of: `created_at`, `created_at,asc`, `created_at,desc`, `updated_at`, `updated_at,asc`, `updated_at,desc`.
- Page (`page`, number): One-based page number. At least 1.
- Cursor (`cursor`, text): Position of the next page, as returned in the next_page URL of the previous response.

**Outputs**

- `data` (object): The response from list interview pads.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "next_page": "https://example.com/",
    "pads": [
      {
        "active_environment_id": 1,
        "allowed_interviewer_emails": [],
        "contents": "example",
        "created_at": "2026-11-18T12:00:00Z",
        "drawing": "https://example.com/",
        "ended_at": "2026-11-18T12:00:00Z",
        "events": "https://example.com/",
        "execution_enabled": true,
        "history": "https://example.com/",
        "id": "example",
        "language": "example",
        "notes": "example",
        "owner_email": "qa@example.com",
        "pad_environment_ids": [],
        "pad_feedbacks": [],
        "pad_interviewer_notifications": [],
        "participants": [],
        "playback": "https://example.com/",
        "private": true,
        "question_ids": [],
        "restrict_interviewer_access": true,
        "state": "pending",
        "team": {},
        "title": "example",
        "type": "live",
        "updated_at": "2026-11-18T12:00:00Z",
        "url": "https://example.com/"
      }
    ],
    "prev_page": "https://example.com/",
    "status": "OK",
    "total": 1
  },
  "has_more": false,
  "next_cursor": null
}
```

### List Interview questions

Lists the published questions visible to you, or the draft questions visible to you with is_draft=true.

**Inputs**

- Sort (`sort`, text): A question field such as created_at, updated_at, title or used, optionally followed by,asc or,desc.
- Page (`page`, number): One-based page number. At least 1.
- Text (`text`, text): Only return questions matching this search text.
- Pad types (`pad_types`, list): Only return questions usable in these types of pad. One or more of: `any`, `live`, `take_home`.
- Is draft (`is_draft`, true/false): Return draft questions instead of published ones.

**Outputs**

- `data` (object): The response from list Interview questions.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "next_page": "https://example.com/",
    "prev_page": "https://example.com/",
    "questions": [
      {
        "ai_assist_custom_system_prompt": "example",
        "author_name": "example",
        "candidate_instructions": [],
        "contents": "example",
        "contents_for_test_cases": "example",
        "created_at": "2026-11-18T12:00:00Z",
        "custom_database": {},
        "custom_files": [],
        "description": "example",
        "file_contents": [],
        "id": 1,
        "is_draft": true,
        "language": "example",
        "organization_name": "example",
        "owner_email": "qa@example.com",
        "pad_type": "any",
        "public_take_home_setting_id": 1,
        "question_variants": [],
        "shared": true,
        "solution": "example",
        "take_home": true,
        "test_cases": [],
        "test_cases_enabled": true,
        "title": "example",
        "updated_at": "2026-11-18T12:00:00Z",
        "used": 1
      }
    ],
    "status": "OK",
    "total": 1
  },
  "has_more": false,
  "next_cursor": null
}
```

### List pad events

Lists the events of a pad, such as participants joining or leaving, code runs and questions being added.

**Inputs**

- Pad (`pad_id`, text, required): Pad ID.
- Sort (`sort`, text): created_at or updated_at, optionally followed by,asc or,desc (descending by default). One of: `created_at`, `created_at,asc`, `created_at,desc`, `updated_at`, `updated_at,asc`, `updated_at,desc`.
- Page (`page`, number): One-based page number. At least 1.

**Outputs**

- `data` (object): The response from list pad events.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "events": [
      {
        "created_at": "2026-11-18T12:00:00Z",
        "kind": "joined",
        "message": "example",
        "metadata": "example",
        "user_email": "example",
        "user_name": "example"
      }
    ],
    "next_page": "https://example.com/",
    "prev_page": "https://example.com/",
    "status": "OK",
    "total": 1
  },
  "has_more": false,
  "next_cursor": null
}
```

### List Screen campaigns

Without any of the parameters below, returns every test campaign as an array.

**Inputs**

- Limit (`limit`, number): maximum number of test campaigns to fetch (min: 1, max: 500). From 1 to 100.
- Cursor (`cursor`, text): cursor returned in pagination.next_cursor, to fetch the next page.
- Archived (`archived`, true/false): filter by archived state.

**Outputs**

- `data` (object): The response from list Screen campaigns.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "campaigns": [
      {
        "archived": true,
        "candidates": {},
        "creation_time": "example",
        "creator_id": "af3dee84-a6ef-4d8a-b67c-c17f5d07a34e",
        "domains": [],
        "duration_seconds": 1,
        "id": 1,
        "languages": [],
        "last_activity_time": "example",
        "modification_time": "example",
        "name": "example",
        "pinned": true,
        "question_count": 1,
        "question_count_exact": true,
        "team_id": "af3dee84-a6ef-4d8a-b67c-c17f5d07a34e"
      }
    ],
    "pagination": {
      "has_more_items": true,
      "limit": 1,
      "next_cursor": "example",
      "next_page": "example",
      "total": 1
    }
  },
  "has_more": false,
  "next_cursor": null
}
```

### List Screen questions

List Screen questions.

**Inputs**

- Limit (`limit`, number): maximum number of questions to fetch (min: 1, max: 500). From 1 to 100.
- Cursor (`cursor`, text): cursor returned in pagination.next_cursor, to fetch the next page.
- Type (`type`, text): filter by question type.
- Difficulty (`difficulty`, text): filter by difficulty level: EASY, MEDIUM or HARD.
- Domain (`domain`, text): filter by domain name.

**Outputs**

- `data` (object): The response from list Screen questions.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "pagination": {
      "has_more_items": true,
      "limit": 1,
      "next_cursor": "example",
      "next_page": "example",
      "next_start": 1,
      "start": 1,
      "total": 1
    },
    "questions": [
      {
        "difficulty": "EASY",
        "domain": "example",
        "duration_seconds": 1,
        "from_coderpad_question_bank": true,
        "id": "af3dee84-a6ef-4d8a-b67c-c17f5d07a34e",
        "modification_time": "example",
        "product": "SCREEN",
        "programming_language_id": "example",
        "skill": "example",
        "title": {},
        "type": "MCQ",
        "version": 1
      }
    ]
  },
  "has_more": false,
  "next_cursor": null
}
```

### List Screen test sessions

List Screen test sessions.

**Inputs**

- Sent after (`sent_after`, date and time): fetch the test sessions sent after this date (timestamp in ms).
- Sent before (`sent_before`, date and time): fetch the test sessions sent before this date (timestamp in ms).
- Start (`start`, text): index of the first test session to pick (min: 0). At least 0.
- Limit (`limit`, number): maximum number of test sessions to fetch (min: 1, max: 50). From 1 to 100.
- Candidate email (`candidate_email`, text): fetch the test sessions for a specific candidate email.
- Campaign (`campaign_id`, number): fetch the test sessions for a specific campaign id.
- Product (`product`, text): fetch the test sessions belonging a specific product.

**Outputs**

- `data` (object): The response from list Screen test sessions.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "pagination": {
      "has_more_items": true,
      "limit": 1,
      "next_cursor": "example",
      "next_page": "example",
      "next_start": 1,
      "start": 1,
      "total": 1
    },
    "tests": [
      {
        "approval_status": "example",
        "campaign_id": 1,
        "candidate_email": "example",
        "candidate_language": "example",
        "candidate_name": "example",
        "end_time": 1,
        "id": 1,
        "id_test": 1,
        "last_activity_time": 1,
        "organization_id": "example",
        "questions": [],
        "report": {},
        "send_time": 1,
        "start_time": 1,
        "status": "aborted",
        "tags": [],
        "test_url": "example",
        "url": "example"
      }
    ]
  },
  "has_more": false,
  "next_cursor": null
}
```

### Update an interview pad

Updates, ends or deletes a pad.

**Inputs**

- Pad (`pad_id`, text, required): Pad ID.
- Title (`title`, text): Title.
- Private (`private`, true/false): Whether the waiting room is enabled, so that guests must be admitted before joining the pad.
- Ended (`ended`, true/false): Set to true to end the pad.
- Deleted (`deleted`, true/false): Set to true to delete the pad.

**Outputs**

- `data` (object): The response from update an interview pad.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "status": "OK"
  },
  "has_more": false,
  "next_cursor": null
}
```

### Update an Interview question

Updates a question.

**Inputs**

- Question (`question_id`, number, required): Question ID.
- Title (`title`, text): Title.
- Description (`description`, text): Description of the question, only shown to interviewers.
- Contents (`contents`, text): Starter code, for single-file languages.

**Outputs**

- `data` (object): The response from update an Interview question.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): The page or cursor to pass to the next request.

**Example output**

```json
{
  "data": {
    "ai_assist_custom_system_prompt": "example",
    "author_name": "example",
    "candidate_instructions": [
      {
        "default_visible": true,
        "files": [],
        "instructions": "example",
        "name": "example"
      }
    ],
    "contents": "example",
    "contents_for_test_cases": "example",
    "created_at": "2026-11-18T12:00:00Z",
    "custom_database": {
      "description": "example",
      "id": 1,
      "language": "example",
      "schema": "example",
      "schema_json": "example",
      "title": "example"
    },
    "custom_files": [
      {
        "description": "example",
        "filename": "example",
        "filesize": "example",
        "id": "af3dee84-a6ef-4d8a-b67c-c17f5d07a34e",
        "title": "example"
      }
    ],
    "description": "example",
    "file_contents": [
      {
        "binary": true,
        "contents": "example",
        "deleted": true,
        "hidden": true,
        "path": "example"
      }
    ],
    "id": 1,
    "is_draft": true,
    "language": "example",
    "organization_name": "example",
    "owner_email": "qa@example.com",
    "pad_type": "any",
    "public_take_home_setting_id": 1,
    "question_variants": [
      {
        "display": "example",
        "id": 1,
        "language": "example",
        "project_template_id": 1,
        "project_template_slug": "example"
      }
    ],
    "shared": true,
    "solution": "example",
    "status": "OK",
    "take_home": true,
    "test_cases": [
      {
        "arguments": [],
        "id": 1,
        "return_value": "example",
        "visible": true
      }
    ],
    "test_cases_enabled": true,
    "title": "example",
    "updated_at": "2026-11-18T12:00:00Z",
    "used": 1
  },
  "has_more": false,
  "next_cursor": null
}
```
