> For the complete documentation index, see [llms.txt](https://docs.pptxbuilder.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pptxbuilder.com/v1/examples/api-token.md).

# API Token

## Requirements

You will need two things in order to get your token.&#x20;

* Account credentials
* Company key

#### Example Python

Bellow is an example on how to use them to get your API Token.

```python
import requests

url = 'https://api.pptxbuilder.com/api/auth/token'

body = json.dumps({'key': '<your-company-key>'})
headers = {'Content-Type': 'application/json'}

response = requests.post(url, data=body, headers=headers,
                        auth=('<username>', '<password>'))

token = response.headers['Authentication-Token']
content = response.content
```

{% hint style="info" %}
&#x20;Your API token is returned in the Headers.

`"Authentication-Token" : "<your-token>"`
{% endhint %}

If you need more detailed information please take a look at the API Reference for this endpoint:

{% content-ref url="/pages/-MHgAVck3qmKPvZ513\_j" %}
[Authentication](/v1/api-reference/authentication.md)
{% endcontent-ref %}
