# Get onboarding URL for an employee

Endpoint: GET /api/v1/employees/{employee_id}/onboarding
Version: 0.0.1
Security: form_session, user_session, component_session, component_token, service_token, api_token

## Security:

  - `form_session` (unknown)
    http bearer Onboarded form session token

  - `user_session` (unknown)
    apiKey in cookie __session

  - `component_session` (unknown)
    apiKey in cookie __component

  - `component_token` (unknown)
    apiKey in header x-component-auth-token

  - `service_token` (unknown)
    http bearer Onboarded service access token

  - `api_token` (unknown)
    http bearer Onboarded API token

## Path parameters:

  - `employee_id` (string, required)

## Query parameters:

  - `expired_at` (string)
    Link expiry, in the future and at most 90 days away. Defaults to 30 days.

  - `assignee_type` (string)
    Type of assignee for onboarding tasks. Defaults to "employee".

  - `placement_id` (string)
    Scopes the link to a single placement: the candidate sees only that placement's tasks.

  - `task_ids` (string)

  - `auto_sequence` (boolean)
    This field should only be set to true when `task_ids` is provided. Tasks will be automatically sorted to satisfy their form stages' sequence.

  - `locale` (string)
    Locale code (e.g. en, es, fr). If not provided, the language will be selected automatically based on candidate browser language setting and form language availability.

  - `redirect_to` (string)
    Redirect to URL to send the user after onboarding is complete

  - `landing_page` (string)
    Where the link opens. `onboarding_flow` (the default) opens the onboarding form; `candidate_portal` opens the candidate portal, which lists all of the employee's tasks. `candidate_portal` is only allowed when `assignee_type` is `employee`, when `redirect_to` is not set, and for an organization that has the candidate portal enabled.

  - `active_theme_id` (string)
    Custom theme for the onboarding form

  - `otp_required` (boolean)
    Whether OTP verification is required before accessing the onboarding form. Only allowed when `assignee_type` is `employee`. The account requirement overrides false for employee-assignee links.

  - `otp_methods` (string)
    Comma-separated list of allowed OTP delivery methods (sms, email). When OTP is required and methods are omitted, available methods are inferred from the employee contact details.

  - `user_auth_session_required` (boolean)
    When true, whoever opens this link must sign in to Onboarded before accessing the onboarding form. Only allowed when `assignee_type` is `employer`. The person must have an Onboarded user with edit permission on the link's tasks. Sign-in can add friction when the link is rendered in an iframe, especially in Safari.

## Response 200:

  - `200` (unknown)
    Success

## Response 200 fields (application/json):

  - `url` (string, required)

## Response 400:

  - `400` (unknown)
    The request did not match the expected schema

## Response 400 fields (application/json):

  - `issues` (array, required)

  - `issues._tag` (string, required)
    The tag identifying the type of parse issue
    Enum: "Pointer", "Unexpected", "Missing", "Composite", "Refinement", "Transformation", "Type", "Forbidden"

  - `issues.path` (array, required)
    The path to the property where the issue occurred

  - `issues.path._tag` (string, required)
    Enum: "symbol"

  - `issues.path.key` (string, required)

  - `issues.message` (string, required)
    A descriptive message explaining the issue

  - `message` (string, required)

  - `_tag` (string, required)
    Enum: "HttpApiDecodeError"

  - `_tag` (string, required)
    Enum: "BadRequestError"

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 401 fields (application/json):

  - `message` (string, required)

  - `_tag` (string, required)
    Enum: "Unauthorized"

## Response 403:

  - `403` (unknown)
    Forbidden

## Response 403 fields (application/json):

  - `message` (string, required)

  - `_tag` (string, required)
    Enum: "Forbidden"

  - `_tag` (string, required)
    Enum: "OrganizationDeactivatedError"

## Response 404:

  - `404` (unknown)
    ResourceNotFoundError

## Response 404 fields (application/json):

  - `message` (string, required)

  - `_tag` (string, required)
    Enum: "ResourceNotFoundError"

