About this endpoint
What it does
Submits an asynchronous job to generate a thank-you email from the supplied content and optional processing instructions. The endpoint returns a job identifier.
Request Body
| Parameter | Type | Description |
|---|---|---|
| content | String | Product name and its parameters to generate the thank you email. |
| context | String | An additional flexible instruction for content processing. |
| language | String | Specifies the language of the output; defaults to English. |
| max_length | Number | Specifies the maximum length of the email in words, for example 100. |
| voice_tone | String | Specifies the voice tone of the output. It can be adjectives like funny or joyous, or even the name of a famous writer. |
Response
Returns a JSON object with a job_id string — the UUID of the submitted job. Poll the job status endpoint with this id to retrieve the result.
| Parameter | Type | Description |
|---|---|---|
| job_id | String | Identifier of the submitted asynchronous job. Format: UUID. |
Notes
This endpoint kicks off an async job and returns immediately with a job identifier; the actual work runs in the background. Pair this call with the corresponding job_check endpoint — poll that until the status reaches a terminal state to retrieve the result. Extract the job identifier from job_id.



