ExtensionInstallations
Get a hosted run
Returns one retained run with the lines its handler logged: at most 50 lines of 500 characters.
GET
Returns one retained run with the lines its handler logged: at most 50 lines of 500 characters.
apiKeyheader
x-api-key<token>id*stringMatch
^exti_[0-9a-hjkmnp-tv-z]{16,24}$runId*stringLength
1 <= length <= 64ExtensionRun
application/json- response
id*stringeventId*stringeventType*stringValue in
"mailbox.message.received""mailbox.message.sent""mailbox.action.pending_approval""mailbox.action.resolved""mailbox.message.quarantined""mailbox.message.released""mailbox.message.discarded"attempt*integerRange
-9007199254740991 <= value <= 9007199254740991startedAt*stringdurationMs*integerRange
-9007199254740991 <= value <= 9007199254740991outcome*stringValue in
"succeeded""failed""timed_out""budget_exhausted""revoked"error*string|nulllogs*array<string>import { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.extensionInstallations.getRun({ "id": "example", "runId": "example"});Example Response
{ "id": "string", "eventId": "string", "eventType": "mailbox.message.received", "attempt": -9007199254740991, "startedAt": "string", "durationMs": -9007199254740991, "outcome": "succeeded", "error": "string", "logs": [ "string" ]}