# Token

## HTTP Header&#x20;

In the previous post, a Bearer Token is obtained after authenticating against the Login endpoint. To make any call, the Authorization value must be added to the Headers of the REST call. It is done as follows

**Key header:** Authorization\
**Value header:** Bearer + token (sin comillas)

Example:

```
Authorization: Bearer V9e78myG5kPq_Kp8TAUhnJOnVvZEQ6rWS7IFbCD9dkxReYUSe_m1Sn5xjq2KF-XJhTIlQWvF9GIndhtDjx7WQr4CzYye1KLTNkJevRPNk2HR9cEULifFArxez8kA4evkRDke-4a3Gekdb_sDcQZXr6X1D4C7MeqyNAT0LjvqgLR-dFXdbNQrBkvIX_I6hsPzEAR0mjcxWRawVMfcq97vpPUAW42cZJD-AJbZdE9KVwUYgIhgO2M2IBZLrctLvl2xjx3OrQy9-Y_d---wUUDoWw
```

{% hint style="warning" %}
&#x20;All the API's request must need this header
{% endhint %}

Example cURL:

```php
curl --header "Authorization: Bearer  V9e78myG5kPq_Kp8TAUhnJOnVvZEQ6rWS7IFbCD9dkxReYUSe_m4Sn5xjq2KF-XJhTIlQWvF9GIndhtDjx7WQr4CzYye1KLTNkJevRPNk2HR9cEULifFArxez8kA4evkRDke-4a3Gekdb_sDcQZXr6X1D4C7MeqyNAT0LjvqgLR-dFXdbNQrBkvIX_I6hsPzEAR0mjcxWRawVMfcq97vpPUAW42cZJD-AJbZdE9KVwUYgIhgO2M2IBZLrctLvl2xjx3OrQy9-Y_d---wUUDoWw"  https://ventiapi.azurewebsites.net/api/account/userdata
```


---

# 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://docs.ventiapp.mx/ventiapp/english-api/developers/api/uso-de-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.
