Parallel Decisions API

Decisions grounded in the live web: answer typed questions (predicates, choices and scores) using current web evidence with citations (POST /v1/decisions).

GitHub OpenAPI

Operations 1

POST /v1/decisions Decisions #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/parallel-ai:parallel-ai-decisions-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

parallel-ai-decisions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Parallel Decisions API
  description: Parallel API
  contact:
    name: Parallel Support
    url: https://parallel.ai
    email: support@parallel.ai
  version: 0.1.2
servers:
- url: https://api.parallel.ai
  description: Parallel API
security:
- ApiKeyAuth: []
tags:
- name: Decisions
  description: Answer typed choice, score, and probability questions using current web evidence, with shared citations for the request.
paths:
  /v1/decisions:
    post:
      tags:
      - Decisions
      summary: Decisions
      description: Answer typed questions using current web evidence.
      operationId: grounded_decisions_v1_decisions_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GroundedDecisionRequest'
            example:
              state:
                company: Clay
                website: https://www.clay.com
              questions:
                has_cli:
                  type: noul
                  instructions: Does Clay offer an official command-line interface (CLI)?
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GroundedDecisionResponse'
              examples:
                live:
                  summary: Response from a live request, with citations shortened.
                  value:
                    mode: fast
                    answers:
                      has_cli:
                        type: noul
                        noul: 0.9992643798509062
                    usage:
                      input_tokens: 4212
                      output_tokens: 0
                    citations:
                    - url: https://developers.clay.com/concepts/cli-basics
                      title: CLI basics
                      excerpts:
                      - 'The Clay CLI (clay) is JSON-first: every command writes machine-readable JSON to stdout on success and a structured error envelope to stderr on failure.'
                    - url: https://university.clay.com/docs/cli-security-privacy
                      title: CLI security & privacy - Clay Docs
                      excerpts:
                      - Clay's CLI lets your team drive a Clay workspace from a terminal or coding agent instead of the UI.
                    decision_id: decisions_34b4be1b1405e19ba5516d9bb76c56ad
        '422':
          description: Request validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                type: error
                error:
                  ref_id: <reference-id>
                  message: Request validation error
      x-code-samples:
      - lang: Python
        source: "import os\n\nimport requests\n\nresponse = requests.post(\n    \"https://api.parallel.ai/v1/decisions\",\n    headers={\"x-api-key\": os.environ[\"PARALLEL_API_KEY\"]},\n    json={\n        \"state\": {\n            \"company\": \"Clay\",\n            \"website\": \"https://www.clay.com\",\n        },\n        \"questions\": {\n            \"has_cli\": {\n                \"type\": \"noul\",\n                \"instructions\": \"Does Clay offer an official command-line interface (CLI)?\",\n            }\n        },\n    },\n    timeout=30,\n)\nresponse.raise_for_status()\ndecision = response.json()\n\nanswer = decision[\"answers\"][\"has_cli\"]\nif answer[\"type\"] == \"refusal\":\n    print(\"No decision returned; review this question.\")\nelse:\n    print(\"Estimated probability:\", answer[\"noul\"])\n\nfor citation in decision[\"citations\"]:\n    print(citation[\"url\"])"
      - lang: TypeScript
        source: "async function main() {\n    const response = await fetch(\"https://api.parallel.ai/v1/decisions\", {\n        method: \"POST\",\n        headers: {\n            \"Content-Type\": \"application/json\",\n            \"x-api-key\": process.env.PARALLEL_API_KEY!,\n        },\n        body: JSON.stringify({\n            state: {\n                company: \"Clay\",\n                website: \"https://www.clay.com\",\n            },\n            questions: {\n                has_cli: {\n                    type: \"noul\",\n                    instructions: \"Does Clay offer an official command-line interface (CLI)?\",\n                },\n            },\n        }),\n    });\n    if (!response.ok) {\n        throw new Error(`Decision failed: ${response.status} ${await response.text()}`);\n    }\n\n    const decision = await response.json();\n    const answer = decision.answers.has_cli;\n    if (answer.type === \"refusal\") {\n        console.log(\"No decision returned; review this question.\");\n    } else {\n        console.log(\"Estimated probability:\", answer.noul);\n    }\n    for (const citation of decision.citations) {\n        console.log(citation.url);\n    }\n}\n\nmain().catch(console.error);"
      - lang: cURL
        source: "curl https://api.parallel.ai/v1/decisions \\\n  -H \"Content-Type: application/json\" \\\n  -H \"x-api-key: $PARALLEL_API_KEY\" \\\n  -d '{\n    \"state\": {\n      \"company\": \"Clay\",\n      \"website\": \"https://www.clay.com\"\n    },\n    \"questions\": {\n      \"has_cli\": {\n        \"type\": \"noul\",\n        \"instructions\": \"Does Clay offer an official command-line interface (CLI)?\"\n      }\n    }\n  }'"
      x-mint:
        href: /api-reference/decisions/decisions
        metadata:
          title: Decisions
          sidebarTitle: Decisions
components:
  schemas:
    GroundedScoreQuestion:
      properties:
        type:
          type: string
          const: score
          title: Type
        instructions:
          type: string
          title: Instructions
          description: Question to evaluate against the ordered criteria.
        criteria:
          items:
            type: string
          type: array
          maxItems: 10
          minItems: 2
          title: Criteria
          description: 2 to 10 level descriptions in order, indexed from zero.
      type: object
      required:
      - type
      - instructions
      - criteria
      title: Score
    GroundedDecisionCitation:
      properties:
        url:
          type: string
          title: Url
          description: Source page URL.
        title:
          anyOf:
          - type: string
          - type: 'null'
          title: Title
          description: Page title. Omitted when unavailable.
        excerpts:
          items:
            type: string
          type: array
          title: Excerpts
          description: Passages used to ground the decision. Empty when advanced_settings.include_excerpts is false.
      type: object
      required:
      - url
      - excerpts
      title: Citation
    Error:
      properties:
        ref_id:
          type: string
          title: Reference ID
          description: Reference ID for the error.
        message:
          type: string
          title: Message
          description: Human-readable message.
        detail:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Detail
          description: Optional detail supporting the error.
      type: object
      required:
      - ref_id
      - message
      title: Error
      description: An error message.
    GroundedRefusalAnswer:
      properties:
        type:
          type: string
          const: refusal
          title: Type
          description: The downstream decision provider refused this question; no value or probabilities are returned.
          default: refusal
      type: object
      title: Refusal
    JsonValue: {}
    GroundedNoulAnswer:
      properties:
        type:
          type: string
          const: noul
          title: Type
          default: noul
        noul:
          type: number
          title: Noul
          description: Estimated probability that the condition is true, from 0 to 1.
      type: object
      required:
      - noul
      title: Predicate
    GroundedChoiceAnswer:
      properties:
        type:
          type: string
          const: choice
          title: Type
          default: choice
        choice:
          type: string
          title: Choice
          description: Selected option name from the question criteria.
        probabilities:
          additionalProperties:
            type: number
          type: object
          title: Probabilities
          description: Estimated probability for each option, keyed by option name.
        confidence:
          anyOf:
          - type: number
          - type: 'null'
          title: Confidence
          description: Model-reported confidence, when available. This is distinct from the probability assigned to the selected option.
      type: object
      required:
      - choice
      - probabilities
      title: Choice
    GroundedDecisionUsage:
      properties:
        input_tokens:
          type: integer
          title: Input Tokens
        output_tokens:
          type: integer
          const: 0
          title: Output Tokens
          description: Always 0 for compatibility with the upstream contract.
      type: object
      required:
      - input_tokens
      - output_tokens
      title: Usage
    ErrorResponse:
      properties:
        type:
          type: string
          const: error
          title: Type
          description: Always 'error'.
        error:
          $ref: '#/components/schemas/Error'
          description: Error.
      type: object
      required:
      - type
      - error
      title: ErrorResponse
      description: Response object used for non-200 status codes.
    GroundedDecisionResponse:
      properties:
        mode:
          type: string
          const: fast
          title: Mode
        answers:
          additionalProperties:
            oneOf:
            - $ref: '#/components/schemas/GroundedChoiceAnswer'
            - $ref: '#/components/schemas/GroundedScoreAnswer'
            - $ref: '#/components/schemas/GroundedNoulAnswer'
            - $ref: '#/components/schemas/GroundedRefusalAnswer'
            discriminator:
              propertyName: type
              mapping:
                choice: '#/components/schemas/GroundedChoiceAnswer'
                noul: '#/components/schemas/GroundedNoulAnswer'
                refusal: '#/components/schemas/GroundedRefusalAnswer'
                score: '#/components/schemas/GroundedScoreAnswer'
          type: object
          title: Answers
          description: Answers keyed by the question names from the request. Any question can return a refusal.
        usage:
          $ref: '#/components/schemas/GroundedDecisionUsage'
        citations:
          items:
            $ref: '#/components/schemas/GroundedDecisionCitation'
          type: array
          title: Citations
          description: Web sources included in the shared decision context. Applies to the whole request, without a per-answer source mapping. Can be empty.
        decision_id:
          type: string
          title: Decision Id
          description: '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.'
          examples:
          - decisions_cad0a6d2dec046bd95ae900527d880e7
      type: object
      required:
      - mode
      - answers
      - usage
      - citations
      - decision_id
      title: Decision response
    GroundedNoulCriteria:
      properties:
        'true':
          type: string
          title: 'True'
          description: Meaning of a true outcome.
        'false':
          type: string
          title: 'False'
          description: Meaning of a false outcome.
      type: object
      required:
      - 'true'
      - 'false'
      title: Criteria
    GroundedChoiceQuestion:
      properties:
        type:
          type: string
          const: choice
          title: Type
        instructions:
          type: string
          title: Instructions
          description: Question to answer by selecting one of the named options.
        criteria:
          additionalProperties:
            type: string
          type: object
          maxProperties: 255
          minProperties: 2
          title: Criteria
          description: 2 to 255 options, mapping each option name to its description.
      type: object
      required:
      - type
      - instructions
      - criteria
      title: Choice
    GroundedNoulQuestion:
      properties:
        type:
          type: string
          const: noul
          title: Type
        instructions:
          type: string
          title: Instructions
          description: Condition whose probability of being true should be estimated.
        criteria:
          anyOf:
          - $ref: '#/components/schemas/GroundedNoulCriteria'
          - type: 'null'
          description: Optional descriptions of what true and false mean for this question.
      type: object
      required:
      - type
      - instructions
      title: Predicate
    GroundedScoreAnswer:
      properties:
        type:
          type: string
          const: score
          title: Type
          default: score
        score:
          type: number
          title: Score
          description: Probability-weighted mean of the zero-based level indices. Can be fractional.
        legend:
          additionalProperties:
            type: string
          type: object
          title: Legend
          description: Maps string indices to the level descriptions from the question criteria.
        probabilities:
          additionalProperties:
            type: number
          type: object
          title: Probabilities
          description: Estimated probability for each level, keyed by its string index.
        confidence:
          anyOf:
          - type: number
          - type: 'null'
          title: Confidence
          description: Model-reported confidence, when available. This is distinct from any one level's probability.
      type: object
      required:
      - score
      - legend
      - probabilities
      title: Score
    GroundedDecisionRequest:
      properties:
        advanced_settings:
          anyOf:
          - $ref: '#/components/schemas/AdvancedDecisionSettings'
          - type: 'null'
          description: Optional advanced configuration for decision grounding. When provided, the object must include after_date, location, or include_excerpts.
        mode:
          type: string
          const: fast
          title: Mode
          description: Decision execution mode.
          default: fast
        state:
          $ref: '#/components/schemas/JsonValue'
          description: Context shared by all questions. Accepts any JSON value. Together with the largest question, this may use at most 32,000 estimated input tokens.
        questions:
          patternProperties:
            ^[A-Za-z0-9_-]+$:
              oneOf:
              - $ref: '#/components/schemas/GroundedChoiceQuestion'
              - $ref: '#/components/schemas/GroundedScoreQuestion'
              - $ref: '#/components/schemas/GroundedNoulQuestion'
              discriminator:
                propertyName: type
                mapping:
                  choice: '#/components/schemas/GroundedChoiceQuestion'
                  noul: '#/components/schemas/GroundedNoulQuestion'
                  score: '#/components/schemas/GroundedScoreQuestion'
          type: object
          maxProperties: 100
          minProperties: 1
          title: Questions
          description: 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.
      additionalProperties: false
      type: object
      required:
      - state
      - questions
      title: Decision request
    AdvancedDecisionSettings:
      properties:
        location:
          anyOf:
          - type: string
          - type: 'null'
          title: Location
          description: Supported ISO 3166-1 alpha-2 country code for geo-targeted search results. Case-insensitive; normalized to lowercase. Invalid or unsupported codes return a validation error.
          examples:
          - us
          - gb
          - de
          - jp
        after_date:
          anyOf:
          - type: string
            format: date
          - type: 'null'
          title: After Date
          description: Prefer sources published on or after this date (YYYY-MM-DD).
          examples:
          - '2026-11-03'
        include_excerpts:
          type: boolean
          title: Include Excerpts
          description: Whether citations include the excerpts used to ground the decision. When false, every citation has an empty excerpts array.
          default: true
      additionalProperties: false
      type: object
      title: AdvancedDecisionSettings
      description: Advanced configuration for decision grounding.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key