---
title: "The domain's timeline"
method: GET
path: "/connections/{id}/events"
tags: ["Connections"]
---

# The domain's timeline

`GET /connections/{id}/events`

## Request

- Base URL: `https://api.customdomain.ai/v1`
- URL: `https://api.customdomain.ai/v1/connections/{id}/events`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

What happened to the domain, newest first: certificates issued, renewed, failing and expiring; drift found and what was done about it; access kept and revoked. `kind` narrows it to a prefix (`certificate.`, `drift.`, `access.`); `before` pages back with the previous page's `next_before`. An end user's widget token (scope `connect`) reads this only when it is bound to the domain and minted with the connection's own `end_user_ref`; use an API key otherwise.

## Path parameters

- `id` string, required

## Query parameters

- `kind` string
- `before` string, date-time
- `limit` integer

## Response `200`

The events

- object
  - `connection_id` string, required
  - `domain` string, required
  - `events` DomainEvent[], required
    - `id` string, required
    - `application_id` string
    - `connection_id` string
    - `domain` string, required
    - `kind` string, required: One of connection.created, connection.applied, connection.live, connection.failed, connection.records.updated, connection.reapply.failed, connection.records_outdated, connection.disconnected, records.removed, records.rewritten, certificate.issued, certificate.renewed, certificate.failed, certificate.expiring, certificate.removed, drift.found, drift.fixed, drift.fix_failed, drift.action_required, drift.restored, access.granted, access.revoked, access.needs_reconnect. A connection or certificate kind that is also a webhook event type is written with the webhook, so the timeline and an integrator see the same history.
    - `detail` object
    - `created_at` string, date-time, required
  - `next_before` string, date-time

## Other responses

- `400`: Error envelope: {code, title, details}.
- `401`: Error envelope: {code, title, details}.
- `404`: Error envelope: {code, title, details}.

---

[API](https://skmtc.dev/customdomain/apis/customdomain-control-plane-api.md) · [All operations](https://skmtc.dev/customdomain/apis/customdomain-control-plane-api/llms.txt) · [OpenAPI document](https://skmtc.dev/customdomain/apis/customdomain-control-plane-api/revisions/34d89cb7a7cd?raw)
