> For the complete documentation index, see [llms.txt](https://anuvaad.sunbird.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://anuvaad.sunbird.org/legacy/integration/login-and-auth-token.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
