← All docs

API Authentication

This covers authentication for Final Parsec's REST API, used for scripts, CI pipelines, and other programmatic access. It's unrelated to signing in on the website.

Include the API token for your user account in the authorization header when making requests. You can find this token in the "API Token" section of the Edit user account page.

Here's how to add the token to the request header using cURL:

Example request with bearer token

curl https://www.finalparsec.com/api/games \
  -H "Authorization: Token token={token}"

A token identifies your account. It does not by itself grant access to every endpoint — some are restricted, including the Games API, and those return a 403 for accounts that have not been granted access. Email support@finalparsec.com if you need access to one of them.

Tokens allow for actions to be performed on your behalf. Keep them private and do not publish them publicly.

You can regenerate your token if you suspect it has been compromised.

Only one token for your account is valid at a time.