> 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/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 using [requests](https://requests.readthedocs.io/en/v3.0.0/) library.

```python
import requests
import json

key = "<YOUR_KEY>"
user = "<YOUR_USER>"
passwd = "<YOUR_PASSWORD>"

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

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

response = requests.post(url, data=body, headers=headers,
                        auth=(user, passwd))

if response.status_code != 200:
    response_msg = response.json()
    print(response_msg['error'])
else:
    token = response.headers['Authentication-Token']
    content = response.content
    print(token)
```

{% 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](/api-reference/authentication.md)
{% endcontent-ref %}
