> 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

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 following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `build a script that syncs our docs to a CMS` lets GitBook tailor the answer to that use case.

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.
