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

# Cancel an active request

> Idempotently cancel an active request (`processing`, `needs_input`, or `in_progress`). Stops pending and scheduled calls. Returns `409 Conflict` if the request is already `completed` or `failed`.



## OpenAPI

````yaml /openapi.json post /api/v1/requests/{request_id}/cancel
openapi: 3.1.0
info:
  title: Aurora SDK API
  summary: >-
    Programmatic voice outreach API for real-world phone calls, quotes,
    availability checks, and reservations.
  description: >-
    Authenticate every request with a project-scoped API key via `Authorization:
    Bearer ask_...` or `X-API-Key: ask_...`.
  version: 1.0.0
servers:
  - url: https://staging.sdk.aurorax.co
    description: Staging
security:
  - BearerAuth: []
  - ApiKeyAuth: []
tags:
  - name: Requests
    description: >-
      Create, clarify, inspect, cancel, and retrieve call transcripts and
      recordings for outreach requests.
  - name: Linked Phone Numbers
    description: >-
      Verify and manage user-owned phone numbers that can be used as outbound
      caller IDs.
  - name: Webhooks
    description: >-
      HMAC-SHA256 signed HTTP POST events delivered to your webhook URL as
      outreach progresses.
paths:
  /api/v1/requests/{request_id}/cancel:
    post:
      tags:
        - Requests
      summary: Cancel an active request
      description: >-
        Idempotently cancel an active request (`processing`, `needs_input`, or
        `in_progress`). Stops pending and scheduled calls. Returns `409
        Conflict` if the request is already `completed` or `failed`.
      operationId: cancel_request
      parameters:
        - name: request_id
          in: path
          required: true
          schema:
            type: string
            title: Request Id
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
                - $ref: '#/components/schemas/CancelSdkRequestInput'
                - type: 'null'
              title: Body
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CancelSdkRequestResponse'
        '401':
          description: Missing, invalid, or revoked API key.
        '402':
          description: Organization billing is not active or payment is past due.
        '403':
          description: Project is suspended.
        '404':
          description: Resource was not found in this project.
        '409':
          description: >-
            Request state conflict (for example, already submitted or already
            terminal).
        '422':
          description: Validation error in request payload or headers.
components:
  schemas:
    CancelSdkRequestInput:
      properties:
        reason:
          anyOf:
            - type: string
              maxLength: 500
            - type: 'null'
          title: Reason
      type: object
      title: CancelSdkRequestInput
    CancelSdkRequestResponse:
      properties:
        request_id:
          type: string
          title: Request Id
        status:
          $ref: '#/components/schemas/RequestStatus'
        cancelled_at:
          type: string
          format: date-time
          title: Cancelled At
      type: object
      required:
        - request_id
        - status
        - cancelled_at
      title: CancelSdkRequestResponse
    RequestStatus:
      type: string
      enum:
        - processing
        - needs_input
        - in_progress
        - completed
        - failed
        - cancelled
      title: RequestStatus
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Project API key (`ask_live_...` or `ask_test_...`) passed in the
        `Authorization` header.
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Alternative header for passing the project API key.

````

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