Skip to content

List your assistants

Authenticate requests with your API key.

GEThttps://gptunnel.ru/v1/assistant/list

Returns the key owner’s assistants, including private assistants, from newest to oldest. This endpoint is free.

To find assistants in the public catalog, use catalog search.

Request headers

ParameterTypeDescription
Authorization*stringAPI key

Query parameters

ParameterTypeDescription
querystringCase-insensitive substring filter on the assistant name or code
limitnumberPage size from 1 to 100. Defaults to 25.
offsetnumberPagination offset. Defaults to 0.

Set GPTUNNEL_API_KEY. The request returns the first page of the key holder’s list.

import json
import os
from urllib.request import Request, urlopen
request = Request(
'https://gptunnel.ru/v1/assistant/list?limit=25&offset=0',
headers={
'Authorization': os.environ['GPTUNNEL_API_KEY'],
},
)
with urlopen(request, timeout=60) as response:
print(json.load(response))

To get the next page, keep query and limit unchanged and increase offset by limit. For example, with limit=1, the first two results are at offsets 0 and 1. A request with limit=101 returns HTTP 400.

The list response below omits instruction and apiFunctions. These fields are available when you create an assistant or update an assistant.

{
"object": "list",
"total": 1,
"limit": 25,
"offset": 0,
"data": [
{
"object": "assistant",
"id": "68c9b2d1e4b0a2d3c4f5e6b8",
"mention": "example-assistant",
"title": "Помощник",
"modelId": "gpt-6-luna"
}
]
}