How To Use 
Register an account

Try For Free Now

Dark

Light

Announcement: End of support for old file type in File Translation (08/24)

Announcemnet: System Maintenance (Update: September 17)

Announcement: End of support for old file type in File Translation (08/24)

Update Callback
Update Callback URL
Update the callback URL.
Endpoint
Request details
PUT
https://translate.rozetta-api.io/api/v1/callback
Header
Header
Description
Content-Type
application/json
accessKey, nonce, signature
Please refer to the authentication section.
Body
Key
Required
Description
callbackUrl
O
The callback URL where the callback request will be sent to.
Request Sample
{
  "callbackUrl": "https://myserver.com/translated-result-callback"
}
Response
Key
Description
status
For successful request, success will be specified for this field, otherwise failure will be specified.
data
The value will be null.
Response Sample
{
  "status": "success",
  "data": null
}

api/v1/callback
Update the callback URL.
const axios = require("axios");
const API_URL="https://translate.rozetta-api.io/api/v1/callback";

async function putCallback(accessKey, nonce, signature, callbackUrl) {
    const resp = await axios({
        method: 'put',
        url: API_URL,
        timeout: 10000,
        headers: {accessKey,nonce, signature},
        data: {callbackUrl: callbackUrl}
    });
    if (resp.status >= 200 && resp.status < 300)
        return true;
    return false;
}
About the authentication, please refer to the authentication section.
About full sample code of each languages, please refer tohere
©️ 2019 Rozetta API  ・  Powered by Rozetta

Rozetta Corp.

^