---
title: "Get plug definitions, configuration, and recent runs for a connected account"
method: GET
path: "/connections/{accountId}/plugs"
tags: ["Connections"]
---

# Get plug definitions, configuration, and recent runs for a connected account

`GET /connections/{accountId}/plugs`

## Request

- Base URL: `https://api.misar.io/post`
- URL: `https://api.misar.io/post/connections/{accountId}/plugs`
- Auth: API key in header `Authorization`

"Plugs" are optional per-account automations (platform-specific) available for the account's platform, plus this account's current activation/config and its last 20 plug runs.

## Response `200`

Plug definitions, configs, and runs.

- PlugsResponse
  - `account` object, required
    - `id` string, uuid
    - `platform` string
    - `displayName` string, nullable
  - `definitions` object[], required: Available plug definitions for this account's platform.
    - `key` string
    - `label` string
    - `description` string
    - `configFields` unknown
    - `runEveryMilliseconds` integer, nullable
    - `totalRuns` integer, nullable
  - `configs` PlugConfig[], required: This account's current activation/config per plug.
    - `id` string, uuid
    - `plug_key` string
    - `config` object
    - `activated` boolean
    - `created_at` string, date-time
    - `updated_at` string, date-time
  - `runs` object[], required: Most recent 20 plug runs for this account.
    - `id` string, uuid
    - `scheduled_post_id` string, uuid, nullable
    - `plug_key` string
    - `status` string
    - `runs_completed` integer
    - `max_runs` integer, nullable
    - `last_action` string, nullable
    - `last_error` string, nullable
    - `next_run_at` string, date-time, nullable
    - `last_run_at` string, date-time, nullable
    - `created_at` string, date-time

## Other responses

- `401`: Missing, malformed, revoked, or invalid API key/session.
- `402`: Plan limit: no active plan (any write; `reason: "no_active_plan"`), a monthly allowance is spent, or the feature is not on the caller's plan. Detect by `code: "plan_limit_exceeded"`.
- `403`: The API key lacks the scope this operation requires (`code: "insufficient_scope"`, `required_scope`).
- `404`: Connected account not found (or not owned by the caller).

---

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