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

# Draft an ask

> Drafts an email asking a connector to introduce the key creator to someone, with a note the connector can forward, from IntroLink's evidence for the path, and checks each claim in it against that evidence. Without `save`, it only returns the draft. With `save: true`, it also saves the draft to the creator's Gmail drafts for them to check and send: nothing is ever sent. The connector's email address goes into the Gmail draft, never into the answer.



## OpenAPI

````yaml /public-api/openapi.json post /asks
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:
  /asks:
    post:
      tags:
        - Asks
      summary: Draft an ask
      description: >-
        Drafts an email asking a connector to introduce the key creator to
        someone, with a note the connector can forward, from IntroLink's
        evidence for the path, and checks each claim in it against that
        evidence. Without `save`, it only returns the draft. With `save: true`,
        it also saves the draft to the creator's Gmail drafts for them to check
        and send: nothing is ever sent. The connector's email address goes into
        the Gmail draft, never into the answer.
      operationId: draftAsk
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - person
              properties:
                person:
                  type: string
                  description: 'Who to be introduced to: a person id (`p_…`).'
                via:
                  type: string
                  description: >-
                    Who to ask: the connector's person id (a path's `via_id`).
                    Leave out for the strongest path.
                goal:
                  type: string
                  maxLength: 300
                  description: One line on why the intro is wanted, in the creator's words.
                save:
                  type: boolean
                  default: false
                  description: Save the draft to the creator's Gmail drafts. Never sends.
            example:
              person: p_Qm3vT8yLkR2nWx7HbJ4dPa
              via: p_8TzKq2LmW9xRv4NbHc7YsE
              goal: Ask how Kestrel prices its freight lanes
              save: true
      responses:
        '200':
          description: The draft, not saved.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AskDraft'
              example:
                object: ask_draft
                saved: true
                person:
                  id: p_Qm3vT8yLkR2nWx7HbJ4dPa
                  name: Priya Raman
                via:
                  id: p_8TzKq2LmW9xRv4NbHc7YsE
                  name: Daniel Reyes
                path: Daniel worked with Priya at Brightwater, 2018 to 2021.
                subject: Intro to Priya Raman?
                body: >-
                  Hi Daniel,


                  Could you introduce me to Priya Raman at Kestrel Logistics?
                  You two worked together at Brightwater. I'd like to ask her
                  how Kestrel prices its freight lanes.


                  A note you can forward is below.


                  Thanks,

                  Asha
                note: >-
                  Priya, Asha Patel runs Fernhill and would like 20 minutes on
                  how Kestrel prices freight lanes. Happy to connect you two.
                claims:
                  - status: checked
                    text: worked together at Brightwater
                    source: LinkedIn
                unchecked_claims: 0
                gmail_drafts_url: https://mail.google.com/mail/#drafts
                edit_url: >-
                  https://app.introlink.ai/open?ask=p_Qm3vT8yLkR2nWx7HbJ4dPa&via=p_8TzKq2LmW9xRv4NbHc7YsE
                problem: null
                text: >-
                  Saved in your Gmail drafts: an ask to Daniel Reyes for an
                  intro to Priya Raman. Nothing was sent. Every claim in it is
                  checked against IntroLink's evidence.
        '201':
          description: The draft, saved to Gmail drafts.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AskDraft'
              example:
                object: ask_draft
                saved: true
                person:
                  id: p_Qm3vT8yLkR2nWx7HbJ4dPa
                  name: Priya Raman
                via:
                  id: p_8TzKq2LmW9xRv4NbHc7YsE
                  name: Daniel Reyes
                path: Daniel worked with Priya at Brightwater, 2018 to 2021.
                subject: Intro to Priya Raman?
                body: >-
                  Hi Daniel,


                  Could you introduce me to Priya Raman at Kestrel Logistics?
                  You two worked together at Brightwater. I'd like to ask her
                  how Kestrel prices its freight lanes.


                  A note you can forward is below.


                  Thanks,

                  Asha
                note: >-
                  Priya, Asha Patel runs Fernhill and would like 20 minutes on
                  how Kestrel prices freight lanes. Happy to connect you two.
                claims:
                  - status: checked
                    text: worked together at Brightwater
                    source: LinkedIn
                unchecked_claims: 0
                gmail_drafts_url: https://mail.google.com/mail/#drafts
                edit_url: >-
                  https://app.introlink.ai/open?ask=p_Qm3vT8yLkR2nWx7HbJ4dPa&via=p_8TzKq2LmW9xRv4NbHc7YsE
                problem: null
                text: >-
                  Saved in your Gmail drafts: an ask to Daniel Reyes for an
                  intro to Priya Raman. Nothing was sent. Every claim in it is
                  checked against IntroLink's evidence.
        '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: No person with that id in this key's network.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  type: not_found
                  message: No person with that id in this key's network.
        '422':
          description: >-
            Nobody on the creator's side has a path to ask through (`no_path`),
            or the draft could not be saved to Gmail (`not_saved`, with the
            draft alongside).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  type: no_path
                  message: >-
                    Nobody on your side has a path to Priya Raman that you could
                    ask through yet, so there is no one to write to. You can
                    still write to them yourself in IntroLink:
                    https://app.introlink.ai/open?ask=p_Qm3vT8yLkR2nWx7HbJ4dPa
        '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:
    AskDraft:
      type: object
      required:
        - object
        - saved
        - person
        - via
        - path
        - subject
        - body
        - note
        - claims
        - unchecked_claims
        - gmail_drafts_url
        - edit_url
        - problem
        - text
      properties:
        object:
          type: string
          const: ask_draft
        saved:
          type: boolean
          description: In the creator's Gmail drafts.
        person:
          type: object
          required:
            - id
            - name
          properties:
            id:
              type: string
            name:
              type: string
        via:
          type: object
          required:
            - id
            - name
          properties:
            id:
              oneOf:
                - type: string
                - type: 'null'
            name:
              type: string
          description: The connector the ask goes to.
        path:
          oneOf:
            - type: string
              description: Why this connector, in one sentence.
            - type: 'null'
        subject:
          type: string
        body:
          type: string
          description: The email to the connector, in plain text.
        note:
          oneOf:
            - type: string
              description: The note the connector can forward.
            - type: 'null'
        claims:
          type: array
          items:
            type: object
            required:
              - status
              - text
              - source
            properties:
              status:
                type: string
                enum:
                  - checked
                  - unchecked
              text:
                type: string
              source:
                type: string
        unchecked_claims:
          type: integer
          description: 'Claims IntroLink has no record for: check them before sending.'
        gmail_drafts_url:
          oneOf:
            - type: string
              description: Gmail's drafts, once saved.
            - type: 'null'
        edit_url:
          type: string
          description: The ask in IntroLink's composer.
        problem:
          oneOf:
            - type: string
              description: 'Why `save: true` saved nothing.'
            - type: 'null'
        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.