curl --request GET \
--url https://api.swarmd.ai/relay/v1/approvals/{id} \
--header 'Authorization: Bearer <token>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"taskId": "<string>",
"contextId": "<string>",
"tenantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agentMessageRole": "<string>",
"agentMessageText": "<string>",
"detectionSource": "SYNC_RESPONSE",
"sourceAgentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sourceUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sinkAgentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agentMessageData": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"resolution": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"action": "APPROVED",
"message": "<string>",
"resolvedBy": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
}Security Requirements
| Auth Types | Entities | Permissions | Required Roles |
|---|---|---|---|
| USER | AGENT_CONVERSATIONS | READ | AGENT_CONVERSATIONS:READ |
curl --request GET \
--url https://api.swarmd.ai/relay/v1/approvals/{id} \
--header 'Authorization: Bearer <token>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"taskId": "<string>",
"contextId": "<string>",
"tenantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agentMessageRole": "<string>",
"agentMessageText": "<string>",
"detectionSource": "SYNC_RESPONSE",
"sourceAgentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sourceUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sinkAgentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agentMessageData": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"resolution": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"action": "APPROVED",
"message": "<string>",
"resolvedBy": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
}JWT token (USER, AGENT, or SERVICE auth)
OK
SYNC_RESPONSE, PUSH_NOTIFICATION Show child attributes