Event types
The webhook events the Teams API sends, what triggers each one, and its payload.
Last updated
Was this helpful?
The webhook events the Teams API sends, what triggers each one, and its payload.
The Teams API sends these events to your destination when coaches and athletes register or are deleted, and when requested data is ready.
Every request to Terra, and every event from Terra, carries a terra-reference header with a unique identifier for the request or event.
When a request for data leads to data being sent to your server asynchronously, the request and the event share the same terra-reference. Use it to track whether a data request has been fulfilled or is still pending.
Slug:
athlete.registered
Trigger:
One or more athletes have been registered under an associated coach.
Recommended action:
Save the athletes to your database, and send a PATCH for each athlete to attach its reference ID.
Format:
{
"data": Coach,
"message": "One or more Athletes have been successfully registered",
"type": "athlete.registered"
}Slug:
athlete.deleted
Trigger:
One or more athletes have been deleted.
Recommended action:
Remove the athletes' information from your database as your requirements dictate, or record that they have been deleted on the provider's system.
Format:
{
"data": [athlete],
"message": "One or more Athletes have been deleted",
"type": "athlete.deleted"
}Last updated
Was this helpful?
Was this helpful?
{
"data": [Test],
"coach": Coach,
"type": "test.retrieved"
}{
"data": [Activity],
"coach": Coach,
"type": "activity.retrieved"
}