Message API

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:

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}

After each API schema, you'll find a short example demonstrating how to correctly call the described method in code using the OpenAI SDK.

API Schemas

Create a Message

Python + OpenAI SDK Example:


Retrieve a list of Messages from a specific Thread along with their properties

Python + OpenAI SDK Example:


Retrieve information about a specific Message by its ID

Python + OpenAI SDK Example:


Modify a specific message by its ID

Python + OpenAI SDK Example:


Delete a specific message by its ID

Python + OpenAI SDK Example:

Last updated