query sessionMessages (
  $sessionID: String!
) {
  graphite {
    sessionMessages (
      sessionID: $sessionID
    ) {
      sessionID
      messages {
        id
        role
        message
        createdAt
        }
    }
  }
}
{
  "data": {
    "graphite": {
      "sessionMessages": {
        "messages": [
          {
            "createdAt": "2023-12-14T07:45:15.20353+00:00",
            "id": "string",
            "message": "string",
            "role": "string"
          }
        ],
        "sessionID": "string"
      }
    }
  }
}
sessionMessages {
   sessionID: String! 
}: MessageResponse

Retrieve all messages for a session

Permissions needed

select (sessions):

  • id
  • assistant_id
  • session_id
  • user_id

Arguments

sessionID
String!
required

ID of the session to retrieve messages for

Response

Type: MessageResponse

sessionID
String!

ID of the session

messages
[Message!]!

Messages in this session