# Get enrollment config

This endpoint fetches the enrollment config for the company.

Endpoint: GET /v2/companies/{companyId}/enrollment-config
Version: v2
Security: Bearer

## Security:

  - `Bearer` (unknown)
    http bearer

## Path parameters:

  - `companyId` (string, required)
    Identifier for company.

## Response 200:

  - `200` (unknown)
    OK

## Response 200 fields (application/json):

  - `termsAndConditions` (string, required)
    Deprecated: Use termsAndConditionsList instead. Link to terms and conditions.
    Example: https://www.spotnana.com/terms/

  - `termsAndConditionsList` (array)
    List of terms and conditions. Each item is rich text that renders a bullet point with text and link.
    Example: ["I agree to the <a href=\"https://www.spotnana.com/terms/\">Terms of Service</a>","I agree to the <a href=\"https://www.spotnana.com/privacy/\">Privacy Policy</a>"]

  - `templateSettings` (object)
    Template settings for enrollment emails.

  - `templateSettings.applicationReceivedTemplate` (string)
    Template ID for application received emails.

  - `templateSettings.applicationRejectedTemplate` (string)
    Template ID for application rejected emails.

  - `templateSettings.applicationApprovedTemplate` (string)
    Template ID for application approved emails.

  - `templateSettings.applicationAlreadyOnFileTemplate` (string)
    Template ID for the email sent when a submission matches the company's existing application. Falls back to the application received template when unset.
    Example: SELF_ENROLLMENT_APPLICATION_ALREADY_ON_FILE

  - `templateSettings.applicationAccountExistsTemplate` (string)
    Template ID for the email sent when the applicant's email already has an account under the TMC. Falls back to the already-on-file, then the application received template when unset.
    Example: SELF_ENROLLMENT_APPLICATION_ACCOUNT_EXISTS

  - `industryDropdownOptions` (array)
    Dropdown options for company industry selection.

  - `skipOfacComplianceCheck` (boolean)
    Skip OFAC compliance check during enrollment.

  - `registrarLoginActions` (array)
    Login action types assigned to users created via enrollment.

  - `companySpecifiedAttributeConfigs` (array)
    Configuration for company-specified attributes on the enrollment form.

  - `companySpecifiedAttributeConfigs.name` (string, required)
    The attribute name.

  - `companySpecifiedAttributeConfigs.isHidden` (boolean)
    Whether this attribute should be hidden from the enrollment form UI.

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 401 fields (application/json):

  - `debugIdentifier` (string)
    Link to debug the error internally.

  - `errorMessages` (array)

  - `errorMessages.errorCode` (string)
    Error code to identify the specific errors.

  - `errorMessages.message` (string)
    Message containing details of error.

  - `errorMessages.errorParameters` (array)
    Error message parameters.

  - `errorMessages.errorParameters.name` (string)
    Parameter name

  - `errorMessages.errorParameters.value` (string)
    Parameter value

  - `errorMessages.errorDetail` (string)
    More details about the error.

## Response 403:

  - `403` (unknown)
    Forbidden

## Response 403 fields (application/json):

  - `debugIdentifier` (string)
    Link to debug the error internally.

  - `errorMessages` (array)

  - `errorMessages.errorCode` (string)
    Error code to identify the specific errors.

  - `errorMessages.message` (string)
    Message containing details of error.

  - `errorMessages.errorParameters` (array)
    Error message parameters.

  - `errorMessages.errorParameters.name` (string)
    Parameter name

  - `errorMessages.errorParameters.value` (string)
    Parameter value

  - `errorMessages.errorDetail` (string)
    More details about the error.

## Response 404:

  - `404` (unknown)
    The specified resource was not found.

## Response 404 fields (application/json):

  - `debugIdentifier` (string)
    Link to debug the error internally.

  - `errorMessages` (array)

  - `errorMessages.errorCode` (string)
    Error code to identify the specific errors.

  - `errorMessages.message` (string)
    Message containing details of error.

  - `errorMessages.errorParameters` (array)
    Error message parameters.

  - `errorMessages.errorParameters.name` (string)
    Parameter name

  - `errorMessages.errorParameters.value` (string)
    Parameter value

  - `errorMessages.errorDetail` (string)
    More details about the error.

