Authentication
You'll need to authenticate your requests to access any of the Apize API endpoints. In this guide, we'll look at how authentication works.
API Token Authentication
To authenticate with any of the Apize APIs, you need to use an API token. You can create an API token on the Apize dashboard under Account » API Tokens. Here's how to add the token to the request header using cURL:
Example request with bearer token
curl https://api.apize.dev/solutions/text/v1/summarize \
-H "Authorization: Bearer {token}"
Keep your API token safe and secure! It's essentially a password to your account, and anyone who has it will be able to send API requests on your behalf.
If you suspect your API token has been compromised, you should delete your token in the Apize dashboard. Tokens become inactive immediately when they are deleted.
Using an SDK
If you use one of our official SDKs, you won't have to worry about any of the above — create an API token in the Apize dashboard under Account » API Tokens, and the client library will take care of the rest.