POST
/
codenull
/
ai
/
api
/
v1
/
chat-completion
{
  "id": "<string>",
  "project_id": "<string>",
  "messages": [
    {}
  ],
  "created_at": "<string>",
  "updated_at": "<string>",
  "ready_for_generation": false
}

Body

application/json
project_id
string
required

Project ID as UUID

user_prompt
object
required

User message including role and content

Response

Successful Response

id
string
required

UUID of the conversation document

project_id
string
required

Project ID as UUID

messages
Messages · object[]
required

Array of messages in the conversation

created_at
string
required

Timestamp when the conversation was created

updated_at
string
required

Timestamp when the conversation was last updated

ready_for_generation
boolean
default:false

Flag indicating if website requirements are confirmed and ready for generation