> ## 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.

# Add companies to a list

> Adds companies to one of the key creator's lists of companies, as Add to list on a company page does: each is found in the creator's network the way its company page finds it. A firm sent as `{ "name", "domain" }` that nobody in the network is at is added as itself (`in_network: false`), as a partner's tracker adds firms, under the same company id the network would give it, so it is never on a list twice. A domain or company id alone that the network doesn't know, and a company already on the list, are left out and returned in `skipped`. Sends nothing to anyone.



## OpenAPI

````yaml /public-api/openapi.json post /lists/{list}/companies
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:
  /lists/{list}/companies:
    post:
      tags:
        - Lists
      summary: Add companies to a list
      description: >-
        Adds companies to one of the key creator's lists of companies, as Add to
        list on a company page does: each is found in the creator's network the
        way its company page finds it. A firm sent as `{ "name", "domain" }`
        that nobody in the network is at is added as itself (`in_network:
        false`), as a partner's tracker adds firms, under the same company id
        the network would give it, so it is never on a list twice. A domain or
        company id alone that the network doesn't know, and a company already on
        the list, are left out and returned in `skipped`. Sends nothing to
        anyone.
      operationId: addCompaniesToList
      parameters:
        - name: list
          in: path
          required: true
          description: >-
            The list's id (from GET /lists) or its name, URL-encoded. A name two
            of your lists share is refused: use the id.
          schema:
            type: string
            minLength: 1
            maxLength: 200
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - companies
              properties:
                companies:
                  type: array
                  minItems: 1
                  maxItems: 50
                  description: >-
                    Each a web domain (`kestrel.com`; `www.` and subdomains are
                    dropped), an IntroLink company id, or a firm by name: `{
                    "name", "domain", "location" }`, with `domain` and
                    `location` when you know them.
                  items:
                    oneOf:
                      - type: string
                        description: A web domain or an IntroLink company id.
                      - type: object
                        required:
                          - name
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 200
                            description: The firm's name.
                          domain:
                            type: string
                            description: >-
                              Its web domain, when known: found in the network
                              by it first.
                          location:
                            type: string
                            maxLength: 200
            example:
              companies:
                - kestrel.com
                - name: Harrow Capital
                  domain: harrowcap.example
                  location: London
                - brightwater
      responses:
        '200':
          description: Which companies were added, and which were left out.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompanyAddition'
              example:
                object: company_addition
                list:
                  id: 5c1d8e2f-7a3b-4c6d-8e9f-1a2b3c4d5e6f
                  name: Seed funds
                  kind: companies
                  url: >-
                    https://app.introlink.ai/lists/5c1d8e2f-7a3b-4c6d-8e9f-1a2b3c4d5e6f
                added: 2
                data:
                  - id: kestrellogistics
                    name: Kestrel Logistics
                    domain: kestrel.com
                    url: https://app.introlink.ai/companies/kestrel.com
                    in_network: true
                  - id: harrowcapital
                    name: Harrow Capital
                    domain: harrowcap.example
                    url: https://app.introlink.ai/companies/harrowcap.example
                    in_network: false
                skipped:
                  - id: brightwater
                    why: already on this list
                text: >-
                  Added 2 companies to "Seed funds": Kestrel Logistics, Harrow
                  Capital. One is a firm nobody in your network is at yet. Left
                  out 1.
        '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
        '404':
          description: You have no list with that id or name.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  type: not_found
                  message: You have no list with that id or name.
        '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:
    CompanyAddition:
      type: object
      required:
        - object
        - list
        - added
        - data
        - skipped
        - text
      properties:
        object:
          type: string
          const: company_addition
        list:
          $ref: '#/components/schemas/ListRef'
        added:
          type: integer
        data:
          type: array
          description: The companies this request added.
          items:
            type: object
            required:
              - id
              - name
              - domain
              - url
              - in_network
            properties:
              id:
                type: string
              name:
                type: string
              domain:
                oneOf:
                  - type: string
                  - type: 'null'
              url:
                type: string
              in_network:
                type: boolean
                description: >-
                  Found in your network; false for a firm nobody there is at,
                  added by name.
        skipped:
          type: array
          description: Ids left as they were, and why.
          items:
            type: object
            required:
              - id
              - why
            properties:
              id:
                type: string
              why:
                type: string
        text:
          type: string
          description: The 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`.
    ListRef:
      type: object
      required:
        - id
        - name
        - kind
        - url
      properties:
        id:
          type: string
        name:
          type: string
        kind:
          type: string
          enum:
            - people
            - companies
        url:
          type: string
  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.