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

# Unsubscribe a subscriber

> Set a subscriber to unsubscribed.

<Note>
  This sets the subscriber's status to `unsubscribed`; the record is not deleted.
</Note>


## OpenAPI

````yaml openapi.json DELETE /subscribers/{id}
openapi: 3.1.0
info:
  title: Newsletter Public API V1
  description: >-
    Create, list, update and unsubscribe newsletter subscribers from external
    integrations.
  version: 1.0.0
servers:
  - url: https://app.letterbucket.com/api/v1
    description: Production
security:
  - bearerAuth: []
paths:
  /subscribers/{id}:
    parameters:
      - name: id
        in: path
        required: true
        description: Subscriber ID (UUID).
        schema:
          type: string
          format: uuid
    delete:
      tags:
        - Subscribers
      summary: Unsubscribe a subscriber
      description: >-
        Sets the subscriber's status to `unsubscribed`. The record is not
        removed from the database.
      operationId: unsubscribeSubscriber
      responses:
        '200':
          description: The subscriber, now unsubscribed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriberResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    SubscriberResponse:
      type: object
      properties:
        success:
          type: boolean
        data:
          $ref: '#/components/schemas/Subscriber'
    Subscriber:
      type: object
      properties:
        id:
          type: string
          format: uuid
        email:
          type: string
          format: email
        name:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - active
            - pending
            - unsubscribed
        created_at:
          type: string
          format: date-time
    Error:
      type: object
      properties:
        success:
          type: boolean
          example: false
        code:
          type: string
          description: Machine-readable error code.
        message:
          type: string
          description: Human-readable description.
        errors:
          type: object
          additionalProperties: true
          description: Optional field-level errors.
  responses:
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            success: false
            code: unauthorized
            message: Invalid API key.
    NotFound:
      description: Subscriber not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            success: false
            code: not_found
            message: Subscriber not found.
    RateLimited:
      description: Rate limit exceeded or temporary lockout.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            success: false
            code: rate_limit_exceeded
            message: Too many requests. Please try again later.
            errors:
              retry_after: 42
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Your API key, sent as `Authorization: Bearer sk_...`.'

````