Overview
ZipKit uses Bearer token authentication for all API requests. Access tokens are created within your project dashboard and provide secure access to the API.Creating an Access Token
1
Navigate to Access Tokens
Log in to your ZipKit dashboard and select your project. Go to the “Access Tokens” section.
2
Create a new token
- Click the “Create Token” button
- Click “Create”
3
Copy your token
Important: Copy the token immediately! For security reasons, you won’t be able to see it again after leaving this page.If you lose a token, you’ll need to create a new one and update any applications using the old token.
Using Your Access Token
Include your access token in theAuthorization header of every API request using the Bearer scheme:
Example Request
Best Practices
Rotate tokens regularly
Rotate tokens regularly
For enhanced security, rotate your access tokens periodically:
- Create a new token
- Update your application to use the new token
- Verify the new token works
- Delete the old token
Store tokens securely
Store tokens securely
Never commit tokens to version control or expose them in client-side code.✅ Do:
- Store tokens in environment variables
- Use secret management services (AWS Secrets Manager, HashiCorp Vault, etc.)
- Keep tokens in secure configuration files excluded from version control
- Hardcode tokens in your application code
- Commit tokens to Git repositories
- Share tokens in plain text via email or messaging apps
- Include tokens in client-side JavaScript
Limit token distribution
Limit token distribution
Only create as many tokens as you need, and keep track of where each token is used. This makes it easier to audit access and revoke tokens when necessary.
Monitor token usage
Monitor token usage
Keep track of which tokens are actively being used. If you see unexpected API calls, you may need to rotate your tokens.
Managing Tokens
Listing Tokens
You can view all access tokens for a project in the dashboard. The token list shows:- Masked token (e.g.,
1icNY**************Ida8- showing first and last few characters) - Creation date
Revoking Tokens
To revoke a token:- Go to the “Access Tokens” section
- Find the token you want to revoke
- Click “Delete”
- Confirm the deletion
Authentication Errors
All authentication errors return a consistent JSON format:401 Unauthorized
Missing Authorization Header
Returned when noAuthorization header is provided.
Invalid API Key
Returned when the token is invalid, revoked, or incorrectly formatted.Authorization header with a valid token using the Bearer scheme.
403 Forbidden
You’ll receive a403 Forbidden response if:
- You’re trying to access a resource from a different project
- The token doesn’t have permission for the requested operation
Security Considerations
Token Security: Access tokens provide full access to your project’s API. Treat them like passwords:
- Never share tokens publicly
- Revoke tokens immediately if compromised
- Use HTTPS for all API requests (never HTTP)
- Implement token rotation policies for production systems