---
title: Archive an automation (machine member)
description: Session-only, owner/admin.
api_method: POST
api_path: "/v1/workspaces/{workspaceId}/automations/{memberId}/archive"
canonical_url: https://wiblo.app/docs/developers/api/automations/archive-automation
last_updated: 2026-07-28T17:12:38+02:00
md_url: https://wiblo.app/docs/developers/api/automations/archive-automation.md
---

# Archive an automation (machine member)

`POST /v1/workspaces/{workspaceId}/automations/{memberId}/archive`

Session-only, owner/admin. Archives the integration; the resolver's `member.archived_at` check then rejects all of its keys on the next request, with no per-key writes. Per-workspace rate-limited at 30/60s.

## Path parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `workspaceId` | `string` | Yes |  |
| `memberId` | `string` | Yes |  |

## Request

**curl**

```bash
curl https://api.wiblo.app/v1/workspaces/{workspaceId}/automations/{memberId}/archive \
  -X POST \
  -H "Authorization: Bearer $WIBLO_TOKEN"
```

**TypeScript**

```ts
import { createSdk, archiveAutomation } from "@workspace/sdk"

const sdk = createSdk({ baseUrl: "https://api.wiblo.app" })

const { data, error } = await archiveAutomation({
  client: sdk,
  path: { workspaceId: "...", memberId: "..." },
})
```

## Responses

**`204`** — The automation is archived; all its keys are disabled.

**`401`** — No valid Supabase session cookie was present. Returns `ApiErrorEnvelope`.

**`403`** — Caller is not an owner/admin, or a `wbl_*` bearer was presented (`INSUFFICIENT_PRIVILEGE`). Returns `ApiErrorEnvelope`.

**`404`** — The machine member does not exist in this workspace (`MACHINE_MEMBER_NOT_FOUND`), or the caller has no membership / the workspace does not exist (`WORKSPACE_NOT_FOUND`). Returns `ApiErrorEnvelope`.

**`422`** — Path param failed UUID validation (`INVALID_PARAMS`). Returns `ApiErrorEnvelope`.

**`429`** — Rate limit exceeded. The body's `error.code` is `RATE_LIMITED` and `error.details.retry_after` is the same number of seconds as the `Retry-After` header. Returns `ApiErrorEnvelope`.
