CLI Ask AI chat turn
curl --request POST \
--url https://assess.praxicraft.com/api/v1/public/assistant/chat/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"messages": [
{
"content": "",
"name": "<string>",
"tool_call_id": "<string>",
"tool_calls": [
{}
]
}
],
"tools": [
{}
],
"max_tokens": 2048
}
'import requests
url = "https://assess.praxicraft.com/api/v1/public/assistant/chat/"
payload = {
"messages": [
{
"content": "",
"name": "<string>",
"tool_call_id": "<string>",
"tool_calls": [{}]
}
],
"tools": [{}],
"max_tokens": 2048
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
messages: [{content: '', name: '<string>', tool_call_id: '<string>', tool_calls: [{}]}],
tools: [{}],
max_tokens: 2048
})
};
fetch('https://assess.praxicraft.com/api/v1/public/assistant/chat/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://assess.praxicraft.com/api/v1/public/assistant/chat/';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
messages: [{content: '', name: '<string>', tool_call_id: '<string>', tool_calls: [{}]}],
tools: [{}],
max_tokens: 2048
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://assess.praxicraft.com/api/v1/public/assistant/chat/"
payload := strings.NewReader("{\n \"messages\": [\n {\n \"content\": \"\",\n \"name\": \"<string>\",\n \"tool_call_id\": \"<string>\",\n \"tool_calls\": [\n {}\n ]\n }\n ],\n \"tools\": [\n {}\n ],\n \"max_tokens\": 2048\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"message": {},
"finish_reason": "<string>"
}{
"code": "<string>",
"message": "<string>",
"status": "error"
}{
"code": "<string>",
"message": "<string>",
"status": "error"
}{
"code": "<string>",
"message": "<string>",
"status": "error"
}{
"code": "<string>",
"message": "<string>",
"status": "error"
}{
"code": "<string>",
"message": "<string>",
"status": "error"
}{
"code": "<string>",
"message": "<string>",
"status": "error"
}{
"code": "<string>",
"message": "<string>",
"status": "error"
}Public API — Assistant
CLI Ask AI chat turn
One chat-completion turn for the Assess CLI assistant (Ask AI). Authenticated with an organisation API key. Requires Starter+ (capabilities.cli_assistant) and scope assistant:write (empty scopes = full access).
Optional OpenAI-format tools enable a client-side tool loop (MCP). Dedicated throttle scope public_api_assistant (default 30/hour) — separate from public write quotas.
POST
/
api
/
v1
/
public
/
assistant
/
chat
/
CLI Ask AI chat turn
curl --request POST \
--url https://assess.praxicraft.com/api/v1/public/assistant/chat/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"messages": [
{
"content": "",
"name": "<string>",
"tool_call_id": "<string>",
"tool_calls": [
{}
]
}
],
"tools": [
{}
],
"max_tokens": 2048
}
'import requests
url = "https://assess.praxicraft.com/api/v1/public/assistant/chat/"
payload = {
"messages": [
{
"content": "",
"name": "<string>",
"tool_call_id": "<string>",
"tool_calls": [{}]
}
],
"tools": [{}],
"max_tokens": 2048
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
messages: [{content: '', name: '<string>', tool_call_id: '<string>', tool_calls: [{}]}],
tools: [{}],
max_tokens: 2048
})
};
fetch('https://assess.praxicraft.com/api/v1/public/assistant/chat/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://assess.praxicraft.com/api/v1/public/assistant/chat/';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
messages: [{content: '', name: '<string>', tool_call_id: '<string>', tool_calls: [{}]}],
tools: [{}],
max_tokens: 2048
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://assess.praxicraft.com/api/v1/public/assistant/chat/"
payload := strings.NewReader("{\n \"messages\": [\n {\n \"content\": \"\",\n \"name\": \"<string>\",\n \"tool_call_id\": \"<string>\",\n \"tool_calls\": [\n {}\n ]\n }\n ],\n \"tools\": [\n {}\n ],\n \"max_tokens\": 2048\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"message": {},
"finish_reason": "<string>"
}{
"code": "<string>",
"message": "<string>",
"status": "error"
}{
"code": "<string>",
"message": "<string>",
"status": "error"
}{
"code": "<string>",
"message": "<string>",
"status": "error"
}{
"code": "<string>",
"message": "<string>",
"status": "error"
}{
"code": "<string>",
"message": "<string>",
"status": "error"
}{
"code": "<string>",
"message": "<string>",
"status": "error"
}{
"code": "<string>",
"message": "<string>",
"status": "error"
}Authorizations
Organisation API key created in Assess → Developer → API Keys. Format: Bearer ct_live_<your-key> (live) or Bearer ct_test_<your-key> (test). Optional per-key CIDR allowlists return 403 IP_NOT_ALLOWED.
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Last modified on August 27, 2026