For the complete documentation index, see llms.txt. This page is also available as Markdown.

Event types

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.

Coach

Coach registration

Slug:

coach.registered

Trigger:

A coach has authenticated under your dev ID.

Recommended action:

Save the coach to your database.

Format:

{
  "data": Coach,
  "message": "Coach has successfully registered",
  "type": "coach.registered"
}

Athlete

Athlete creation

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"
}
Athlete deletion

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"
}

Data requests

Tests retrieved

Slug:

test.retrieved

Trigger:

One or more tests have been retrieved.

Recommended action:

Save the test data as your requirements dictate, and update existing tests by their unique IDs.

Format:

Activities retrieved

Slug:

activity.retrieved

Trigger:

One or more activities have been retrieved.

Recommended action:

Save the activity data as your requirements dictate, and update existing activities by their unique IDs.

Format:

Last updated

Was this helpful?