> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hopae.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Enable Provider

> Enable or disable a provider for activation.

Enables or disables a provider and returns the next required activation step.

## Request

<ParamField header="Authorization" type="string" required>
  `Bearer <API_KEY>` from Console > Developers > Workspace API Keys.
</ParamField>

<ParamField header="Content-Type" type="string">
  `application/json`
</ParamField>

### Path parameters

<ParamField path="client_id" type="string" required>
  Client identifier of the app.
</ParamField>

<ParamField path="provider_id" type="string" required>
  Provider identifier (e.g., `smartid`, `ftn`, `mitid`).
</ParamField>

### Request body

<ParamField body="enabled" type="boolean" required>
  `true` to enable the provider, `false` to disable it.
</ParamField>

## Response

<ResponseField name="providerId" type="string">
  The provider that was updated.
</ResponseField>

<ResponseField name="enabled" type="boolean">
  Whether the provider is now enabled.
</ResponseField>

<ResponseField name="currentStep" type="string">
  The next incomplete step: `enable`, `activation-form`, `upload`, `api-key`, or `activated`.
  Returns `enable` when the provider is turned off.

  Use this value to determine what to do next — for example, if `currentStep` is `activation-form`, proceed to [Submit Activation Form](/api-reference/workspace/activation/submit-activation-form), or if it is `upload`, proceed to [Upload Activation Documents](/api-reference/workspace/activation/upload-documents).
</ResponseField>

<RequestExample>
  ```bash theme={null}
  curl -X PATCH \
    -H "Authorization: Bearer sk_workspace_test_..." \
    -H "Content-Type: application/json" \
    -d '{"enabled": true}' \
    "https://sandbox.api.hopae.com/connect/v1/apps/abc123/providers/spid-ig/activation"
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "providerId": "spid-ig",
    "enabled": true,
    "currentStep": "activation-form"
  }
  ```
</ResponseExample>
