Decisions

Answer typed questions using current web evidence.

post/v1/decisions

Request

  • Base URL
    https://api.parallel.ai
  • Auth
    API key in header x-api-key

Request body

mode'fast'

Decision execution mode.

stateunknown required
questionsobject required

1 to 100 questions keyed by names containing only ASCII letters, numbers, underscores, and hyphens. State plus the largest question may use at most 32,000 estimated input tokens. Each value is a predicate (noul), choice, or score question.

Example request

{
  "advanced_settings": {
    "location": "us"
  }
}

Response

Successful Response

mode'fast' required
answersobject required

Answers keyed by the question names from the request. Any question can return a refusal.

decision_idstring required

Decision ID: decisions_ followed by a UUID without hyphens. Include this ID when reporting an issue or giving feedback so we can find the request's logs and trace.

Example response

{
  "decision_id": "decisions_cad0a6d2dec046bd95ae900527d880e7"
}

Changes