Every API request must include a project API key in the Authorization header.
Authorization: Bearer uj_live_your_key_here
Creating an API key
Open Settings
Go to Settings in the sidebar, then select the API tab.
Create a key
Click Create Key, enter a name (e.g., “Production”), and click Create.
Copy your key
Copy the key immediately. It starts with uj_live_ and will not be shown again.
API keys are shown once at creation and cannot be retrieved later. Store your key securely.
Using your key
Include it as a Bearer token in the Authorization header of every request:
curl -H "Authorization: Bearer uj_live_your_key_here" \
https://app.userjourneys.ai/api/v1/experiments
const response = await fetch(
"https://app.userjourneys.ai/api/v1/experiments",
{
headers: {
Authorization: "Bearer uj_live_your_key_here",
},
}
);
import requests
response = requests.get(
"https://app.userjourneys.ai/api/v1/experiments",
headers={"Authorization": "Bearer uj_live_your_key_here"},
)
Each API key is scoped to a single project. All endpoints return 401 Unauthorized if the key is missing or invalid.