Accept an inbound ticket
curl --request POST \
--url https://judged.systems/api/webhooks/inbound \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--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: {
'Idempotency-Key': '<idempotency-key>',
'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/webhooks/inbound', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://judged.systems/api/webhooks/inbound"
payload = {
"packId": "PACK_ID",
"ticket": {
"externalId": "48213",
"subject": "Charged twice for May",
"customerMessage": "I was billed twice and want one refunded."
}
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"eventId": "<string>"
}{
"error": "<string>",
"issues": [
{}
]
}Webhooks
Accept an inbound ticket
API key only. Requires judgments:run. Idempotency-Key is the delivery id and is required. Returns 202 and keeps judging. The pack must have a published version. A repeated delivery id returns the existing event.
POST
/
api
/
webhooks
/
inbound
Accept an inbound ticket
curl --request POST \
--url https://judged.systems/api/webhooks/inbound \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--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: {
'Idempotency-Key': '<idempotency-key>',
'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/webhooks/inbound', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://judged.systems/api/webhooks/inbound"
payload = {
"packId": "PACK_ID",
"ticket": {
"externalId": "48213",
"subject": "Charged twice for May",
"customerMessage": "I was billed twice and want one refunded."
}
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"eventId": "<string>"
}{
"error": "<string>",
"issues": [
{}
]
}Authorizations
apiKeybearerAuth
Headers
Required string length:
1 - 128Optional. sha256= plus the HMAC-SHA256 of the raw body.
Body
application/json
Response
The event was accepted.