Skip to main content
POST
Submit an inbound message

Authorizations

Authorization
string
header
required

Company API token (Laravel Sanctum), sent as "Authorization: Bearer "

Body

application/json
channel
enum<string>
required

Only native channels accept inbound messages

Available options:
shortext
Example:

"shortext"

to
string
required

Endpoint ID shown in the Shortext dashboard

Example:

"ste_8k2m4q9x1v7c3n5b6z0p2r4t"

contact
object
required
message
object
required
reply_mode
enum<string>

Defaults to the endpoint setting

Available options:
sync,
async
Example:

"sync"

Response

200 - application/json

Message stored. See body.status for the reply outcome.

Standard lite-api envelope. Every endpoint answers with it; only body changes.

success
boolean
required
Example:

true

code
enum<integer>
required

Standard response codes defined by the system / Codes de réponse standard définis par le système.

Available options:
-1,
-2,
-3,
-4,
-5,
1000,
-1001,
-1002,
-1003,
-1004,
-1005,
-1006,
-1007,
-1008,
-1009,
-1010,
-1100,
-1101,
-1102,
-1103,
1104,
-1105
Example:

1000

message
string
required
Example:

"Request success"

body
object

Endpoint-specific payload, null on most errors

token
string | null

Present only on authentication routes

trace_id
string | null

Present only when success=false. Give it to support.