Skip to main content

Overview

Sticker uses API Key authentication to secure all partner API requests. Your API key identifies your partner account and authorizes access to your organizations and users.

API Key Authentication

Getting Your API Key

Contact the Sticker team to receive your API credentials:
  • Partner ID (UUID) - Your unique partner identifier
  • API Key (string) - Starts with sk_live_ or sk_test_
Keep your API key secret! Never expose it in client-side code, public repositories, or browser network requests.

Authentication Headers

Organization Setup Endpoint

Use the Authorization: Bearer header:

Partner Handshake Endpoint

Use the X-API-Key header:

API Environments

Use sandbox credentials for development and testing. Sandbox data is isolated from production.

Security Best Practices

Never expose your API key in client-side code.Your backend should:
  1. Receive requests from your frontend
  2. Make authenticated requests to Sticker API
  3. Return results to your frontend
Store API keys in environment variables, never in code:
If you suspect your API key has been compromised:
  1. Contact Sticker support immediately
  2. We’ll issue a new key
  3. Update your environment variables
  4. Redeploy your application
Old keys are invalidated immediately upon rotation.
Sticker logs all API requests with:
  • Timestamp
  • Partner ID
  • Endpoint called
  • Response status
  • IP address
Contact support to review your API activity.

Error Responses

401 Unauthorized

Returned when authentication fails:
Common causes:
  • Missing Authorization or X-API-Key header
  • Invalid or expired API key
  • Using production key in sandbox or vice versa

403 Forbidden

Returned when authenticated but not authorized:
Common causes:
  • API key lacks required permissions/scope
  • Trying to access resources belonging to another partner

Session Tokens

When users access the embedded iframe, they use session tokens instead of API keys. Session tokens are:
Never reuse session tokens. Generate a fresh token every time a user opens the supplies module.

Rate Limits

When rate limited, you’ll receive a 429 Too Many Requests response:
Implement exponential backoff for retries:

Testing Authentication

Verify your authentication is working:
Expected response (if user exists):

Next Steps

Organization Setup

Learn how to provision organizations

User Handshake

Learn how to authenticate user sessions