curl --request POST \
--url https://api.omegas.dev/v1/escalations/{id}/resolve \
--header 'Content-Type: application/json' \
--data '
{
"answer": "<string>",
"cleared": true,
"resolved_by": "<string>",
"source": "<string>"
}
'import requests
url = "https://api.omegas.dev/v1/escalations/{id}/resolve"
payload = {
"answer": "<string>",
"cleared": True,
"resolved_by": "<string>",
"source": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({answer: '<string>', cleared: true, resolved_by: '<string>', source: '<string>'})
};
fetch('https://api.omegas.dev/v1/escalations/{id}/resolve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.omegas.dev/v1/escalations/{id}/resolve",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'answer' => '<string>',
'cleared' => true,
'resolved_by' => '<string>',
'source' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.omegas.dev/v1/escalations/{id}/resolve"
payload := strings.NewReader("{\n \"answer\": \"<string>\",\n \"cleared\": true,\n \"resolved_by\": \"<string>\",\n \"source\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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))
}HttpResponse<String> response = Unirest.post("https://api.omegas.dev/v1/escalations/{id}/resolve")
.header("Content-Type", "application/json")
.body("{\n \"answer\": \"<string>\",\n \"cleared\": true,\n \"resolved_by\": \"<string>\",\n \"source\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.omegas.dev/v1/escalations/{id}/resolve")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"answer\": \"<string>\",\n \"cleared\": true,\n \"resolved_by\": \"<string>\",\n \"source\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"applied": true,
"id": "<string>",
"object": "<string>",
"status": "<string>"
}Resolve escalation
The escalation destination’s callback. Authenticated by the per-escalation bearer, not an API key.
curl --request POST \
--url https://api.omegas.dev/v1/escalations/{id}/resolve \
--header 'Content-Type: application/json' \
--data '
{
"answer": "<string>",
"cleared": true,
"resolved_by": "<string>",
"source": "<string>"
}
'import requests
url = "https://api.omegas.dev/v1/escalations/{id}/resolve"
payload = {
"answer": "<string>",
"cleared": True,
"resolved_by": "<string>",
"source": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({answer: '<string>', cleared: true, resolved_by: '<string>', source: '<string>'})
};
fetch('https://api.omegas.dev/v1/escalations/{id}/resolve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.omegas.dev/v1/escalations/{id}/resolve",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'answer' => '<string>',
'cleared' => true,
'resolved_by' => '<string>',
'source' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.omegas.dev/v1/escalations/{id}/resolve"
payload := strings.NewReader("{\n \"answer\": \"<string>\",\n \"cleared\": true,\n \"resolved_by\": \"<string>\",\n \"source\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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))
}HttpResponse<String> response = Unirest.post("https://api.omegas.dev/v1/escalations/{id}/resolve")
.header("Content-Type", "application/json")
.body("{\n \"answer\": \"<string>\",\n \"cleared\": true,\n \"resolved_by\": \"<string>\",\n \"source\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.omegas.dev/v1/escalations/{id}/resolve")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"answer\": \"<string>\",\n \"cleared\": true,\n \"resolved_by\": \"<string>\",\n \"source\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"applied": true,
"id": "<string>",
"object": "<string>",
"status": "<string>"
}Path Parameters
Escalation id (esc_<uuid>)
Body
The resolve callback body.
Deliberately a SUPERSET with defaults, because the deployed escalation destination does not send
the field set this endpoint would most like. Its resume POST is
{"source": "handoff", "handoff_id": "<id>", "answer": <str|null>} — cleared and by are
captured on ITS resolve API but are not forwarded to us (app/main.py:179 in the handoff repo).
So: cleared defaults to TRUE, because that callback fires only from the destination's resolve
path and never on expiry — its arrival IS the human's "done" signal. resolved_by falls back to
source, then to a constant. A runtime that DOES send the richer shape gets it honoured. This
keeps the contract runtime-agnostic without requiring a change to a product we do not own.
The human's answer, for a question.
Whether the human reports the wall actually cleared. Defaults true — see above.
Opaque label for who answered.
Accepted as a fallback for resolved_by — what the deployed destination actually sends.