Skip to content

Authentication

Base URL: https://apiv2.lagrowthmachine.com/flow

Send your API key in a header. Two forms are supported.

Authorization header (recommended)

Terminal window
curl -H "Authorization: Bearer YOUR_API_KEY" https://apiv2.lagrowthmachine.com/flow/members

x-api-key header

Terminal window
curl -H "x-api-key: YOUR_API_KEY" https://apiv2.lagrowthmachine.com/flow/members

Never share your API key publicly: it gives full access to your workspace data.

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

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.

Terminal window
curl -H "Authorization: Bearer YOUR_API_KEY" -H "x-lgm-workspace: 64b7f0c2a1d3e4f5a6b7c8d9" \
https://apiv2.lagrowthmachine.com/flow/campaigns?limit=25