List the event types you can subscribe to
On this page
GET
/v1/event-typeslist_event_types| Risk | read |
| Authentication | API key or OAuth access token |
| Scopes | none (any valid credential) |
| Idempotency | natural: repeating the call gives the same result |
| Dry run | not applicable |
| Success status | 200 |
| Response type | application/json |
What it does#
- Use when: You choose which events a webhook endpoint should receive, or which type to filter the event feed by.
- Do not use when: you want the events themselves (call list_events).
- Side effects: None.
- Reversible: Not applicable, nothing changes.
- Required scope: none (any valid credential).
- Idempotency: safe to repeat.
- Typical next step: call create_webhook_endpoint with the types you picked.
Request#
Path parameters#
None.
Query parameters#
None.
Every read also accepts fields=a,b,c to return only those top-level fields.
Response#
| Field | Type | Required | Description |
|---|---|---|---|
data | array of object | yes | |
data[].type | string | yes | The event type, for example subscriber.confirmed. |
data[].group | string | yes | The family the type belongs to. |
data[].description | string | yes |
Examples#
catalog#
Request:
curl 'https://api.seemly.com/v1/event-types' \
-H "Authorization: Bearer $SEEMLY_API_KEY"const response = await fetch("https://api.seemly.com/v1/event-types", {
headers: {
"Authorization": `Bearer ${process.env.SEEMLY_API_KEY}`,
},
});
const result = await response.json();
console.log(response.status, result);import os
import requests
response = requests.get(
"https://api.seemly.com/v1/event-types",
headers={
"Authorization": f"Bearer {os.environ['SEEMLY_API_KEY']}",
},
)
print(response.status_code, response.json())Response: 200:
{
"data": [
{
"type": "subscriber.confirmed",
"group": "subscriber",
"description": "A subscriber confirmed their address."
}
]
}Errors#
| Status | Codes |
|---|---|
| 401 | unauthenticated, credential_revoked, credential_expired |
| 403 | plan_does_not_include, api_suspended, consent_required |
| 429 | rate_limited |
| 503 | service_unavailable |
Every error is an application/problem+json body with a code, a fix sentence and next_actions. See reading a problem response.