Overview
Sticker uses a secure, API-key-based authentication system for partner integrations. This guide explains how to authenticate your API requests and secure your integration.API Key Authentication
All API requests must include your Partner API Key in theAuthorization header:
Getting Your Credentials
When you sign up as a Sticker partner, you’ll receive:Partner ID
A unique UUID identifying your organization
API Key
Your secret authentication token
Environment Setup
Store your credentials securely as environment variables:Making API Requests
All API requests simply require your API key in the Authorization header:Session Tokens
The handshake endpoint returns a time-limited session token that authenticates the user in the embedded iframe.Session Token Properties
Single-use authentication token for iframe embedding
Time until token expires (default: 300 seconds / 5 minutes)
Whether the token has already been consumed (always false on creation)
Using Session Tokens
Security Best Practices
Secure API Key Storage
Secure API Key Storage
- Store API keys in environment variables, never in code
- Use secrets management systems (AWS Secrets Manager, HashiCorp Vault, etc.)
- Rotate API keys regularly
- Never commit API keys to version control
- Never expose API keys in client-side code
Transport Security
Transport Security
- Always use HTTPS for API requests
- Validate SSL certificates
- Use TLS 1.2 or higher
- Implement certificate pinning for mobile apps
Session Management
Session Management
- Generate new session tokens for each user login
- Never reuse session tokens
- Implement automatic session expiration
- Clear tokens after user logout
Request Validation
Request Validation
- Validate all input data before sending to API
- Implement rate limiting to prevent abuse
- Log all API requests for audit trails
- Monitor for suspicious activity
OAuth Flow (Optional)
For partners with OAuth capabilities, Sticker supports an OAuth-based integration flow:1
User Authorizes Access
User grants permission for Sticker to access their profile data
2
Exchange Authorization Code
Your backend exchanges the auth code for an access token
3
Send Access Token to Sticker
Include the access token in the organization setup request
4
Automatic Data Sync
Sticker uses the access token to keep organization data in sync
OAuth flow is recommended for dynamic organizations where user data and addresses change frequently. Contact our team to enable OAuth for your integration.
Testing Authentication
Use our sandbox environment to test authentication without affecting production data:Common Authentication Errors
401 Unauthorized
401 Unauthorized
403 Forbidden
403 Forbidden
Cause: Valid API key but insufficient permissionsSolution: Contact Sticker support to verify your partner permissions
Session Token Expired
Session Token Expired
Cause: Token used after 5-minute expiration windowSolution: Generate a new session token for the user

