Authentication
The WikiParfum API uses API key authentication. Every request must include the key in theAuthorization header, as the raw key with no Bearer prefix.
NO_APIKEY and an unknown key with USER_NOT_FOUND. See Error Handling.
GraphQL endpoint
All interactions are performed through a single GraphQL endpoint:Server-side execution only
All WikiParfum API requests must be executed server-side. Calling the API from browsers or mobile applications is not allowed, because it would expose your API key. The required communication pattern is:Why server-side only
Executing requests server-side ensures:- API keys remain confidential
- Requests can be validated and controlled
- Abuse and unauthorized usage are prevented
- Recommendation logic remains protected
IP allowlisting
Access to the WikiParfum API can be restricted to the IP addresses of your servers. When an allowlist is configured for your integration, only requests from those addresses are accepted — requests from any other IP fail withLOCATION_NOT_ALLOWED, even with a valid API key.
Before going live, provide the static IP addresses of the servers that will call the API. ScentXP configures them as part of your integration setup.
If your server IPs change (e.g., infrastructure migration, new environments), contact your ScentXP account manager to update the allowlist before switching traffic. Requests from non-listed IPs will be blocked.
Storing and securing API keys
API keys must never be exposed in frontend code. Recommended storage methods:- Environment variables
- Server-side secret managers
- Encrypted configuration stores
- Embed API keys in JavaScript bundles
- Commit API keys to source control
- Expose API keys in network requests visible to the client

