Create API Token
API tokens authenticate your SDK requests to the Stringboot API.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
Copy Token
IMPORTANT: Copy the token from the dialog immediatelyThe token is only shown once and cannot be retrieved later
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
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:Revoke Token
Disable a token without deleting it:Delete Token
Permanently remove a token:Revoke All Tokens
Quickly revoke all tokens for a specific application: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 pageNext Steps
SDK Quickstart
Use your token in SDK integration
Web SDK Setup
Configure Web SDK with token
Android SDK
Configure Android SDK with token
iOS SDK
Configure iOS SDK with token