GET
/
v2
/
chat
/
completions
/
{id}

Path Parameters

id
string
required

Response

200 - application/json

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

compatibility_date
string

The date used for compatibility checks

created_at
string

The timestamp when this chat completion was created

id
string

Unique identifier for this chat completion response

input_content
object

Contains information about the input provided for this chat completion

output_content
object

Contains the output generated by the chat completion

prompt_application_id
string | null

The ID of the prompt application, if applicable

prompt_version_id
string

The ID of the prompt version used for this chat completion

raw_input
object | null

The original input parameters provided for this chat completion

raw_output
object

The raw output from the chat completion process

status
enum<string>

The current status of the chat completion. 'created' means the request has been received but processing hasn't started. 'running' means the chat completion is currently being processed. 'succeeded' means the chat completion has finished successfully. 'failed' means the chat completion encountered an error and couldn't complete.

Available options:
created,
failed,
running,
succeeded
updated_at
string

The timestamp when this chat completion was last updated

workspace_id
string

The ID of the workspace where this chat completion was executed