Dayli Docs
API referenceMessaging

Create Direct Conversation

POST
/api/v1/conversations/direct

Authorization

AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/conversations/direct" \  -H "Content-Type: application/json" \  -d '{    "recipientId": "post_01K4Y6P8K2",    "clientMessageId": "post_01K4Y6P8K2",    "text": "string"  }'
{  "conversation": {    "id": "post_01K4Y6P8K2",    "peer": {      "id": "post_01K4Y6P8K2",      "name": "string"    },    "requestState": "pending"  },  "message": {    "id": "post_01K4Y6P8K2",    "conversationId": "post_01K4Y6P8K2",    "sequence": "42",    "senderId": "post_01K4Y6P8K2",    "clientMessageId": "post_01K4Y6P8K2",    "text": "string",    "replyToMessageId": "post_01K4Y6P8K2",    "replyPreview": {      "id": "post_01K4Y6P8K2",      "senderId": "post_01K4Y6P8K2",      "text": "string",      "unsentAt": "2026-09-09T12:00:00Z"    },    "version": 1,    "createdAt": "2026-09-09T12:00:00Z",    "editedAt": "2026-09-09T12:00:00Z",    "unsentAt": "2026-09-09T12:00:00Z",    "reactions": [      {        "reaction": "like",        "count": 1,        "reactedByActor": true,        "reactors": [          {            "id": "post_01K4Y6P8K2",            "name": "string"          }        ]      }    ]  }}