Authentication All API endpoints require an API key. Keys are tied to a specific user account and workspace — requests are automatically scoped to that workspace's data.
Getting a key Sign in at /login with your PulseLABS account. Go to Dashboard → click + New key . Give the key a name and choose which API scopes it can access. Copy the generated key — it is only shown once. Using the key Pass the key in the x-api-key request header. You may also use Authorization: Bearer sk_live_xxx if your HTTP client requires it.
curl copy
curl https://api.yourdomain.com/v1/conversations \
-H "x-api-key: sk_live_a1b2c3d4e5f6g7h8i9j0k1l2"javascript copy
const res = await fetch('https://api.yourdomain.com/v1/conversations', {
headers: {
'x-api-key': 'sk_live_a1b2c3d4e5f6g7h8i9j0k1l2',
'Content-Type': 'application/json',
},
})
const { conversations } = await res.json()python copy
import requests
res = requests.get(
'https://api.yourdomain.com/v1/conversations',
headers={'x-api-key': 'sk_live_a1b2c3d4e5f6g7h8i9j0k1l2'},
)
data = res.json()Request headers Name Type Required Description x-api-keystringrequired Your API key (sk_live_…) Content-Typestringrequired Must be application/json for POST/PUT/PATCH requests
Scopes Each key can be restricted to a subset of API modules. If a request requires a scope the key doesn't have, the API returns 403 Forbidden.
Name Type Required Description conversationsscopeoptional Create and query AI debate conversations agentsscopeoptional Manage agent personas and memories sim-enginescopeoptional Business simulations and scenario trees life-copilotscopeoptional Life plans and profile data market-analysisscopeoptional Market research and competitive analysis risk-evaluatorscopeoptional Risk sessions and probability trees
Error responses Name Type Required Description 401Unauthorizedoptional Missing, invalid, revoked, or expired API key 403Forbiddenoptional Key does not have the required scope 404Not Foundoptional Resource not found in your workspace 500Server Erroroptional Internal error — check the error message field