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

Example Usage

For complete API documentation and examples, please refer to your Swagger UI.
curl -X 'POST' \
  'https://localhost:8080/codenull/ai/api/v1/chat-completion' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "project_id": "123e4567-e89b-12d3-a456-426614174000",
  "user_prompt": {
    "role": "user",
    "content": "I need a portfolio website for a photographer"
  }
}'

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