---
search:
  tags:
    - decide
    - POST
seo:
  description: >-
    Answer closed questions about a context: yes or no, one choice… Reference
    for the POST /api/v1/tools/make_decisions endpoint in the Fieldwork gateway
    API.
sidebar:
  label: make_decisions
  badge: POST
title: make_decisions
type: openapi-operation
---
Answer closed questions about a context: yes or no, one choice from a list, or a score on a rubric. Each answer carries probabilities, not only a verdict. Use to classify or judge a piece of text or data. Do not use for open questions (use answer_question). Defaults to parallel. Set provider to choose another supported provider; Fieldwork never switches providers after an error.

`POST /api/v1/tools/make_decisions`

**Request body** (`application/json`, required)

- `provider` (string)
- `timeout` (integer) — Maximum wait in milliseconds. Resume a returned jobId to collect a long job.

Request body example:

```json
{
  "provider": "parallel",
  "timeout": 1,
  "context": null,
  "questions": {
    "property1": {
      "question": "string",
      "type": "yesno"
    },
    "property2": {
      "question": "string",
      "type": "yesno"
    }
  },
  "country": "string",
  "maxCharacters": 1
}
```

**Responses**

- `200` — The provider that ran the call and its normalized result.
- `default` — A refusal or a failed call. Branch on error.code; never parse the message.

Response example, 200:

```json
{
  "provider": "parallel",
  "requestId": "string",
  "result": {
    "answers": {
      "property1": {
        "choice": "string",
        "confidence": null,
        "probabilities": {
          "property1": 0,
          "property2": 0
        },
        "probability": 0,
        "refusal": "string"
      },
      "property2": {
        "choice": "string",
        "confidence": null,
        "probabilities": {
          "property1": 0,
          "property2": 0
        },
        "probability": 0,
        "refusal": "string"
      }
    },
    "citations": [
      {
        "excerpts": [
          "string"
        ],
        "title": "string",
        "url": "string"
      }
    ],
    "meta": {
      "requestId": "string",
      "usage": {
        "costUsd": 0,
        "credits": 0,
        "units": {
          "property1": 0,
          "property2": 0
        }
      },
      "warnings": [
        "string"
      ]
    },
    "truncated": [
      {
        "length": 0,
        "path": "string",
        "shown": 0
      }
    ]
  }
}
```
