API referenceAi agentRequests
Get Request
POST
application/json- body
requestId*stringLength
1 <= lengthOK
application/json- response
id*stringLength
1 <= lengthcreatedAt*stringFormat
date-timeupdatedAt*stringFormat
date-timedeletedAt*|nullmeta*externalRequestId*stringLength
1 <= lengthversion*integerRange
-9007199254740991 <= value <= 9007199254740991workflowKey*stringLength
1 <= lengthstatus*stringValue in
"pending""opened""decision_in_progress""verification_required""approved""rejected""changes_requested""expired""cancelled""failed"title*stringLength
1 <= lengthactionType*stringLength
1 <= lengthactionSummary*stringLength
1 <= lengthagent*risk*requester*target*decisionRule*receivedAt*stringFormat
date-timeexpiresAt*stringFormat
date-timecontentHash*stringLength
1 <= lengthlocationContext*timeWindowContext*curl -X POST 'http://localhost:4000/api/v1/ai-agent/getRequest' \ -H 'Content-Type: application/json' \ -d '{ "requestId": "string"}'Example Response
{ "id": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "deletedAt": "2019-08-24T14:15:22Z", "meta": { "property1": null, "property2": null }, "externalRequestId": "string", "version": -9007199254740991, "workflowKey": "string", "status": "pending", "title": "string", "actionType": "string", "actionSummary": "string", "agent": { "id": "string", "displayName": "string", "confidence": 0 }, "risk": { "level": "low", "summary": "string", "reasons": [ "string" ] }, "requester": { "displayName": "string", "organizationId": "string" }, "target": { "displayName": "string", "organizationId": "string" }, "decisionRule": { "allowedOutcomes": [ "approve" ], "requiresIdentityVerification": true, "verificationWindowSeconds": -9007199254740991 }, "receivedAt": "2019-08-24T14:15:22Z", "expiresAt": "2019-08-24T14:15:22Z", "contentHash": "string", "locationContext": { "captured": true, "permission": "string" }, "timeWindowContext": { "capturedAt": "2019-08-24T14:15:22Z", "withinWindow": true }}