Skip to main content
Every API request must include a project API key in the Authorization header.
Authorization: Bearer uj_live_your_key_here

Creating an API key

1

Open Settings

Go to Settings in the sidebar, then select the API tab.
2

Create a key

Click Create Key, enter a name (e.g., “Production”), and click Create.
3

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
curl -H "Authorization: Bearer uj_live_your_key_here" \
  https://app.userjourneys.ai/api/v1/experiments
Node.js
const response = await fetch(
  "https://app.userjourneys.ai/api/v1/experiments",
  {
    headers: {
      Authorization: "Bearer uj_live_your_key_here",
    },
  }
);
Python
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.