GET /chat/completions

Servers

Query parameters

Name Type Required Description
order String No

Sort order for Chat Completions by timestamp. Use asc for ascending order or desc for descending order. Defaults to asc.

Possible values:

  • "desc"
  • "asc"

Default value: "asc"

limit Integer No

Number of Chat Completions to retrieve.

Default value: 20

after String No

Identifier for the last chat completion from the previous pagination request.

metadata Object No

A list of metadata keys to filter the Chat Completions by. Example:

metadata[key1]=value1&metadata[key2]=value2

model String No

The model used to generate the Chat Completions.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.