/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.

An OAuth Client is considered valid for the Translation API when:
  • Purpose is set to API Access.

  • The Translation Service is listed under Access in the list of supported APIs.

  1. From the side navigation, choose Start of the navigation path System Next navigation step  AdministrationEnd of the navigation path.

  2. Choose the App Integration tab.

  3. Under Configure Clients, copy the Token URL. It will be needed later in this procedure.

  4. Under Configured Clients, select Add a New OAuth Client.

  5. In the dialog, add a Name for the OAuth client.

  6. Under Purpose, select API Access.

  7. Under Access, select Translation Service.

  8. 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.
After configuring the OAuth client, you should have access to three values:
  • 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:

  1. 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.

  2. Use basic authentication, and set the OAuth client ID as the user and the secret as the password.

    This call returns an access token.

  3. 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.