Which credential should I use?
These credentials are not interchangeable. The Conversion API rejects workspace
execution tokens and OAuth management credentials. MCP rejects Signal tracker
secrets and OAuth management credentials.
How do I authenticate the REST API?
Send the Signal tracker secret as a bearer token to the server-side Conversion API athttps://plainrouter.com/api/v1:
PLAINROUTER_TOKEN must contain the per-Signal tracker secret. A missing or
invalid secret returns HTTP 401.
How do I authenticate the TypeScript SDK?
Install@plainrouter/sdk@0.5.0, then configure the generated client explicitly:
signalTrackerSecret.
How do I authenticate the Python SDK?
Installplainrouter==0.5.0, then create a client with the Signal tracker secret:
asyncio method.
How do I authenticate the Go SDK?
Installgithub.com/plainrouter/sdk-go@v0.5.0, create the generated client, and attach the Signal tracker secret to the request context:
How do I authenticate the CLI?
The CLI uses the same Signal tracker secret. Store it through the hidden login prompt for an interactive workstation:PLAINROUTER_TOKEN through the job’s secret
manager before running the command. The CLI does not expose a --token option.
An environment token takes precedence over the locally stored token.
How do I authenticate PlainRouter MCP?
Configure an MCP-compatible client with these exact connection values:
A workspace owner issues the token from Account → API for one workspace,
one active Meta ad account, one Read, Write, or Admin tier, and a 30, 90, or 365
day expiry.
Call
get_account_state first. Confirm the returned workspace and Meta ad
account before calling another tool. Tool arguments cannot override the account
stored with the token.
How do I use an OAuth management credential?
An OAuth management credential has one documented agent-facing use:Which clients are available?
The REST contract and all three SDKs expose ten Conversion API operations. CLI
0.5.0 exposes nine commands and does not include an ingestion-verification
command. Use REST, an SDK, or MCP for ingestion verification.
Which credentials must not be confused?
- A Signal tracker secret cannot authenticate MCP.
- A workspace execution token cannot authenticate the Conversion API.
- An OAuth management credential cannot authenticate MCP.
- A browser session cannot replace an API or MCP bearer credential.
- A same-origin Path B forwarding secret authenticates generated forwarding infrastructure only. It is not an API, SDK, CLI, or MCP credential.
- Meta access tokens remain on the PlainRouter server. Do not place a Meta token in a PlainRouter client configuration.