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
.
NordBord API
Test Endpoint for a Specific Team
URL: /tests
Path Parameters:
None.
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 the tests associated with the specified athlete. |
ForceFrame API
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.