Skip to main content
GET
https://ageneral.ai
/
v1
/
chat
/
history
Get chat history
curl --request GET \
  --url https://ageneral.ai/v1/chat/history \
  --header 'Ageneral-Project-Id: <ageneral-project-id>' \
  --header 'Authorization: Bearer <token>'
{
  "messages": [
    {
      "role": "<string>",
      "content": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Session JWT from Ageneral sign-in. Send as Authorization: Bearer <token>.

Headers

Ageneral-Project-Id
string
required

Project id. You must be a member with access.

Query Parameters

sessionId
string

Platform chat session id. Omit or leave empty for an empty message list.

Response

Success.

messages
object[]
required