Share a decision
Choose whether everyone in your organization sees a decision (shared_with_org: true), or only the person who created the API key it was made with, and the key itself (false). It applies to every revision of the decision. Only the key the decision was made with can change it; its creator can also change it in the console. Free.
Quick example
Below is a quick example of stopping sharing a decision via curl:
curl -X PATCH https://eevo.io/api/v1/decisions/dec_7b1c0e4f9a2d4c6b8e3f5a1d2c4b6e8f \
-H "Authorization: Bearer $EEVO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"shared_with_org": false
}'The response:
{
"id": "dec_7b1c0e4f9a2d4c6b8e3f5a1d2c4b6e8f",
"createdAt": "2026-11-14T09:12:04.000Z",
"model": "eevo-1.2",
"mode": "default",
"status": "ok",
"errorMessage": null,
"progress": null,
"best": "A",
"bestByStakeholder": {
"customers": "A"
},
"contentStored": true,
"expiresAt": "2026-12-14T09:12:04.000Z",
"chosen": null,
"sharedWithOrg": false,
"canChangeSharing": true,
"publication": null,
"canPublish": true,
"source": "api"
}Path parameters
- idstringRequired
The decision id (
dec_…) its creation returned.
Request body
application/json- shared_with_orgbooleanRequired
Response body
application/json- idstring
- createdAtstring <date-time>
- modelstring
- modestring
- defaultEach option lists its consequences; Eevo gives each option’s expected value per stakeholder.
- directEevo picks each stakeholder’s best option in one pass, without consequences.
- statusstring
- okDone: the answer is in `response`.
- errorFailed: `errorMessage` says why.
- runningStill running: fetch it again until it is done.
- errorMessagestring or null
- progressobject or null
While
running: the model calls answered (done) of those the request needs (total).- doneinteger
- totalinteger
- beststring or null
- bestByStakeholdermap of strings
- contentStoredboolean
- requestobject or null
- responseobject or null
- expiresAtstring or null
- sharedWithOrgboolean
Whether everyone in your organization sees the decision; when false, only its owner does.
- canChangeSharingboolean
Whether this key can change
sharedWithOrg: the decision was made with it. - publicationobject or null
The decision’s public page while it is published (
POST /v1/decisions/{id}/publication); null otherwise.- urlstring
The page’s address, which anyone can open.
- publishedAtstring <date-time>
- publishedByobject or null
The person who published it in the console; null when an API key did.
- idinteger
- namestring
- urlstring
- canPublishboolean
Whether this key can publish the decision: it was made with the key and its result is stored.
- sourcestring or null
- apiAn API key.
- mcpAn agent over MCP.
- playgroundThe console’s API playground.
- connectorA connector app, such as Claude or ChatGPT.
Error responses
An error answers with its status and a body with its type and a message. See Errors for the format and every type.
| Status | Title | Description |
|---|---|---|
| 400 | Bad Request | The request is invalid; the message says which field and why. |
| 401 | Unauthorized | No valid API key. |
| 402 | Payment Required | No credit left for the request, or an EU request from an organization that has neither bought credit nor has credit. |
| 403 | Forbidden | Only the person who made the decision, or the API key it was made with, can change who sees it or publish it. |
| 409 | Conflict | The model is not served yet, or the revised decision already has a newer revision. |
| 410 | Gone | No such decision that you can see: none in your organization, or one not shared with you. |
| 429 | Too Many Requests | Rate limit or concurrent request limit reached; retry after Retry-After seconds. |
| 502 | Bad Gateway | The model failed to answer, or the decision could not be completed. Nothing is billed. |
| 503 | Service Unavailable | The model is starting after being idle (`model_warming`), or a request for the EU found no EU server available (`region_unavailable`); retry after Retry-After seconds. Nothing is billed. |