Create API Token
API tokens authenticate your SDK requests to the Stringboot API.1
Navigate to API Tokens
Go to API Tokens page (
/tokens) from the sidebar2
Select Application
Choose an application from the dropdown
3
Click New Token
Click the New Token button
4
Configure Token
Fill in the form:
- Token Name (required, max 50 characters) - Descriptive name
- Token Type - Select one:
- Standard - Server-to-server API access
- Plugin - Browser extensions/plugins (auto-bypass CORS)
- Expiry Date (optional) - Set expiration for security
5
Create
Click Create API Token to generate
6
Copy Token
IMPORTANT: Copy the token from the dialog immediatelyThe token is only shown once and cannot be retrieved later
7
Done
Click Done to close the dialog
Token Types
Choose the right token type for your use case:- Standard Token
- Plugin Token
Use for:
- Mobile apps (iOS/Android)
- Desktop applications
View Tokens
The API Tokens page displays all your tokens with key information:Filter Tokens
1
Navigate to Tokens
Go to API Tokens page
2
Select Filter
Choose from dropdown:
- All Applications - Show all tokens
- Specific App - Filter by application
Token Information
| Column | Description |
|---|---|
| Name | Token name you specified |
| Token | Masked token value (click to copy) |
| Application | Associated app name |
| Type | Standard or Plugin |
| Status | Active or Revoked |
| Created | Creation date |
| Expiry | Expiration date (if set) |
| Actions | Copy, Revoke, Delete options |
Copy Token
Retrieve a token value to use in your application:1
Find Token
Locate the token in the table
2
Click Copy
Click the Copy icon (clipboard)
3
Confirmation
Token copied to clipboard - paste in your SDK configuration
Revoke Token
Disable a token without deleting it:1
Navigate to Tokens
Go to API Tokens page
2
Find Token
Locate the token you want to revoke
3
Click Revoke
Click the Revoke icon (circular arrow)
4
Confirm
Confirm revocation in the dialog
Delete Token
Permanently remove a token:1
Find Token
Navigate to API Tokens and find the token
2
Click Delete
Click the Delete icon (trash)
3
Confirm
Confirm deletion in the dialog
Revoke All Tokens
Quickly revoke all tokens for a specific application:1
Select Application
Choose a specific application from the dropdown (not “All Applications”)
2
Click Revoke All
Click the Revoke All button at the top
3
Confirm
Confirm the action in the dialog
Token Security Best Practices
Descriptive Names
Use names that indicate:
- Environment (Production, Staging, Dev)
- Purpose (iOS App, Web Dashboard)
- Date created (iOS Prod - Jan 2024)
Set Expiry Dates
- Use expiry for enhanced security
- Rotate tokens periodically
- Set shorter expiry for high-risk environments
Revoke Unused Tokens
- Revoke tokens immediately when no longer needed
- Clean up old tokens regularly
- Review token list monthly
Store Securely
- Use environment variables
- Never commit to version control
- Use secret management tools
- Encrypt in databases
Monitor Usage
- Track which tokens are in use
- Monitor for unexpected activity
- Rotate after security incidents
Token Storage Examples
- Environment Variables
- Android (BuildConfig)
- iOS (Info.plist)
.env
Troubleshooting
Token Not Working
Token Not Working
Check:
- Token is active (not revoked)
- Expiry date hasn’t passed
- Using correct application ID in requests
- Token type matches use case (Standard vs Plugin)
- Token copied correctly (no extra spaces)
401 Unauthorized Error
401 Unauthorized Error
CORS Issues with Standard Token
CORS Issues with Standard Token
If getting CORS errors:
- Use Plugin token type for browser-based apps
- Or configure CORS on your backend
- Standard tokens don’t bypass CORS
Lost Token After Creation
Lost Token After Creation
If you didn’t copy the token:
- Token cannot be retrieved again
- Revoke the lost token
- Create a new token
- Copy immediately this time
Quick Actions from Dashboard
From the main dashboard, quickly create tokens:Dashboard Shortcut
Click Generate API Token on the dashboard
Tokens Page
Use New Token button on
/tokens page