GET
/
v2
/
chat
/
completions
/
{id}

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.

id
string

Unique identifier for this chat completion response

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
input_content
object

Contains information about the input provided for this chat completion

output_content
object

Contains the output generated by the 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

compatibility_date
string

The date used for compatibility checks

prompt_version_id
string

The ID of the prompt version used for this chat completion

prompt_application_id
string | null

The ID of the prompt application, if applicable

workspace_id
string

The ID of the workspace where this chat completion was executed

created_at
string

The timestamp when this chat completion was created

updated_at
string

The timestamp when this chat completion was last updated