# Create a new Candidate

Creates a new Candidate resource.
### Required attributes
The Candidate resource’s required attributes vary depending on its intended use. If this resource is to be used in conjunction with the Invitations API (in which the invitation apply form collects the Candidate's personal information), the only strictly required Candidate attribute is `email`.
If this resource is to be used to generate any other report type, other personal information is also required.
Attributes required to generate a Report include:
- `first_name`
- `middle_name` or `no_middle_name`
- `last_name`
- `dob`

Attributes required to generate a Report with a criminal check screening:
- `ssn`
- `zipcode`

Attributes required to generate a report with a Motor Vehicle Record (MVR) screening:
- `driver_license_number`
- `driver_license_state`

See [Driver License validation](/apis/reference#driver-license-validation) in the Reference section for a list of valid input by state.
Attributes recommended to generate a report with an Identity Document Verification screening:
- `phone` (mobile phone number)

Validation for these attributes is performed when requesting a Report, as the requirements depend on the Package.
Checkr's product incorporates SSN field controls designed to not accept SSNs with the following characteristics:
- SSNs without exactly 9 numeric characters
- SSNs that start with 666 (666-34-3768)
- SSNs that start with 9 (967-65-4325)
- SSNs that are a single digit (111-11-1111)
- SSNs that are sequential digits (123-45-6789)

Endpoint: POST /candidates
Version: v1
Security: basic_auth

## Request fields (application/json):

  - `first_name` (string)
    Candidate’s first name.
    Example: John

  - `middle_name` (string)
    Candidate’s middle name. This field is required if `no_middle_name` is `false`.
    Example: Alfred

  - `no_middle_name` (boolean)
    Required if no `middle_name` is provided. `true` if the candidate has no middle name.

  - `last_name` (string)
    Candidate’s last name.
    Example: Smith

  - `mother_maiden_name` (string)
    Candidate’s mother’s maiden name.
    Example: Jones

  - `email` (string, required)
    Candidate’s email address.
    Example: john.smith@gmail.com

  - `phone` (string)
    Candidate’s phone number.
    Example: 5555555555

  - `zipcode` (string)
    Candidate’s 5-digit zip code.
    Example: 90401

  - `dob` (string)
    Candidate’s date of birth.
    Example: 1970-01-22

  - `ssn` (string)
    Candidate’s Social Security Number. This value will be redacted in all return calls, except for the last four digits.
    Example: XXX-XX-4645

  - `driver_license_number` (string)
    Candidate’s driver license number.
    Example: F2111655

  - `driver_license_state` (string)
    Candidate’s driver license state of issue.
Format: `ISO 3166-2:US`.
    Example: CA

  - `previous_driver_license_number` (string)
    Candidate’s previous driver license number.
    Example: F1501739

  - `previous_driver_license_state` (string)
    State that issued the candidate’s previous driver license.
Format: `ISO 3166-2:US`.
    Example: MD

  - `copy_requested` (boolean)
    If `true`, the candidate has asked to receive a copy of their report.

  - `postal_address` (object)
    The candidate postal address is the address Checkr will use to send postal mail to the candidate. Each candidate can be associated with only one postal address.
    Example: {"name":"John Alfred Smith","street":"123 Main Street","street2":"APT A","city":"San Francisco","state":"CA","zipcode":"94108"}

  - `custom_id` (string)
    Client-assigned unique ID for the Candidate. Can be used to map Checkr Candidate IDs to your internal tracking system, and to search for Candidates through both the Dashboard and the API.
    Example: HRIS-27

  - `geo_ids` (array)
    Array of Geo IDs.

  - `metadata` (object)
    Up to 50 customer-defined key-value pairs. Use this parameter to store additional information on your candidate. For example: Use the key to map candidates to `job_req_id`, `application_id`, or `branch_id`. Keys must be 40 characters or less. Values must be 500 characters or less.
For example: { "job_req_id": "12345" }

  - `work_locations` (array)
    Required for non-US candidates.
Array of locations described using country, state, and city. When country is not specified defaults to US. State is required for US candidates. Country is required for non-US candidates.

  - `work_locations.country` (string)
    The country in ISO-3166 alpha-2 format.
    Example: US

  - `work_locations.state` (string, required)
    The two letter state code.
    Example: CA

  - `work_locations.city` (string)
    Name of the city
    Example: San Francisco

## Response 201 fields (application/json):

  - `id` (string)
    ID of the resource.
    Example: e44aa283528e6fde7d542194

  - `object` (string)
    Enum: "candidate"

  - `uri` (string)
    URI of the resource.
    Example: /v1/candidates/e44aa283528e6fde7d542194

  - `first_name` (string)
    Candidate’s first name.
    Example: John

  - `middle_name` (string)
    Candidate’s middle name. This field is required if `no_middle_name` is `false`.
    Example: Alfred

  - `no_middle_name` (boolean)
    Required if no `middle_name` is provided. `true` if the candidate has no middle name.

  - `last_name` (string)
    Candidate’s last name.
    Example: Smith

  - `mother_maiden_name` (string)
    Candidate’s mother’s maiden name.
    Example: Jones

  - `email` (string)
    Candidate’s email address.
    Example: john.smith@gmail.com

  - `phone` (string)
    Candidate’s phone number.
    Example: 5555555555

  - `zipcode` (string)
    Candidate’s 5-digit zip code.
    Example: 90401

  - `dob` (string)
    Candidate’s date of birth.
    Example: 1970-01-22

  - `ssn` (string)
    Candidate’s Social Security Number. This value will be redacted in all return calls, except for the last four digits.
    Example: XXX-XX-4645

  - `driver_license_number` (string)
    Candidate’s driver license number.
    Example: F2111655

  - `driver_license_state` (string)
    Candidate’s driver license state of issue.
Format: `ISO 3166-2:US`.
    Example: CA

  - `previous_driver_license_number` (string)
    Candidate’s previous driver license number.
    Example: F1501739

  - `previous_driver_license_state` (string)
    State that issued the candidate’s previous driver license.
Format: `ISO 3166-2:US`.
    Example: MD

  - `copy_requested` (boolean)
    If `true`, the candidate has asked to receive a copy of their report.

  - `custom_id` (string)
    Client-assigned unique ID for the Candidate. Can be used to map Checkr Candidate IDs to your internal tracking system, and to search for Candidates through both the Dashboard and the API.

  - `report_ids` (array)
    Array of Report IDs.

  - `geo_ids` (array)
    Array of Geo IDs.

  - `adjudication` (string)
    The adjudication for the Candidate’s most recently created Report.
    Enum: "engaged", "pre_adverse_action", "post_adverse_action"

  - `postal_address` (object)
    Candidate's postal address.
    Example: {"name":"John Alfred Smith","street":"123 Main Street","street2":"APT A","city":"San Francisco","state":"CA","zipcode":"94108"}

  - `metadata` (object)
    Up to 50 customer-defined key-value pairs. Use this parameter to store additional information on your candidate. For example: Use the key to map candidates to `job_req_id`, `application_id`, or `branch_id`. Keys must be 40 characters or less. Values must be 500 characters or less.
For example: { "job_req_id": "12345" }

## Response 400 fields (application/json):

  - `error` (string)
    Example: Dl number 'F211165' does not match the license number format in CA

## Response 401 fields (application/json):

  - `error` (string)
    Example: Bad authentication error

## Response 403 fields (application/json):

  - `error` (string)
    Example: You do not have permission to access the requested resource

