Message API
Last updated
Last updated
Messages are individual pieces of communication within a Thread, sent either by the user or the Assistant, helping to maintain the flow and context of the conversation.
This page provides API schemas for the following methods:
After each API schema, you'll find a short example demonstrating how to correctly call the described method in code using the OpenAI SDK.
Note that the method names in the API schema and the SDK often differ. Accordingly, when calling these methods via the REST API, you should use the names from the API schema, while for calls through the OpenAI SDK, use the names from the examples.
https://api.apilaplas.com/threads/{threadId}/messages
https://api.apilaplas.com/threads/{threadId}/messages
https://api.apilaplas.com/threads/{threadId}/messages/{messageId}
https://api.apilaplas.com/threads/{threadId}/messages/{messageId}
https://api.apilaplas.com/threads/{threadId}/messages/{messageId}