# API reference

> Eevo docs. Every page as Markdown is listed at https://eevo.io/llms.txt; the API is described at https://eevo.io/api/openapi.json.

Send requests to the base URL `https://eevo.io`. To run them in the EU, use `https://eu.eevo.io` instead ([Data controls](https://eevo.io/api/docs/reference/data-controls.md#configuring-data-region)).

## Two APIs

| | SystemOne-compatible API | Consequence-based Decision API |
|---|---|---|
| You send | A state and typed questions about it: classifications, ratings or yes/no | A decision: its context, options and stakeholders, and the consequences of each option |
| You get back | Each answer with probabilities | Each option's expected value for each stakeholder, typically in 5 to 70 seconds, so you can see why an option comes out best |
| Price | $0.042 per million input tokens | $0.15 per decision |
| Suited to | High-volume tasks such as routing, ranking and filtering | Decisions where the reasons matter, weighed for each stakeholder |

## Model responses

| Endpoint | What it does |
|---|---|
| `POST /api/v1/systemone` | [SystemOne decision](https://eevo.io/api/docs/reference/api-systemone.md): Ask questions about any state (choice, score or yes/no) and get each answer with probabilities. Images and box questions are in preview |
| `POST /api/v1/cb-decision` | [Consequence-based decision](https://eevo.io/api/docs/reference/api-cb-decision.md): Weigh consequences, model their overlap and compute expected value for one or more stakeholders |

## Consequence-based Decision API metadata

| Endpoint | What it does |
|---|---|
| `GET /api/v1/decisions/{id}` | [Get a decision](https://eevo.io/api/docs/reference/api-get-decision.md): Fetch a decision again, with its chosen decision, revisions and assessments |
| `PATCH /api/v1/decisions/{id}` | [Share a decision](https://eevo.io/api/docs/reference/api-sharing.md): Choose who sees a decision: everyone in your organization, or only you |
| `POST /api/v1/decisions/{id}/chosen` | [Report what was done](https://eevo.io/api/docs/reference/api-chosen.md): Report the option that was carried out, for the whole decision |
| `POST /api/v1/decisions/{id}/publication` | [Publish a decision page](https://eevo.io/api/docs/reference/api-publication.md): Give a decision a public page anyone with the link can read, or take it down |
| `POST /api/v1/decisions/{id}/assessments` | [Record whether you agree](https://eevo.io/api/docs/reference/api-assessments.md): Record your verdict on the answer, per stakeholder |

## Admin

| Endpoint | What it does |
|---|---|
| `GET /api/v1/receipts` | [List payment receipts](https://eevo.io/api/docs/reference/api-receipts.md): List your organization’s payments with their Stripe receipts, for bookkeeping |

## OpenAPI description

The whole API is described as OpenAPI 3.1 at [https://eevo.io/api/openapi.json](https://eevo.io/api/openapi.json).
