cURL
curl --request POST \ --url https://test.api.cxconnect.ai/language/substitute \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "document": { "value": "<string>", "mime_type": "<string>", "language": "<string>", "meta": {} }, "substitutions": [ { "source": "<string>", "text": "<string>", "target": "<string>", "substitution": "<string>" } ], "meta": { "foo": "bar" } }'
{ "document": { "value": "<string>", "mime_type": "<string>", "language": "<string>", "meta": {} }, "original": { "value": "<string>", "mime_type": "<string>", "language": "<string>", "meta": {} }, "meta": { "foo": "bar" } }
The substitute endpoint applies any custom phrases to the provided document
The access token received from the authorization server in the OAuth 2.0 flow.
Show child attributes
{ "foo": "bar" }
Successful substitution response
Was this page helpful?