Promoter API demos
Walk through requests and responses for scoped keys, outreach campaigns, lead imports, and hosted MCP. Each walkthrough uses a fictional workspace.
Choose a workflow
API keys
Create a read-only key, verify the granted scope, and see what happens when it tries to write.
Create a scoped key
Open API & MCP as the workspace owner or use your verified owner session. Promoter returns the secret once. Save it privately as PROMOTER_API_KEY.
Request
curl --silent --show-error --include \
--request POST \
'https://promoter-app-asaf-katz-s-projects.vercel.app/api/keys' \
--config <(printf 'header = "Authorization: Bearer %s"\nheader = "X-Promoter-Workspace-Id: %s"\n' "$PROMOTER_OWNER_SESSION" "$PROMOTER_WORKSPACE_ID") \
--header 'Content-Type: application/json' \
--data-binary @- <<'JSON'
{
"name": "Developer demo",
"scopes": [
"read"
],
"expires_in_days": 30
}
JSONExample response
{
"key": {
"id": "96860936-2174-4bef-9b11-169edb995017",
"name": "Developer demo",
"key_prefix": "pmk_7ePKxB4z",
"scopes": [
"read"
],
"created_at": "2026-11-19T08:00:00.000Z",
"expires_at": "2026-12-19T08:00:00.000Z",
"last_used_at": null,
"revoked_at": null
},
"token": "[one-time API key]"
}Use the examples in your terminal
Copy a request into Bash or Zsh, replace the sample IDs with values from your workspace, and set the environment variables for that request. Keep credentials in your integration’s private configuration.
For key administration, use the API & MCP panel in your signed-in owner workspace. The REST examples use an owner session and a workspace ID. Operational requests use a scoped workspace key.