OpenAPI Specification
The API is written in OpenAPI 3.0 format. The specification is published here. The page can also be used for invoking methods using an access token, described earlier under Authentication.
This the multi-page printable view of this section. Click here to print.
The API is written in OpenAPI 3.0 format. The specification is published here. The page can also be used for invoking methods using an access token, described earlier under Authentication.
While it is possible to use the API using standard HTTP clients, there are a variety of tools available online can be used to generate client libraries for many programming languages.
This will produce a client package, containing:
For more information on Swagger Codegen, including how to obtain and use the command-line version of the tool, visit https://github.com/swagger-api/swagger-codegen
Some of the API calls return a list of items. By default, a call can return at most 50 items. To navigate to the next page, use the pagination.navNext value of the return value. For example, the GET /providers call may return the following,
{
"pagination": {
"navNext": "next_page_token"
},
"providers": [
{
"name": "Test for User1",
"siteId": "basicRT_dev",
"id": "X5zsGWs3RhGCgph_unwl1A",
"creatorId": "c0ffee"
},
{
"name": "Test for User1",
"siteId": "basicRT_dev",
"id": "XMbGKLt-TdCDgQdyfKZaFw",
"creatorId": "c0ffee"
}
<more items, snipped>
]
}
To get to the next page, invoke the same method, with the navNext parameter included,
GET /providers?navNext=next_page_token
By default, the API throttles all client requests.
Please note that the limit is subject to change without notice.
Integrations code should always check for HTTP response code 429 and 503 (retryable errors).
If the response contains a “retry-after” attribute, then retry the request after that time; otherwise the integration should implement exponential backoff retry logic with limited number of retries.
Implement a catch-and-retry for 50x or 429 (throttling) errors from the API, with an exponential back-off retry interval.
This increases the reliability of the integration. Occasionally, the API can experience load spikes that require additional system resources.
The back end is designed to scale up when these are detected. However, there may be a delay before these capacities are available.
When building a provider connector, there are two options for retrieving new jobs for processing:
Polling is suitable for use cases where the number of providers is low, as it requires polling each provider individually.
Using listeners allows the connector to respond to job and asset task events for one or more providers, but requires a publicly accessible endpoint.
Method: GET /providers/{providerId}/jobs/findByStatus?status=SENDING_READY_FOR_RETRIEVE
The process begins by polling for new jobs that are ready to be translated, by using the method with the status set to SENDING_READY_FOR_RETRIEVE. For each jobId returned, process the job.
For more on getting new jobs using listeners, see New job submission section under Events