/api/v1/ts
The translation API allows you to access various capabilities offered by Translation service of SAP Analytics Cloud.
Setting Up the OAuth Client for the Translation Service
To send requests to the service, you must first set up an OAuth client on the SAP Analytics Cloud system. This requires administrator access.
For any Two-Legged OAuth connection, the Translation API runs a check on the OAuth Client used to authenticate. Only a valid OAuth Client can use the API.
-
Purpose is set to API Access.
-
The Translation Service is listed under Access in the list of supported APIs.
-
From the side navigation, choose .
-
Choose the App Integration tab.
-
Under Configure Clients, copy the Token URL. It will be needed later in this procedure.
-
Under Configured Clients, select Add a New OAuth Client.
-
In the dialog, add a Name for the OAuth client.
-
Under Purpose, select API Access.
-
Under Access, select Translation Service.
-
Click Add.
After you click Add, the application generates the OAuth Client ID and the Client Secret. Make sure to note them down, as these values will be used to send requests to the service.
After configuring the OAuth client, you should have access to three values: Access token URL, OAuth Client ID, and Client Secret.
-
Access token URL
-
OAuth Client ID
-
(Client) Secret
Authorize API Access for OAuth Clients
If you selected API Access as the Purpose for the OAuth client, follow these steps to authorize a third party application to use the public APIs without a SAML assertion:
-
Perform a POST HTTPS call to the following address:
<Token URL>?grant_type=client_credentials
<Token URL> is the Token URL listed in the OAuth Clients section of the App Integration page.
-
Use basic authentication, and set the OAuth client ID as the user and the secret as the password.
This call returns an access token.
-
Access the required public API endpoint with the following headers:
Header name
Value
Notes
Authorization
Bearer <Token>
<Token> is the access token returned by the previous step.
x-sap-sac-custom-auth
True
Content-Type
application/json
This is only applicable to POST and PATCH requests.

System
Administration