zinn-agents
POST /v1/agents/{agentId}/memory/{purchaseId}/stop
Stop one memory add-on renewing; it keeps working to the end of the paid month.
Authentication
Send an API key as a bearer token. The endpoint checks agents.manage, billing.payment.manage; a key without it is refused with 403, not 404.
This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.
Try it
Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.
curl -X POST https://api.zinndigital.com/v1/agents/{agentId}/memory/{purchaseId}/stop \
-H "Authorization: Bearer zdk_live_…"Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console
Details
No refund; ends_on is the last day it counts (null for a comp or one already stopped). After it the agent restarts with its plan's memory. Needs agents.manage and billing.payment.manage.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
agentId (path) | string | Yes | — |
purchaseId (path) | string | Yes | — |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
purchase_id | string | Yes | — |
ends_on | string | Yes | — |
memory | AgentMemory | Yes | — |
Errors this endpoint can return
401 · 403 · 404