Skip to main content
GET
/
chat
/
completions
List all chat completions
curl --request GET \
  --url https://api.cloudglue.dev/v1/chat/completions \
  --header 'Authorization: Bearer <token>'
{
  "object": "list",
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "created_at": 123,
      "object": "chat.completion",
      "model": "<string>",
      "usage": {
        "prompt_tokens": 123,
        "completion_tokens": 123,
        "total_tokens": 123
      },
      "choices": [
        {
          "index": 123,
          "message": {
            "role": "system",
            "content": "<string>",
            "name": "<string>"
          }
        }
      ],
      "payload": {
        "messages": [
          {
            "role": "system",
            "content": "<string>",
            "name": "<string>"
          }
        ],
        "temperature": 123,
        "filter": {
          "metadata": [
            {
              "path": "<string>",
              "operator": "NotEqual",
              "valueText": "<string>",
              "valueTextArray": [
                "<string>"
              ],
              "scope": "file"
            }
          ],
          "video_info": [
            {
              "path": "duration_seconds",
              "operator": "NotEqual",
              "valueText": "<string>",
              "valueTextArray": [
                "<string>"
              ]
            }
          ],
          "file": [
            {
              "path": "bytes",
              "operator": "NotEqual",
              "valueText": "<string>",
              "valueTextArray": [
                "<string>"
              ]
            }
          ]
        },
        "collections": [
          "3c90c3cc-0d44-4b50-8888-8dd25736052a"
        ]
      }
    }
  ],
  "total": 123,
  "limit": 123,
  "offset": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

limit
integer
default:20

Maximum number of chat completions to return

Required range: x <= 100
offset
integer
default:0

Number of chat completions to skip

created_before
string<date>

Filter chat completions created before a specific date (YYYY-MM-DD format), in UTC timezone

created_after
string<date>

Filter chat completions created after a specific date (YYYY-MM-DD format), in UTC timezone

Response

200 - application/json

A list of chat completions

object
enum<string>
required

Object type, always 'list'

Available options:
list
data
object[]
required

The list of chat completions

total
integer
required

The total number of items

limit
integer
required

The number of items per page

offset
integer
required

The offset of the items