---
updatedAt: 2026-10-29T15:56:23.000Z
agentTools:
  projectIndex: https://developer.breezy.hr/llms.txt
---

# /company/{id}/position/{id}/candidates/bulk

Reads up to 50 candidates on a position in one request, each with any of their questionnaires, documents, scorecards, conversation, custom fields and activity stream. This is a read: nothing is changed. Use it in place of one `GET /candidate/{candidateId}` call plus one call per extra for each candidate.

Send exactly one of:
- `candidate_ids`: 1 to 50 candidate ids on this position. Ids that aren't on the position are listed in `not_found`.
- `stage_id`: every candidate currently in that pipeline stage, most recently updated first, one page at a time with `page` (0-based) and `page_size` (up to 50). Use the stage `id` values from `GET /company/{companyId}/pipeline/{pipelineId}`. Read the next page until a page returns fewer than `page_size` candidates.

Each candidate has the same fields as `GET /candidate/{candidateId}`, and each extra has the same fields as its own endpoint, with these limits per candidate: 10 questionnaires, 20 documents, the first page of 50 conversation messages and the first page of 50 stream events.

The same permissions apply as when each candidate is read on its own. A candidate the caller can't see (in a restricted stage, or private) is listed in `denied` with the reason instead of failing the request. An extra the caller isn't allowed to read comes back as an empty array, and without permission to see the team's scorecards only the caller's own are returned.

# OpenAPI definition

````json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Breezy HR Public API",
    "version": "3",
    "description": "The Breezy HR public API (v3) provides programmatic access to your recruiting data.\nAll endpoints are relative to `https://api.breezy.hr/v3`.\n\n## Authentication\n\nPass a **Personal Access Token (PAT)** in the `Authorization` header:\n```\nAuthorization: Bearer breezy_pat_<token>\n```\n\nAlternatively, call `POST /v3/signin` with email and password to receive a session\n`access_token`, then pass it the same way.\n\nBoth header forms are accepted for PATs and session tokens: `Authorization: Bearer <token>`\nand the bare `Authorization: <token>`. The `Bearer` scheme is matched case-insensitively.\n\n## Rate limits\n\nEach access token can make 100 requests per minute. Every response carries `X-RateLimit-Limit`,\n`X-RateLimit-Remaining` and `X-RateLimit-Reset`. A request over the limit gets `429` with a\n`Retry-After` header giving the seconds to wait: retry after that wait. Don't retry other `4xx`\nerrors; they won't succeed unchanged.\n\nPartner integrations that call with a `partner-api-key` get 300 requests per minute for each\ncustomer they act for.\n\n## IDs\n\nAll resource IDs are 12–14 character lowercase hex strings (e.g. `a3f9c1d2e4b5`).\nEU-region resources use 14-character IDs ending in `01`.\n\n## Dates\n\nAll date/timestamp fields are ISO 8601 strings.\n\n## Errors\n\nAll error responses use the shape:\n```json\n{ \"error\": { \"type\": \"string\", \"message\": \"string\" } }\n```\n\nEvery `/company/{companyId}/...` endpoint returns `403` with type `companyMembershipRequired`\nwhen the authenticated user is not a member of that company, for example after the user who\ncreated the token was removed from the account.\n\nCandidate `GET` endpoints (`/company/{companyId}/position/{positionId}/candidate/{candidateId}`\nand its sub-resources) return `403` with type `privateCandidate` and message\n`Candidate is private` when the candidate is marked private and the authenticated user is\nneither a company admin nor the user who marked it.\n"
  },
  "servers": [
    {
      "url": "https://api.breezy.hr/v3",
      "description": "Production"
    }
  ],
  "security": [
    {
      "TokenAuth": []
    }
  ],
  "tags": [
    {
      "name": "Candidates",
      "description": "Candidate management and all sub-resources"
    }
  ],
  "components": {
    "securitySchemes": {
      "TokenAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "description": "Personal Access Token (PAT) or session token from POST /v3/signin, passed in the Authorization header either bare or with a Bearer prefix (both forms are accepted). Declared as apiKey rather than http/bearer so that tools do not force the prefix - the bare form is equally valid."
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            }
          }
        }
      },
      "SimpleUser": {
        "type": "object",
        "properties": {
          "_id": {
            "type": "string"
          },
          "email_address": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "username": {
            "type": "string"
          },
          "initial": {
            "type": "string"
          }
        }
      },
      "StageType": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "icon": {
            "type": "string"
          }
        }
      },
      "Stage": {
        "type": "object",
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "integer"
              }
            ],
            "description": "Built-in stages have string ids such as `applied`; custom stages have numeric ids."
          },
          "name": {
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/StageType"
          }
        }
      },
      "Source": {
        "type": "object",
        "nullable": true,
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "Salary": {
        "type": "object",
        "nullable": true,
        "properties": {
          "from": {
            "type": "number",
            "nullable": true
          },
          "to": {
            "type": "number",
            "nullable": true
          },
          "period": {
            "type": "string",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "CustomAttribute": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "secure": {
            "type": "boolean"
          },
          "value": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "CandidateCustomField": {
        "type": "object",
        "properties": {
          "_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "data_type": {
            "type": "string"
          },
          "value": {},
          "secure": {
            "type": "boolean"
          },
          "options": {
            "type": "object",
            "description": "Field configuration. `values` lists the allowed choices for `dropdown` and `radio` fields; empty for other data types.",
            "properties": {
              "values": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "company_custom_field_id": {
            "type": "string"
          }
        }
      },
      "OverallScore": {
        "type": "object",
        "properties": {
          "very_good": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "good": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "neutral": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "poor": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "very_poor": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "scored_count": {
            "type": "integer"
          },
          "average_score": {
            "type": "number",
            "nullable": true
          },
          "score": {
            "type": "number",
            "nullable": true
          }
        }
      },
      "EducationEntry": {
        "type": "object",
        "description": "Note: the `start_date` / `end_date` nested shape reflects how the data is stored\nand returned in the candidate object. The `start_year` / `end_year` flat field\nnames used in PUT /education requests differ from the nested response shape.\n",
        "properties": {
          "school_name": {
            "type": "string"
          },
          "field_of_study": {
            "type": "string",
            "nullable": true
          },
          "start_date": {
            "type": "object",
            "nullable": true,
            "properties": {
              "year": {
                "type": "integer"
              },
              "month": {
                "type": "integer",
                "nullable": true
              }
            }
          },
          "end_date": {
            "type": "object",
            "nullable": true,
            "properties": {
              "year": {
                "type": "integer"
              },
              "month": {
                "type": "integer",
                "nullable": true
              }
            }
          }
        }
      },
      "WorkHistoryEntry": {
        "type": "object",
        "description": "Note: the `start_date` / `end_date` nested shape reflects how the data is stored\nand returned in the candidate object. The `start_year` / `start_month` flat field\nnames used in PUT /work-history requests differ from the nested response shape.\n",
        "properties": {
          "company_name": {
            "type": "string"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "summary": {
            "type": "string",
            "nullable": true
          },
          "start_date": {
            "type": "object",
            "nullable": true,
            "properties": {
              "year": {
                "type": "integer"
              },
              "month": {
                "type": "integer",
                "nullable": true
              }
            }
          },
          "end_date": {
            "type": "object",
            "nullable": true,
            "properties": {
              "year": {
                "type": "integer"
              },
              "month": {
                "type": "integer",
                "nullable": true
              }
            }
          }
        }
      },
      "SocialProfile": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "typeId": {
            "type": "string"
          },
          "typeName": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      },
      "Resume": {
        "type": "object",
        "nullable": true,
        "properties": {
          "file_name": {
            "type": "string"
          },
          "file_size": {
            "type": "integer"
          },
          "url": {
            "type": "string"
          },
          "content_type": {
            "type": "string"
          }
        }
      },
      "AiScore": {
        "description": "The candidate's latest AI score (Applicant Insight). Absent when the candidate has never been scored.",
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "processing",
              "completed",
              "failed"
            ]
          },
          "score": {
            "type": "number",
            "minimum": 0,
            "maximum": 10,
            "description": "Overall score from 0 to 10. Present when `status` is `completed`."
          },
          "recommendation": {
            "type": "string",
            "description": "The AI recommendation for the candidate. Present when `status` is `completed`."
          },
          "completed_at": {
            "type": "string",
            "format": "date-time",
            "description": "When scoring completed. Present when `status` is `completed`."
          },
          "reason_code": {
            "type": "string",
            "description": "Why scoring failed, when known. Present only when `status` is `failed`; for example `insufficient_credits` when the company has run out of AI credits."
          }
        }
      },
      "Candidate": {
        "type": "object",
        "properties": {
          "_id": {
            "type": "string"
          },
          "meta_id": {
            "type": "string"
          },
          "address": {
            "type": "string",
            "nullable": true
          },
          "assigned_to": {
            "nullable": true
          },
          "cover_letter": {
            "type": "string",
            "nullable": true
          },
          "creation_date": {
            "type": "string"
          },
          "education": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EducationEntry"
            }
          },
          "email_address": {
            "type": "string",
            "nullable": true
          },
          "followed_by": {},
          "headline": {
            "type": "string",
            "nullable": true
          },
          "initial": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "origin": {
            "type": "string",
            "enum": [
              "applied",
              "sourced",
              "referral"
            ]
          },
          "overall_score": {
            "$ref": "#/components/schemas/OverallScore"
          },
          "phone_number": {
            "type": "string",
            "nullable": true
          },
          "profile_photo_url": {
            "type": "string",
            "nullable": true
          },
          "questionnaire": {
            "nullable": true
          },
          "recruited_by": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/SimpleUser"
              }
            ]
          },
          "referred_by": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/SimpleUser"
              }
            ]
          },
          "sourced_by": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/SimpleUser"
              }
            ]
          },
          "resume": {
            "$ref": "#/components/schemas/Resume"
          },
          "social_profiles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SocialProfile"
            }
          },
          "source": {
            "$ref": "#/components/schemas/Source"
          },
          "stage": {
            "$ref": "#/components/schemas/Stage"
          },
          "summary": {
            "type": "string",
            "nullable": true
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "updated_date": {
            "type": "string"
          },
          "work_history": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkHistoryEntry"
            }
          },
          "custom_attributes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomAttribute"
            }
          },
          "disposition_date": {
            "type": "string",
            "nullable": true
          },
          "disposition_reason": {
            "nullable": true
          },
          "disposition_reasons": {
            "type": "array",
            "items": {},
            "nullable": true
          },
          "entered_stage": {
            "type": "string",
            "format": "date-time",
            "description": "When the candidate entered their current pipeline stage"
          },
          "hired_dates": {
            "type": "array",
            "description": "When the candidate was moved into a Hired stage, oldest first, one entry per hire. Absent if the candidate has never been hired.",
            "items": {
              "type": "string",
              "format": "date-time"
            }
          },
          "bias_status": {
            "type": "string",
            "nullable": true
          },
          "ai_score": {
            "$ref": "#/components/schemas/AiScore"
          }
        }
      },
      "Document": {
        "type": "object",
        "properties": {
          "_id": {
            "type": "string"
          },
          "file_name": {
            "type": "string"
          },
          "file_url": {
            "type": "string"
          },
          "file_size": {
            "type": "integer"
          },
          "creation_date": {
            "type": "string"
          },
          "acting_user": {
            "$ref": "#/components/schemas/SimpleUser"
          }
        }
      },
      "StreamActivityType": {
        "type": "string",
        "description": "The kind of event a `StreamActivity` entry represents. `object` carries a different payload for each value — see `StreamActivityObject`.\n\nWhich types a caller actually receives depends on the permissions of the user the token authenticates as. A user with `View candidate activity` (Administrator and Hiring Manager by default) receives the full set below. Users without it receive only: `candidateMerged`, `candidateAdded`, `candidateAssignedPosted`, `candidateInterviewAdded`, `candidateInterviewCancel`, `candidateMeetingTimesProposed`, `candidatePanelInterviewAdded`, `candidateStatusUpdated`, `candidateMoved`, `companyNotePosted`, `candidateArchived`, plus the two block/unblock types. `candidateSalaryUpdated` additionally requires `View candidate contact details`.\n\nMany types only occur if the company uses the corresponding feature (assessments, e-signature documents, candidate sourcing, LinkedIn sync, Breezy Onboarding). A typical integration encounters fewer than a dozen.",
        "enum": [
          "candidateAdded",
          "candidateStatusUpdated",
          "candidateMoved",
          "candidateMerged",
          "candidateArchived",
          "candidateAssignedPosted",
          "candidateSalaryUpdated",
          "companyNotePosted",
          "candidateInterviewAdded",
          "candidateInterviewCancel",
          "candidatePanelInterviewAdded",
          "candidateMeetingTimesProposed",
          "candidateDocumentAdded",
          "candidateDocumentDeleted",
          "candidateResumeAdded",
          "candidateResumeUpdated",
          "candidateEDocumentCompleted",
          "candidateAssessmentSent",
          "candidateAssessmentCompleted",
          "questionnaireToCandidatePosted",
          "questionnaireResponsePosted",
          "candidateReferrerAdded",
          "candidateReferrerUpdated",
          "candidateReferrerRemoved",
          "candidateSourcingMatched",
          "candidateSourcingReachedOut",
          "candidateSourcingDeclined",
          "candidateSourcingInvited",
          "candidateSourcingImported",
          "linkedInCandidateSync",
          "breezy_onboardingCreateEmployee",
          "companyBlockedCandidate",
          "companyUnblockedCandidate"
        ]
      },
      "StreamActivityBase": {
        "type": "object",
        "description": "Fields common to most stream event payloads. `candidate`, `company`, and `position` are snapshots taken at the time of the event, so they reflect the state then rather than now.",
        "properties": {
          "acting_user": {
            "$ref": "#/components/schemas/SimpleUser"
          },
          "candidate_id": {
            "type": "string"
          },
          "company_id": {
            "type": "string"
          },
          "position_id": {
            "type": "string"
          },
          "candidate": {
            "type": "object",
            "description": "Snapshot of the candidate at the time of the event."
          },
          "company": {
            "type": "object",
            "description": "Snapshot of the company at the time of the event."
          },
          "position": {
            "type": "object",
            "description": "Snapshot of the position at the time of the event."
          }
        }
      },
      "StreamCandidateAdded": {
        "description": "Candidate was created on the position. Carries no fields beyond the common base.",
        "allOf": [
          {
            "$ref": "#/components/schemas/StreamActivityBase"
          }
        ]
      },
      "StreamCandidateStatusUpdated": {
        "description": "Candidate moved between pipeline stages, or their status changed.",
        "allOf": [
          {
            "$ref": "#/components/schemas/StreamActivityBase"
          },
          {
            "type": "object",
            "properties": {
              "stage": {
                "$ref": "#/components/schemas/Stage"
              },
              "stage_was": {
                "$ref": "#/components/schemas/Stage"
              },
              "status": {
                "type": "string"
              },
              "status_was": {
                "type": "string"
              },
              "entered_stage": {
                "type": "string",
                "description": "When the candidate entered the new stage."
              },
              "entered_previous_stage": {
                "type": "string",
                "description": "When the candidate entered the stage they just left."
              }
            }
          }
        ]
      },
      "StreamCandidateMoved": {
        "description": "Candidate was moved to a different position.",
        "allOf": [
          {
            "$ref": "#/components/schemas/StreamActivityBase"
          },
          {
            "type": "object",
            "properties": {
              "position_id_was": {
                "type": "string"
              },
              "position_was": {
                "type": "object",
                "description": "Snapshot of the position the candidate was moved from."
              }
            }
          }
        ]
      },
      "StreamCandidateMerged": {
        "description": "Two or more candidate profiles were merged into one.",
        "allOf": [
          {
            "$ref": "#/components/schemas/StreamActivityBase"
          },
          {
            "type": "object",
            "properties": {
              "position_id_was": {
                "type": "string"
              },
              "position_was": {
                "type": "object"
              },
              "merged_date": {
                "type": "string"
              },
              "merge": {
                "type": "object",
                "properties": {
                  "actingUser": {
                    "$ref": "#/components/schemas/SimpleUser"
                  },
                  "auto_merge": {
                    "type": "boolean"
                  },
                  "deleted_profiles": {
                    "type": "array",
                    "items": {}
                  },
                  "updated_date": {
                    "type": "string"
                  }
                }
              },
              "errors": {
                "type": "array",
                "items": {}
              }
            }
          }
        ]
      },
      "StreamCandidateArchived": {
        "description": "Candidate was archived or restored from the archive.",
        "allOf": [
          {
            "$ref": "#/components/schemas/StreamActivityBase"
          },
          {
            "type": "object",
            "properties": {
              "archived": {
                "type": "boolean",
                "description": "`true` when archived, `false` when restored."
              },
              "archived_by": {
                "$ref": "#/components/schemas/SimpleUser"
              }
            }
          }
        ]
      },
      "StreamCandidateAssigned": {
        "description": "Candidate was assigned to a team member.",
        "allOf": [
          {
            "$ref": "#/components/schemas/StreamActivityBase"
          },
          {
            "type": "object",
            "properties": {
              "member": {
                "$ref": "#/components/schemas/SimpleUser"
              }
            }
          }
        ]
      },
      "StreamCandidateSalaryUpdated": {
        "description": "Candidate's salary expectation was changed. Only visible to callers with `View candidate contact details`.",
        "allOf": [
          {
            "$ref": "#/components/schemas/StreamActivityBase"
          },
          {
            "type": "object",
            "properties": {
              "candidate_meta_id": {
                "type": "string"
              },
              "salary": {
                "$ref": "#/components/schemas/Salary"
              },
              "salary_was": {
                "$ref": "#/components/schemas/Salary"
              }
            }
          }
        ]
      },
      "StreamNotePosted": {
        "description": "An internal note was posted on the candidate.",
        "allOf": [
          {
            "$ref": "#/components/schemas/StreamActivityBase"
          },
          {
            "type": "object",
            "properties": {
              "body": {
                "type": "string",
                "description": "The note text, as HTML from the rich-text editor."
              },
              "attachments": {
                "type": "array",
                "items": {}
              },
              "mentioned_ids": {
                "type": "array",
                "description": "Ids of users @-mentioned in the note.",
                "items": {
                  "type": "string"
                }
              }
            }
          }
        ]
      },
      "StreamInterview": {
        "description": "An interview was scheduled or cancelled.",
        "allOf": [
          {
            "$ref": "#/components/schemas/StreamActivityBase"
          },
          {
            "type": "object",
            "properties": {
              "interview": {
                "type": "object",
                "properties": {
                  "_id": {
                    "type": "string"
                  },
                  "start_time": {
                    "type": "string"
                  },
                  "end_time": {
                    "type": "string"
                  },
                  "duration": {
                    "type": "integer"
                  },
                  "tz_offset": {
                    "type": "integer"
                  },
                  "location": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "video_session_id": {
                    "type": "string",
                    "nullable": true
                  },
                  "created_by": {
                    "type": "string"
                  },
                  "additional_participants": {
                    "type": "array",
                    "items": {}
                  }
                }
              }
            }
          }
        ]
      },
      "StreamPanelInterview": {
        "description": "A panel interview was scheduled.",
        "allOf": [
          {
            "$ref": "#/components/schemas/StreamActivityBase"
          },
          {
            "type": "object",
            "properties": {
              "panel_interview": {
                "type": "object",
                "properties": {
                  "_id": {
                    "type": "string"
                  },
                  "candidate_interview_id": {
                    "type": "string"
                  },
                  "interview_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "num_interviews": {
                    "type": "integer"
                  },
                  "start_time": {
                    "type": "string"
                  },
                  "end_time": {
                    "type": "string"
                  },
                  "participants": {
                    "type": "array",
                    "items": {}
                  },
                  "creation_date": {
                    "type": "string"
                  },
                  "updated_date": {
                    "type": "string"
                  }
                }
              }
            }
          }
        ]
      },
      "StreamMeetingTimesProposed": {
        "description": "Interview times were proposed to the candidate for selection.",
        "allOf": [
          {
            "$ref": "#/components/schemas/StreamActivityBase"
          },
          {
            "type": "object",
            "properties": {
              "proposal": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "location": {
                    "type": "string"
                  },
                  "tz_offset": {
                    "type": "integer"
                  },
                  "organizer": {
                    "$ref": "#/components/schemas/SimpleUser"
                  },
                  "attendees": {
                    "type": "array",
                    "items": {}
                  },
                  "video_session_id": {
                    "type": "string",
                    "nullable": true
                  }
                }
              }
            }
          }
        ]
      },
      "StreamDocument": {
        "description": "A document was attached to or removed from the candidate. Note that this payload is flat — the document fields sit directly on `object` rather than under a nested key.",
        "allOf": [
          {
            "$ref": "#/components/schemas/StreamActivityBase"
          },
          {
            "type": "object",
            "properties": {
              "_id": {
                "type": "string"
              },
              "file_name": {
                "type": "string"
              },
              "file_url": {
                "type": "string"
              },
              "file_size": {
                "type": "integer"
              },
              "creation_date": {
                "type": "string"
              }
            }
          }
        ]
      },
      "StreamResume": {
        "description": "A resume was added to the candidate (`candidateResumeAdded`) or an existing one replaced with a different file (`candidateResumeUpdated`). Fires only for candidates that already existed at the time of the change — a resume arriving with the candidate is covered by `candidateAdded`.",
        "allOf": [
          {
            "$ref": "#/components/schemas/StreamActivityBase"
          },
          {
            "type": "object",
            "properties": {
              "file_name": {
                "type": "string"
              },
              "updated_date": {
                "type": "string"
              }
            }
          }
        ]
      },
      "StreamEDocumentCompleted": {
        "description": "An e-signature document was completed by all signers.",
        "allOf": [
          {
            "$ref": "#/components/schemas/StreamActivityBase"
          },
          {
            "type": "object",
            "properties": {
              "template_id": {
                "type": "string"
              },
              "type": {
                "type": "string"
              },
              "email_type": {
                "type": "string"
              },
              "email_template": {
                "type": "object"
              },
              "signature_template": {
                "type": "object"
              },
              "signatures": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "_id": {
                      "type": "string"
                    },
                    "signer_name": {
                      "type": "string"
                    },
                    "signer_email_address": {
                      "type": "string"
                    },
                    "signer_type": {
                      "type": "string"
                    },
                    "signer_order": {
                      "type": "integer"
                    },
                    "status": {
                      "type": "string"
                    },
                    "signed": {
                      "type": "boolean"
                    },
                    "signed_ip": {
                      "type": "string",
                      "nullable": true
                    },
                    "confirmed": {
                      "type": "boolean"
                    },
                    "last_sent": {
                      "type": "string",
                      "nullable": true
                    },
                    "last_viewed": {
                      "type": "string",
                      "nullable": true
                    },
                    "last_viewed_ip": {
                      "type": "string",
                      "nullable": true
                    },
                    "last_reminded": {
                      "type": "string",
                      "nullable": true
                    },
                    "template": {
                      "type": "string"
                    },
                    "updated_date": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        ]
      },
      "StreamAssessment": {
        "description": "An assessment was sent to the candidate, or a completed result came back.",
        "allOf": [
          {
            "$ref": "#/components/schemas/StreamActivityBase"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string"
              },
              "service_id": {
                "type": "string"
              },
              "service_name": {
                "type": "string"
              },
              "sent_by": {
                "$ref": "#/components/schemas/SimpleUser"
              },
              "creation_date": {
                "type": "string"
              },
              "updated_date": {
                "type": "string"
              },
              "completed_date": {
                "type": "string",
                "description": "Present on `candidateAssessmentCompleted`."
              },
              "assessment": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string"
                  },
                  "score": {
                    "nullable": true
                  },
                  "source": {
                    "type": "string"
                  },
                  "service_id": {
                    "type": "string"
                  },
                  "service_name": {
                    "type": "string"
                  },
                  "provider_logo": {
                    "type": "string",
                    "nullable": true
                  },
                  "provider_verified": {
                    "type": "boolean"
                  }
                }
              }
            }
          }
        ]
      },
      "StreamQuestionnaireSent": {
        "description": "A questionnaire was sent to the candidate. This payload is flat — the questionnaire fields sit directly on `object`.",
        "allOf": [
          {
            "$ref": "#/components/schemas/StreamActivityBase"
          },
          {
            "type": "object",
            "properties": {
              "_id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "sent_by": {
                "$ref": "#/components/schemas/SimpleUser"
              },
              "message_template": {
                "type": "object",
                "nullable": true
              },
              "creation_date": {
                "type": "string"
              },
              "updated_date": {
                "type": "string"
              },
              "questions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "text": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "required": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          }
        ]
      },
      "StreamQuestionnaireResponse": {
        "description": "The candidate submitted a questionnaire response.",
        "allOf": [
          {
            "$ref": "#/components/schemas/StreamActivityBase"
          },
          {
            "type": "object",
            "properties": {
              "questionnaire": {
                "type": "object",
                "properties": {
                  "_id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string"
                  },
                  "sent_by": {
                    "$ref": "#/components/schemas/SimpleUser"
                  },
                  "questions": {
                    "type": "array",
                    "items": {}
                  },
                  "creation_date": {
                    "type": "string"
                  },
                  "updated_date": {
                    "type": "string"
                  }
                }
              }
            }
          }
        ]
      },
      "StreamReferrer": {
        "description": "The candidate's referrer was added, changed, or removed. `referrer` is absent on `candidateReferrerRemoved`; `referrer_was` is absent on `candidateReferrerAdded`.",
        "allOf": [
          {
            "$ref": "#/components/schemas/StreamActivityBase"
          },
          {
            "type": "object",
            "properties": {
              "referrer": {
                "type": "object",
                "properties": {
                  "_id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "email_address": {
                    "type": "string"
                  }
                }
              },
              "referrer_was": {
                "type": "object",
                "properties": {
                  "_id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "email_address": {
                    "type": "string"
                  }
                }
              }
            }
          }
        ]
      },
      "StreamSourcing": {
        "description": "A candidate-sourcing event. `source` appears on `candidateSourcingInvited` and `candidateSourcingImported`; `overall_score` and `recommendation` on `candidateSourcingMatched`.",
        "allOf": [
          {
            "$ref": "#/components/schemas/StreamActivityBase"
          },
          {
            "type": "object",
            "properties": {
              "sourcing_result_id": {
                "type": "string"
              },
              "target_position_id": {
                "type": "string"
              },
              "target_position_name": {
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "source": {
                "type": "string"
              },
              "source_candidate_id": {
                "type": "string"
              },
              "source_position_id": {
                "type": "string"
              },
              "imported_candidate_id": {
                "type": "string"
              },
              "overall_score": {
                "$ref": "#/components/schemas/OverallScore"
              },
              "recommendation": {
                "type": "string"
              }
            }
          }
        ]
      },
      "StreamLinkedInSync": {
        "description": "Result of a LinkedIn candidate sync. This payload does not follow the common base — there is no `acting_user` and no `position_id`.",
        "type": "object",
        "properties": {
          "candidate_id": {
            "type": "string"
          },
          "company": {
            "type": "object"
          },
          "status": {
            "type": "string"
          },
          "errors": {
            "type": "array",
            "items": {}
          }
        }
      },
      "StreamOnboardingCreateEmployee": {
        "description": "The candidate was pushed to Breezy Onboarding as a new employee. This payload does not follow the common base — it carries only the candidate snapshot.",
        "type": "object",
        "properties": {
          "candidate": {
            "type": "object"
          }
        }
      },
      "StreamBlockedCandidate": {
        "description": "A candidate email address was blocked or unblocked for the company. This payload does not follow the common base — it is keyed on email address and has no position context.",
        "type": "object",
        "properties": {
          "acting_user": {
            "$ref": "#/components/schemas/SimpleUser"
          },
          "company_id": {
            "type": "string"
          },
          "candidate_email": {
            "type": "string"
          },
          "candidate_data": {
            "type": "object",
            "description": "Present on `companyUnblockedCandidate`."
          },
          "blocked_candidate": {
            "type": "object",
            "properties": {
              "email": {
                "type": "string"
              },
              "reason": {
                "type": "string"
              },
              "addedBy": {
                "type": "string"
              },
              "dateAdded": {
                "type": "string"
              }
            }
          }
        }
      },
      "StreamActivityObject": {
        "description": "The payload of a stream event. Its shape is determined by the sibling `type` field — select a type below to see the fields it carries.\n\nMost payloads share a common base (`acting_user`, `candidate_id`, `company_id`, `position_id`, plus `candidate`/`company`/`position` snapshots) and add a few fields of their own. Three do not follow that base and are documented separately: `linkedInCandidateSync`, `breezy_onboardingCreateEmployee`, and the block/unblock pair.\n\nTreat this as open-ended: new event types are added over time, so an unrecognized `type` should be skipped rather than treated as an error.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/StreamCandidateAdded"
          },
          {
            "$ref": "#/components/schemas/StreamCandidateStatusUpdated"
          },
          {
            "$ref": "#/components/schemas/StreamCandidateMoved"
          },
          {
            "$ref": "#/components/schemas/StreamCandidateMerged"
          },
          {
            "$ref": "#/components/schemas/StreamCandidateArchived"
          },
          {
            "$ref": "#/components/schemas/StreamCandidateAssigned"
          },
          {
            "$ref": "#/components/schemas/StreamCandidateSalaryUpdated"
          },
          {
            "$ref": "#/components/schemas/StreamNotePosted"
          },
          {
            "$ref": "#/components/schemas/StreamInterview"
          },
          {
            "$ref": "#/components/schemas/StreamPanelInterview"
          },
          {
            "$ref": "#/components/schemas/StreamMeetingTimesProposed"
          },
          {
            "$ref": "#/components/schemas/StreamDocument"
          },
          {
            "$ref": "#/components/schemas/StreamResume"
          },
          {
            "$ref": "#/components/schemas/StreamEDocumentCompleted"
          },
          {
            "$ref": "#/components/schemas/StreamAssessment"
          },
          {
            "$ref": "#/components/schemas/StreamQuestionnaireSent"
          },
          {
            "$ref": "#/components/schemas/StreamQuestionnaireResponse"
          },
          {
            "$ref": "#/components/schemas/StreamReferrer"
          },
          {
            "$ref": "#/components/schemas/StreamSourcing"
          },
          {
            "$ref": "#/components/schemas/StreamLinkedInSync"
          },
          {
            "$ref": "#/components/schemas/StreamOnboardingCreateEmployee"
          },
          {
            "$ref": "#/components/schemas/StreamBlockedCandidate"
          }
        ]
      },
      "StreamActivity": {
        "type": "object",
        "properties": {
          "_id": {
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/StreamActivityType"
          },
          "stream_id": {
            "type": "string",
            "description": "The company id the activity was recorded against."
          },
          "object": {
            "$ref": "#/components/schemas/StreamActivityObject"
          },
          "timestamp": {
            "type": "string"
          },
          "first_of_day": {
            "type": "boolean",
            "description": "Set on the first entry of each calendar day, for rendering date separators. Not meaningful to integrations."
          }
        }
      },
      "GetCandidateConversationItem": {
        "type": "object",
        "properties": {
          "_id": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "object": {
            "type": "object",
            "properties": {
              "body": {
                "type": "string"
              },
              "subject": {
                "type": "string"
              },
              "attachments": {
                "type": "array",
                "items": {}
              },
              "acting_user": {
                "type": "object",
                "properties": {
                  "_id": {
                    "type": "string"
                  },
                  "email_address": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "username": {
                    "type": "string"
                  },
                  "initial": {
                    "type": "string"
                  }
                },
                "required": [
                  "_id",
                  "email_address",
                  "initial",
                  "name",
                  "username"
                ]
              }
            },
            "required": [
              "acting_user",
              "attachments",
              "body",
              "subject"
            ]
          },
          "timestamp": {
            "type": "string"
          },
          "last_message_seen": {
            "type": "string"
          },
          "first_of_day": {
            "type": "boolean"
          },
          "mail": {
            "type": "object",
            "properties": {
              "state": {
                "type": "string"
              }
            },
            "required": [
              "state"
            ]
          },
          "first_activity": {
            "type": "boolean"
          }
        },
        "required": [
          "_id",
          "first_of_day",
          "object",
          "timestamp",
          "type"
        ]
      },
      "GetCandidateQuestionnairesItem": {
        "type": "object",
        "properties": {
          "_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "sections": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "_id": {},
                "questions": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "text": {
                        "type": "string"
                      },
                      "options": {
                        "type": "array",
                        "items": {}
                      },
                      "type": {
                        "type": "object",
                        "properties": {
                          "id": {},
                          "name": {}
                        },
                        "required": [
                          "id",
                          "name"
                        ]
                      },
                      "required": {
                        "type": "boolean"
                      },
                      "_id": {
                        "type": "string"
                      },
                      "move_to_stage_id": {
                        "type": "string"
                      },
                      "has_actions": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "_id",
                      "required",
                      "text",
                      "type"
                    ]
                  }
                },
                "name": {
                  "type": "string"
                }
              },
              "required": [
                "_id",
                "questions"
              ]
            }
          },
          "questions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "text": {
                  "type": "string"
                },
                "options": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "text": {
                        "type": "string"
                      },
                      "enabledActions": {
                        "type": "array",
                        "items": {}
                      }
                    },
                    "required": [
                      "text"
                    ]
                  }
                },
                "type": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name"
                  ]
                },
                "required": {
                  "type": "boolean"
                },
                "_id": {
                  "type": "string"
                },
                "responses": {
                  "type": "array",
                  "items": {
                    "type": "boolean"
                  }
                },
                "move_to_stage_id": {
                  "type": "string"
                },
                "response": {
                  "type": "string"
                },
                "body": {
                  "type": "string"
                },
                "has_actions": {
                  "type": "boolean"
                },
                "questionnaire_id": {
                  "type": "string"
                }
              },
              "required": [
                "_id",
                "required",
                "text",
                "type"
              ]
            }
          },
          "message_template": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string"
              },
              "body": {
                "type": "string"
              }
            },
            "required": [
              "body",
              "type"
            ]
          },
          "options": {
            "type": "object",
            "properties": {
              "move_to": {
                "type": "object",
                "properties": {}
              }
            },
            "required": [
              "move_to"
            ]
          },
          "acting_user": {
            "type": "object",
            "properties": {
              "_id": {
                "type": "string"
              },
              "email_address": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "username": {
                "type": "string"
              },
              "initial": {
                "type": "string"
              }
            },
            "required": [
              "_id",
              "initial",
              "name"
            ]
          },
          "questionnaire_id": {
            "type": "string"
          },
          "creation_date": {
            "type": "string"
          },
          "updated_date": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "required": [
          "_id",
          "creation_date",
          "name",
          "questionnaire_id",
          "status",
          "updated_date"
        ]
      }
    }
  },
  "paths": {
    "/company/{companyId}/position/{positionId}/candidates/bulk": {
      "post": {
        "operationId": "getCandidatesBulk",
        "summary": "/company/{id}/position/{id}/candidates/bulk",
        "tags": [
          "Candidates"
        ],
        "parameters": [
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "positionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "description": "Reads up to 50 candidates on a position in one request, each with any of their questionnaires, documents, scorecards, conversation, custom fields and activity stream. This is a read: nothing is changed. Use it in place of one `GET /candidate/{candidateId}` call plus one call per extra for each candidate.\n\nSend exactly one of:\n- `candidate_ids`: 1 to 50 candidate ids on this position. Ids that aren't on the position are listed in `not_found`.\n- `stage_id`: every candidate currently in that pipeline stage, most recently updated first, one page at a time with `page` (0-based) and `page_size` (up to 50). Use the stage `id` values from `GET /company/{companyId}/pipeline/{pipelineId}`. Read the next page until a page returns fewer than `page_size` candidates.\n\nEach candidate has the same fields as `GET /candidate/{candidateId}`, and each extra has the same fields as its own endpoint, with these limits per candidate: 10 questionnaires, 20 documents, the first page of 50 conversation messages and the first page of 50 stream events.\n\nThe same permissions apply as when each candidate is read on its own. A candidate the caller can't see (in a restricted stage, or private) is listed in `denied` with the reason instead of failing the request. An extra the caller isn't allowed to read comes back as an empty array, and without permission to see the team's scorecards only the caller's own are returned.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "candidate_ids": {
                    "type": "array",
                    "description": "Candidate ids on this position. Send this or `stage_id`, not both.",
                    "minItems": 1,
                    "maxItems": 50,
                    "items": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9_-]{1,64}$"
                    }
                  },
                  "stage_id": {
                    "type": "string",
                    "description": "Pipeline stage id. Built-in stages are strings such as `applied` or `hired`, custom stages are numeric ids sent as strings. Send this or `candidate_ids`, not both.",
                    "pattern": "^[A-Za-z0-9_-]{1,64}$"
                  },
                  "page": {
                    "type": "integer",
                    "description": "With `stage_id`, the page to return, counting from 0.",
                    "minimum": 0,
                    "default": 0
                  },
                  "page_size": {
                    "type": "integer",
                    "description": "With `stage_id`, candidates per page.",
                    "minimum": 1,
                    "maximum": 50,
                    "default": 50
                  },
                  "include": {
                    "type": "array",
                    "description": "Extras to return with each candidate. Omit for the candidate records only.",
                    "items": {
                      "type": "string",
                      "enum": [
                        "questionnaires",
                        "documents",
                        "scorecards",
                        "conversation",
                        "custom_fields",
                        "stream"
                      ]
                    }
                  }
                }
              },
              "example": {
                "stage_id": "interviewing",
                "page": 0,
                "page_size": 50,
                "include": [
                  "questionnaires",
                  "scorecards"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The candidates, plus any the caller can't see or that weren't found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "candidates": {
                      "type": "array",
                      "items": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/Candidate"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "questionnaires": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/components/schemas/GetCandidateQuestionnairesItem"
                                }
                              },
                              "documents": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/components/schemas/Document"
                                }
                              },
                              "scorecards": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "_id": {
                                      "type": "string"
                                    },
                                    "scorecard": {
                                      "type": "object",
                                      "properties": {
                                        "_id": {
                                          "type": "string"
                                        },
                                        "name": {
                                          "type": "string"
                                        },
                                        "score": {
                                          "type": "string",
                                          "description": "One of `very_good`, `good`, `neutral`, `poor` or `very_poor`"
                                        },
                                        "sections": {
                                          "type": "array",
                                          "items": {
                                            "type": "object"
                                          }
                                        },
                                        "updated_date": {
                                          "type": "string",
                                          "format": "date-time"
                                        },
                                        "note": {
                                          "type": "string"
                                        }
                                      }
                                    },
                                    "acting_user": {
                                      "$ref": "#/components/schemas/SimpleUser"
                                    }
                                  }
                                }
                              },
                              "conversation": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/components/schemas/GetCandidateConversationItem"
                                }
                              },
                              "custom_fields": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/components/schemas/CandidateCustomField"
                                }
                              },
                              "stream": {
                                "type": "array",
                                "items": {
                                  "$ref": "#/components/schemas/StreamActivity"
                                }
                              }
                            }
                          }
                        ]
                      }
                    },
                    "denied": {
                      "type": "array",
                      "description": "Candidates the caller isn't allowed to see",
                      "items": {
                        "type": "object",
                        "properties": {
                          "_id": {
                            "type": "string"
                          },
                          "reason": {
                            "type": "string",
                            "enum": [
                              "restricted_stage",
                              "private"
                            ]
                          }
                        }
                      }
                    },
                    "not_found": {
                      "type": "array",
                      "description": "With `candidate_ids` only, the ids not found on this position",
                      "items": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request, such as both or neither of `candidate_ids` and `stage_id`, more than 50 ids or an unknown `include` value; `error.type` is `getCandidatesBulkError`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "The caller isn't allowed to view candidates on this position",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  }
}
````