Authentication
You'll need to authenticate your requests to access any of the endpoints in the FastPDF API. In this guide, we'll look at how authentication works. FastPDF offers a single way to authenticate your API requests: token authentication.
Validating your token
When establishing a connection to all FastPDF API endpoints, you will need your access token — you will find it in the FastPDF profile under API settings. Here's how to add the token to the request header using cURL:
Required attributes
- Name
token
- Type
- string
- Description
Your FastPDF service API token.
Request
curl -X GET https://data.fastpdfservice.com/v1/token \
-H "Authorization: Bearer {token}"
The above command should display Valid token
in your terminal, or return True
.
Always keep your token safe and reset it if you suspect it has been compromised.
Using an SDK
If you use one of our official SDKs, you won't have to worry about any of the above — fetch your access token from the FastPDF profile under API settings, and the client library will take care of the rest.