Skip to main content
POST
/
v1
/
feedback
Upsert feedback
curl --request POST \
  --url https://api.illuminalab.com/v1/feedback/ \
  --header 'Content-Type: application/json' \
  --header 'authorization: <authorization>' \
  --data '
{
  "thread_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "message_id": "<string>",
  "sentiment": 2,
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "comment": "<string>",
  "resource_id": "<string>"
}
'
{
  "feedback": {
    "id": "<string>",
    "thread_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "message_id": "<string>",
    "sentiment": 2,
    "comment": "<string>",
    "created_at": "<string>",
    "updated_at": "<string>"
  }
}

Headers

authorization
string
required
Pattern: ^Bearer [\s\S]{0,}$

Body

thread_id
string<uuid>
required

UUID of the thread

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
message_id
string | null
required

UUID of the message

sentiment
number
required

Sentiment rating; for messages, use -1 for down and 1 for up. For threads, use a score from 0 to 5.

Required range: -1 <= x <= 5
id
string<uuid>

UUID of the feedback

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
comment
string | null

Optional feedback comment

resource_id
string | null

Optional resource identifier

Response

Response for status 200

feedback
object
required

The feedback object