API Endpoints
Was this helpful?
Was this helpful?
Generates a link to redirect an end user to for them to select an integration and log in with their fitness data provider
/widget/api/session
your developer ID
testingTerra
your API key
OtHJok60oQmT8zhnUWc4SWBJI7ztPTs88C0gOsJJ
Comma separated list of providers to display on the device selection page
VALD,CATAPULT
Display language of the widget
en
Identifier of the end user on your system, such as a user ID or email associated with them
[email protected]
URL the user is redirected to upon successful authentication
https://myapp.com/success
URL the user is redirected to upon unsuccessful authentication
https://myapp.com/failure
Registers a new coach with credentials and integration specifics.
/coaches
Unique identifier for the coach, generated by the server.
Identifier of the coach on the provider's systems
ID of the coach on your system
Region in which the coach operates.
Integration provider associated with the coach (e.g., VALD, Catapult).
The date and time when the coach was registered.
Public identifier for the coach.
Secret key or token for authentication.
API key or token for the coach object
Returns the schema of activity metrics available for the specified coach.
/coaches/{coachId}/activities/metrics/schema
Unique identifier of the coach.
/athletes/{athleteId}
The ID of the coach to which the athlete belongs
Unique identifier for the athlete, generated by the server.
Unique identifier for the athlete on the provider's system, generated by the provider (e.g. VALD, Catapult)
A string to reference the Athlete. This can be a UUID, email, or other, and can be used to reconcile the Athlete with your internal systems.
Integration provider associated with the Athlete (e.g., VALD, Catapult).
Athlete's first name.
Athlete's last name
Athlete's email
The date and time when the athlete was registered.
The date of birth of the athlete
The date and time when the athlete was last updated (e.g. updated their first and last name).
Determines whether or not Terra will send webhooks for the given athlete
No body
Allows a developer to partially update multiple athlete records in a single request.
/athletes
Your developer ID
testingTerra
Your API key
OtHJok60oQmT8zhnUWc4SWBJI7ztPTs88C0gOsJJ
Array of partial athlete objects for update.