About this endpoint
What it does
Submits a job to generate hospitality product categories from the provided content, with optional city, country, context, language, voice tone, and maximum quantity inputs. The response returns a job identifier and a status URL for polling the async result.
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. job_id is the unique identifier of the submitted job, and status_url is the URL used to poll for the job's status and result.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| job_id | String | No | The unique identifier of the submitted job. Format: UUID. |
| status_url | String | No | 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. Use job_id to track the job, and poll the status_url returned in the response.