Get Conversations
GET/api/conversations
This endpoint retrieves conversations from a specified workspace. The request must include a valid API key and user ID.
Request
Query Parameters
ID of the workspace whose conversations are being retrieved.
Header Parameters
API key to authorize the request.
ID of the user making the request.
Responses
- 200
- 400
- 403
- 404
- 500
Successfully retrieved conversations.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
conversations
object[]
The ID of the conversation.
The timestamp when the conversation was created.
The name of the conversation.
The ID of the owner of the conversation.
{
"conversations": [
{
"conversationid": "string",
"createdat": "2024-12-12T17:23:19.610Z",
"name": "string",
"ownerid": "string"
}
]
}
There has been a problem with your fetch operation.
- application/json
- Schema
- Example (from schema)
Schema
Error message indicating that there was a problem with the fetch operation.
{
"error": "string"
}
Invalid API key.
- application/json
- Schema
- Example (from schema)
Schema
error
object
Detailed error message indicating that the API key is invalid.
{
"error": {
"message": "string"
}
}
Workspace not found.
- application/json
- Schema
- Example (from schema)
Schema
error
object
Error message indicating that the workspace was not found.
{
"error": {
"message": "string"
}
}
Internal server error.
- application/json
- Schema
- Example (from schema)
Schema
Error message indicating an internal server error.
{
"message": "string"
}