code-pull-request-draftRequest Format

Learn how to structure request payloads for the Kodesage Chat API like field definitions, data types and sample setups.

Headers

Content-Type: application/json
Authorization: Bearer YOUR API_TOKEN

Request body

{
    "messages": [
        {
            "role": "user",
            "content": "Your question here"
        }
    ]
}

Message roles

  • user - Messages from the end user

  • assistant - Previous responses from the AI (for conversation history)

Multi-turn Conversations

To maintain conversation context, include the full conversation history:

Last updated