Pantheon Deals API

The Deals API from Pantheon — 2 operation(s) for deals.

GitHub OpenAPI

Operations 3

GET /v1/deals/{id}/contacts List a deal’s people and companies #
POST /v1/deals/{id}/contacts Link a person or company to a deal #
DELETE /v1/deals/{id}/contacts/{party_id} Remove a party from a deal #

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/pantheon-run:pantheon-run-deals-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

pantheon-run-deals-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Pantheon Developer Deals API
  description: 'Public REST API for contacts, chats, files, records (contacts, companies, deals and custom tables) and AI queries. Authenticate with a developer API key (Authorization: Bearer pk_live_...).'
  version: 1.7.0
servers:
- url: https://api.pantheon.run
  description: This deployment
security:
- apiKeyAuth: []
tags:
- name: Deals
paths:
  /v1/deals/{id}/contacts:
    get:
      summary: List a deal’s people and companies
      description: 'The parties linked to a deal, each with its role, plus every role the deal accepts. At most 200; truncated says when more exist. A contact or company the key cannot see reads { id: null, accessible: false }.'
      parameters:
      - schema:
          type: string
          maxLength: 64
        in: path
        name: id
        required: true
        description: The deal id.
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  parties:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        kind:
                          type: string
                          enum:
                          - contact
                          - company
                          - unlinked
                        role:
                          type: string
                        role_label:
                          type: string
                        label:
                          type:
                          - string
                          - 'null'
                        contact:
                          type:
                          - object
                          - 'null'
                          properties:
                            id:
                              type:
                              - string
                              - 'null'
                            name:
                              type:
                              - string
                              - 'null'
                            accessible:
                              type:
                              - boolean
                              - 'null'
                            deleted:
                              type:
                              - boolean
                              - 'null'
                        company:
                          type:
                          - object
                          - 'null'
                          properties:
                            id:
                              type:
                              - string
                              - 'null'
                            name:
                              type:
                              - string
                              - 'null'
                            accessible:
                              type:
                              - boolean
                              - 'null'
                            deleted:
                              type:
                              - boolean
                              - 'null'
                        added_at:
                          type:
                          - string
                          - 'null'
                  roles:
                    type: array
                    items:
                      type: object
                      properties:
                        key:
                          type: string
                        label:
                          type: string
                        source:
                          type: string
                          enum:
                          - deal_type
                          - sales
                          - workspace
                  truncated:
                    type: boolean
        '400':
          description: The request is malformed or a parameter is invalid. See https://docs.pantheon.run/errors for error codes.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Authentication is missing or the credential is invalid. See https://docs.pantheon.run/errors for error codes.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: The workspace is not on a plan that covers this request. See https://docs.pantheon.run/errors for error codes.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The credential or its holder is not allowed to perform this request. See https://docs.pantheon.run/errors for error codes.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: The requested resource does not exist or is not visible to this credential. See https://docs.pantheon.run/errors for error codes.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: A rate or budget limit was reached; check Retry-After when provided. See https://docs.pantheon.run/errors for error codes.
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/Error'
                - $ref: '#/components/schemas/EdgeRateLimitError'
                - $ref: '#/components/schemas/EdgeRateLimitEnvelope'
        '500':
          description: An unexpected server error occurred; quote X-Request-ID to support. See https://docs.pantheon.run/errors for error codes.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: A required check or dependency is temporarily unavailable; retry later. See https://docs.pantheon.run/errors for error codes.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Deals
      operationId: getV1DealsByIdContacts
      x-operation-id-source: derived
    post:
      summary: Link a person or company to a deal
      description: 'Links the party with a role, or changes the role of one already on the deal (outcome: linked, role_updated or unchanged). A person already on the deal through another channel of the key’s contact record for them is the same party. label is stored when the party is first linked and is not changed afterwards.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                contact_id:
                  description: A contact record id, a channel id, or a merged-away id. With or without label; never with company_id.
                company_id:
                  description: A company id in the deal’s workspace. On its own.
                label:
                  description: 'A free-text name: on its own, a person with no contact record yet; with contact_id, the name teammates who cannot see the contact read.'
                role:
                  description: A role key the deal accepts (GET …/contacts lists them in roles[]).
      parameters:
      - schema:
          type: string
          maxLength: 64
        in: path
        name: id
        required: true
        description: The deal id.
      - schema:
          type: string
          minLength: 1
          maxLength: 255
        in: header
        name: Idempotency-Key
        required: false
        description: 'Optional. Any unique string (a UUID v4 is a good choice). A retry with the same key and the same request replays the first answer (Idempotent-Replayed: true) for 24 hours; one key belongs to one API key.'
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  outcome:
                    type: string
                    enum:
                    - linked
                    - role_updated
                    - unchanged
                  party:
                    type: object
                    properties:
                      id:
                        type: string
                      kind:
                        type: string
                        enum:
                        - contact
                        - company
                        - unlinked
                      role:
                        type: string
                      role_label:
                        type: string
                      label:
                        type:
                        - string
                        - 'null'
                      contact:
                        type:
                        - object
                        - 'null'
                        properties:
                          id:
                            type:
                            - string
                            - 'null'
                          name:
                            type:
                            - string
                            - 'null'
                          accessible:
                            type:
                            - boolean
                            - 'null'
                          deleted:
                            type:
                            - boolean
                            - 'null'
                      company:
                        type:
                        - object
                        - 'null'
                        properties:
                          id:
                            type:
                            - string
                            - 'null'
                          name:
                            type:
                            - string
                            - 'null'
                          accessible:
                            type:
                            - boolean
                            - 'null'
                          deleted:
                            type:
                            - boolean
                            - 'null'
                      added_at:
                        type:
                        - string
                        - 'null'
        '400':
          description: The request is malformed or a parameter is invalid. See https://docs.pantheon.run/errors for error codes.
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/Error'
                - $ref: '#/components/schemas/RequestError'
        '401':
          description: Authentication is missing or the credential is invalid. See https://docs.pantheon.run/errors for error codes.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: The workspace is not on a plan that covers this request. See https://docs.pantheon.run/errors for error codes.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The credential or its holder is not allowed to perform this request. See https://docs.pantheon.run/errors for error codes.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: The requested resource does not exist or is not visible to this credential. See https://docs.pantheon.run/errors for error codes.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: The request conflicts with the current state. See https://docs.pantheon.run/errors for error codes.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: The request body is too large. See https://docs.pantheon.run/errors for error codes.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RequestError'
        '415':
          description: The request content type is not supported. See https://docs.pantheon.run/errors for error codes.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RequestError'
        '422':
          description: The request cannot be processed with the supplied values. See https://docs.pantheon.run/errors for error codes.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: A rate or budget limit was reached; check Retry-After when provided. See https://docs.pantheon.run/errors for error codes.
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/Error'
                - $ref: '#/components/schemas/EdgeRateLimitError'
                - $ref: '#/components/schemas/EdgeRateLimitEnvelope'
        '500':
          description: An unexpected server error occurred; quote X-Request-ID to support. See https://docs.pantheon.run/errors for error codes.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: A required check or dependency is temporarily unavailable; retry later. See https://docs.pantheon.run/errors for error codes.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Deals
      operationId: postV1DealsByIdContacts
      x-operation-id-source: derived
  /v1/deals/{id}/contacts/{party_id}:
    delete:
      summary: Remove a party from a deal
      description: 'Removes the link, not the contact or company. Not reversible through the API: link the party again to undo it. Needs the key''s `delete` scope ("Delete records" in Settings → Developer); without it the answer is 403 deletes_not_allowed.'
      parameters:
      - schema:
          type: string
          maxLength: 64
        in: path
        name: id
        required: true
        description: The deal id.
      - schema:
          type: string
          maxLength: 64
        in: path
        name: party_id
        required: true
        description: The party's id, from the list (parties[].id).
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  removed:
                    type: boolean
                  party:
                    type: object
                    properties:
                      id:
                        type: string
                      kind:
                        type: string
                        enum:
                        - contact
                        - company
                        - unlinked
                      role:
                        type: string
                      role_label:
                        type: string
                      label:
                        type:
                        - string
                        - 'null'
                      contact:
                        type:
                        - object
                        - 'null'
                        properties:
                          id:
                            type:
                            - string
                            - 'null'
                          name:
                            type:
                            - string
                            - 'null'
                          accessible:
                            type:
                            - boolean
                            - 'null'
                          deleted:
                            type:
                            - boolean
                            - 'null'
                      company:
                        type:
                        - object
                        - 'null'
                        properties:
                          id:
                            type:
                            - string
                            - 'null'
                          name:
                            type:
                            - string
                            - 'null'
                          accessible:
                            type:
                            - boolean
                            - 'null'
                          deleted:
                            type:
                            - boolean
                            - 'null'
                      added_at:
                        type:
                        - string
                        - 'null'
        '400':
          description: The request is malformed or a parameter is invalid. See https://docs.pantheon.run/errors for error codes.
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/Error'
                - $ref: '#/components/schemas/RequestError'
        '401':
          description: Authentication is missing or the credential is invalid. See https://docs.pantheon.run/errors for error codes.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: The workspace is not on a plan that covers this request. See https://docs.pantheon.run/errors for error codes.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The credential or its holder is not allowed to perform this request. See https://docs.pantheon.run/errors for error codes.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: The requested resource does not exist or is not visible to this credential. See https://docs.pantheon.run/errors for error codes.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: The request conflicts with the current state. See https://docs.pantheon.run/errors for error codes.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: A rate or budget limit was reached; check Retry-After when provided. See https://docs.pantheon.run/errors for error codes.
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/Error'
                - $ref: '#/components/schemas/EdgeRateLimitError'
                - $ref: '#/components/schemas/EdgeRateLimitEnvelope'
        '500':
          description: An unexpected server error occurred; quote X-Request-ID to support. See https://docs.pantheon.run/errors for error codes.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: A required check or dependency is temporarily unavailable; retry later. See https://docs.pantheon.run/errors for error codes.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Deals
      operationId: deleteV1DealsByIdContactsByPartyId
      x-operation-id-source: derived
components:
  schemas:
    EdgeRateLimitError:
      type: object
      required:
      - status
      - type
      - message
      - retryAfterMs
      properties:
        status:
          type: string
          enum:
          - error
        type:
          type: string
          enum:
          - rate_limited
        message:
          type: string
        retryAfterMs:
          type: integer
          description: Milliseconds to wait before retrying
    EdgeRateLimitEnvelope:
      type: object
      required:
      - error
      - retry_after_seconds
      properties:
        error:
          type: object
          required:
          - code
          - message
          - retryAfterMs
          - scope
          properties:
            code:
              type: string
              enum:
              - rate_limited
            message:
              type: string
            retryAfterMs:
              type: integer
              description: Milliseconds to wait before retrying
            scope:
              type: string
              enum:
              - account
              - network
        retry_after_seconds:
          type: integer
          description: Whole seconds to wait before retrying
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          properties:
            code:
              type: string
              description: Machine-readable error code
            message:
              type:
              - string
              - 'null'
              description: Human-readable message
            details:
              type:
              - object
              - 'null'
              additionalProperties: true
    RequestError:
      type: object
      required:
      - statusCode
      - error
      - message
      properties:
        statusCode:
          type: integer
          description: The HTTP status
        code:
          type: string
          description: Fastify error code, e.g. FST_ERR_VALIDATION
        error:
          type: string
          description: The HTTP reason phrase
        message:
          type: string
          description: What is wrong with the request
  securitySchemes:
    apiKeyAuth:
      type: http
      scheme: bearer
      description: 'Developer API key — Authorization: Bearer pk_live_...'