---
title: "Approve one waiting gift"
method: POST
path: "/queue/approve"
tags: ["Queue & balance", "Human only"]
---

# Approve one waiting gift

`POST /queue/approve`

## Request

- Base URL: `https://gtmswag.com/api/v1`
- URL: `https://gtmswag.com/api/v1/queue/approve`
- Auth: API key in cookie `gtm_session`

Human only: A signed-in owner or admin does this in the browser at gtmswag.com. API keys and OAuth connections receive 403 HUMAN_APPROVAL_REQUIRED with a `url` to hand to that person. Hand the item's `approvalUrl` to them. Approving charges the workspace balance and prepares the gift; `approveRepeat:true` also approves someone gifted by another campaign.

## Request body

- object
  - `campaignId` string, required: Campaign ID (cmp_): a saved campaign or playbook.
  - `recipientId` string, required: Stable workspace recipient ID; never infer from a name.
  - `approveRepeat` boolean: True also approves another gift for someone who already received one from another campaign.

## Response `200`

Success: `{"data": Send}`.

- SendResponse: The success body: `{"data": Send}`.
  - `data` Send, required: One gift (send) with its immutable mode, status, outcome and timeline.
    - `id` string, required
    - `recipient` Recipient, required
      - `recipientId` string, required
      - `name` string, required
      - `email` string, required
      - `company` string, required
      - `sourceSystem` string
      - `externalId` string
      - `profileUrl` string
      - `importId` string
      - `importRowId` string
      - `addressMode` 'known' | 'confirm'
    - `campaignId` string, nullable, required
    - `status` 'awaiting_address' | 'queued' | 'in_production' | 'shipped' | 'delivered' | 'cancelled', required
    - `totalCents` integer, required
    - `testMode` boolean, required
    - `fundedBy` 'balance': balance: the gift was paid from the workspace balance when it was approved; it never needs a checkout.
    - `autoApproved` boolean: true when the playbook's auto-approve rule approved the gift rather than a person.

## Other responses

- `400`: Bad request: `VALIDATION_ERROR`, `INVALID_JSON`. Each example says when.
- `401`: Not authenticated: `AUTH_REQUIRED`. no credentials, or an OAuth token on a route that only takes workspace keys; the key is malformed, unknown or revoked.
- `402`: Payment required: `INSUFFICIENT_BALANCE`. Each example says when.
- `403`: Forbidden: `HUMAN_APPROVAL_REQUIRED`, `TEAM_MANAGER_REQUIRED`. Each example says when.
- `404`: Not found: `NOT_FOUND`, `RECIPIENT_NOT_FOUND`. Each example says when.
- `409`: Conflict: `NOT_ALWAYS_ON`, `PLAYBOOK_OFF`, `CHECKOUT_REQUIRED`, `RECIPIENT_SKIPPED`, `REPEAT_REVIEW_REQUIRED`, `BUDGET_CAP`, `LIVE_ADDRESSLESS_UNAVAILABLE`, `ALREADY_APPROVED`, `BALANCE_CHANGED`, `PLAYBOOK_BUSY`, `GIFT_RETIRED`, `GIFT_UNAVAILABLE`, `PRICE_QUOTE_REQUIRED`. Each example says when.
- `413`: Request too large: `INVALID_REQUEST`. the body exceeds 1 MiB.
- `415`: Unsupported media type: `INVALID_REQUEST`. a write with a body that is not `Content-Type: application/json` (a key request with no body needs no Content-Type).
- `429`: Too many requests: `RATE_LIMIT`. more than 240 requests in the current minute for this workspace (REST and MCP share the limit); wait `retryAfterMs`.
- `default`: Any other refusal or failure, such as 403 CSRF (a cross-origin `Origin` header), 403 HTTPS_REQUIRED or 500 INTERNAL_ERROR, with what to do next.

---

[API](https://skmtc.dev/gtmswag/apis/gtm-swag-api.md) · [All operations](https://skmtc.dev/gtmswag/apis/gtm-swag-api/llms.txt) · [OpenAPI document](https://skmtc.dev/gtmswag/apis/gtm-swag-api/revisions/9ff86fa99afe?raw)
