Skip to main content
POST
/
api
/
v1
/
suggestions
Get suggestions
curl --request POST \
  --url https://api.webless.ai/api/v1/suggestions \
  --header 'Content-Type: application/json' \
  --data '
{
  "sessionId": "a1c2d3e4-1111-2222-3333-444455556666"
}
'
{
  "suggestions": [
    "<string>"
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.webless.ai/llms.txt

Use this file to discover all available pages before exploring further.

Pass previous_suggestions when you want to avoid repeating prompts already shown to the user.

Body

application/json
sessionId
string
required
Example:

"a1c2d3e4-1111-2222-3333-444455556666"

company
string
default:sigma
Example:

"YOUR_COMPANY"

version
enum<string>
default:published

Runtime package pointer. Omit this field or use published for production traffic. Use unpublished only when testing an unpublished runtime package.

Available options:
published,
unpublished
n
integer
default:5

Number of suggestions to generate.

Example:

3

previous_suggestions
string[] | null
Example:
["How does Webless work?"]
query
string | null

Current query context.

Example:

"What does Webless do?"

requestId
string
Example:

"1f7c5f74-7b9e-4a0a-9b7d-4e3e2a5e3b60"

is_private_session
boolean
default:false

Response

Suggested follow-up prompts

suggestions
string[]