Appearance
Agent API
Preview In design with early-access customers. Interfaces may change before general availability.
Start work on an employee's agent from your own apps, portals and scripts, then stream its progress and act on the result.
Endpoints
GET /v1/agents?email=… list agents (agents:read)
POST /v1/agents/{agent_id}/tasks start work (agents:run)
GET /v1/tasks/{task_id} status and result
GET /v1/tasks/{task_id}/events?after=N live progress (server-sent events)
POST /v1/tasks/{task_id}/answers answer a question the agent asked
POST /v1/tasks/{task_id}/accept approve a prepared action (agents:act)
POST /v1/tasks/{task_id}/decline decline itStart work
json
POST /v1/agents/{agent_id}/tasks
{
"input": "Draft a reply to the latest email from Acme",
"idempotency_key": "ticket-4812",
"webhook": "https://hooks.acme.internal/signet"
}
→ 202 {"task_id": "…", "status": "running", "stream": "/v1/tasks/…/events"}Events arrive in order, each with a sequence number so you can resume a stream:
| Event | Meaning |
|---|---|
stage | The agent moved to the next stage of its work |
command | A step in progress, in plain words |
question | The agent needs an answer to continue |
action.preview | A prepared action, ready for approval |
done | Finished |
Rules
- Acting for a person needs permission. Keys can start work only on agents of the teams your admins allow.
- Prepared, not performed. Actions wait for approval from their owner, or from your app if its key has
agents:actand your guardrails allow it. - Asynchronous. Long work never blocks your request: stream events, poll, or receive a webhook.
- Safe retries. Repeat a request with the same
idempotency_keyand you get the same task.
SDKs
Python and TypeScript clients, generated from the OpenAPI specification:
python
from signet import Signet
client = Signet(base_url="https://<your SIGNET API>", api_key="<team key>")
task = client.agents.run(agent="ada@acme.com", input="Summarise this week's customer escalations")
for event in task.events():
print(event.type, event.text)
print(task.result())