# GET /mail/queue/{id}/deliver

First published 17 Oct 2026 (release 0.2.8) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the mail group.

Get the progress of a traced delivery attempt

- Who may call it: administrator
- Token scope, any of: mail, read, all
- Answers: 200 OK

Poll this operation during a traced attempt started by POST /mail/queue/{id}/deliver. The delivery object contains the SMTP conversation and per-recipient status lines captured in the mail log since the attempt began.

The running field is false when no trace is active for the queue ID, including when no trace was requested or its wait expired. The API returns 400 if id falls outside the required format of 6 to 20 uppercase hexadecimal characters.

## As a command

- [urbestack-mail-queue-deliver](https://urbestack.com/docs/commands/urbestack-mail-queue-deliver.md): Asks Postfix to attempt delivery of one queued message immediately using postqueue -i.

## Parameters

- `id` (path, string, matching ^[A-F0-9]{6,20}$, required)

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
curl -sS -X GET "$API/mail/queue/1/deliver" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "delivery": {
    "before": {
      "attempt_count": 1,
      "attempts": [
        {
          "at": "text",
          "delay": 1,
          "dsn": "text",
          "relay": "text",
          "reply": "text",
          "status": "active",
          "to": "text"
        }
      ],
      "hops": [
        "text"
      ],
      "last_at": "text",
      "last_reply": "text",
      "last_status": "text",
      "log_lines": [
        "text"
      ],
      "message": {
        "arrival_time": 1,
        "forced_expire": 1,
        "id": 1,
        "queue": "text",
        "recipients": [
          {
            "address": "info@example.com",
            "delay_reason": "text"
          }
        ],
        "sender": "text",
        "size": 1
      },
      "next_hop": "text",
      "read_at": "text",
      "subject": "text",
      "subjects_logged": true
    },
    "delivering": true,
    "done": true,
    "hops": [
      "text"
    ],
    "id": 1,
    "lines": [
      {
        "at": "text",
        "dir": "out",
        "pid": 1,
        "text": "text"
      }
    ],
    "noise": 1,
    "read_at": "text",
    "results": [
      {
        "at": "text",
        "delay": 1,
        "dsn": "text",
        "relay": "text",
        "reply": "text",
        "status": "active",
        "to": "text"
      }
    ],
    "running": true,
    "traced": true,
    "wait": 1,
    "waited": 1
  }
}
```

## Errors

- 400: --id is required
- 400: A queue id is 6 to 20 uppercase hexadecimal characters
- 400: The mail stack is not installed on this server
- 401: Authentication required
