PATCH
/api/agentsbearer tokenUpdate an agent
A merge, not a replace: send only what changes. Unknown fields are dropped rather than stored, so a typo cannot quietly add junk to the document.
Try it
curl -X PATCH "https://storkie.ai/api/agents" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"id":"YOUR_AGENT_ID","tagline":"Answers in 12 languages"}'No Run button: this needs your bearer token, and a docs page that asks for one is teaching people to paste credentials into web forms.
Request body
| Name | Type | Description |
|---|---|---|
idrequired | string | The agent to update. |
…fields | any | Any editable field: name, role, greeting, systemPrompt, pricing, faq, socials, contact, domain, slug, site, features… |
Response
| Name | Type | Description |
|---|---|---|
agentrequired | object | The updated agent. |
Worth knowing
- A custom domain is a routing key — one domain, one agent — so attaching one another agent already holds returns 409.
Rate limit
40 requests / minute / account
Errors
400— Missing `id`, or an invalid slug or domain.401— Missing or invalid token.404— Not yours, or no such agent.409— The slug or domain is already taken by another agent.