Plugins

Plugin integration endpoints

Handle plugin REST response

post

Receives and processes plugin REST responses

Authorizations
Body
pluginIdstringRequired
taskIdstringRequired
responseobjectRequired
statusstringRequired
Responses
200

Plugin response received successfully

application/json
post
POST /v2/pluginResponse HTTP/1.1
Host: imeritapi.ango.ai
apikey: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 65

{
  "pluginId": "text",
  "taskId": "text",
  "response": {},
  "status": "text"
}
200

Plugin response received successfully

{
  "status": "success",
  "data": {
    "response": {
      "received": true,
      "taskId": "text"
    }
  }
}

Handle plugin REST log

post

Receives and processes plugin log messages

Authorizations
Body
pluginIdstringRequired
taskIdstringOptional
levelstring · enumRequiredPossible values:
messagestringRequired
metadataobjectOptional
Responses
200

Plugin log received successfully

application/json
post
POST /v2/pluginLog HTTP/1.1
Host: imeritapi.ango.ai
apikey: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 81

{
  "pluginId": "text",
  "taskId": "text",
  "level": "info",
  "message": "text",
  "metadata": {}
}
200

Plugin log received successfully

{
  "status": "success",
  "data": {
    "response": {
      "logged": true
    }
  }
}