What are A/B Testing API Keys?
An API Key is a credential that you generate in TyrionURL’s Settings and embed in a partner website (a landing page, checkout page, or lead form). When a visitor on that partner site completes a conversion event (purchase, sign-up, form submission), the site uses your API key to send that event back to TyrionURL. TyrionURL matches the event to the A/B test variant that originally sent the visitor — giving you true conversion data, not just click data.When to Use API Keys
- You’ve set up an A/B test and want to know which variant converted better (not just which got more clicks)
- Your destination URLs are on third-party sites or your own web properties that you can instrument
- You want to track revenue amounts attributed to specific short links or A/B test variants
Generating an API Key
1
Go to Settings
From your dashboard, click your profile icon or navigate to Settings.

2
Open the API Keys Section
Locate the A/B Testing API Keys section in Settings.
3
Click Generate New Key
Click Generate API Key. TyrionURL creates a unique key and displays it once.

4
Copy and Store the Key
Copy the API key and add it to your partner site’s environment configuration.
Managing API Keys
From the API Keys section in Settings, you can:API Endpoints for Key Management
Security Best Practices
Store API keys in environment variables — never hardcode them into source code or commit them to version control.
Use one API key per integration or partner site so you can revoke individual keys without disrupting others.
Rotate keys periodically, especially after personnel changes in teams with access to the key.
Restrict key usage to server-side code only — never expose your API key in client-side JavaScript.
Next Step: Using the Key for Conversion Tracking
Once you’ve generated and stored your API key, the next step is embedding it in your partner site to send conversion events. → See: Tracking ConversionsRelated Pages
A/B Testing Setup
Configure traffic splitting before setting up tracking.
Tracking Conversions
Send purchase and lead events to TyrionURL.

