Events and webhooks
Every change is recorded as an event and kept for 30 days. Read them from the events feed, or have them delivered to your own HTTPS endpoint as signed webhooks. How deliveries work and how to verify them: Webhooks.
List events
GET/v1/events
Requires the scope webhooks:manage.
Available from phase 2
Changes of the last 30 days, deletions included, oldest first. Use it to pick up deletes that updated_after can't show.
Query parameters
typestring
Only this event type, for example ride.deleted.
created_afterISO 8601
Only events after this time.
limitinteger
Page size, 1 to 100. Default 25.
cursorstring
The next_cursor of the previous page.
Get an event
GET/v1/events/{id}
Requires the scope webhooks:manage.
Available from phase 2
One event, as it was delivered.
List webhook endpoints
GET/v1/webhook-endpoints
Requires the scope webhooks:manage.
Available from phase 3
The company's webhook endpoints. The signing secret is never returned.
Create a webhook endpoint
POST/v1/webhook-endpoints
Requires the scope webhooks:manage.
Available from phase 3
Register an HTTPS URL for the events you choose, up to 10 endpoints per company. The response is the only time the signing secret is shown.
Body
urlstringrequired
An https:// URL. Private and local addresses are refused.
eventsstring[]required
Event types, for example ride.created. ride.* matches all ride events.
Update a webhook endpoint
PATCH/v1/webhook-endpoints/{id}
Requires the scope webhooks:manage.
Available from phase 3
Change the URL or the events, or turn the endpoint off and on.
Body
urlstring
An https:// URL.
eventsstring[]
Event types.
enabledboolean
Pause or resume deliveries.
Delete a webhook endpoint
DELETE/v1/webhook-endpoints/{id}
Requires the scope webhooks:manage.
Available from phase 3
Stop delivering to this endpoint and forget it.
Send a test event
POST/v1/webhook-endpoints/{id}/test
Requires the scope webhooks:manage.
Available from phase 3
Deliver a signed ping event to the endpoint, to check your receiver.
Rotate the signing secret
POST/v1/webhook-endpoints/{id}/rotate-secret
Requires the scope webhooks:manage.
Available from phase 3
Issue a new signing secret. For 24 hours both secrets sign each delivery, so you can switch without missing one.
Redeliver an event
POST/v1/events/{id}/redeliver
Requires the scope webhooks:manage.
Available from phase 3
Deliver an event to its endpoints again, for example after your receiver was down.