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

# Reject message

> Say no to one item from list-messages-for-review. A lead (gate "lead") is taken out of the campaign and moves to its rejected list; restore-rejected-lead undoes that. A written message (gate "message") is dropped and never sends, while the lead stays in the campaign.



## OpenAPI

````yaml /api-reference/openapi.json post /campaigns/{campaign}/review/{task}/reject
openapi: 3.1.0
info:
  title: LeadBeast API
  version: v1
  description: >-
    One workspace per API key. Send the key as `Authorization: Bearer lb_...`;
    each key carries `resource:read` / `resource:write` scopes. Every response
    is either `{"data": ..., "meta": ...}` or `{"error": ..., "meta": ...}`, and
    `X-Request-Id` on the response identifies the call in support. Write calls
    accept an `Idempotency-Key` header: repeating a call with the same key
    replays the original result instead of acting again. The same tools are
    available to AI clients over MCP at https://app.leadbeast.io/mcp.
servers:
  - url: https://app.leadbeast.io/api/v1
security:
  - bearer: []
tags:
  - name: business
  - name: leads
  - name: campaigns
  - name: inbox
paths:
  /campaigns/{campaign}/review/{task}/reject:
    post:
      tags:
        - campaigns
      summary: Reject message
      description: >-
        Say no to one item from list-messages-for-review. A lead (gate "lead")
        is taken out of the campaign and moves to its rejected list;
        restore-rejected-lead undoes that. A written message (gate "message") is
        dropped and never sends, while the lead stays in the campaign.
      operationId: reject-message
      parameters:
        - name: campaign
          in: path
          required: true
          description: The campaign id from list-campaigns.
          schema:
            type: string
        - name: task
          in: path
          required: true
          description: The task_id from list-messages-for-review.
          schema:
            type: string
        - name: Idempotency-Key
          in: header
          required: false
          description: >-
            Repeating a call with the same key replays the original result
            instead of acting again.
          schema:
            type: string
            minLength: 8
            maxLength: 128
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                reason:
                  description: >-
                    Why the lead was rejected, shown next to them on the
                    rejected list. Leads only.
                  maxLength: 500
                  type: string
      responses:
        '200':
          description: The call ran. Read `data.status` for what happened.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    properties:
                      status:
                        type: string
                        enum:
                          - completed
                          - queued
                          - processing
                          - partially_completed
                          - failed_temporary
                          - failed_permanent
                          - provider_unavailable
                          - rate_limited
                          - action_required
                        description: >-
                          What happened, machine-readable. Trust it over the
                          prose.
                      message:
                        type: string
                      campaign_id:
                        type: string
                      task_id:
                        type: string
                      lead_id:
                        description: Present when a lead was rejected.
                        type: string
                      replayed:
                        type: boolean
                        description: >-
                          Present and true when this is the stored result of an
                          earlier call with the same idempotency_key.
                    type: object
                    required:
                      - status
                      - message
                      - campaign_id
                      - task_id
                  meta:
                    $ref: '#/components/schemas/Meta'
                required:
                  - data
                  - meta
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '402':
          $ref: '#/components/responses/SubscriptionRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/ActionRequired'
        '422':
          $ref: '#/components/responses/ValidationFailed'
        '429':
          $ref: '#/components/responses/RateLimited'
        '503':
          $ref: '#/components/responses/Unavailable'
components:
  schemas:
    Meta:
      type: object
      properties:
        request_id:
          type: string
        replayed:
          type: boolean
      required:
        - request_id
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            status:
              type: string
              enum:
                - completed
                - queued
                - processing
                - partially_completed
                - failed_temporary
                - failed_permanent
                - provider_unavailable
                - rate_limited
                - action_required
            reason_code:
              type:
                - string
                - 'null'
            message:
              type: string
          required:
            - status
            - message
        meta:
          $ref: '#/components/schemas/Meta'
      required:
        - error
        - meta
  responses:
    Unauthenticated:
      description: The API key is missing, expired or revoked.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    SubscriptionRequired:
      description: The workspace has no active subscription.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: The key lacks the scope, or the plan lacks API access.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: No such record in this workspace.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ActionRequired:
      description: The request was understood but cannot run in the current state.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ValidationFailed:
      description: One or more arguments are invalid; see `error.errors`.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Too many requests. Wait for `Retry-After` seconds.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unavailable:
      description: A dependency failed. The call is safe to retry.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearer:
      type: http
      scheme: bearer

````

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