Skip to content

Generate AI-suggested welcome text for lead

POST
/api/lead/{leadIdentifier}/welcome-text/suggest
curl --request POST \
--url https://api.wink.travel/api/lead/f8c4e2a7-3d5b-4a9c-8e1f-2b6d9a0c5f47/welcome-text/suggest \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Wink-Version: 2.0' \
--data '{ "language": "" }'

Uses AI to generate professional and compelling welcome text and property description copy for the lead based on its details. The suggestions are auto-drafted and can be edited before saving.

leadIdentifier
required
string
""

Unique identifier of the lead to generate suggestions for

Example
f8c4e2a7-3d5b-4a9c-8e1f-2b6d9a0c5f47
Wink-Version
string
default: 2.0.0
Allowed values: 2.0
Media type application/json
object
language
required

Language to use

string
"" >= 1 characters
Example
en

AI-suggested welcome text generated successfully

Media type application/json
object
name
required

Use as title or short text description

string
""
description
required

Longer text description

string
"" >= 1 characters <= 2147483647 characters
language
required

Indicate which language this description is written in.

string
default: en >= 2 characters <= 2 characters
creator

Whether it was user or system generated.

string
default: USER
Allowed values: SYSTEM USER
md5ContentHash

The md5 hash of the name, description and language.

string
""
hashMismatch
boolean
Example
{
"name": "",
"description": "",
"language": "en",
"creator": "SYSTEM",
"md5ContentHash": ""
}

Bad Request

object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com",
"properties": {
"additionalProperty": "example"
}
}

Unauthorized

Media type */*
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties

Forbidden

Media type */*
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties

Lead not found

Media type application/json
object
name
required

Use as title or short text description

string
""
description
required

Longer text description

string
"" >= 1 characters <= 2147483647 characters
language
required

Indicate which language this description is written in.

string
default: en >= 2 characters <= 2 characters
creator

Whether it was user or system generated.

string
default: USER
Allowed values: SYSTEM USER
md5ContentHash

The md5 hash of the name, description and language.

string
""
hashMismatch
boolean
Example
{
"name": "",
"description": "",
"language": "en",
"creator": "SYSTEM",
"md5ContentHash": ""
}

Internal Server Error

object
Example generated
{}