> ## Documentation Index
> Fetch the complete documentation index at: https://docs.orbb.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Plan research on people, a company or a recipe, with its quote; nothing is charged

> Body: `session`, `ask`, `handles`, `company`, `recipe`, `block`, `inputs`.

Plan research on people, a company or a recipe, with its quote; nothing is charged.

See also [Research](/api/research).



## OpenAPI

````yaml POST /v1/research/plan
openapi: 3.1.0
info:
  title: Orbb API
  version: v1
  description: >-
    Who knows whom, and how well: the people connected to a person, the
    connection between two people, and the person behind an email or a name; and
    research on people and companies. Every call is a `POST` with a JSON body,
    except `GET /v1/openapi.json`, `GET /v1/research/runs/{run_id}` and `GET
    /v1/recipes`.


    Read [Authentication](/api/authentication), [Errors](/api/errors),
    [Jobs](/api/jobs), [Billing](/api/billing) and [Rate
    limits](/api/rate-limits) before your first integration.
servers:
  - url: https://api.orbb.com
    description: Production
security:
  - bearer: []
paths:
  /v1/research/plan:
    post:
      summary: >-
        Plan research on people, a company or a recipe, with its quote; nothing
        is charged
      description: >-
        Body: `session`, `ask`, `handles`, `company`, `recipe`, `block`,
        `inputs`.


        Plan research on people, a company or a recipe, with its quote; nothing
        is charged.


        See also [Research](/api/research).
      operationId: research_plan
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResearchPlanBody'
      responses:
        '200':
          description: >-
            The answer, with camelCase field names. See
            [Research](/api/research).
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResearchPlanAnswer'
        '400':
          description: >-
            Bad Request.


            - `invalid_body`: The body could not be parsed (not valid JSON,
            larger than 16 kB, or not received in full), or does not match the
            operation’s body. See [Errors](/api/errors). Fix the body. `detail`
            names the field when there is one.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: >-
            Unauthorized.


            - `invalid_session`: A token in the form of a session token (three
            parts separated by dots) was refused: expired, or not a session of
            the console. Sign in to the console again, or use an API key.


            - `invalid_api_key`: The `Authorization` header is missing or is not
            `Bearer <token>`, or the key is unknown, revoked or expired. The
            answer is the same whatever the reason. Check the key, or create a
            new one in the console.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Forbidden.


            - `forbidden`: The key’s owner is no longer a member of the key’s
            workspace. Use a key created by a current member of the workspace.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: >-
            Too Many Requests.


            - `rate_limited`: The account or its workspace made more calls in
            the last minute than its limit allows. Wait `Retry-After` seconds,
            then repeat the same request.


            - `too_many_concurrent`: The account or its workspace has too many
            calls waiting for an answer at once. Wait for a call to be answered,
            or `Retry-After` seconds, then repeat the same request.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            Retry-After:
              $ref: '#/components/headers/Retry-After'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: >-
            Service Unavailable.


            - `unavailable`: The API could not complete the call, or could not
            check the token or the rate limits. Repeat the same request, backing
            off.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ResearchPlanBody:
      properties:
        session:
          type: string
          pattern: ^[A-Za-z0-9][A-Za-z0-9_-]{0,119}$
          description: The conversation the call belongs to. See [Research](/api/research).
        ask:
          type: string
          maxLength: 4000
          title: Ask
          default: ''
          description: What the caller wants to know, in their own words.
        recipe:
          anyOf:
            - type: string
            - type: 'null'
          title: Recipe
          description: A recipe to run, by its id from `GET /v1/recipes`.
        block:
          anyOf:
            - type: string
            - type: 'null'
          title: Block
          description: >-
            One research block run alone, in place of a recipe; an unknown id is
            refused with the known ones.
        inputs:
          additionalProperties: true
          type: object
          title: Inputs
          description: What the recipe runs on, by the input names `GET /v1/recipes` lists.
        ownRecords:
          items:
            type: string
          type: array
          maxItems: 12
          title: Ownrecords
          description: >-
            SEARCH ONLY. Where somebody stands with YOUR USER'S OWN side that
            only a reading of their records settles, one per thing they said —
            ['seem to be cooling on us']. Judged per row from their CRM, mail
            and calendar and relationship graph. Prefer `ownFilters` when a
            field settles it.
        ownFilters:
          items:
            additionalProperties: true
            type: object
          type: array
          maxItems: 12
          title: Ownfilters
          description: >-
            SEARCH ONLY. Exact conditions on your user's own records, measured
            and never judged: 'already a customer', 'no meeting in 60 days'.
            Each is {label, about, of_whom, where, last_days, measure, of, op,
            value, none}; the records and fields are in
            `/agent/capabilities?about=own`.
        ownColumns:
          items:
            additionalProperties: true
            type: object
          type: array
          maxItems: 12
          title: Owncolumns
          description: >-
            SEARCH ONLY. What the ask wants SHOWN about every row from your
            user's own records — 'when we last spoke', 'who on our team knows
            them'. Each is {label, about, of_whom, measure, of, show, rank_by,
            where, last_days}. It informs and never gates.
        handles:
          items:
            type: string
          type: array
          maxItems: 40
          title: Handles
          description: The people to research, by the handles `resolve` answered; up to 40.
        company:
          anyOf:
            - type: string
            - type: 'null'
          title: Company
          description: A company, for a run on its people.
        reachFrom:
          items:
            type: string
          type: array
          maxItems: 40
          title: Reachfrom
          description: >-
            The near end of a route, by handle: who on the caller's own side to
            start from. Given, it makes the plan a chain, whatever else is in
            the body, and `handles` are who to reach (the first leads).
        through:
          anyOf:
            - type: string
              maxLength: 200
            - type: 'null'
          title: Through
          description: >-
            CHAIN ONLY. Who the routes should go THROUGH, in the reader's own
            words — 'through a VP', 'via somebody in Finance'. Never the
            destination (`handles`) and never the goal (`ask`). Routes through
            somebody whose current role and seniority meet it lead; the others
            are still returned behind them. Leave it out if they named nobody in
            the middle.
        depth:
          anyOf:
            - type: string
            - type: 'null'
          title: Depth
        titles:
          items:
            type: string
          type: array
          maxItems: 20
          title: Titles
        country:
          anyOf:
            - type: string
            - type: 'null'
          title: Country
        cities:
          items:
            type: string
          type: array
          maxItems: 20
          title: Cities
        companies:
          items:
            type: string
          type: array
          maxItems: 50
          title: Companies
        inside:
          anyOf:
            - type: string
              maxLength: 200
            - type: 'null'
          title: Inside
          description: >-
            COMPANY ONLY. Who inside it, in the reader's own words and a few
            words long — 'their CFO', 'finance leadership', 'the revenue org'.
            SEVERAL FUNCTIONS COMMA-SEPARATED is a committee, and each one named
            gets its best person before any gets a second. This is not the goal:
            `ask` says what the research is FOR, this says who it is ABOUT, and
            sending a sentence here scopes the roster on prose. Leave it out if
            they have not said, and this refuses.
        finds:
          items:
            type: string
          type: array
          maxItems: 12
          title: Finds
          description: >-
            SEARCH ONLY. Conditions about their EMPLOYER, one per thing your
            user said, in their own words — ['raised a funding round', 'sell to
            enterprise']. Each becomes a column with a yes / no / not-checked
            verdict per row, so the answer shows which part of the question each
            person meets.
        personFinds:
          items:
            type: string
          type: array
          maxItems: 12
          title: Personfinds
          description: >-
            SEARCH ONLY. Conditions about the PERSON that are not their job
            title — ['worked at a competitor before', 'post about outbound'].
            The dividing line is whose property it is: an employer's condition
            goes in `finds`, where it is checked once per company and shared,
            and putting one here asks it of every row separately.
        optional:
          items:
            type: string
          type: array
          maxItems: 24
          title: Optional
          description: >-
            WHICH OF THOSE CONDITIONS SHOULD RANK RATHER THAN GATE, copied
            EXACTLY from `finds` or `personFinds`. Anything not named here HAS
            TO HOLD for somebody to count as an answer. MEASURED: a search whose
            every condition gated found 3,500 people by role and returned NONE,
            because each extra clause cut the ones before it — and the caller
            could not tell which clause did it. What your user LEADS with is the
            requirement; 'ideally', 'bonus if', 'preferably' mark a wish. Where
            their sentence does not say, ask them rather than guessing: a
            preference that gates is a wrong answer wearing an honest one's
            clothes.
        seniority:
          anyOf:
            - $ref: '#/components/schemas/research.Seniority'
            - type: 'null'
          description: >-
            The seniority floor. For a company or a person run only; a search or
            a chain ignores it. Required for a company over this API, because
            the run cannot stop and ask for it later.
      type: object
      additionalProperties: true
    ResearchPlanAnswer:
      properties:
        said:
          type: string
          title: Said
        planId:
          anyOf:
            - type: string
            - type: 'null'
          title: Planid
        run:
          anyOf:
            - type: string
            - type: 'null'
          title: Run
        questions:
          items:
            type: string
          type: array
          title: Questions
        outside:
          anyOf:
            - $ref: '#/components/schemas/research.Outside'
            - type: 'null'
        refused:
          anyOf:
            - type: string
            - type: 'null'
          title: Refused
        recipe:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Recipe
        session:
          type: string
          pattern: ^[A-Za-z0-9][A-Za-z0-9_-]{0,119}$
          description: >-
            The session of the call: send it back to carry on. See
            [Research](/api/research).
      type: object
      required:
        - questions
        - said
        - session
    Error:
      type: object
      properties:
        error:
          description: 'The error code. Stable: branch on it.'
          type: string
          enum:
            - invalid_body
            - invalid_session
            - invalid_api_key
            - invalid_limit
            - invalid_types
            - invalid_min_strength
            - invalid_cursor
            - same_person
            - person_not_found
            - ambiguous_person
            - result_unavailable
            - not_found
            - too_many_keys
            - unavailable
            - rate_limited
            - too_many_concurrent
            - research_busy
            - insufficient_balance
            - invalid_max_tokens
            - workspace_required
            - forbidden
            - owner_required
            - conflict
            - session_required
        detail:
          description: >-
            A sentence that explains the error, for a person to read. Its
            wording can change: do not parse it.
          type: string
        request_id:
          description: The id of the request, the same as the `X-Request-Id` header.
          type: string
        candidates:
          description: 'With `422 ambiguous_person` only: every person the id matched.'
          type: array
          items:
            type: object
            properties:
              key:
                description: >-
                  The person’s key: the public identifier percent-decoded and
                  lower-cased. Two people in the answers are the same person
                  when their keys are equal.
                type: string
              publicId:
                description: >-
                  The person’s current LinkedIn public identifier, the part
                  after `/in/` of the profile URL. It is a valid `id`, `a`, `b`
                  or `target` in any call. For a person with no known profile,
                  the identifier as the call gave it, in the form of `key`.
                type: string
              full_name:
                description: The person’s name. Absent when no known profile carries one.
                type: string
              role:
                description: >-
                  The title of the person’s current position; without one, the
                  profile’s headline. Absent when the profile has neither, or no
                  profile is known.
                type: string
              company:
                description: >-
                  The name of the company of the current position shown. Absent
                  when unknown.
                type: string
              companyPublicId:
                description: >-
                  The LinkedIn page of that company, as `company/<slug>`, or
                  `showcase/<slug>` for a showcase page. Absent when unknown.
                type: string
            required:
              - key
              - publicId
      required:
        - error
        - detail
        - request_id
    research.Seniority:
      type: string
      enum:
        - anyone
        - manager
        - director
        - vp
        - clevel
    research.Outside:
      properties:
        wanted:
          type: string
          title: Wanted
        why:
          type: string
          title: Why
        sources:
          items:
            $ref: '#/components/schemas/research.OutsideSource'
          type: array
          title: Sources
      type: object
      required:
        - sources
        - wanted
        - why
    research.OutsideSource:
      properties:
        source:
          type: string
          title: Source
        label:
          type: string
          title: Label
        facts:
          items:
            type: string
          type: array
          title: Facts
        more:
          type: integer
          title: More
          default: 0
      type: object
      required:
        - facts
        - label
        - more
        - source
  headers:
    X-Request-Id:
      description: >-
        The id of the request. Every answer carries it; an error body repeats it
        as `request_id`. See [Request ids](/api/request-ids).
      schema:
        type: string
    RateLimit-Limit:
      description: >-
        The calls the account may make per minute; its workspace’s own limit
        applies too. On every answer past authentication: not on a `401`, nor on
        a `400 invalid_body` for a body that could not be parsed. See [Rate
        limits](/api/rate-limits).
      schema:
        type: integer
    Retry-After:
      description: The seconds to wait before calling again. On every `429`.
      schema:
        type: integer
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: >-
        An API key, `orbb_sk_…`, created in the console; or the console’s
        session token. See [Authentication](/api/authentication).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.