---
title: "Get a hosted run"
method: GET
path: "/v1/extension-installations/{id}/runs/{runId}"
tags: ["Extension installations"]
---

# Get a hosted run

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

## Request

- Base URL: `https://api.samva.dev`
- URL: `https://api.samva.dev/v1/extension-installations/{id}/runs/{runId}`
- Auth: API key in header `x-api-key`

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

## Path parameters

- `id` string, required
- `runId` string, required

## Response `200`

ExtensionRun

- ExtensionRun
  - `id` string, required
  - `eventId` string, required
  - `eventType` 'mailbox.message.received' | 'mailbox.message.sent' | 'mailbox.action.pending_approval' | 'mailbox.action.resolved' | 'mailbox.message.quarantined' | 'mailbox.message.released' | 'mailbox.message.discarded', required
  - `attempt` integer, required
  - `startedAt` string, required
  - `durationMs` integer, required
  - `outcome` 'succeeded' | 'failed' | 'timed_out' | 'budget_exhausted' | 'revoked', required
  - `error` string, nullable, required
  - `logs` string[], required

## Other responses

- `401`: UnauthorizedError
- `403`: ForbiddenError
- `404`: ResourceNotFoundError
- `422`: ValidationError
- `500`: InternalError
- `504`: GatewayTimeoutError

---

[API](https://skmtc.dev/samva/apis/samva-api.md) · [All operations](https://skmtc.dev/samva/apis/samva-api/llms.txt) · [OpenAPI document](https://skmtc.dev/samva/apis/samva-api/revisions/a99408542cc3?raw)
