---
title: "Get audit events for sponsorship configuration changes"
method: GET
path: "/v1/domains/{domainId}/sponsor/events"
tags: ["Gas station"]
---

# Get audit events for sponsorship configuration changes

`GET /v1/domains/{domainId}/sponsor/events`

## Request

- Base URL: `https://docs.ripple.com` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.ripple.com/v1/domains/{domainId}/sponsor/events`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/ripple/apis/ripple-custody-api/docs/v1/domains/:domainId/sponsor/events/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `domainId` string, required

## Query parameters

- `accountId` string
- `startDate` string
- `endDate` string
- `eventType` 'CREATE' | 'UPDATE' | 'DELETE'
- `limit` number
- `startingAfter` string

## Response `200`

Audit events

- GasStationEventsResponseDto
  - `items` GasStationAuditEventDto[], required
    - `id` string, required
    - `eventType` 'CREATE' | 'UPDATE' | 'DELETE', required
    - `accountId` string, required
    - `domainId` string, required
    - `payload` object, required: Sponsor configuration snapshot at the time of the event
    - `timestamp` string, required
  - `count` number, required
  - `currentStartingAfter` string
  - `nextStartingAfter` string

## Other responses

- `400`: Invalid query parameters
- `500`: Internal server error

---

[API](https://skmtc.dev/ripple/apis/ripple-custody-api.md) - [All operations](https://skmtc.dev/ripple/apis/ripple-custody-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ripple/apis/ripple-custody-api/revisions/c6f0ad6b70c0?raw)
