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

# Login

> Authenticate a user and retrieve an ID token

# Login

Authenticate a user and retrieve an ID token.

## API Request

<ParamField path="username" type="string" required>
  The username of the user
</ParamField>

<ParamField path="password" type="string" required>
  The password of the user
</ParamField>

## Response

<ResponseField name="id_token" type="string">
  The ID token for the authenticated session
</ResponseField>

<RequestExample>
  ```bash Request theme={null}
  curl --request POST \
    --url 'https://prior-auth-api.claritycare.ai.claritycare.ai/v1/auth/login' \
    --header 'Content-Type: application/json' \
    --data '{
      "username": "your_username",
      "password": "your_password"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "id_token": "eyJraWQiOiJrM1..."
  }
  ```
</ResponseExample>
