Skip to main content
POST
/
messages
Create a new Message
curl --request POST \
  --url https://app.ledger.ai/api/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

filters
string

JSON post body:

{
"bot_id"?: integer
"conversation_id"?: integer
"customer_id"?: integer
"data"?: object
"thread_id"?: integer
"message": integer
"provider_id"?: integer
"reference_0_id"?: integer
"reference_0_type"?: integer
"timestamp": timestamp
"user_id": integer
"trace_id"?: string
}

Possible errors:

Field "message": "Message is required"

Field "timestamp": "Timestamp is required"

Field "user_id": "User ID is required"

Body

application/json

Request payload

The body is of type object.

Response

Successful response

The response is of type object.