Generating a security token
To generate your first security token:- Navigate to Product Targeting in the Aftersell admin
- Locate the Security Token card at the top of the page
- Click Generate Token
- Your new token will be displayed - click Copy to copy it to your clipboard
Viewing your token
After generating a token, you can:- Show/hide the token: Click the eye icon to toggle visibility
- Copy the token: Click the Copy button to copy it to your clipboard
Regenerating a token
If you need to create a new token (for example, if your current token was compromised):- Navigate to Product Targeting in the Aftersell admin
- In the Security Token card, click Regenerate
- Your new token will be displayed - click Copy to save it
Using your security token
Include your security token in API requests to authenticate and access your product targeting strategies. Keep your token private and secure - treat it like a password. 💡 Best practices:- Store tokens securely (never commit them to version control)
- Regenerate tokens if you suspect they’ve been compromised
- Use different tokens for different environments (development, staging, production) if possible
- Keep a record of when tokens were generated and where they’re being used