ExtensionInstallations

Get a hosted run

Returns one retained run with the lines its handler logged: at most 50 lines of 500 characters.

GET
/v1/extension-installations/{id}/runs/{runId}

Returns one retained run with the lines its handler logged: at most 50 lines of 500 characters.

Authorization

apiKey
headerx-api-key<token>

Path Parameters

id*string
Match^exti_[0-9a-hjkmnp-tv-z]{16,24}$
runId*string
Length1 <= length <= 64

Response Body

ExtensionRun

application/json
  1. response
id*string
eventId*string
eventType*string
Value in"mailbox.message.received""mailbox.message.sent""mailbox.action.pending_approval""mailbox.action.resolved""mailbox.message.quarantined""mailbox.message.released""mailbox.message.discarded"
attempt*integer
Range-9007199254740991 <= value <= 9007199254740991
startedAt*string
durationMs*integer
Range-9007199254740991 <= value <= 9007199254740991
outcome*string
Value in"succeeded""failed""timed_out""budget_exhausted""revoked"
error*string|null
logs*array<string>
Example Request
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"  ]}

Related documentation