GET
/
v2
/
chat
/
completions
/
{id}
curl --request GET \
  --url https://api.tela.com/v2/chat/completions/{id}
{
  "id": "<string>",
  "status": "created",
  "input_content": {
    "variables": {},
    "messages": [
      {
        "role": "<string>",
        "content": "<string>",
        "function_call": {
          "name": "<string>",
          "arguments": "<string>"
        }
      }
    ],
    "files": [
      {
        "name": "<string>",
        "used_at": "variables",
        "parsed_content": "<string>",
        "url": "<string>",
        "type": "image"
      }
    ]
  },
  "output_content": {
    "role": "system",
    "tool_calls": [
      {
        "name": "<string>",
        "arguments": "<string>"
      }
    ],
    "information": {
      "duration": 123,
      "cost": 123,
      "input_tokens": 123,
      "output_tokens": 123
    },
    "has_structured_output": true,
    "content": {},
    "input_messages": "<string>"
  },
  "raw_input": {
    "version_id": "<string>",
    "canvas_id": "<string>",
    "application_id": "<string>",
    "webhook_url": "<string>",
    "variables": {},
    "messages": [
      {
        "role": "user",
        "content": "<string>"
      }
    ],
    "override": {
      "model": "<string>",
      "temperature": 123,
      "type": "chat",
      "functions": [
        {
          "id": "<string>",
          "name": "<string>",
          "description": "<string>",
          "parameters": {
            "type": "object",
            "properties": {},
            "required": [
              "<string>"
            ]
          }
        }
      ],
      "structured_output": {
        "enabled": true,
        "schema": {
          "properties": {},
          "type": "object",
          "title": "<string>",
          "description": "<string>",
          "required": [
            "<string>"
          ]
        }
      }
    }
  },
  "raw_output": {},
  "compatibility_date": "2023-11-07T05:31:56Z",
  "prompt_version_id": "<string>",
  "prompt_application_id": "<string>",
  "workspace_id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Path Parameters

id
string
required

Response

200 - application/json
Successful retrieval of chat completion

Response structure for a chat completion webhook. This represents the data sent to the webhook URL when a chat completion is finished.