Create Event Subscription
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/event-subscriptions \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"event": "<string>",
"url": "<string>",
"filters": {},
"secret": "<string>",
"cursor": "<string>",
"ttl_seconds": 301
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/event-subscriptions"
payload = {
"event": "<string>",
"url": "<string>",
"filters": {},
"secret": "<string>",
"cursor": "<string>",
"ttl_seconds": 301
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
event: '<string>',
url: '<string>',
filters: {},
secret: '<string>',
cursor: '<string>',
ttl_seconds: 301
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/event-subscriptions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Event subscriptions
Create Event Subscription
Verify the endpoint, then send it every matching event; subscribing again with the same values refreshes it.
POST
/
api
/
v1
/
event-subscriptions
Create Event Subscription
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/event-subscriptions \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"event": "<string>",
"url": "<string>",
"filters": {},
"secret": "<string>",
"cursor": "<string>",
"ttl_seconds": 301
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/event-subscriptions"
payload = {
"event": "<string>",
"url": "<string>",
"filters": {},
"secret": "<string>",
"cursor": "<string>",
"ttl_seconds": 301
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
event: '<string>',
url: '<string>',
filters: {},
secret: '<string>',
cursor: '<string>',
ttl_seconds: 301
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/event-subscriptions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));