Skip to main content
GET
/
message-feed
Get conversation feed
curl --request GET \
  --url https://aarwcjjzhlmkgdwrisyt.supabase.co/functions/v1/message-feed \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "status": 200,
  "data": [
    {
      "id": "e5f6a7b8-c9d0-1234-efab-345678901234",
      "source": "notification",
      "created_at": "2026-04-18T08:00:00Z",
      "content": "Counterparty accepted. Escrow is now active.",
      "event_type": "active",
      "escrow_id": "d4e5f6a7-b8c9-0123-defa-234567890123",
      "sender_id": null,
      "message_type": null,
      "sender_first_name": null,
      "sender_last_name": null,
      "sender_avatar_url": null,
      "entity_type": "escrow",
      "entity_id": "d4e5f6a7-b8c9-0123-defa-234567890123",
      "action_label": null,
      "is_read": true
    },
    {
      "id": "f6a7b8c9-d0e1-2345-fabc-456789012345",
      "source": "notification",
      "created_at": "2026-04-18T09:00:00Z",
      "content": "Payment request sent. Amount: NGN 150000.",
      "event_type": "payment_requested",
      "escrow_id": "d4e5f6a7-b8c9-0123-defa-234567890123",
      "sender_id": null,
      "message_type": null,
      "sender_first_name": null,
      "sender_last_name": null,
      "sender_avatar_url": null,
      "entity_type": "transaction",
      "entity_id": "a7b8c9d0-e1f2-3456-abcd-567890123456",
      "action_label": "Fund Escrow",
      "is_read": false
    },
    {
      "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "source": "message",
      "created_at": "2026-04-18T10:30:00Z",
      "content": "Please confirm receipt of the goods.",
      "event_type": null,
      "escrow_id": "d4e5f6a7-b8c9-0123-defa-234567890123",
      "sender_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
      "message_type": "text",
      "sender_first_name": "Ade",
      "sender_last_name": "Johnson",
      "sender_avatar_url": null,
      "entity_type": null,
      "entity_id": null,
      "action_label": null,
      "is_read": 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.

Query Parameters

conversation_id
string<uuid>
required
limit
integer
default:100
Required range: 1 <= x <= 200
before
string<date-time>

Cursor — returns items with created_at before this timestamp (for pagination)

Response

Feed returned (sorted oldest → newest)

success
boolean
status
integer
data
object[]