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

# Mark customers

> The company page's Customer switch, for many companies: `true` makes each a customer whatever HubSpot says, `false` says it is not one, and `null` forgets the switch so HubSpot's answer counts again. Nothing is written to HubSpot. Champions follow at once. Each changed company says what its switch `was`: send that back to undo. A company already so, or that IntroLink can't find among the creator's companies, is returned in `skipped`.



## OpenAPI

````yaml /public-api/openapi.json post /customers
openapi: 3.1.0
info:
  title: IntroLink API
  version: 1.0.0
  description: >-
    Use your network from your own tools: read it, add people to your lists,
    draft intro asks that wait in your Gmail drafts, follow where each ask
    stands and record what happened, handle the intro requests founders send
    you, choose who is on your roster of connectors and in which group, and
    import people into it. Nothing the API does sends email from your Gmail.


    Authenticate with an API key from IntroLink, under Settings, API:
    `Authorization: Bearer il_live_…`. A key runs as the workspace admin who
    created it, and reads what they see in IntroLink, including their teams and
    circles under the same rules. People they keep private never appear. A
    revoked key stops working at its next request.


    Answers carry names, roles, strength, short evidence strings, opaque person
    ids (`p_…`) and links into IntroLink. Never an email address or a phone
    number.


    Each key may make 60 requests a minute.
servers:
  - url: https://app.introlink.ai/v1
security:
  - apiKey: []
tags:
  - name: People
    description: >-
      Search your network, look up one person and every path to them, and make
      the People page's bulk edits.
  - name: Companies
    description: >-
      Who your side knows at a company and every path into it, the companies you
      watch, and which are your customers.
  - name: Signals
    description: >-
      Job moves, alumni and relationships going quiet, and marking them
      dismissed or seen.
  - name: Lists
    description: >-
      Your lists of people and of companies: make, rename and delete them, and
      add, take off and put back who is on them.
  - name: Asks
    description: >-
      Intro asks drafted into your Gmail drafts and followed after, and the
      intro requests founders send you. Nothing here sends email.
  - name: Connectors
    description: >-
      Your roster of connectors: who is on it, in which group, and who the Add
      connectors picker suggests.
  - name: Targets
    description: >-
      A partner's target firms, ranked by your best warm path to each, and each
      firm's people.
  - name: Reach
    description: >-
      Who and which companies you can reach through one person, and who a
      connector is closest to.
  - name: Usage
    description: >-
      Your plan and what's left this month, the credits your workspace used, and
      what each thing costs.
  - name: Import
    description: >-
      Import people into your network, or a connector's, and see how far an
      import got.
  - name: Webhooks
    description: >-
      Events IntroLink sends to your own address, signed the Standard Webhooks
      way.
paths:
  /customers:
    post:
      tags:
        - Companies
      summary: Mark customers
      description: >-
        The company page's Customer switch, for many companies: `true` makes
        each a customer whatever HubSpot says, `false` says it is not one, and
        `null` forgets the switch so HubSpot's answer counts again. Nothing is
        written to HubSpot. Champions follow at once. Each changed company says
        what its switch `was`: send that back to undo. A company already so, or
        that IntroLink can't find among the creator's companies, is returned in
        `skipped`.
      operationId: setCustomers
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - companies
                - customer
              properties:
                companies:
                  type: array
                  items:
                    type: string
                    minLength: 1
                    maxLength: 300
                  minItems: 1
                  maxItems: 100
                  description: >-
                    Companies: each its web domain (`kestrel.com`), its
                    IntroLink id (`id` from GET /watches or POST /customers,
                    e.g. `kestrellogistics`), or its exact name (`Kestrel
                    Logistics`). A name is matched as IntroLink spells company
                    names (case, punctuation and Inc./Ltd. aside), never
                    loosely.
                customer:
                  oneOf:
                    - type: boolean
                    - type: 'null'
                  description: >-
                    `true` makes each a customer, whatever HubSpot says. `false`
                    says it isn't one. `null` forgets the switch, so HubSpot's
                    answer counts again.
            example:
              companies:
                - kestrel.com
                - atlas.com
              customer: true
      responses:
        '200':
          description: >-
            The companies this request changed, each with what it was and what
            it is now.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerChange'
              example:
                object: customer_change
                customer: true
                changed: 2
                data:
                  - id: kestrellogistics
                    name: Kestrel Logistics
                    domain: kestrel.com
                    url: https://app.introlink.ai/companies/kestrel.com
                    was: null
                    is_customer: true
                    source: manual
                  - id: atlasfreight
                    name: Atlas Freight
                    domain: atlas.com
                    url: https://app.introlink.ai/companies/atlas.com
                    was: false
                    is_customer: true
                    source: manual
                skipped: []
                text: >-
                  Marked 2 companies as customers. To undo, send each company's
                  `was` back as `customer`.
        '400':
          description: >-
            The request is missing something or has a bad value. `error.message`
            says what.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  type: invalid_request
                  message: The body is not valid JSON.
        '401':
          description: >-
            No key, or a key that doesn't work (unknown, revoked, or its creator
            left the workspace).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  type: invalid_key
                  message: >-
                    That API key is not valid. It may have been revoked: create
                    a new one in IntroLink, under Settings, API.
                  docs: https://docs.introlink.ai/public-api/authentication
        '403':
          description: >-
            The workspace is on the Free trial, which doesn't include the API.
            Individual, Team and Business do.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  type: plan_required
                  message: >-
                    The API comes with Individual, Team and Business, and this
                    workspace is on the Free trial. Pick a plan under Settings,
                    Billing to use it.
                  docs: https://docs.introlink.ai/public-api/authentication
        '429':
          description: 'Too many requests: more than 60 a minute with one key.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  type: rate_limited
                  message: >-
                    Too many requests with this key. Wait a minute and try
                    again.
          headers:
            Retry-After:
              schema:
                type: integer
              description: Seconds to wait.
        '500':
          description: IntroLink couldn't answer just now. Try again in a minute.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  type: server_error
                  message: >-
                    IntroLink could not answer that just now. Try again in a
                    minute.
components:
  schemas:
    CustomerChange:
      type: object
      required:
        - object
        - customer
        - changed
        - data
        - skipped
        - text
      properties:
        object:
          type: string
          const: customer_change
        customer:
          oneOf:
            - type: boolean
              description: 'What was asked: `true`, `false`, or `null` for HubSpot''s answer.'
            - type: 'null'
        changed:
          type: integer
        data:
          type: array
          items:
            type: object
            required:
              - id
              - name
              - domain
              - url
              - was
              - is_customer
              - source
            properties:
              id:
                type: string
                description: >-
                  The company's IntroLink id: what the watch and the Customer
                  switch are kept under.
              name:
                type: string
              domain:
                oneOf:
                  - type: string
                    description: Its web domain, when its people's work email has one.
                  - type: 'null'
              url:
                type: string
                description: The company in IntroLink.
              was:
                oneOf:
                  - type: boolean
                    description: >-
                      The switch before: send it back as `customer` to undo
                      (`null`: it was HubSpot's answer).
                  - type: 'null'
              is_customer:
                type: boolean
                description: Whether IntroLink counts it a customer now.
              source:
                oneOf:
                  - type: string
                    enum:
                      - manual
                      - hubspot
                    description: 'Who says so: your switch, or HubSpot.'
                  - type: 'null'
        skipped:
          type: array
          description: Companies left as they were, and why.
          items:
            type: object
            required:
              - id
              - why
            properties:
              id:
                type: string
                description: As it was sent.
              why:
                type: string
        text:
          type: string
          description: The complete answer in plain text.
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - type
            - message
          properties:
            type:
              type: string
              enum:
                - unauthorized
                - invalid_key
                - plan_required
                - credits_required
                - rate_limited
                - not_found
                - invalid_request
                - method_not_allowed
                - conflict
                - no_path
                - not_saved
                - server_error
            message:
              type: string
              description: What went wrong and what to do, in a sentence.
            docs:
              type: string
              format: uri
              description: >-
                The docs page that explains the error. Sent with `invalid_key`
                and `plan_required`.
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >-
        An API key from IntroLink, under Settings, API: `il_live_` and 32
        characters. Only workspace owners and admins make keys. A key reads the
        network as the person who made it.

````

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