Judge a ticket
curl --request POST \
--url https://judged.systems/api/judge \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"packId": "PACK_ID",
"ticket": {
"externalId": "48213",
"subject": "Charged twice for May",
"customerMessage": "I was billed twice and want one refunded."
}
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
packId: 'PACK_ID',
ticket: {
externalId: '48213',
subject: 'Charged twice for May',
customerMessage: 'I was billed twice and want one refunded.'
}
})
};
fetch('https://judged.systems/api/judge', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://judged.systems/api/judge"
payload = {
"packId": "PACK_ID",
"ticket": {
"externalId": "48213",
"subject": "Charged twice for May",
"customerMessage": "I was billed twice and want one refunded."
}
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"evaluationId": "<string>",
"result": {
"status": "accept",
"answers": {},
"reviewReasons": [
"<string>"
],
"modelId": "<string>",
"latencyMs": 123,
"derived": {
"department": "<string>",
"priority": "<string>",
"tags": [
"<string>"
]
},
"usage": {
"inputTokens": 123,
"outputTokens": 123
}
},
"packVersionId": "<string>"
}{
"error": "<string>",
"issues": [
{}
]
}Judge
Judge a ticket
API key only. Requires judgments:run. Judges the published version. An optional Idempotency-Key returns the stored evaluation when the same key is sent again. A gateway failure does not store the key.
POST
/
api
/
judge
Judge a ticket
curl --request POST \
--url https://judged.systems/api/judge \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"packId": "PACK_ID",
"ticket": {
"externalId": "48213",
"subject": "Charged twice for May",
"customerMessage": "I was billed twice and want one refunded."
}
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
packId: 'PACK_ID',
ticket: {
externalId: '48213',
subject: 'Charged twice for May',
customerMessage: 'I was billed twice and want one refunded.'
}
})
};
fetch('https://judged.systems/api/judge', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://judged.systems/api/judge"
payload = {
"packId": "PACK_ID",
"ticket": {
"externalId": "48213",
"subject": "Charged twice for May",
"customerMessage": "I was billed twice and want one refunded."
}
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"evaluationId": "<string>",
"result": {
"status": "accept",
"answers": {},
"reviewReasons": [
"<string>"
],
"modelId": "<string>",
"latencyMs": 123,
"derived": {
"department": "<string>",
"priority": "<string>",
"tags": [
"<string>"
]
},
"usage": {
"inputTokens": 123,
"outputTokens": 123
}
},
"packVersionId": "<string>"
}{
"error": "<string>",
"issues": [
{}
]
}Authorizations
apiKeybearerAuth
Headers
Required string length:
1 - 128Body
application/json