# Get a webhook delivery (/api-reference/webhooks/getWebhookDelivery)

## GET /api/v1/webhook-deliveries/{delivery_id}

Operation ID: `getWebhookDelivery`
Get a webhook delivery
Includes the exact event `payload` that was signed and sent.

### Parameters

| Name | In | Required | Description |
|---|---|---|---|
| `delivery_id` | path | yes | Webhook delivery id. |

### Responses

#### 200 OK

Example (example):

```json
{
  "success": true,
  "webhookDelivery": {
    "attempts": 1,
    "createdAt": "2026-11-15T10:41:47.106000+00:00",
    "deliveredAt": "2026-11-15T10:42:07.512000+00:00",
    "endpointId": "4f0c2a8e-7b1d-4c39-9a51-2d6e8f3b1c07",
    "eventId": "evt_6f1c9e2ab4d84f0e9c3a7b51d2e8f604",
    "eventType": "call.completed",
    "id": "b2e7d1c4-9f3a-4e58-8c06-1a7d5e2f9b43",
    "lastAttemptAt": "2026-11-15T10:42:07.512000+00:00",
    "lastError": "",
    "lastStatusCode": 200,
    "latencyMs": 184,
    "payload": {
      "apiVersion": "v1",
      "createdAt": "2026-11-15T10:41:47.106000Z",
      "data": {
        "agentId": "3a8f6d2c-1b7e-4c95-a0d4-5e9b2f7c1a68",
        "callId": "9c1e5b7a-2d4f-4a86-b3e0-7f6a1c8d2e95",
        "campaignId": "7d2b9f4e-5a1c-4e83-b6f0-3c8e2a9d1f57",
        "direction": "outbound",
        "duration": 143,
        "endedReason": "customer-ended-call",
        "leadId": "1f6e3a9c-8b2d-4d75-a4c1-9e7b5f2a3d86",
        "outcome": "interested",
        "phone": "+919876543210",
        "sentiment": "positive",
        "status": "completed",
        "summary": "Customer agreed to a demo on Friday at 4 pm."
      },
      "id": "evt_6f1c9e2ab4d84f0e9c3a7b51d2e8f604",
      "type": "call.completed"
    },
    "responseSnippet": "ok",
    "status": "delivered"
  }
}
```

#### 401 Unauthorized: `api_key_expired`, `invalid_api_key`, `unauthenticated`.

Example (The API key has expired.):

```json
{
  "detail": "The API key has expired.",
  "error": {
    "code": "api_key_expired",
    "docUrl": "https://docs.callmitra.ai/errors/api_key_expired",
    "message": "The API key has expired.",
    "param": null,
    "requestId": "req_5f1c2e9b7a3d4c0e8b6a1f2d3c4b5a69",
    "type": "authentication_error"
  }
}
```

Example (The API key is invalid or has been revoked.):

```json
{
  "detail": "The API key is invalid or has been revoked.",
  "error": {
    "code": "invalid_api_key",
    "docUrl": "https://docs.callmitra.ai/errors/invalid_api_key",
    "message": "The API key is invalid or has been revoked.",
    "param": null,
    "requestId": "req_5f1c2e9b7a3d4c0e8b6a1f2d3c4b5a69",
    "type": "authentication_error"
  }
}
```

Example (Authentication required.):

```json
{
  "detail": "Authentication required.",
  "error": {
    "code": "unauthenticated",
    "docUrl": "https://docs.callmitra.ai/errors/unauthenticated",
    "message": "Authentication required.",
    "param": null,
    "requestId": "req_5f1c2e9b7a3d4c0e8b6a1f2d3c4b5a69",
    "type": "authentication_error"
  }
}
```

#### 403 Forbidden: `api_key_scope_denied`, `permission_denied`.

Example (The API key does not have the scope required for this request.):

```json
{
  "detail": "The API key does not have the scope required for this request.",
  "error": {
    "code": "api_key_scope_denied",
    "docUrl": "https://docs.callmitra.ai/errors/api_key_scope_denied",
    "message": "The API key does not have the scope required for this request.",
    "param": null,
    "requestId": "req_5f1c2e9b7a3d4c0e8b6a1f2d3c4b5a69",
    "type": "permission_error"
  }
}
```

Example (You do not have permission to perform this action.):

```json
{
  "detail": "You do not have permission to perform this action.",
  "error": {
    "code": "permission_denied",
    "docUrl": "https://docs.callmitra.ai/errors/permission_denied",
    "message": "You do not have permission to perform this action.",
    "param": null,
    "requestId": "req_5f1c2e9b7a3d4c0e8b6a1f2d3c4b5a69",
    "type": "permission_error"
  }
}
```

#### 404 Not found: `webhook_delivery_not_found`.

Example (Webhook delivery not found.):

```json
{
  "detail": "Webhook delivery not found.",
  "error": {
    "code": "webhook_delivery_not_found",
    "docUrl": "https://docs.callmitra.ai/errors/webhook_delivery_not_found",
    "message": "Webhook delivery not found.",
    "param": null,
    "requestId": "req_5f1c2e9b7a3d4c0e8b6a1f2d3c4b5a69",
    "type": "not_found_error"
  }
}
```

#### 422 Invalid parameters: `parameter_invalid`.

Example (One or more parameters are invalid.):

```json
{
  "detail": [
    {
      "loc": [
        "body",
        "phone"
      ],
      "msg": "Field required",
      "type": "missing"
    }
  ],
  "error": {
    "code": "parameter_invalid",
    "docUrl": "https://docs.callmitra.ai/errors/parameter_invalid",
    "message": "One or more parameters are invalid.",
    "param": "phone",
    "requestId": "req_5f1c2e9b7a3d4c0e8b6a1f2d3c4b5a69",
    "type": "invalid_request_error"
  }
}
```

#### 429 Too many requests: `rate_limit_exceeded`.

Example (Too many requests. Slow down and retry later.):

```json
{
  "detail": "Too many requests. Slow down and retry later.",
  "error": {
    "code": "rate_limit_exceeded",
    "docUrl": "https://docs.callmitra.ai/errors/rate_limit_exceeded",
    "message": "Too many requests. Slow down and retry later.",
    "param": null,
    "requestId": "req_5f1c2e9b7a3d4c0e8b6a1f2d3c4b5a69",
    "type": "rate_limit_error"
  }
}
```

#### 500 Server error: `internal_error`.

Example (Something went wrong on our side.):

```json
{
  "detail": "Something went wrong on our side.",
  "error": {
    "code": "internal_error",
    "docUrl": "https://docs.callmitra.ai/errors/internal_error",
    "message": "Something went wrong on our side.",
    "param": null,
    "requestId": "req_5f1c2e9b7a3d4c0e8b6a1f2d3c4b5a69",
    "type": "api_error"
  }
}
```

### Error codes

- [`api_key_expired`](/errors/api_key_expired)
- [`invalid_api_key`](/errors/invalid_api_key)
- [`unauthenticated`](/errors/unauthenticated)
- [`api_key_scope_denied`](/errors/api_key_scope_denied)
- [`permission_denied`](/errors/permission_denied)
- [`webhook_delivery_not_found`](/errors/webhook_delivery_not_found)
- [`parameter_invalid`](/errors/parameter_invalid)
- [`rate_limit_exceeded`](/errors/rate_limit_exceeded)
- [`internal_error`](/errors/internal_error)
