curl -X POST "https://api-integration.ollang.com/integration/custom-instructions" \ -H "X-Api-Key: <your-api-key>" \ -H "Content-Type: application/json" \ -d '{ "key": "tone_and_register", "value": "Match the formality level of the source. Business emails should remain professional.", "description": "Instructions for maintaining appropriate tone and register" }'
{ "id": "507f1f77bcf86cd799439011", "key": "tone_and_register", "value": "Match the formality level of the source. Business emails should remain professional.", "active": true, "description": "Instructions for maintaining appropriate tone and register", "scopeRefId": "507f1f77bcf86cd799439012", "createdAt": "2023-10-05T12:34:56.789Z", "updatedAt": "2023-10-05T12:34:56.789Z"}
Ollang API Reference
Create Custom Instruction
Create a new custom translation instruction for your account
POST
/
integration
/
custom-instructions
curl -X POST "https://api-integration.ollang.com/integration/custom-instructions" \ -H "X-Api-Key: <your-api-key>" \ -H "Content-Type: application/json" \ -d '{ "key": "tone_and_register", "value": "Match the formality level of the source. Business emails should remain professional.", "description": "Instructions for maintaining appropriate tone and register" }'
{ "id": "507f1f77bcf86cd799439011", "key": "tone_and_register", "value": "Match the formality level of the source. Business emails should remain professional.", "active": true, "description": "Instructions for maintaining appropriate tone and register", "scopeRefId": "507f1f77bcf86cd799439012", "createdAt": "2023-10-05T12:34:56.789Z", "updatedAt": "2023-10-05T12:34:56.789Z"}
Create a custom instruction string (guideline) that can influence how translations are produced for your projects.
curl -X POST "https://api-integration.ollang.com/integration/custom-instructions" \ -H "X-Api-Key: <your-api-key>" \ -H "Content-Type: application/json" \ -d '{ "key": "tone_and_register", "value": "Match the formality level of the source. Business emails should remain professional.", "description": "Instructions for maintaining appropriate tone and register" }'
Returns the created custom instruction, including id, timestamps, and scopeRefId. Same shape as List Custom Instructions.
{ "id": "507f1f77bcf86cd799439011", "key": "tone_and_register", "value": "Match the formality level of the source. Business emails should remain professional.", "active": true, "description": "Instructions for maintaining appropriate tone and register", "scopeRefId": "507f1f77bcf86cd799439012", "createdAt": "2023-10-05T12:34:56.789Z", "updatedAt": "2023-10-05T12:34:56.789Z"}