# Login and auth token

Before making an API call, the application should call this API first to receive authorization tokens. Once an application has valid token the same can be used to make all subsequent calls, please note token can expire and hence it is good practice to validate the token.

| API endpoint                | Description                                 | API contracts                                                                                                                                                                                        |
| --------------------------- | ------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **/**&#x76;1/users/login    | To login the user. User email and password. | [ /v1/users/login contract](https://raw.githubusercontent.com/project-anuvaad/anuvaad/user-management_feature/anuvaad-api/anuvaad-user-management/user-management/docs/ums_contract.yaml)            |
| /v1/users/auth-token-search | To check validity of the token              | /[v1/users/auth-token-search contract](https://raw.githubusercontent.com/project-anuvaad/anuvaad/user-management_feature/anuvaad-api/anuvaad-user-management/user-management/docs/ums_contract.yaml) |
|                             |                                             |                                                                                                                                                                                                      |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://anuvaad.sunbird.org/legacy/integration/login-and-auth-token.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
