Welcome to the Inline HTTP API! This guide shows you how to send messages using the Inline messaging platform.
<https://api.inline.chat/v1>
All API requests require authentication using a Bearer token in the Authorization header:
Authorization: Bearer YOUR_TOKEN
Endpoint: POST /sendMessage20250509
Description: Send a text message to a user or thread.
{
"peerUserId": "123", // User ID to send message to (optional)
"peerThreadId": "456", // Thread ID to send message to (optional)
"text": "Hello world!", // Message text (optional)
"photoId": "789" // Photo ID to send (optional)
}
peerUserId or peerThreadId (not both)text or photoId must be providedpeerUserId and peerThreadId can be strings or integerscurl -X POST \\\\
'<https://api.inline.chat/v1/sendMessage20250509>' \\\\
-H 'Content-Type: application/json' \\\\
-H 'Authorization: Bearer YOUR_SESSION_TOKEN' \\\\
-d '{
"peerThreadId": "635",
"text": "👼 Amy Shop on 2025-06-08 in Last 24 hours \\\\n- Facebook Page +21 likes (total 345,089)\\\\n- LINE +14 friends (total 82,028)"
}'
{
"ok": true,
"result": {}
}