About this endpoint
What it does
Submits a job to generate hospitality product categories from the provided content. The request body supplies the source content and optional context, and the response returns a job identifier plus a status URL for polling the result later.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| city | String | No | Specify the city to travel. |
| content | String | Yes | Provide the content to generate travel product categories. |
| context | String | No | Provide additional context to improve paraphrasing accuracy. |
| country | String | No | Specify the country to travel. |
| language | String | No | Specify the language of the output. Default: English. |
| voice_tone | String | No | Specify the voice tone. Default: neutral. |
| max_quantity | Number | No | Maximum number of product categories to generate. Minimum: 1. |
Response
Returns a JSON object with a job_id string field and a status_url string field. Use job_id to identify the submitted job, and poll status_url to check the job’s status and retrieve the result.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| job_id | String | Yes | The unique identifier of the submitted job. Format: UUID. |
| status_url | String | Yes | URL to poll for the job's status and result. 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.