Authentication
How to authenticate with the Service Area WIZARD API using secret Bearer tokens.
Authentication
All API requests are authenticated with a secret token sent as a Bearer token.
Creating a token
- Log in to your dashboard.
- Go to Developer API and click New token.
- Give it a name (e.g. "Booking system") and copy the token. It starts with
saw_.
The token is only shown once. If you lose it, revoke it and create a new one.
Using your token
Send it in the Authorization header of every request:
Authorization: Bearer saw_your_secret_token
curl -X POST https://serviceareawizard.com/api/v1/check \
-H "Authorization: Bearer saw_your_secret_token" \
-H "Content-Type: application/json" \
-d '{ "destination": "EC1A 1BB" }'
Keep your token secret. Only use it from your server, never in browser JavaScript or a public repository. For checks in the browser, use the embed code and its public site key instead.