Skip to main content

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

EventFires when
run.completedAn agent run finishes successfully
run.failedAn agent run fails
run.approval_neededA run is paused waiting for approval
credits.lowCredit balance drops below threshold

Payload format

Rate limits

EndpointLimit
Agent runs (per user)60 / hour
API reads120 / minute
Credit operations10 / minute
Rate-limited responses return 429 with a Retry-After header.

Error format

All errors follow a consistent format: