The events endpoint requires read permission.
Authentication
https://platform-api.anyspend.com/api/v1
Endpoints
List Events
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).- cURL
- SDK
Event Object
| Field | Type | Description |
|---|---|---|
id | string | Unique event identifier (e.g., evt_abc123) |
event_type | string | The type of action that occurred (see Event Types) |
resource_type | string | The type of resource affected |
resource_id | string | The ID of the affected resource |
ip_address | string | IP address of the API caller |
request_method | string | HTTP method used (GET, POST, PATCH, DELETE) |
request_path | string | API path that was called |
status_code | number | HTTP status code returned |
created_at | string | ISO 8601 timestamp when the event was recorded |
Event Types
Events follow the pattern{resource_type}.{action}:
| Event Type | Description |
|---|---|
payment_link.created | A payment link was created |
payment_link.updated | A payment link was updated |
payment_link.deleted | A payment link was deleted |
product.created | A product was created |
product.updated | A product was updated |
product.deleted | A product was deleted |
webhook.created | A webhook endpoint was created |
webhook.updated | A webhook endpoint was updated |
webhook.deleted | A webhook endpoint was deleted |
discount_code.created | A discount code was created |
discount_code.updated | A discount code was updated |
discount_code.deleted | A discount code was deleted |
widget.created | A widget was created |
widget.updated | A widget was updated |
widget.deleted | A widget was deleted |
notification.updated | Notification settings were updated |
api_key.created | An API key was created |
api_key.revoked | An API key was revoked |
Resource Types
| Resource Type | Description |
|---|---|
payment_link | Payment link resources |
product | Product catalog entries |
webhook | Webhook endpoint configurations |
discount_code | Discount code entries |
widget | Widget configurations |
notification | Notification settings |
api_key | API key management |
Filtering Examples
Events for a specific date range
- cURL
- SDK
All webhook-related events
- cURL
- SDK
Deletion audit
- cURL
- SDK
Events are retained for 90 days. For longer retention, export events periodically using the date range filters.
HypeDuel