Create an API key
Mint a Layers API key and authenticate your first request.
Every request to the Layers API — and every MCP session — authenticates with a Bearer key. Here's how to get one.
Keys are shown once at creation. Copy it somewhere safe; you can't read it again, only rotate or revoke it.
Option A — from the dashboard
Open Org Settings → API Keys in the Layers app.
Click Create key, pick the scopes it needs, and copy the lp_… secret.
Store it as an environment variable:
export LAYERS_API_KEY=lp_xxxxxxxxxxxxxxxxxxxxOption B — for a customer (sub-organization)
If you manage customers as sub-organizations, mint a scoped child key with your
parent key — see createSubOrgApiKey.
Make your first call
curl https://api.layers.com/v1/whoami \
--header "Authorization: Bearer $LAYERS_API_KEY"A 200 with your organization confirms the key works. Next:
Authentication ·
Common patterns.
Getting started
Create a project, generate a piece of content, and (optionally) schedule it to a connected social account. Three calls, one coherent flow — Layers auto-creates the project's keyword bank and first influencer in the background.
Authentication
API keys, header precedence, rotation, the kill switch, and rate-limit signals.