Send Message in n8n

Welcome to the Inline HTTP API! This guide shows you how to send messages using the Inline messaging platform.

Base URL

<https://api.inline.chat/v1>

Authentication

All API requests require authentication using a Bearer token in the Authorization header:

Authorization: Bearer YOUR_TOKEN

Send Message

Endpoint: POST /sendMessage20250509

Description: Send a text message to a user or thread.

Request Body

{
  "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)
}

Important Notes

Example Request

curl -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)"
  }'

Response

{
  "ok": true,
  "result": {}
}