cURL
curl --request POST \ --url http://localhost:8000/v2/workspaces/{workspace_id}/sessions/{session_id}/messages/upload \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form file='@example-file' \ --form 'peer_id=<string>' \ --form 'metadata=<string>' \ --form 'configuration=<string>' \ --form 'created_at=<string>'
[ { "id": "<string>", "content": "<string>", "peer_id": "<string>", "session_id": "<string>", "created_at": "2023-11-07T05:31:56Z", "workspace_id": "<string>", "token_count": 123, "metadata": {} } ]
Create messages from uploaded files. Files are converted to text and split into multiple messages.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successful Response