Skip to main content
POST
/
survey
/
{id}
Submit a customer survey
curl --request POST \
  --url https://demo.enneo.ai/api/mind/survey/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "stars": 5,
  "text": "Great service"
}
'
{
  "success": true,
  "alreadySubmitted": true,
  "template": "<string>"
}

Authorizations

Authorization
string
header
required

JWT-based authentication

Path Parameters

id
integer
required

Customer survey id.

Body

application/json
stars
integer
Example:

5

text
string
Example:

"Great service"

Response

Submitted (or already submitted — idempotent)

success
boolean
Example:

true

alreadySubmitted
boolean

Present and true when the survey was already submitted before this request

Example:

true

template
string

HTML success message to display to the customer