Overview
The Pinksheep API lets you trigger agent runs, check run status, and manage credits programmatically. All endpoints require authentication via API key.
Authentication
Include your API key in the Authorization header:
Generate API keys from Settings > API Keys in the dashboard.
Base URL
Agents
List agents
Returns all agents for the authenticated user.
Response:
Get agent detail
Returns full agent configuration including execution plan, run history summary, and connection status.
Trigger a run
Triggers a manual run for the specified agent. Returns immediately with a run ID.
Request body (optional):
Response:
Agents in “propose” mode will execute read steps but pause at write steps pending approval. Check run status to see if approval is needed.
Get run status
Response:
List runs
Returns recent runs for the specified agent, ordered by most recent.
Credits
Get balance
Response:
List transactions
Returns credit purchase and consumption history.
Webhooks
Pinksheep can send webhook notifications for agent events. Configure webhook URLs from Settings > Webhooks.
Events
| Event | Fires when |
|---|
run.completed | An agent run finishes successfully |
run.failed | An agent run fails |
run.approval_needed | A run is paused waiting for approval |
credits.low | Credit balance drops below threshold |
Rate limits
| Endpoint | Limit |
|---|
| Agent runs (per user) | 60 / hour |
| API reads | 120 / minute |
| Credit operations | 10 / minute |
Rate-limited responses return 429 with a Retry-After header.
All errors follow a consistent format: