POST/v1/hotels/description
Generate hotel description
Generates or retrieves a localized hotel description from the available Travelandz hotel metadata.
Generates or retrieves a localized hotel description from the available Travelandz hotel metadata.
Endpoint
| Method | Path | Auth |
|---|---|---|
POST | /v1/hotels/description | Required API key |
| Header | Description |
|---|---|
Authorization | Bearer <secret_key>. The secret is shown only once when the credential is created. |
X-Travelandz-Id | <public_key>:<profile_code>. The profile_code is the dp_-prefixed Developer Profile code shown in your dashboard. This binds the request to a profile and credential. |
Content-Type | Use application/json for requests with a body. |
Request Body Schema
| Property | Type | Details | Required | Notes |
|---|---|---|---|---|
hotelId | string | Yes | - | |
language | enum | en, es, zh | Yes | - |
Success Response
Returns localized description text and provider context.
Response Body Schema
| Property | Type | Details | Required | Notes |
|---|---|---|---|---|
description | string | Yes | - |