Ziwako Docs
Ziwako AI (Mayele)Référence APIConversations

Create conversation

POST
/conversations

Authorization

AccessToken
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/conversations" \  -H "Content-Type: application/json" \  -d '{    "userId": "string"  }'
{  "status": 0,  "message": "string",  "data": {    "userId": "string",    "title": "Nouvelle conversation",    "titleGenerated": false,    "modelId": "openai/gpt-4o",    "agentId": null,    "workspaceId": "string",    "messages": [      {        "id": "string",        "role": "user",        "parts": [          {}        ],        "content": "",        "createdAt": "2019-08-24T14:15:22Z"      }    ],    "lastMessage": "",    "messageCount": 0,    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "id": "string"  },  "type": "string",  "code": "string"}