Authentication
Base URL: https://apiv2.lagrowthmachine.com/flow
Send your API key in a header. Two forms are supported.
Authorization header (recommended)
curl -H "Authorization: Bearer YOUR_API_KEY" https://apiv2.lagrowthmachine.com/flow/membersx-api-key header
curl -H "x-api-key: YOUR_API_KEY" https://apiv2.lagrowthmachine.com/flow/membersNever share your API key publicly: it gives full access to your workspace data.
Errors
Section titled “Errors”| Status | Message | Meaning |
|---|---|---|
400 |
Please provide an apikey |
No key in the request |
400 |
Please upgrade to create an apikey |
Your plan has no API access (Pro plan and above) |
401 |
Invalid apikey |
The key does not exist or was regenerated |
403 |
You are not a member of the targeted workspace |
See below |
Targeting another workspace
Section titled “Targeting another workspace”If your account has several workspaces, add the x-lgm-workspace header with the id of the workspace to act on.
Without it, calls apply to the workspace that owns the key. GET /workspaces lists the workspaces you can target.
curl -H "Authorization: Bearer YOUR_API_KEY" -H "x-lgm-workspace: 64b7f0c2a1d3e4f5a6b7c8d9" \ https://apiv2.lagrowthmachine.com/flow/campaigns?limit=25