Authentication
The Snapbooks API uses Bearer token authentication. To authenticate your requests, you need to include an Authorization
header with a valid access token.
Getting an Access Token
- First, create a user account at Snapbooks
- Once logged in, go to your account settings to generate an API token
- Store this token securely - it will be used for all API requests
Using the Token
Include the token in the Authorization header of your requests:
Authorization: Bearer your-token-here
Example request:
curl -X GET \
https://api.snapbooks.no/snapbooks/api/v2/users/me \
-H 'Authorization: Bearer your-token-here'
Token Expiration
Access tokens are valid for 24 hours. After expiration, you’ll need to generate a new token from your account settings.
Security Considerations
- Never share your access token
- Store tokens securely
- Rotate tokens regularly
- Use HTTPS for all API requests