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

# Cancelar RCS agendado ou na fila



## OpenAPI

````yaml /es/rcs-api/api-reference/openapi-rcs.json post /v1/rcs/messages/{id}/cancel
openapi: 3.0.3
info:
  title: API RCS de Notifique
  description: >-
    Envíe mensajes RCS, gestione agentes (instancias) y consulte respuestas
    recibidas. Autentique com `Authorization: Bearer sk_live_...` ou
    `x-api-key`.
  version: 1.0.0
servers:
  - url: https://api.notifique.dev
    description: Producción
security:
  - ntfRcsBearerAuth: []
  - ntfRcsApiKeyHeader: []
tags:
  - name: Mensagens
    description: Envío, listado, consulta y cancelación de mensajes RCS salientes.
  - name: Instâncias
    description: >-
      Agentes RCS de marca del workspace: creación, revisión y
      aprovisionamiento.
  - name: Inbound
    description: Mensajes RCS recibidos (MO) en el workspace.
paths:
  /v1/rcs/messages/{id}/cancel:
    post:
      tags:
        - Mensagens
      summary: Cancelar RCS agendado ou na fila
      operationId: ntfRcs_postV1RcsCancel
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: RCS cancelado.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NtfRcs_CancelRcsResponse'
              example:
                success: true
                data:
                  rcsId: clrcs1...
                  status: CANCELLED
        '400':
          description: Só cancela com status QUEUED ou SCHEDULED.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NtfRcs_ErrorResponse'
              example:
                success: false
                error: Bad Request
                message: Only queued or scheduled RCS can be cancelled.
                code: BAD_REQUEST
                data:
                  status: SENT
        '401':
          description: API Key ausente ou inválida.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NtfRcs_ErrorResponse'
              example:
                success: false
                error: Unauthorized
                message: Invalid or missing API Key
                code: UNAUTHORIZED
        '403':
          description: Escopo `rcs:cancel` ausente.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NtfRcs_ErrorResponse'
              example:
                success: false
                error: Forbidden
                message: 'Missing scope: rcs:cancel'
                code: FORBIDDEN
        '404':
          description: RCS não encontrado.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NtfRcs_ErrorResponse'
              example:
                success: false
                error: Not Found
                message: RCS message not found
                code: NOT_FOUND
components:
  schemas:
    NtfRcs_CancelRcsResponse:
      type: object
      properties:
        success:
          type: boolean
        data:
          type: object
          properties:
            rcsId:
              type: string
            status:
              type: string
              enum:
                - CANCELLED
      example:
        success: true
        data:
          rcsId: clxx...
          status: CANCELLED
    NtfRcs_ErrorResponse:
      type: object
      required:
        - success
        - error
        - message
        - code
      properties:
        success:
          type: boolean
          example: false
        error:
          type: string
        message:
          type: string
        code:
          type: string
        details:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
              message:
                type: string
        data:
          type: object
          additionalProperties: true
          properties:
            status:
              type: string
              example: SENT
      example:
        success: false
        error: string
        message: string
        code: string
        details:
          - field: string
            message: string
        data: {}
  securitySchemes:
    ntfRcsBearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        API Key no header Authorization. Exemplo: `Authorization: Bearer
        sk_live_xxxxx`
    ntfRcsApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
      description: 'API Key no header x-api-key. Exemplo: `x-api-key: sk_live_xxxxx`'

````