Authentication
The Instafill API uses Bearer tokens to authenticate requests.
Your tokens carry many privileges, so be sure to keep them secure! Do not share your tokens in publicly accessible areas such as GitHub, client-side code, and so forth.
How to authenticate
- Obtain your token from the Settings → API Keys page in the dashboard.
- For each request, include this HTTP header:
Authorization: Bearer <YOUR_SECRET_TOKEN>
- All API requests must be made over HTTPS.
- Calls over plain HTTP will fail.
- Requests without a valid token will return 401 Unauthorized.
You can create, rotate, and revoke your tokens at https://instafill.ai/settings/api.