For the complete documentation index, see llms.txt. This page is also available as Markdown.

Plugins

Plugin integration endpoints

Handle Plugin REST Response

post
/pluginResponse

Callback used by a REST plugin to deliver the result of a background run. It is called by the plugin, not by API clients. This route runs no authentication: it is reachable without an API key, and the session value is the only thing tying a payload to a plugin run.

Body
sessionstringRequired

Plugin session ID. Must be a valid ObjectId, otherwise 400; an unknown one returns 404.

responseanyOptional

Result of the plugin run, stored and shown to the user who started it

errorstringOptional

Set it to mark the session failed. The user is notified that the plugin failed.

exportbooleanOptional

Marks the result as a ready export, which changes the notification the user gets

Responses
200

Plugin response received successfully

application/json

The body carries no payload, the status code is the acknowledgement.

statusstringOptionalExample: success
dataobjectOptional
post/pluginResponse
POST /v2/pluginResponse HTTP/1.1
Host: imeritapi.ango.ai
Content-Type: application/json
Accept: */*
Content-Length: 63

{
  "session": "text",
  "response": null,
  "error": "text",
  "export": true
}
{
  "status": "success",
  "data": {}
}

Handle Plugin REST Log

post
/pluginLog

Callback used by a REST plugin to store a log line. It is called by the plugin, not by API clients, and the body is written to the plugin log collection as sent. This route runs no authentication: it is reachable without an API key.

Body

Mapped onto the plugin log collection: only the fields below are stored, anything else is dropped.

pluginIdstringRequired
organizationstringRequired
sessionstringRequired

Plugin session ID

projectIdstringOptional
runBystringOptional

Email of the user who started the run

timestampstring · date-timeOptional
levelstringOptional
msgstringOptional

The log line itself

Responses
200

Plugin log received successfully

application/json

The body carries no payload, the status code is the acknowledgement.

statusstringOptionalExample: success
dataobjectOptional
post/pluginLog
POST /v2/pluginLog HTTP/1.1
Host: imeritapi.ango.ai
Content-Type: application/json
Accept: */*
Content-Length: 159

{
  "pluginId": "text",
  "organization": "text",
  "session": "text",
  "projectId": "text",
  "runBy": "text",
  "timestamp": "2026-01-01T00:00:00.000Z",
  "level": "text",
  "msg": "text"
}
200

Plugin log received successfully

{
  "status": "success",
  "data": {}
}

Last updated