RAZIEL.docs
API Explorer

Search

Full-text search across sessions

Search sessions

Full-text search across session prompts, agent types, chat message content, and project names. Returns up to 20 sessions with matched message previews.

GET
/api/search
AuthorizationBearer <token>

Clerk session token. Automatically set as a cookie in the browser; pass as Authorization: Bearer for server-side calls.

In: header

Query Parameters

qstring

Search query

Response Body

curl -X GET "https://app.raziel.fun/api/search?q=string"
{
  "sessions": [
    {
      "id": "string",
      "prompt": "string",
      "agent": "string",
      "startedAt": "2019-08-24T14:15:22Z",
      "status": "string",
      "projectName": "string",
      "matchedMessages": [
        {
          "role": "string",
          "contentPreview": "string"
        }
      ]
    }
  ]
}
{
  "error": "Unauthorized"
}