connect

Propose how AI spend should be attributed, for the human to confirm in the dashboard

Sent by a coding agent after analysing the repository INSIDE the human's development environment. Carries identifier NAMES only (e.g. "workspace.id", "process.env.NODE_ENV"), never source code: a source with a newline, brace or more than 120 characters is refused.

A mapping the agent cannot determine confidently is sent with confidence "unknown", no source, and a one-line business-language question. Never invent a mapping.

Replaces the account's previous plan. The Connect page updates live. Poll GET until status is "confirmed" before changing any code. See /agents/connect.md.

post/api/connect/plan

Request

  • Base URL: https://www.spendline.ai
  • URL: https://www.spendline.ai/api/connect/plan
  • Auth: API key in header x-spendline-key

Request body

agent_tool'cursor' | 'claude-code' | 'other'
repository_labelstring

A project name to show the human. Not a path.

providersstring[]
sdksstring[]
call_sitesinteger
mappingsobject required

Keys: customer, agent, team (required); workflow, environment (optional).

Response

Stored and shown to the human. Poll GET /api/connect/plan.

Changes

No recorded changes to this operation across all 1 revision of this API.