This article assumes you have a sound knowledge of API integrations.
As of November 2023, you must ensure you are using the tenant's corresponding region-based API URL (Australia (East), United States (East), or Europe (West)). Each region-specific URL has been listed under the relevant API heading below.
When integrating with VALD through our external APIs, it is best practice to consume the team level endpoints rather than iterating through each athlete in a team.
When retrieving tests through our API endpoints, it is now mandatory to supply the last point in time you successfully retrieved tests for the tenant. This would usually be done with a query parameter modifiedFromUTC
or modifiedFrom
.
Generally speaking, retrieving tests would look something like this:
- Retrieve the initial page using a URL similar to
/teams/{teamId}/tests?modifiedFromUTC={timestampOfLastRequest}
. - Save the date and time of the request into the
timestampOfCurrentRequest
variable. - Check the
currentPage
andtotalPages
properties in the returned DTO.
Note this does not currently exist for SmartSpeed API (more on this below). - If
currentPage < totalPages
retrieve the next page using/v2022q2/teams/{teamId}/tests?modifiedFromUTC={timestampOfLastRequest}&page={currentPage+1}
. - Repeat steps 3 and 4 until
currentPage = totalPages
. - Set
timestampOfLastRequest
to the value intimestampOfCurrentRequest
.
Jump to:
NordBord API
Test Endpoint for a Specific Team
URL: /tests
Path Parameters:
None.
Important Query Parameters:
Parameter | Required? | Instruction |
tenantId |
Required | Specify the ID of the tenant from which to retrieve tests. |
modifiedFromUTC |
Required | Specify the last time you successfully retrieved tests for this tenantId. |
testFromUtc |
Required | Enter a specified UTC date to only retrieve tests added after this time. |
testToUtc |
Required | Enter a specified UTC date to only retrieve tests added before this time. |
page |
Optional | Specify the page number so you can iterate through paged results. |
pageSize |
Optional | If provided, this will specify the number of tests returned by a single page (default is 50). |
athleteId |
Optional | If provided, the endpoint will return only the tests associated with the specified athlete. |
HumanTrak 2.0 API
There are three steps to retrieve HumanTrak 2.0 data detailed below. Please read through each step carefully.
Step 1: Retrieve Test Data
URL: /v1/tests-by-modified-date
Path Parameters:
None.
Important Query Parameters:
Parameter | Required? | Instruction |
tenantId |
Required | Specify the ID of the Tenant from which to receive Tests. |
modifiedFromUTC |
Required | Specify the last time you successfully retrieved tests for this tenantId. |
Description:
To iterate through all HumanTrak test results for this Tenant, use the following steps.
Note: Tests are returned in ascending order of Modification Date (i.e. oldest to newest).
- Set the
startDate
variable.- If HumanTrak 2.0 test data has been previously retrieved and saved for this Tenant, do the following:
- From the saved test data, find the test with the most recent
ModifiedDateUtc
and setstartDate
to thisModifiedDateUtc
.
- From the saved test data, find the test with the most recent
- Otherwise, if this is the first time:
- Set
startDate
variable to1970-01-01T00:00:00Z
- Set
- If HumanTrak 2.0 test data has been previously retrieved and saved for this Tenant, do the following:
- Retrieve a page of data using
/v1/tests-by-modified-date?TenantId={tenantId}&ModifiedFromUtc={startDate}
. - Upsert the retrieved test data (i.e. update tests that already exist in your database and insert new tests that don't exist).
- In your saved data, find the test with the most recent
ModifiedDateUtc
. Save this date into thelastModifiedDateUtc
variable. - Retrieve the next page of data using
/v1/tests-by-modified-date?TenantId={tenantId}&ModifiedFromUtc={lastModifiedDateUtc}
. - Upsert the retrieved test data.
- Repeat steps 4 - 6 until No Content
204
Status Code is returned.
Step 2: Retrieve Test Descriptions
URL: /v1/test-type/metrics
Path Parameters:
None.
Important Query Parameters:
None.
Description:
Use to retrieve Test Type and Metric Descriptions to help interpret the Test Data.
Step 3: Interpret Test Data
Description:
Test Data from Step 1 provides Code
and Value
pairs to describe a Test.
Code
is a Test Metric IDValue
is the recorded measurement for the Test Metric
Test Descriptions from Step 2 provides information (including Names and Units) about the Test Metric Codes.
Match the Code
IDs from Step 1 and Step 2 to interpret the Test Data.
ForceFrame API
Test Endpoint for a Specific Team
URL: /tests
Path Parameters:
None.
Important Query Parameters:
Parameter | Required? | Instruction |
tenantId |
Required | Specify the ID of the tenant from which to retrieve tests. |
modifiedFromUTC |
Required | Specify the last time you successfully retrieved tests for this tenantId. |
testFromUtc |
Required | Enter a specified UTC date to only retrieve tests added after this time. |
testToUtc |
Required | Enter a specified UTC date to only retrieve tests added before this time. |
page |
Optional | Specify the page number so you can iterate through paged results. |
pageSize |
Optional | If provided, this will specify the number of tests returned by a single page (default is 50). |
athleteId |
Optional | If provided, the endpoint will return only the tests associated with the specified athlete. |
DynaMo API
Test Endpoint for a Specific Team
URL: /v2021q2/teams/{teamId}/tests
Path Parameters:
Parameter | Required? | Instruction |
teamId |
Required | Replace {teamId} in the URL with the ID of the team you're interested in. |
Important Query Parameters:
Parameter | Required? | Instruction |
modifiedFromUTC |
Required | Specify the last time you successfully retrieved tests for this tenantId. |
page |
Optional | Specify the page number so you can iterate through paged results. |
athleteId |
Optional | If provided, the endpoint will return only tests associated with the specified athlete. |
ForceDecks API
Test Endpoint for a Specific Team
URL: /v2019q3/teams/{teamId}/tests/{page}
Path Parameters:
Parameter | Required? | Instruction |
teamId |
Required | Replace {teamId} in the URL with the ID of the team you're interested in. |
page |
Required | Use this parameter to specify the page number so you can iterate through paged results. |
Important Query Parameters:
Parameter | Required? | Instruction |
modifiedFrom |
Required | Specify the last time you successfully retrieved tests for this tenantId. |
SmartSpeed API
Test Endpoint for a Specific Team
URL /v1/team/{teamId}/tests
Path Parameters:
Parameter | Required? | Instruction |
teamId |
Required | Replace {teamId} in the URL with the ID of the team you're interested in. |
Important Query Parameters:
Parameter | Required? | Instruction |
modifiedFromUTC |
Required | Specify the last time you successfully retrieved tests for this tenantId. |
page |
Optional | Use this parameter to specify the page number so you can iterate through paged results. |
athleteId |
Optional | If provided, the endpoint will return only tests associated with the specified athlete. |
This API does not return the number of pages as per the best practice section at the top of this article.
To iterate through the total pages using the SmartSpeed API External Test Endpoint, use the following steps.
- Set
currentPage
variable to 1. - Retrieve the first page of data using
/v1/team/{teamId}/tests?ModifiedFromUTC={timestampOfLastRequest}&Page={currentPage}
. - Save the date and time of the request into the
timestampOfCurrentRequest
variable. - Check if the returned data array is empty or contains tests.
- If contains tests:
- Increment
currentPage
by 1. - Retrieve the next page using
/v1/team/{teamId}/tests?ModifiedFromUTC={timestampOfLastRequest}&Page={currentPage}
. - Return to the start of step 4.
- Increment
- If empty:
- Set
timestampOfLastRequest
to the value intimestampOfCurrentRequest
. - There is no more data to retrieve.
- Set
- If contains tests:
DECOMMISSIONED - DashBord API
DashBord API has been decommissioned and replaced with four region-specific APIs: NordBord, ForceFrame, External Profile, and External Tenant. See our API November 2023 Update for more details.
https://dbapi.valdperformance.com/index.html?urls.primaryName=v2021q2
Test Endpoint for a Specific Team
URL: /v2021q2/teams/{teamId}/tests
Path Parameters:
Parameter | Required? | Instruction |
teamId |
Required | Replace {teamId} in the URL with the ID of the team you're interested in. |
Important Query Parameters:
Parameter | Required? | Instruction |
modifiedFrom |
Required | Always supply this parameter. As per best practice it should be the time you last successfully retrieved tests for this teamId. |
page |
Optional | Use this parameter to specify the page number so you can iterate through paged results. |
athleteId |
Optional | If provided, the endpoint will return only tests associated with the specified athlete. |
Comments
0 comments
Please sign in to leave a comment.