REST Profiles API API Reference
Profiles
The Profiles API is used to manage Profiles.
Profiles can be created, list and deleted.
Profiles can be used with the REST Profiles API
Authentication
- In header the access token generated from the authorization-server (ses-console) using OAuth2 Flow Client Credentials or PKCE.
Authorization: Bearer YOUR_ACCESS_TOKEN
- In header the API Key generated from the authorization-server (ses-console)
Authorization: Key YOUR_API_KEY
- In querystring the API Key as key parameter
?key=YOUR_API_KEY
Note about the input/output text
- The input text passed as a URL parameter will be escaped with an equivalent of the javascript 'encodeURIComponent' function.
- The input text must be encoded in UTF-8.
- The output text will be encoded in UTF-8.
Language code values
The language codes to be used are the two-letter codes defined by the ISO 639-1:2002, Codes for the representation of names of languages - Part 1: Alpha-2 code standard.
Refer to the column 'ISO 639-1 code' of this list: http://www.loc.gov/standards/iso639-2/php/code_list.php.
In addition to this list, the following codes are used:
Language Code | Language |
---|---|
auto | Language Detection |
tj | Tajik (cyrillic script) |
Our new Chinese-target engines and all Chinese-target models trained on Model Studio are XXZH models that support multiple locales (e.g. CN=China Simplified script, TW=Taiwan Traditional script, or HK=Hong Kong Traditional script).
To use them you have to create a XXZH profile in which you define your locale under “Model Schema,” and select the 'zh' language code locale and specify the profileID for a request. By default XX to ZH requests will use the zh-CN locale.
If you are currently using a XXZT profile for Traditional Chinese, please note that new XXZT models will not be released whereas all improvements concerning Traditional Chinese will be now released under XXZH models.
Although the existing XXZT engines may still be used for the moment by calling the language code 'zt', this may change in the future, so we strongly advise you to create a new XXZH profile for your translation needs.
Schemes: https
Version: 1.8.0
Authentication
accessToken
"Bearer access_token" OR "Key api_key"
apiKey
API Key
Profiles
Profiles
Get API version
Current version for this API
Successful response
Invalid parameters
Error
Response Content-Types: application/json
Response Example (200 OK)
{
"version": "1.0.0"
}
List Profiles
List accessible profiles
Profile id in UUID format (Universally Unique IDentifier)
Optional. Translation Resource Id in UUID format (Universally Unique IDentifier) use GET /translationResources to fetch Translation Resources available If source and target are not used. translationResourceId will required.
Source language code
Array values passed as multiple parameters: ?source=aaa&source=bbb
Target language code
Array values passed as multiple parameters: ?target=aaa&target=bbb
Techno
Array values passed as multiple parameters: ?techno=aaa&techno=bbb
Owner selectors
Array values passed as multiple parameters: ?owner=aaa&owner=bbb
Domain selectors
Array values passed as multiple parameters: ?domain=aaa&domain=bbb
Size selectors
Indicate the profile visibility. if the profile has been shared with another users, groups or everyone (public)
Indicate if the profile is activated
Indicate if the profile is running
Indicate the number of profiles to skip
Indicate the number of profiles to display
Indicate the field on which we want to sort
Indicate the order of sort
If true, the API returns the profiles or translation resources list with supported_features field
Successful response
Invalid parameters
Error
Response Content-Types: application/json
Response Example (200 OK)
{
"profiles": [
{
"id": "6b80a3f5-aff2-41ba-a5ce-21603738432e",
"name": "Profile ENFR",
"source": "en",
"target": "en",
"owner": "Systran",
"domain": "Generic",
"size": "M",
"techno": "NMT",
"activated": true,
"running": true,
"insertionTime": 1553249481632,
"sharingStatus": "NMT",
"dictionaries": [
null
],
"normalizations": [
null
],
"translationMemories": [
null
],
"translationResourceId": "4b80a3f5-aff2-41ba-a5ce-21603738432a",
"supported_features": {
"Multi-Locale": true,
"ND": true,
"TM": true,
"UD": true
}
}
]
}
Create
Create a profile
Optional. Translation Resource Id in UUID format (Universally Unique IDentifier) use GET /translationResources to fetch Translation Resources available If source and target are not used. translationResourceId will required.
Profile name
Indicate the profile visibility. if public is set to true, the profile will be accessible to everyone
Dictionaries attached to the profile, This parameter can be repeated. (Array)
Array values passed as multiple parameters: ?dictionaries=aaa&dictionaries=bbb
Normalizations attached to the profile, This parameter can be repeated. (Array)
Array values passed as multiple parameters: ?normalizations=aaa&normalizations=bbb
Translation Memories attached to the profile, This parameter can be repeated. (Array)
Array values passed as multiple parameters: ?translationMemories=aaa&translationMemories=bbb
Optional. Source language code
Optional. Target language code
Optional. Owner (default to "Systran")
Optional. Domain (default to "Generic")
Optional. Size (default to "L")
Options for advanced usage only. Properties name, value
Successful response
Invalid parameters
Error
Response Content-Types: application/json
Response Example (200 OK)
{
"id": "6b80a3f5-aff2-41ba-a5ce-21603738432e",
"translationResourceId": "4b80a3f5-aff2-41ba-a5ce-21603738432a"
}
Delete
Delete a profile
Profile id in UUID format (Universally Unique IDentifier)
Successful response
Invalid parameters
Error
Response Content-Types: application/json
Response Example (200 OK)
{
"id": "6b80a3f5-aff2-41ba-a5ce-21603738432e",
"deleted": true
}
Deactivate
Deactivate a profile
Profile id in UUID format (Universally Unique IDentifier) - This parameter can be repeated.
Array values passed as multiple parameters: ?id=aaa&id=bbb
Successful response
Response Content-Types: application/json
Response Example (200 OK)
{
"status": [
{
"activated": false,
"id": "6b80a3f5-aff2-41ba-a5ce-21603738432e",
"statusCode": 200,
"message": "Error message"
}
]
}
Activate
Activate a profile
Profile id in UUID format (Universally Unique IDentifier) - This parameter can be repeated.
Array values passed as multiple parameters: ?id=aaa&id=bbb
Successful response
Response Content-Types: application/json
Response Example (200 OK)
{
"status": [
{
"activated": true,
"id": "6b80a3f5-aff2-41ba-a5ce-21603738432e",
"statusCode": 200,
"message": "Error message"
}
]
}
Permissions
Get the permissions of a profile
(no description)
Successful response
Invalid profileId field
Error
Response Content-Types: application/json
Response Example (200 OK)
{
"public": false,
"users": [
"638a066970736cfeefb38506",
"638a067670736cfeefb3855d"
],
"groups": [
"638a068b70736cfeefb385f8"
]
}
Permissions
Update the permissions of a profile
(no description)
Profile name
Indicate the profile visibility. if public is set to true, the profile will be accessible to everyone
Indicate the users
Indicate the groups
Successful response
One or more users are invalid or inaccessible
Error
Response Content-Types: application/json
Response Example (200 OK)
{
"public": false,
"users": [
"638a066970736cfeefb38506",
"638a067670736cfeefb3855d"
],
"groups": [
"638a068b70736cfeefb385f8"
]
}
Translation Resources
Translation Resources
List Translation Resources
List Translation Resources available
Source language code
Array values passed as multiple parameters: ?source=aaa&source=bbb
Size selectors
Target language code
Array values passed as multiple parameters: ?target=aaa&target=bbb
Owner selectors
Array values passed as multiple parameters: ?owner=aaa&owner=bbb
Domain selectors
Array values passed as multiple parameters: ?domain=aaa&domain=bbb
Techno
Array values passed as multiple parameters: ?techno=aaa&techno=bbb
default to "running".
Array values passed as multiple parameters: ?status=aaa&status=bbb
If true, the API returns the profiles or translation resources list with supported_features field
Successful response
Invalid parameters
Error
Response Content-Types: application/json
Response Example (200 OK)
{
"translationResources": [
{
"id": "6b80a3f5-aff2-41ba-a5ce-21603738432e",
"name": "Translator NMT Generic - ENFR",
"version": "9.2.1",
"source": "en",
"target": "en",
"owner": "Systran",
"domain": "Generic",
"size": "M",
"techno": "NMT",
"upgradeable": true,
"upgradeableDependencies": true,
"status": "running",
"expectedStatus": "running",
"nbProfiles": 3,
"supported_features": {
"Multi-Locale": true,
"ND": true,
"TM": true,
"UD": true
}
}
]
}
Schema Definitions
ProfilesObject: object
Profile Object
- id: string
-
Profile id in UUID format (Universally Unique IDentifier)
- name: string
-
Profile name
- source: string
-
Source language code
- target: string
-
Target language code
- owner: string
-
Owner selectors
- domain: string
-
Domain selectors
- size: string S, M
-
Size selectors
- techno: string NMT, SMT, RBMT, SPE, RBMT+SPE
-
Techno
- activated: boolean
-
Indicate if the profile is activated
- running: boolean
-
Indicate if the profile is running
- insertionTime: string
-
Profile creation or edition timestamp
- sharingStatus: string public, groups, users, private
-
Indicate the profile visibility. if the profile has been shared with another users, groups or everyone (public)
- dictionaries: DictionariesObject
-
dictionaries attached to the profile
-
DictionariesObject - normalizations: NormalizationsObject
-
Normalizations attached to the profile
-
NormalizationsObject - translationMemories: TranslationMemoriesObject
-
Translation Memories attached to the profile
-
TranslationMemoriesObject - translationResourceId: string
-
Translation Resource Id in UUID format (Universally Unique IDentifier)
- supported_features: object
-
The list of supported features associated to the translation resource
Example
{
"id": "6b80a3f5-aff2-41ba-a5ce-21603738432e",
"name": "Profile ENFR",
"source": "en",
"target": "en",
"owner": "Systran",
"domain": "Generic",
"size": "M",
"techno": "NMT",
"activated": true,
"running": true,
"insertionTime": 1553249481632,
"sharingStatus": "NMT",
"dictionaries": [
null
],
"normalizations": [
null
],
"translationMemories": [
null
],
"translationResourceId": "4b80a3f5-aff2-41ba-a5ce-21603738432a",
"supported_features": {
"Multi-Locale": true,
"ND": true,
"TM": true,
"UD": true
}
}
ProfilesActivationObject: object
- activated: boolean
-
The new active status.
- id: string
-
Profile Identifier in UUID format (Universally Unique IDentifier)
- statusCode: integer
-
The operation status code
- message: string
-
Error message in case of failure
Example
{
"activated": true,
"id": "6b80a3f5-aff2-41ba-a5ce-21603738432e",
"statusCode": 200,
"message": "Error message"
}
ProfilesDeactivationObject: object
- activated: boolean
-
The new active status.
- id: string
-
Profile Identifier in UUID format (Universally Unique IDentifier)
- statusCode: integer
-
The operation status code
- message: string
-
Error message in case of failure
Example
{
"activated": false,
"id": "6b80a3f5-aff2-41ba-a5ce-21603738432e",
"statusCode": 200,
"message": "Error message"
}
TranslationResourcesObject: object
Translation Resources Object
- id: string
-
Translation Resource Identifier in UUID format (Universally Unique IDentifier)
- name: string
-
Translation Resource name
- version: string
-
Translation Resource version
- source: string
-
Source language code
- target: string
-
Target language code
- owner: string
-
Owner selectors
- domain: string
-
Domain selectors
- size: string S, M
-
Size selectors
- techno: string NMT, SMT, RBMT, SPE, RBMT+SPE
-
Techno
- upgradeable: boolean
-
Indicate if a new version is available for this Translation Resource
- upgradeableDependencies: boolean
-
Indicate if a new dependencies are available for this Translation Resource
- status: boolean
-
Indicate if the Translation Resource is running
- expectedStatus: boolean
-
Indicate if the Translation Resource will be running
- nbProfiles: number
-
Profile number using this Translation Resource
- supported_features: object
-
The list of supported features associated to the translation resource
Example
{
"id": "6b80a3f5-aff2-41ba-a5ce-21603738432e",
"name": "Translator NMT Generic - ENFR",
"version": "9.2.1",
"source": "en",
"target": "en",
"owner": "Systran",
"domain": "Generic",
"size": "M",
"techno": "NMT",
"upgradeable": true,
"upgradeableDependencies": true,
"status": "running",
"expectedStatus": "running",
"nbProfiles": 3,
"supported_features": {
"Multi-Locale": true,
"ND": true,
"TM": true,
"UD": true
}
}
ProfilesResponse: object
- profiles: object[]
-
List of Profiles available
-
object Profile Object
- id: string
-
Profile id in UUID format (Universally Unique IDentifier)
- name: string
-
Profile name
- source: string
-
Source language code
- target: string
-
Target language code
- owner: string
-
Owner selectors
- domain: string
-
Domain selectors
- size: string S, M
-
Size selectors
- techno: string NMT, SMT, RBMT, SPE, RBMT+SPE
-
Techno
- activated: boolean
-
Indicate if the profile is activated
- running: boolean
-
Indicate if the profile is running
- insertionTime: string
-
Profile creation or edition timestamp
- sharingStatus: string public, groups, users, private
-
Indicate the profile visibility. if the profile has been shared with another users, groups or everyone (public)
- dictionaries: DictionariesObject
-
dictionaries attached to the profile
-
DictionariesObject - normalizations: NormalizationsObject
-
Normalizations attached to the profile
-
NormalizationsObject - translationMemories: TranslationMemoriesObject
-
Translation Memories attached to the profile
-
TranslationMemoriesObject - translationResourceId: string
-
Translation Resource Id in UUID format (Universally Unique IDentifier)
- supported_features: object
-
The list of supported features associated to the translation resource
Example
{
"profiles": [
{
"id": "6b80a3f5-aff2-41ba-a5ce-21603738432e",
"name": "Profile ENFR",
"source": "en",
"target": "en",
"owner": "Systran",
"domain": "Generic",
"size": "M",
"techno": "NMT",
"activated": true,
"running": true,
"insertionTime": 1553249481632,
"sharingStatus": "NMT",
"dictionaries": [
null
],
"normalizations": [
null
],
"translationMemories": [
null
],
"translationResourceId": "4b80a3f5-aff2-41ba-a5ce-21603738432a",
"supported_features": {
"Multi-Locale": true,
"ND": true,
"TM": true,
"UD": true
}
}
]
}
TranslationResourcesResponse: object
- translationResources: object[]
-
List of Translation Resources available
-
object Translation Resources Object
- id: string
-
Translation Resource Identifier in UUID format (Universally Unique IDentifier)
- name: string
-
Translation Resource name
- version: string
-
Translation Resource version
- source: string
-
Source language code
- target: string
-
Target language code
- owner: string
-
Owner selectors
- domain: string
-
Domain selectors
- size: string S, M
-
Size selectors
- techno: string NMT, SMT, RBMT, SPE, RBMT+SPE
-
Techno
- upgradeable: boolean
-
Indicate if a new version is available for this Translation Resource
- upgradeableDependencies: boolean
-
Indicate if a new dependencies are available for this Translation Resource
- status: boolean
-
Indicate if the Translation Resource is running
- expectedStatus: boolean
-
Indicate if the Translation Resource will be running
- nbProfiles: number
-
Profile number using this Translation Resource
- supported_features: object
-
The list of supported features associated to the translation resource
Example
{
"translationResources": [
{
"id": "6b80a3f5-aff2-41ba-a5ce-21603738432e",
"name": "Translator NMT Generic - ENFR",
"version": "9.2.1",
"source": "en",
"target": "en",
"owner": "Systran",
"domain": "Generic",
"size": "M",
"techno": "NMT",
"upgradeable": true,
"upgradeableDependencies": true,
"status": "running",
"expectedStatus": "running",
"nbProfiles": 3,
"supported_features": {
"Multi-Locale": true,
"ND": true,
"TM": true,
"UD": true
}
}
]
}
ProfilesCreateResponse: object
- id: string
-
Profile Identifier in UUID format (Universally Unique IDentifier)
- translationResourceId: string
-
Optional. translationResourceId used by the profile.
Example
{
"id": "6b80a3f5-aff2-41ba-a5ce-21603738432e",
"translationResourceId": "4b80a3f5-aff2-41ba-a5ce-21603738432a"
}
ProfilesDeleteResponse: object
- id: string
-
Profile Identifier in UUID format (Universally Unique IDentifier)
- deleted: string
-
Deleted status
Example
{
"id": "6b80a3f5-aff2-41ba-a5ce-21603738432e",
"deleted": true
}
ProfilesActivationResponse: object
- status: object[]
-
List of id, active status and statusCode
-
object - activated: boolean
-
The new active status.
- id: string
-
Profile Identifier in UUID format (Universally Unique IDentifier)
- statusCode: integer
-
The operation status code
- message: string
-
Error message in case of failure
Example
{
"status": [
{
"activated": true,
"id": "6b80a3f5-aff2-41ba-a5ce-21603738432e",
"statusCode": 200,
"message": "Error message"
}
]
}
ProfilesDeactivationResponse: object
- status: object[]
-
List of id, active status and statusCode
-
object - activated: boolean
-
The new active status.
- id: string
-
Profile Identifier in UUID format (Universally Unique IDentifier)
- statusCode: integer
-
The operation status code
- message: string
-
Error message in case of failure
Example
{
"status": [
{
"activated": false,
"id": "6b80a3f5-aff2-41ba-a5ce-21603738432e",
"statusCode": 200,
"message": "Error message"
}
]
}
ProfilesPermissionsResponse: object
Permissions of the profile
- public: boolean
-
Informs if a profile is public or private
- users: array
-
User ids that have access to the profile
- groups: array
-
Group ids that have access to the profile
Example
{
"public": false,
"users": [
"638a066970736cfeefb38506",
"638a067670736cfeefb3855d"
],
"groups": [
"638a068b70736cfeefb385f8"
]
}
Profile: object
Profile
- id: string
-
Profile UUID (Universally Unique IDentifier)
- private: boolean
-
Public or private profile
Example
{
"id": "6b80a3f5-aff2-41ba-a5ce-21603738432e",
"private": false
}