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

# Cancel a scheduled send

> Stop a scheduled email before it goes out. Also dismisses a failed one so it leaves the scheduled list. A send that is already going out or has been sent cannot be cancelled.



## OpenAPI

````yaml https://api.openmail.sh/openapi.json delete /v1/inboxes/{id}/scheduled-sends/{sendId}
openapi: 3.0.3
info:
  title: OpenMail API
  description: >-
    Email infrastructure API for AI agents. Create inboxes, send and receive
    email, and get real-time notifications via webhooks.
  version: 1.0.0
  license:
    name: Proprietary
servers:
  - url: https://api.openmail.sh
security:
  - bearerAuth: []
tags:
  - name: pods
    description: Isolated sub-accounts for your end users or tenants
  - name: inboxes
    description: Email inboxes and their webhook configuration
  - name: domains
    description: >-
      Custom domains: add your own sending/receiving domain, publish DNS, and
      verify it
  - name: owned-domains
    description: >-
      Domains your organisation controls but does not send from. Prove ownership
      with one TXT record and mail to their addresses stops counting toward the
      cold outreach limits.
  - name: messages
    description: Sending and listing messages
  - name: folders
    description: Inbox folders and per-message filing
  - name: drafts
    description: Create, view, edit and send saved email drafts
  - name: threads
    description: Conversation threads and read status
  - name: attachments
    description: Downloading and extracting text from attachments
  - name: policy
    description: >-
      Correspondent policy — provider-enforced allow/block rules and allowlist
      mode, scoped per account, pod, or inbox. Account-wide key only.
  - name: limits
    description: >-
      Sending limits: today's cold outreach caps on new recipients, per account,
      inbox, and domain, and what raises them
  - name: webhooks
    description: >-
      Webhook endpoints: where events are sent, how each request is
      authenticated, and the delivery log. Account-wide key only.
  - name: feedback
    description: Reporting bugs, friction, and feature requests to the OpenMail team
paths:
  /v1/inboxes/{id}/scheduled-sends/{sendId}:
    delete:
      tags:
        - messages
      summary: Cancel a scheduled send
      description: >-
        Stop a scheduled email before it goes out. Also dismisses a failed one
        so it leaves the scheduled list. A send that is already going out or has
        been sent cannot be cancelled.
      operationId: cancelScheduledSend
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
        - schema:
            type: string
          in: path
          name: sendId
          required: true
      responses:
        '200':
          description: Cancelled
          content:
            application/json:
              schema:
                description: Cancelled
                type: object
                required:
                  - id
                  - inboxId
                  - status
                  - sendAt
                  - to
                  - subject
                  - createdAt
                properties:
                  id:
                    type: string
                  inboxId:
                    type: string
                  status:
                    type: string
                    enum:
                      - scheduled
                      - sending
                      - sent
                      - cancelled
                      - failed
                  sendAt:
                    type: string
                    format: date-time
                  to:
                    type: string
                  cc:
                    type: array
                    items:
                      type: string
                  bcc:
                    type: array
                    items:
                      type: string
                  subject:
                    type: string
                  threadId:
                    type: string
                    nullable: true
                  messageId:
                    type: string
                    nullable: true
                  error:
                    type: string
                    description: Why the send is waiting to retry, or why it failed.
                    nullable: true
                  createdAt:
                    type: string
                    format: date-time
                  attachmentCount:
                    type: integer
        '404':
          description: Inbox or scheduled send not found
          content:
            application/json:
              schema:
                description: Inbox or scheduled send not found
                allOf:
                  - $ref: '#/components/schemas/Error'
        '409':
          description: >-
            The send is already going out or has been sent
            (`scheduled_send_closed`)
          content:
            application/json:
              schema:
                description: >-
                  The send is already going out or has been sent
                  (`scheduled_send_closed`)
                allOf:
                  - $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      additionalProperties: true
      properties:
        error:
          type: string
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key

````

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