Pricing 
API Pricing

Try For Free Now

Dark

Light

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.
Response
Key
Description
status
When a request succeeds, the status will be "success", otherwise it will be "failure".
data
The value will be null.

api/v1/callback
Update the callback URL.
JavaScript
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.
You can get a full version of sample codes here
©️ 2019 Rozetta API  ・  Powered by Rozetta

Rozetta Corp.

^