cURL
curl --request GET \ --url https://api.morphic.io/api/chats/{chat_id}/messages \ --header 'X-API-Key: <api-key>'
{ "items": [ { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "role": "<string>", "content": "<string>", "chat_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "attachments": {}, "metadata": {} } ], "total": 123, "page": 123, "page_size": 123, "pages": 123 }
Retrieve messages in a chat with pagination.
API key (sk_xxx) from Developer Settings. No X-Account-ID needed.
x >= 1
1 <= x <= 1000
Successful Response
Show child attributes