Skip to main content
POST
Attach automations to wallet
The wallet must be generated by Privy and never exported. Users cannot attach automations to imported or previously exported wallets.
Attaching an automation that is already attached updates its parameters and preserves its matching priority.

Authorizations

Authorization
string
header
required

Basic Auth header with your app ID as the username and your app secret as the password.

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.

Path Parameters

wallet_id
string
required

ID of the wallet.

Body

application/json

Request body for attaching automations to a wallet (wallet ID comes from the URL).

automation_ids
string[]
required
Required array length: 1 - 20 elements
Minimum string length: 1
params
SwapAttachmentParams · object

Required for 'swap' automations (destination_address). Must be omitted for 'earn_deposit' automations — they take no per-attachment params.

Response

200 - application/json

The list of created automation attachments.

List of wallet automation attachments.

data
WalletAutomationAttachmentResponse · object[]
required