API Keys
Shoppex uses API keys for authentication. Each key is scoped to a specific shop and provides full access to the Developer API.Creating an API Key
Open Dashboard
Go to dashboard.shoppex.io and log in.
Using Your API Key
Include the API key in theAuthorization header with the Bearer scheme:
Key Format
| Prefix | Description |
|---|---|
shx_ | Shoppex API Key (32 characters after prefix) |
shx_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6
Error Responses
Missing or Invalid Key
Shop Suspended
Regenerating Keys
If an API key is compromised:- Go to Settings in your dashboard
- In the Developer API section, click Regenerate API Key
- Update your integration with the new key
401 Unauthorized.
Best Practices
Use environment variables
Use environment variables
Never hardcode API keys in your source code.
Keep keys server-side
Keep keys server-side
Never expose your API key in client-side code (browsers, mobile apps).
Make API calls from your backend server.
Use HTTPS only
Use HTTPS only
Always use HTTPS when making API requests to prevent key interception.
Monitor usage
Monitor usage
Check your dashboard regularly for unusual API activity.