About this endpoint
What it does
Submits an async job to generate tours and activities product categories from the provided content. The request body supplies the content to process, and the response returns a job identifier you can use to track the job.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| city | String | No | Specify the city of 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 related to travel. |
| language | String | No | Specify the language of the output, defaults to English. |
| max_quantity | Number | No | Specify the maximum length of the paraphrased content. |
Response
Returns a JSON object with a job_id string field. This is the identifier for the submitted async job.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| job_id | String | Yes | The job identifier returned when the job is submitted. |
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 id from job_id.