Passer au contenu principal
GET
/
agent-sessions
Lister les sessions d'agent
import requests

url = "https://app.ubik-agent.com/api/v1/agent-sessions"

headers = {"X-API-KEY": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
{
  "items": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "status": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "title": "<string>",
      "model_name": "<string>",
      "external_user_id": "<string>",
      "active_tools": [
        {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "name": "<string>",
          "description": "<string>"
        }
      ],
      "documents": [
        {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "name": "<string>",
          "status": "<string>",
          "created_at": "2023-11-07T05:31:56Z",
          "updated_at": "2023-11-07T05:31:56Z",
          "file_type": "<string>",
          "processing_pipeline": "<string>",
          "error_message": "<string>",
          "is_starred": false
        }
      ]
    }
  ],
  "total": 123,
  "page": 123,
  "limit": 123,
  "has_more": true
}

Autorisations

X-API-KEY
string
header
requis

En-têtes

X-End-User-ID
string | null

Paramètres de requête

page
integer
défaut:1
Plage requise: x >= 1
limit
integer
défaut:20
Plage requise: 1 <= x <= 100

Réponse

Successful Response

items
PublicAgentSession · object[]
requis
total
integer
requis
page
integer
requis
limit
integer
requis
has_more
boolean
requis