Extend the life of an API token

How can I extend the life of an API token? I’m using the REST API to export indicators with Python. I get a token and immediately request the export. I have quite a few indicators, so by the time it starts sending the JSON, the life of the token has expired and I get an “Authentication Failed” message. Thanks!