Skip to main content
POST
/
message-send
Send a message
curl --request POST \
  --url https://aarwcjjzhlmkgdwrisyt.supabase.co/functions/v1/message-send \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "conversation_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "content": "Please confirm receipt of the goods.",
  "message_type": "text"
}
'
{
  "success": true,
  "status": 201,
  "data": {
    "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
    "conversation_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "sender_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
    "message_type": "text",
    "content": "Please confirm receipt of the goods.",
    "event_type": null,
    "created_at": "2026-04-18T10:30:00Z",
    "sender": {
      "id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
      "first_name": "Ade",
      "last_name": "Johnson",
      "avatar_url": null
    }
  }
}

Authorizations

Authorization
string
header
required

JWT access token obtained from /auth-verify (login context) or /auth-signup. Set the bearer_token environment variable in your API client to apply it globally.

Body

application/json
conversation_id
string<uuid>
required
content
string
required
Required string length: 1 - 4000
message_type
enum<string>
default:text
Available options:
text,
attachment

Response

Message sent

success
boolean
status
integer
data
object