Overview
Solo Mobile uses Bearer token authentication. You’ll need to include your access token in theAuthorization header of all API requests.
Getting Your Access Token
From the Dashboard
- Log in to solomobile.ai
- Go to Settings → API
- Click Generate Token
- Copy and securely store your token
Programmatically
You can also authenticate using email/password to get a session token:Using the Token
Include the token in theAuthorization header:
Token Expiration
- Access tokens expire after 1 hour
- Use the refresh token to get a new access token
- API tokens from the dashboard don’t expire (until revoked)
Refreshing Tokens
Revoking Tokens
To revoke an API token:- Go to Settings → API in the dashboard
- Find the token you want to revoke
- Click Revoke
Security Best Practices
Use environment variables
Use environment variables
Store tokens in environment variables, not in code.
Rotate tokens regularly
Rotate tokens regularly
Generate new tokens periodically and revoke old ones.
Use minimal permissions
Use minimal permissions
Request only the permissions your application needs.
Monitor for abuse
Monitor for abuse
Check your API usage in the dashboard for unexpected activity.