# Events (/fr/docs/events)

<Endpoint method="GET" path="/v1/events" href="/api#tag/events/GET/v1/events" />

Every important change generates an event. It arrives by [webhook](/docs/webhooks) and stays in `GET /v1/events`, in the same shape:

```json
{
  "id": "evt_01m3sgb02af7nb0jf73vwv2sd5",
  "type": "payin.completed",
  "schema_version": 1,
  "occurred_at": "2026-10-18T12:03:12.418Z",
  "livemode": false,
  "data": {
    "id": "pin_01m3sg9x0000000000000000",
    "status": "completed",
    "funding_account_id": "fa_01m3sg9w0000000000000000",
    "amount": "45.871200",
    "currency": "USDT",
    "created_at": "2026-10-18T12:03:10Z",
    "completed_at": "2026-10-18T12:03:12Z"
  }
}
```

| Field | Description |
| --- | --- |
| `id` | The event id. Use it to avoid processing the same event twice. |
| `type` | What happened. |
| `schema_version` | The version of the `data` shape for that type. Currently `1`. |
| `occurred_at` | When it happened. |
| `livemode` | `true` in live, `false` in sandbox. |
| `data` | The resource, in the API's shape. It may gain new fields. |

Events never include beneficiary account details or your customers' personal data.

## Reading the log [#reading-the-log]

```bash
curl "$CAIBO_API/v1/events?after=$CURSOR&limit=100" -H "Authorization: Bearer $CAIBO_API_KEY"
```

- From **oldest to newest**. Store `next_cursor` (always present) and continue from there: you never skip an event.
- `type` filters by an exact type (`payout.completed`) or by a family ending in a dot (`payout.`).
- `resource_id` returns the history of one resource: `?resource_id=pout_…`.
- A brand-new event may take a moment to appear in the list; the webhook doesn't wait.

## Catalog [#catalog]

<Accordions>
<Accordion title="Pay-ins">
`funding_account.active`, `funding_account.failed`, `funding_account.cancel_requested`, `payin.completed`, `payin.failed`
</Accordion>
<Accordion title="Payouts">
`payout.created`, `payout.accepted`, `payout.cancel_requested`, `payout.completed`, `payout.failed`, `payout.cancelled`, `payout.returned`, `payout.return_settled`
</Accordion>
<Accordion title="Payout batches">
`payout_batch.created`, `payout_batch.completed`, `payout_batch.cancellation_requested`, `payout_batch.cancellation_finished`
</Accordion>
<Accordion title="Remittances">
`remittance.created`, `remittance.processing`, `remittance.review`, `remittance.completed`, `remittance.failed`, `remittance.returned`
</Accordion>
<Accordion title="Refunds">
`refund.created`, `refund.approved`, `refund.processing`, `refund.completed`, `refund.failed`
</Accordion>
<Accordion title="Withdrawals">
`withdrawal.created`, `withdrawal.pending_approval`, `withdrawal.approved`, `withdrawal.submitted`, `withdrawal.completed`, `withdrawal.failed`, `withdrawal.cancelled`
</Accordion>
<Accordion title="Settlements">
`settlement.created`, `settlement.processing`, `settlement.on_hold`, `settlement.completed`, `settlement.failed`, `settlement_schedule.activated`, `settlement_schedule.blocked`
</Accordion>
<Accordion title="Customers and beneficiaries">
`customer.created`, `customer.updated`, `customer.status_changed`, `beneficiary.created`, `beneficiary.verified`
</Accordion>
<Accordion title="Hosted page">
`hosted_session.created`, `hosted_session.payment_reported`
</Accordion>
<Accordion title="Risk and reconciliation">
`risk.review_required`, `reconciliation.exception_created`, `reconciliation.exception_resolved`
</Accordion>
<Accordion title="Webhooks">
`webhook.ping`
</Accordion>
</Accordions>

The list may grow. Ignore types you don't recognize; they shouldn't break your integration.
