API reference

List stored chat completions

GET/v1/chat/completions

Only complete, settled results explicitly saved with store=true are accessible to the same API Key for seven days. An empty query does not prove non-execution: never automatically refund or resend. store and metadata do not guarantee idempotency.

Authentication and permissions

Use your current GloopAPI key. Available models, capabilities and permissions depend on its catalog and the endpoint documentation.

Authorization: Bearer $GLOOP_API_KEY

Authentication schemes: BearerAuth

Request

Query parameters

  • afterstringOptional
  • limitintegerOptional
    Default value
    20
    Minimum
    1
    Maximum
    100
  • orderstringOptional
    Default value
    "asc"
    Enum
    ["asc","desc"]
  • modelstringOptional
  • metadataobjectOptional

    Up to 16 string key-value pairs; keys up to 64 characters.

    Maximum properties
    16
    metadata child fields (1)
    • [key]stringOptional
      Maximum length
      512

Responses and errors

HTTP 200

Success

application/json

Type
object

HTTP 400

Invalid parameters

application/json

Type
object
Required fields
error

HTTP 401

Invalid Key

application/json

Type
object
Required fields
error

HTTP 404

Result missing, deleted, expired, or not yet deliverable

application/json

Type
object
Required fields
error

HTTP 503

Temporarily unavailable

application/json

Type
object
Required fields
error