Resolve a pending message
Submits a human resolution for a message in input-required state. The resolution contains field values matching the A2UI spec’s field IDs. On success, the message transitions from input-required to working and the agent resumes execution. Returns 409 Conflict if the message was already resolved.
Authentication: accepts either a JWT (Authorization: Bearer) or a callback_token in the request body. Use JWT when calling from the dashboard or API. Use callback_token when resolving from an external system that received a webhook notification.
curl --request POST \
--url https://api.svantic.com/messages/{message_id}/resolve \
--header 'Content-Type: application/json' \
--data '
{
"resolution": {
"decision": "approve"
},
"callback_token": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({resolution: {decision: 'approve'}, callback_token: '<string>'})
};
fetch('https://api.svantic.com/messages/{message_id}/resolve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.svantic.com/messages/{message_id}/resolve"
payload = {
"resolution": { "decision": "approve" },
"callback_token": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.svantic.com/messages/{message_id}/resolve"
payload := strings.NewReader("{\n \"resolution\": {\n \"decision\": \"approve\"\n },\n \"callback_token\": \"<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))
}{
"ok": true,
"message_id": "task-uuid-456",
"new_state": "working"
}{
"error": "Invalid request body",
"code": "BAD_REQUEST"
}{
"error": "<string>",
"code": "<string>",
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"error": "Not found",
"code": "NOT_FOUND",
"request_id": "req_01EXAMPLE",
"timestamp": "2026-03-31T12:00:00.000Z"
}{
"error": "<string>",
"code": "<string>",
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"code": "<string>",
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"error": "Internal server error",
"code": "INTERNAL_ERROR",
"request_id": "req_01EXAMPLE",
"timestamp": "2026-03-31T12:00:00.000Z"
}Path Parameters
The message ID to resolve.
Body
Submit a resolution for a pending message. Field keys in resolution must match the A2UI field IDs from the original request. Authenticate with either a JWT (via Authorization header) or a callback_token (in the body).
Key-value pairs matching the A2UI field IDs. For simple approvals: { "decision": "approve" }. For forms: { "username": "...", "password": "..." }.
{ "decision": "approve" }
Single-use token from an outbound webhook notification. Provides authentication when the caller doesn't have a JWT. Mutually exclusive with Bearer auth — provide one or the other.
curl --request POST \
--url https://api.svantic.com/messages/{message_id}/resolve \
--header 'Content-Type: application/json' \
--data '
{
"resolution": {
"decision": "approve"
},
"callback_token": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({resolution: {decision: 'approve'}, callback_token: '<string>'})
};
fetch('https://api.svantic.com/messages/{message_id}/resolve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.svantic.com/messages/{message_id}/resolve"
payload = {
"resolution": { "decision": "approve" },
"callback_token": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.svantic.com/messages/{message_id}/resolve"
payload := strings.NewReader("{\n \"resolution\": {\n \"decision\": \"approve\"\n },\n \"callback_token\": \"<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))
}{
"ok": true,
"message_id": "task-uuid-456",
"new_state": "working"
}{
"error": "Invalid request body",
"code": "BAD_REQUEST"
}{
"error": "<string>",
"code": "<string>",
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"error": "Not found",
"code": "NOT_FOUND",
"request_id": "req_01EXAMPLE",
"timestamp": "2026-03-31T12:00:00.000Z"
}{
"error": "<string>",
"code": "<string>",
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"code": "<string>",
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}{
"error": "Internal server error",
"code": "INTERNAL_ERROR",
"request_id": "req_01EXAMPLE",
"timestamp": "2026-03-31T12:00:00.000Z"
}