Passer au contenu principal
GET
/
assistants
Lister les assistants disponibles
import requests

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

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

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

print(response.text)
const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};

fetch('https://app.ubik-agent.com/api/v1/assistants', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
curl --request GET \
--url https://app.ubik-agent.com/api/v1/assistants \
--header 'X-API-KEY: <api-key>'
[
  {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "description": "<string>",
    "model_name": "<string>",
    "mcp_config": {}
  }
]
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}

Autorisations

X-API-KEY
string
header
requis

En-têtes

X-End-User-ID
string | null

Réponse

Successful Response

id
string<uuid>
requis

The unique identifier for the assistant.

name
string
requis

The name of the assistant.

created_at
string<date-time>
requis

Creation timestamp.

updated_at
string<date-time>
requis

Last update timestamp.

description
string | null

A description of the assistant.

model_name
string | null

The model used by this assistant.

mcp_config
Mcp Config · object | null

La configuration MCP par défaut pour cet assistant.