Create email
Develop Env
https://dev.your-api-server.com
Develop Env
https://dev.your-api-server.com
POST
/texts/emails
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://dev.your-api-server.com/texts/emails' \
--header 'Content-Type: application/json' \
--data-raw '{
"company_details": "string",
"context": "string",
"formality": "default",
"from": "string",
"instructions": "string",
"max_tokens": 2048,
"mode": "reply",
"model": "chat-sophos-1",
"n": 1,
"purpose": "string",
"received_email": "string",
"source_lang": "string",
"target_lang": "string",
"temperature": null,
"to": "string"
}'
Response Response Example
{
"data": {
"outputs": [
{
"index": 0,
"text": "A beautiful sentence hand crafted by TextCortex."
}
],
"remaining_credits": 0
},
"status": "success"
}
Request
Body Params application/json