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

# Unsubscribe people

> Unsubscribe people, which ends their sequences, or take them off the unsubscribed list.

This tool changes data. Call it without `confirmationToken` for a preview that changes nothing. Then send the same body with the preview's `confirmationToken` to apply it.



## OpenAPI

````yaml /openapi.json post /v1/tools/set_unsubscribed
openapi: 3.1.0
info:
  title: Steerco API
  version: 2.0.0
  description: >-
    Read and change your Steerco workspace: companies, people, mail, meetings,
    deals, sequences, tasks, lead finders and website visitors. The REST API and
    the MCP server run the same tools.
servers:
  - url: https://api.getsteerco.com
security: []
paths:
  /v1/tools/set_unsubscribed:
    post:
      tags:
        - Tools
      summary: Unsubscribe people
      description: >-
        Unsubscribe people, which ends their sequences, or take them off the
        unsubscribed list.


        This tool changes data. Call it without `confirmationToken` for a
        preview that changes nothing. Then send the same body with the preview's
        `confirmationToken` to apply it.
      operationId: set_unsubscribed
      parameters:
        - schema:
            type: string
            description: The workspace id. GET /v1/workspaces lists yours.
          required: true
          description: The workspace id. GET /v1/workspaces lists yours.
          in: header
          name: X-Workspace-Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                personIds:
                  minItems: 1
                  maxItems: 100
                  type: array
                  items:
                    type: string
                    pattern: ^[0-9a-fA-F]{24}$
                  description: >-
                    The people's record ids, as a people search or a list names
                    them.
                unsubscribed:
                  type: boolean
                  description: >-
                    True unsubscribes them. False takes them off the
                    unsubscribed list.
                confirmationToken:
                  description: >-
                    The confirmationToken from this tool's preview. Leave it out
                    to get a preview; nothing changes until you send it.
                  type: string
                  minLength: 1
                  maxLength: 256
              required:
                - personIds
                - unsubscribed
      responses:
        '200':
          description: >-
            A preview, when the body has no confirmationToken. The applied
            write, when it has one.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ToolPreview'
                  - $ref: '#/components/schemas/ToolCommitted'
        '400':
          description: The body doesn't match the tool's input.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: The API key is missing or not valid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Your role or plan doesn't allow this tool, or your setting for
            changes from AI tools and API keys is off.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: A record the input names doesn't exist.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: The confirmationToken doesn't match this body, or it expired.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: You made more than 120 tool calls in a minute.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - apiKey: []
components:
  schemas:
    ToolPreview:
      type: object
      properties:
        status:
          type: string
          enum:
            - preview
        preview:
          description: What the write would change. Nothing has changed yet.
        confirmationToken:
          type: string
          description: >-
            Send this back with the same input to apply the write. It works for
            this call only.
        expiresAt:
          type: string
          description: When the token stops working, 10 minutes after the preview.
      required:
        - status
        - confirmationToken
        - expiresAt
    ToolCommitted:
      type: object
      properties:
        status:
          type: string
          enum:
            - committed
        result: {}
        cut:
          $ref: '#/components/schemas/OutputCut'
      required:
        - status
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
      required:
        - error
        - code
    OutputCut:
      type: object
      properties:
        note:
          type: string
          description: What was cut, and how to get the rest.
        lists:
          type: array
          items:
            type: object
            properties:
              path:
                type: string
              shown:
                type: integer
              total:
                type: integer
            required:
              - path
              - shown
              - total
          description: Each list that lost items from its end, by its path in the result.
        textsShortened:
          type: integer
          description: How many long text fields end in "[cut]".
      required:
        - note
        - lists
        - textsShortened
      description: >-
        Present when the result was larger than about 25,000 tokens and Steerco
        cut it.
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >-
        An API key, starting ak_. Create one under Settings > MCP and API in
        Steerco.

````

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