To use the SideShift API, you must create an account. This account represents your integration (not individual end-users). You can create an account via the website, the account page, or programmatically using POST /v2/create-account.
Once created, you must secure two pieces of information:
- Private Key: Used as the
x-sideshift-secret header for authentication. This is your 'soft authentication' key; SideShift does not issue traditional API keys. - Account ID: Passed as the
affiliateId in requests to attribute shifts to your integration.
# Example .env configuration
SIDESHIFT_SECRET=YOUR_ACCOUNT_SECRET
AFFILIATE_ID=YQMi62XMb