Base URL
API origin
Find and call a tool
1
Search
Call
POST /api/credits/tools/search with a task, category, or Tool Pack.2
Describe
Send the selected slug to
POST /api/credits/tools/describe for its
current inputs and access requirements.3
Estimate when needed
Call
POST /api/credits/tools/estimate for a quote or spending ceiling.4
Execute
Call
POST /api/wrapped/credits/{provider}/{endpoint}. Reuse the same
idempotency key for retries.Recipes and Workflows
Use each Recipe’s current input schema and credit ceiling. Workflow REST calls
use an enterprise server key or scoped Agent Connection; OAuth agents use MCP.
Agent setup
GET /api/credits/mcp/docs returns the MCP URL, OAuth metadata, plugin installation commands, and client configurations. The plugin uses the same MCP connection and permissions.
Authentication
Server credentials use a bearer header:
Authorization header
Request conventions
- Use decimal strings for money. Send
"10.00"for an amount, preserving precision. - Reuse idempotency keys on retries. Paid calls and transfers require
Idempotency-Key. A repeat returns the stored outcome; a changed request with the same key returns409. - Read cost headers. Calls return
X-Locus-Credits-ChargedandX-Locus-Credits-Balance. Secret-key calls also returnX-Locus-Cost-Usd. - Tag usage. Send
X-Locus-Attributionas a JSON object to associate ledger entries with a customer, task, or project.
Related guides
- SDK reference: calls, balances, funding, and connection management.
- Connect an agent: OAuth and scoped service credentials.
- Framework integrations: examples for model SDKs and agent frameworks.