Developers
Build bots, integrations, and extensions.
cURL
curl --request POST \ --url https://api.magne.app/v1/dm/messages \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "conversationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "content": "<string>", "attachments": {}, "replyToId": "3c90c3cc-0d44-4b50-8888-8dd25736052a" } '
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "conversationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "senderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "content": "<string>", "attachments": {}, "replyToId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "editedAt": "2023-11-07T05:31:56Z", "createdAt": "2023-11-07T05:31:56Z", "senderName": "<string>", "senderAvatar": "<string>", "senderBadges": [ "<string>" ], "reactions": {} }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Success