Skip to main content
The events endpoint provides an audit trail of all API actions taken on your account. Every create, update, and delete operation is recorded with metadata including the request method, path, IP address, and status code.
The events endpoint requires read permission.

Authentication

Base URL: https://platform-api.anyspend.com/api/v1

Endpoints

List Events

read
List API events with optional filtering. Results are returned in reverse chronological order (newest first).
string
Filter by event type (e.g., payment_link.created, webhook.updated, discount_code.deleted).
string
Filter by resource type (e.g., payment_link, webhook, discount_code, widget, notification).
string
ISO 8601 timestamp. Only return events created at or after this time.
string
ISO 8601 timestamp. Only return events created at or before this time.
number
Page number for pagination (default: 1).
number
Results per page (default: 20, max: 100).
Response

Event Object

Event Types

Events follow the pattern {resource_type}.{action}:

Resource Types


Filtering Examples

Events for a specific date range

Deletion audit

Events are retained for 90 days. For longer retention, export events periodically using the date range filters.