# Inbox delivery report

`POST /workspace/inbox/delivery-events` · Rivier · inbox

Report what happened to sent messages (delivered, temporary or permanent bounce, complaint); permanent bounces and complaints put the address on the do-not-send list (owner or manager, or the project's key).

- Scope: inbox:write
- Graphql: Mutation.inboxDeliveryReport
- Sdk: inbox.delivery.report
- Cli: inbox delivery report

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "events": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "delivered",
              "soft_bounce",
              "hard_bounce",
              "complaint"
            ]
          },
          "address": {
            "type": "string",
            "minLength": 3,
            "maxLength": 254
          },
          "providerId": {
            "type": "string",
            "maxLength": 300
          },
          "messageId": {
            "type": "string",
            "maxLength": 500
          },
          "detail": {
            "type": "string",
            "maxLength": 500
          }
        },
        "required": [
          "kind",
          "address"
        ],
        "additionalProperties": false
      },
      "minItems": 1,
      "maxItems": 100
    }
  },
  "required": [
    "events"
  ],
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/workspace/inbox/delivery-events' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "events": [
    {
      "kind": "delivered",
      "address": "string"
    }
  ]
}'
```
