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

# Close an ask

> Records what happened to an ask, as Close on the Asks page does. POST /asks/{id}/reopen undoes it. An ask that is closed already keeps its first reason, and the answer says `changed: false`. Sends nothing.



## OpenAPI

````yaml /public-api/openapi.json post /asks/{id}/close
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/{id}/close:
    post:
      tags:
        - Asks
      summary: Close an ask
      description: >-
        Records what happened to an ask, as Close on the Asks page does. POST
        /asks/{id}/reopen undoes it. An ask that is closed already keeps its
        first reason, and the answer says `changed: false`. Sends nothing.
      operationId: closeAsk
      parameters:
        - name: id
          in: path
          required: true
          description: The ask's id, from GET /asks.
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - reason
              properties:
                reason:
                  type: string
                  enum:
                    - done
                    - declined
                    - no_reply
                    - other_path
                    - not_needed
                  description: >-
                    `done` (the intro happened), `declined` (they could not
                    introduce you), `no_reply`, `other_path` (you tried another
                    path), `not_needed`.
            example:
              reason: other_path
      responses:
        '200':
          description: The ask, closed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AskChange'
              example:
                object: ask_close
                changed: true
                ask:
                  id: 1b6f3c2a-9d4e-4f1a-8b7c-2e5d6a9f0c13
                  person:
                    id: p_Qm3vT8yLkR2nWx7HbJ4dPa
                    name: Priya Raman
                    role: VP Finance, Kestrel Logistics
                  via:
                    id: p_8TzKq2LmW9xRv4NbHc7YsE
                    name: Daniel Reyes
                  stage: sent
                  stage_label: Sent
                  headline: 'Closed: tried another path'
                  step: 1
                  bucket: closed
                  waiting_on: nobody
                  reminder_due: false
                  closed_reason: other_path
                  next_step:
                    label: Reopen
                    url: >-
                      https://app.introlink.ai/asks?ask=1b6f3c2a-9d4e-4f1a-8b7c-2e5d6a9f0c13
                  thread_url: https://mail.google.com/mail/u/0/#all/18c2f4a9b7e6d5c1
                  url: >-
                    https://app.introlink.ai/asks?ask=1b6f3c2a-9d4e-4f1a-8b7c-2e5d6a9f0c13
                  text: 'Priya Raman, asked Daniel Reyes: Closed, tried another path.'
                text: >-
                  Closed your ask about Priya Raman: Tried another path. POST
                  /v1/asks/1b6f3c2a-9d4e-4f1a-8b7c-2e5d6a9f0c13/reopen opens it
                  again.
        '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 ask with that id for this key: not theirs, not on their Asks
            page, or about or through someone they keep private.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  type: not_found
                  message: >-
                    No ask with that id for this key: not theirs, not on their
                    Asks page, or about or through someone they keep private.
        '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:
    AskChange:
      type: object
      required:
        - object
        - changed
        - ask
        - text
      properties:
        object:
          type: string
          enum:
            - ask_close
            - ask_reopen
        changed:
          type: boolean
          description: >-
            false when the ask was already closed (or open): nothing was
            written.
        ask:
          $ref: '#/components/schemas/Ask'
        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`.
    Ask:
      type: object
      required:
        - id
        - person
        - via
        - stage
        - stage_label
        - headline
        - step
        - bucket
        - waiting_on
        - reminder_due
        - closed_reason
        - next_step
        - thread_url
        - url
        - text
      properties:
        id:
          type: string
          description: 'The ask''s id: GET /asks/{id} and its writes take it.'
        person:
          type: object
          required:
            - id
            - name
            - role
          description: Who the ask is about.
          properties:
            id:
              type: string
              description: The person id, `p_…`.
            name:
              type: string
            role:
              oneOf:
                - type: string
                - type: 'null'
        via:
          type: object
          required:
            - id
            - name
          description: 'Who was asked: the connector.'
          properties:
            id:
              type: string
              description: The person id, `p_…`.
            name:
              type: string
        stage:
          type: string
          enum:
            - draft
            - sent
            - replied
            - intro_made
            - meeting_set
        stage_label:
          type: string
          description: '"Draft", "Sent", "Connector replied", "Intro made" or "Meeting set".'
        headline:
          type: string
          description: >-
            Home's short label: "No reply" when a reminder is due, "Closed" when
            closed, else the stage.
        step:
          type: integer
          minimum: 0
          maximum: 4
          description: 0 (a draft) to 4 (a meeting set).
        bucket:
          type: string
          enum:
            - drafts
            - waiting
            - in_motion
            - closed
        waiting_on:
          type: string
          enum:
            - you
            - connector
            - nobody
        reminder_due:
          type: boolean
          description: 'No reply, and the reminder is due: a nudge is the next step.'
        closed_reason:
          oneOf:
            - type: string
              enum:
                - done
                - declined
                - no_reply
                - other_path
                - not_needed
            - type: 'null'
        next_step:
          type: object
          required:
            - label
            - url
          properties:
            label:
              type: string
              description: '"Send a nudge", "Thank Daniel", "Review and send".'
            url:
              oneOf:
                - type: string
                  description: 'Where that step is done: IntroLink, or the Gmail thread.'
                - type: 'null'
        thread_url:
          oneOf:
            - type: string
              description: The ask's Gmail thread, once sent. It names no account.
            - type: 'null'
        url:
          type: string
          description: The ask on IntroLink's Asks page.
        text:
          type: string
          description: This ask in one line.
  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.