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 and a status URL so you can check when the result is ready.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| content | String | Yes | Product name and its parameters to generate the thank you email. |
| context | String | No | An additional flexible instruction for content processing. |
| language | String | No | Specifies the language of the output; defaults to English. |
| max_length | Number | No | Specifies the maximum length of the email in words, for example 100. |
| voice_tone | String | No | 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 field and a status_url string field. job_id is the identifier of the submitted asynchronous job, and status_url is the URL used to check the job status.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| job_id | String | Yes | Identifier of the submitted asynchronous job. Format: UUID. |
| status_url | String | Yes | URL used to check the submitted job status. Format: URI. |
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.