---
title: "Attach automations to wallet"
method: POST
path: "/v1/wallets/{wallet_id}/automations/attach"
tags: ["Wallets"]
---

# Attach automations to wallet

`POST /v1/wallets/{wallet_id}/automations/attach`

## Request

- Base URL: `https://api.privy.io`
- URL: `https://api.privy.io/v1/wallets/{wallet_id}/automations/attach`
- Auth: HTTP basic

Attach one or more automations to a wallet.

## Path parameters

- `wallet_id` string, required: ID of the wallet.

## Headers

- `privy-app-id` string, required: ID of your Privy app.
- `privy-authorization-signature` string: Request authorization signature. If multiple signatures are required, they should be comma separated.
- `privy-request-expiry` string: Request expiry. Value is a Unix timestamp in milliseconds representing the deadline by which the request must be processed.

## Request body

- AttachWalletAutomationRequestBody: Request body for attaching automations to a wallet (wallet ID comes from the URL).
  - `automation_ids` string[], required
  - `params` object: Required for 'swap' automations (destination_address). Must be omitted for 'earn_deposit' automations — they take no per-attachment params.
    - `destination_address` string, required

## Response `200`

The list of created automation attachments.

- WalletAutomationAttachmentListResponse: List of wallet automation attachments.
  - `data` WalletAutomationAttachmentResponse[], required
    - `id` string, required
    - `automation_id` string, required
    - `wallet_id` string, required
    - `params` SwapAttachmentParams, required: Per-attachment parameters for swap automations.
      - `destination_address` string, required
    - `status` 'enabled' | 'disabled', required: Automation lifecycle state: 'enabled' = running, 'disabled' = not running.
    - `created_at` string, required
    - `updated_at` string, required

## Changes

- **2026-10-16** `4facbfa7f9d4`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/privy-io/apis/privy-api/changes/v1/wallets/:wallet_id/automations/attach/post.md)

---

[API](https://skmtc.dev/privy-io/apis/privy-api.md) - [All operations](https://skmtc.dev/privy-io/apis/privy-api/llms.txt) - [OpenAPI document](https://skmtc.dev/privy-io/apis/privy-api/revisions/3a2288470053?raw)
