The goal of this REST API is to provide an alternative way to manage your iCap Translate resources with EEG. The current API endpoint's root URI is:
https://eegcloud.tv/translation
When accessing the REST API, you will be prompted to authenticate your credentials using your administrator
account via HTTP Basic Authentication.
Please note that the current service expects you to POST data in
JSON format.
The current version offers the following resources:
- Languages - Retrieve list of languages supported by iCap Translate
- Instances - Retrieving, creating, and deleting iCap Translate Instances
- Transcripts - Retrieving caption files and transcripts from iCap Translate jobs
- Models - Retrieving, creating, editing, and deleting Do Not Translate models
- Glossary Models - Retrieving, creating, editing, and deleting Glossary models
The following provides for the retrieval of the list of supported languages to translate to and from.
Resource | Description |
---|---|
GET /live/v2/supported_target_languages |
Action
Retrieves list of supported languages for Translate instance's translate_to and Translate
Glossary model's target_lang. Authentication:Basic (username:password)GET ParametersNone Query ParametersNone |
GET /live/v2/supported_source_languages |
Action
Retrieves list of supported languages for Translate instance's translate_from and Translate
Glossary model's source_lang. Authentication:Basic (username:password)GET ParametersNone Query ParametersNone |
The following provides for the creation and retrieval of instances through the iCap Translate API.
Resource | Description | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
GET /live/v2/instances |
ActionRetrieves list of iCap Translate instances available to your credential set. Authentication:Basic (username:password)GET ParametersNone Query Parameters
|
||||||||||||||||||||||||||||||||
POST /live/v2/instances/ |
ActionCreates a new instance. Returns a JSON-Serialized instance on completion. Authentication:Basic (username:password)POST Parameters (JSON)
Denotes an optional parameter. |
||||||||||||||||||||||||||||||||
GET /live/v2/instances/:instance_id |
ActionRetrieves the specified instance. Authentication:Basic (username:password)GET Parameters
Query Parameters
|
||||||||||||||||||||||||||||||||
PUT /live/v2/instances/:instance_id |
ActionUpdates an existing instance and replaces the existing settings. Returns a JSON-Serialized instance on completion. PUT Parameters (JSON)Parameters are identical to the POST request used to create instances (above). Query Parameters
|
||||||||||||||||||||||||||||||||
PATCH /live/v2/instances/:instance_id |
ActionModifies an existing instance with select settings. Returns a JSON-Serialized instance on completion. PATCH Parameters (JSON)Parameters are identical to the POST request used to create instances (above). Query Parameters
|
||||||||||||||||||||||||||||||||
DELETE /live/v2/instances/:instance_id |
Action
Deletes the specified instance. Authentication:Basic (username:password)DELETE Parameters
|
||||||||||||||||||||||||||||||||
POST /live/v2/instances/:instance_id/turn_on |
ActionActivates the specified :instance_id (instance) to start caption service. POST Parameters
POST Parameters (JSON)These are optional parameters that are carried with the instance job into the activity reports.
Query Parameters
|
||||||||||||||||||||||||||||||||
POST /live/v2/instances/:instance_id/turn_off |
ActionTerminates the specified :instance_id (instance) to cease caption service. Authentication:Basic (username:password)POST Parameters
POST Parameters (JSON)
Query Parameters
|
Denotes an optional parameter.
The following provides for retrieving iCap Translate transcript caption files through the REST API.
Resource | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
POST /live/v2/instances/:instance_id/assemble_data |
ActionRetrieves a caption transcript from a specific iCap Translate instance. Authentication:Basic (username:password)POST Parameters
POST Parameters (JSON)
|
Denotes an optional parameter.
The following provides for the creation and retrieval of Do Not Translate models through the iCap Translate API.
Resource | Description | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
GET /models |
ActionRetrieves a JSON-serialized representation of all Do Not Translate models associated with the billing group. Authentication:Basic (username:password)GET ParametersNone |
||||||||||||||
POST /models |
ActionCreates a new Do Not Translate model. Authentication:Basic (username:password)POST Parameters (JSON)
|
||||||||||||||
GET /models/:model_id |
ActionRetrieves a JSON-serialized representation of a Do Not Translate model. Authentication:Basic (username:password)GET Parameters
|
||||||||||||||
DELETE /models/:model_id |
Action
Deletes a Do Not Translate model. Authentication:Basic (username:password)DELETE Parameters
|
||||||||||||||
GET /models/:model_id/notranslate |
ActionRetrieves the entries of a Do Not Translate model as a .csv or JSON. Authentication:Basic (username:password)GET Parameters
GET Parameters (JSON)
|
||||||||||||||
POST /models/:model_id/notranslate |
ActionUpdates the entries of a Do Not Translate model. Authentication:Basic (username:password)POST Parameters
POST Parameters (JSON)
POST Parameters (file)
Patch .csv file ExampleThis .csv file will add a case-insensitive entry for "MyPhrase0" and a case-sensitive entry for "MyPhrase1": MyPhrase0,false MyPhrase1,true |
||||||||||||||
PATCH /models/:model_id/notranslate |
ActionUpdates the entries of a Do Not Translate model. Authentication:Basic (username:password)PATCH Parameters
PATCH Parameters (JSON)
Patch Object
ExampleThis JSON will add an entry for "MyPhrase", and delete an existing entry for "OldPhrase": { "patchNoTranslates":{ "MyPhrase":{ "word": "MyPhrase", "caseSensitive": false }, "OldPhrase": null } } |
Denotes an optional parameter.
The following provides for the creation and retrieval of Glossary models through the iCap Translate API.
Resource | Description | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
GET /models/v2 |
ActionRetrieves a JSON-serialized representation of all Glossary models associated with the billing group. Authentication:Basic (username:password)GET ParametersNone |
|||||||||||
POST /models/v2 |
ActionCreates a new Glossary model. Authentication:Basic (username:password)POST Parameters (JSON)
|
|||||||||||
GET /models/v2/:model_id |
ActionRetrieves a JSON-serialized representation of a Glossary model. Authentication:Basic (username:password)GET Parameters
|
|||||||||||
DELETE /models/v2/:model_id |
Action
Deletes a Glossary model. Authentication:Basic (username:password)DELETE Parameters
|
|||||||||||
GET /models/v2/:model_id/glossary |
ActionRetrieves the entries of a Glossary model as a .csv or JSON. Authentication:Basic (username:password)GET Parameters
GET Parameters (JSON)
|
|||||||||||
POST /models/v2/:model_id/glossary |
Action
Updates the entries of a Glossary model. Authentication:Basic (username:password)POST Parameters
POST Parameters (JSON)
POST Parameters (file)
Patch .csv file ExampleThis .csv file will add an entry for "Brand Name" to not be translated and an entry for "house" to be translated to "maison": Brand Name, house,maison |
|||||||||||
PATCH /models/v2/:model_id/glossary |
ActionUpdates the entries of a Glossary model. Authentication:Basic (username:password)PATCH Parameters
PATCH Parameters (JSON)
Patch Object
ExampleThis JSON will add an entry for "home", will add an entry for "Brand Name", and delete an existing entry for "parking": { "glossary": [ { "source": "home", "target": "maison" }, { "source": "Brand Name", "target": "" }, { "source": "parking", "target": null } ] } |
|||||||||||
GET /models/v2/:model_id/glossary/status |
Action
Retrieves the global_status of the Glossary model and each individual status for each
compatible engine. Authentication:Basic (username:password)GET Parameters
Example ResponseThe global_status is only deemed "READY" when all compatible engines are ready for translation: { "model_status": { "deepl_glossary_compatible": true, "deepl_glossary_status": "READY", "global_status": "READY", "google_glossary_compatible": true, "google_glossary_status": "READY", "modelID": "example-model-ID" } } |
Denotes an optional parameter.