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

# Get an opportunity

> One opportunity in full, with what its page in the portal shows.

One opportunity in full, as its page in the portal shows it: the site and its figures, the price, the steps of the placement, the article, your answer and the history. The fields the list carries keep their names and meaning.

An id that is not one of your opportunities is a `404 not_found`, the same answer whether it does not exist or belongs to someone else. So is an opportunity whose format is not decided yet (`format: null` in the list): it can be read in full once it is.

## Fields

* `title`: the article's title once known, else the site's name.
* `site.indicators`: the page's Performance figures. `value` is `null` when nothing was measured, never a zero; `display` is how the page prints it.
* `offer`: what is offered, in plain words, and who does what.
* `available_actions`: what you may do now: `accept`, `counter_offer` and `decline` while the opportunity awaits your answer, an empty list otherwise.
* `decision_due`: the deadline of your answer while it is owed; `late` once passed.
* `price`: the total, its lines (`breakdown`) and what it does not hold yet (`not_included`).
* `brief`: the target keyword and the link's anchor, `null` until either is decided.
* `article`: the page the mention goes in, as soon as its address is known. `live_url` and `published_at`: once the mention is live.
* `progress`: the steps in order. `state` is `done`, `current` or `ahead`; `at` is when a step was reached. `caption` reads `Step 2 of 5`, then `Done` once live, or `Closed` when it ended without going live. When no step can be named yet, `steps` is empty and `caption` is an empty string.
* `decision`: your answer that stands, `null` while none does. `kind` is `accepted`, `passed`, or `closed` when we closed the opportunity without an answer of yours. `by` says through what: `in the app`, `on Slack by @name` (or `on Slack` when Slack gave no handle), `via the API (key “name”)`, `recorded by HelloSearch`, or `by HelloSearch` for a closing of ours.
* `history`: what happened, newest first. `by` is your account's name or `HelloSearch`; a decision made through the API adds the key (`Acme via the API (key “Zapier”)`). `note` holds your own words, such as the terms of a counter-offer, or, for a decision pressed on Slack, who pressed it: `Accepted on Slack by @name` or `Passed on Slack by @name`, without the handle when Slack gave none. A press one of our team made in your place reads `HelloSearch` with no note. We never write a note of our own there.
* `content`: the article's versions, with their text, the links they place and the verdict; `null` where the page shows no article.
* `next_moves`: who moves next (`client` or `hellosearch`), then what comes after.


## OpenAPI

````yaml GET /opportunities/{id}
openapi: 3.1.0
info:
  title: HelloSearch API
  version: '1'
  description: >-
    Your HelloSearch figures and opportunities, as your portal shows them. Every
    route reads the same data as the portal.
servers:
  - url: https://app.tryhellosearch.com/api/v1
security:
  - accessKey: []
paths:
  /opportunities/{id}:
    get:
      summary: Get an opportunity
      description: One opportunity in full, with what its page in the portal shows.
      operationId: getOpportunity
      parameters:
        - $ref: '#/components/parameters/OpportunityId'
      responses:
        '200':
          description: The opportunity.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpportunityDetail'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    OpportunityId:
      name: id
      in: path
      required: true
      description: The opportunity's id, as the list gives it.
      schema:
        type: string
        example: 4b1d2f9e-7c3a-4e8b-9a61-2f0d8c5e7b13
  schemas:
    OpportunityDetail:
      type: object
      required:
        - id
        - title
        - site
        - format
        - offer
        - stage
        - status_label
        - awaiting_your_decision
        - available_actions
        - decision_due
        - price
        - brief
        - article
        - live_url
        - published_at
        - progress
        - decision
        - history
        - content
        - next_moves
      properties:
        id:
          type: string
        title:
          type: string
          description: The article's title once known, else the site's name.
        site:
          type: object
          properties:
            domain:
              type: string
            name:
              type: string
            url:
              type: string
              format: uri
            indicators:
              type: array
              items:
                type: object
                properties:
                  key:
                    type: string
                    enum:
                      - retrievals
                      - estimated_page_traffic
                  label:
                    type: string
                  value:
                    type:
                      - number
                      - 'null'
                    description: '`null` when nothing was measured, never a zero.'
                  display:
                    type: string
                  description:
                    type: string
        format:
          $ref: '#/components/schemas/Format'
        offer:
          type: object
          properties:
            title:
              type: string
            description:
              type: string
        stage:
          $ref: '#/components/schemas/Stage'
        status_label:
          type: string
        awaiting_your_decision:
          type: boolean
        available_actions:
          type: array
          description: What you may do now; empty when nothing is yours to decide.
          items:
            type: string
            enum:
              - accept
              - counter_offer
              - decline
        decision_due:
          type:
            - object
            - 'null'
          properties:
            caption:
              type: string
              example: Due Nov 22, 2026
            late:
              type: boolean
        price:
          allOf:
            - $ref: '#/components/schemas/Money'
            - type: object
              properties:
                breakdown:
                  type: array
                  items:
                    type: object
                    properties:
                      label:
                        type: string
                        example: HelloSearch fee
                      value:
                        type: string
                        example: $300
                not_included:
                  type: array
                  items:
                    type: string
        brief:
          type:
            - object
            - 'null'
          properties:
            target_keyword:
              type:
                - string
                - 'null'
            link_anchor:
              type:
                - string
                - 'null'
        article:
          type:
            - object
            - 'null'
          properties:
            url:
              type: string
              format: uri
            label:
              type: string
        live_url:
          type:
            - string
            - 'null'
          format: uri
        published_at:
          type:
            - string
            - 'null'
          format: date-time
        progress:
          type: object
          properties:
            caption:
              type: string
              example: Step 1 of 4
            current_step:
              type:
                - string
                - 'null'
            steps:
              type: array
              items:
                type: object
                properties:
                  label:
                    type: string
                  state:
                    type: string
                    enum:
                      - done
                      - current
                      - ahead
                  at:
                    type:
                      - string
                      - 'null'
                    format: date-time
        decision:
          type:
            - object
            - 'null'
          properties:
            kind:
              type: string
              enum:
                - accepted
                - passed
                - closed
            at:
              type: string
              format: date-time
            by:
              type: string
              example: via the API (key “Zapier”)
        history:
          type: array
          description: Newest first.
          items:
            type: object
            properties:
              status_label:
                type: string
              by:
                type: string
              at:
                type: string
                format: date-time
              note:
                type:
                  - string
                  - 'null'
                description: >-
                  Your own words, such as a counter-offer's terms, or, for a
                  decision pressed on Slack, who pressed it.
        content:
          type:
            - object
            - 'null'
          properties:
            versions:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                  label:
                    type: string
                  author:
                    type: string
                  submitted_at:
                    type: string
                    format: date-time
                  verdict_label:
                    type: string
                  verdict_reason:
                    type:
                      - string
                      - 'null'
                  body:
                    type: string
                  backlinks:
                    type: array
                    items:
                      type: object
                      properties:
                        anchor:
                          type: string
                        destination_url:
                          type: string
                          format: uri
        next_moves:
          type: array
          items:
            type: object
            properties:
              party:
                type: string
                enum:
                  - client
                  - hellosearch
              label:
                type: string
              due:
                type: string
              late:
                type: boolean
    Format:
      type: object
      properties:
        key:
          type: string
          enum:
            - link_insert
            - guest_post
        label:
          type: string
          example: Guest post
    Stage:
      type: object
      properties:
        key:
          type: string
          enum:
            - proposition
            - content_creation
            - deal_placement
            - live
            - declined
        label:
          type: string
          example: Proposition
    Money:
      type: object
      required:
        - amount
        - currency
        - display
      properties:
        amount:
          type: integer
          description: Whole US dollars.
          example: 300
        currency:
          type: string
          enum:
            - USD
        display:
          type: string
          example: $300
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              enum:
                - unauthorized
                - invalid_body
                - invalid_parameter
                - not_found
                - not_awaiting_decision
              description: Stable, meant for a program.
            message:
              type: string
              description: Meant for a person; may change.
  responses:
    Unauthorized:
      description: No valid access key.
      headers:
        WWW-Authenticate:
          schema:
            type: string
            example: Bearer realm="HelloSearch API"
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: unauthorized
              message: A valid access key is required. …
    NotFound:
      description: No opportunity of your account has this id.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: not_found
              message: …
  securitySchemes:
    accessKey:
      type: http
      scheme: bearer
      description: >-
        An access key from your portal, under Settings > Access keys. It starts
        with `hs_live_`.

````

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