curl --request GET \
--url https://api.fernhq.com/automation-rules/{ruleId} \
--header 'Authorization: Bearer <token>'{
"id": "rule_ghi789",
"name": "Sweep when over 5000 USDC",
"customerId": "da1f853f-b083-40f3-b729-30c99826e4ed",
"transactionTemplate": {
"source": {
"sourcePaymentAccountId": "072a8b7b-38c7-429a-a6cf-35dae7f2fb77",
"sourcePaymentMethod": "ACH",
"sourceCurrency": {
"label": "USDC",
"chain": "ETHEREUM",
"contractAddress": "0x123456789abcd123456789abcd123456789abcd",
"currencyDecimals": 18
}
},
"destination": {
"destinationPaymentAccountId": "072a8b7b-38c7-429a-a6cf-35dae7f2fb77",
"destinationPaymentMethod": "ETHEREUM",
"destinationCurrency": {
"label": "USDC",
"chain": "ETHEREUM",
"contractAddress": "0x123456789abcd123456789abcd123456789abcd",
"currencyDecimals": 18
}
},
"amount": {
"type": "FLAT",
"value": "<string>"
},
"developerFee": {
"developerFeeType": "USD",
"developerFeeAmount": "5.45"
}
},
"trigger": {
"type": "THRESHOLD_BASED",
"cronSchedule": "* * * * *",
"thresholdAmount": "5000"
},
"createdAt": "2025-09-12T12:00:00Z"
}Get an automation rule by its ID
curl --request GET \
--url https://api.fernhq.com/automation-rules/{ruleId} \
--header 'Authorization: Bearer <token>'{
"id": "rule_ghi789",
"name": "Sweep when over 5000 USDC",
"customerId": "da1f853f-b083-40f3-b729-30c99826e4ed",
"transactionTemplate": {
"source": {
"sourcePaymentAccountId": "072a8b7b-38c7-429a-a6cf-35dae7f2fb77",
"sourcePaymentMethod": "ACH",
"sourceCurrency": {
"label": "USDC",
"chain": "ETHEREUM",
"contractAddress": "0x123456789abcd123456789abcd123456789abcd",
"currencyDecimals": 18
}
},
"destination": {
"destinationPaymentAccountId": "072a8b7b-38c7-429a-a6cf-35dae7f2fb77",
"destinationPaymentMethod": "ETHEREUM",
"destinationCurrency": {
"label": "USDC",
"chain": "ETHEREUM",
"contractAddress": "0x123456789abcd123456789abcd123456789abcd",
"currencyDecimals": 18
}
},
"amount": {
"type": "FLAT",
"value": "<string>"
},
"developerFee": {
"developerFeeType": "USD",
"developerFeeAmount": "5.45"
}
},
"trigger": {
"type": "THRESHOLD_BASED",
"cronSchedule": "* * * * *",
"thresholdAmount": "5000"
},
"createdAt": "2025-09-12T12:00:00Z"
}To authenticate server-side requests
Response schema for retrieving an automation rule
Configuration for automated transaction execution
Unique identifier for the automation rule
"rule_ghi789"
Human-readable name for the automation rule
"Sweep when over 5000 USDC"
ID of the customer who owns this automation rule
"da1f853f-b083-40f3-b729-30c99826e4ed"
Template configuration for transactions created by automation rule
Show child attributes
Source details for a transaction in an automation rule
Show child attributes
The sending Payment Account Id.
"072a8b7b-38c7-429a-a6cf-35dae7f2fb77"
The payment method for the source transaction
ACH, WIRE, SEPA, AE_UAEFTS, AR_TRANSFERS_3, AU_BECS, BD_BEFTN, BO_RTGS, BR_TED_DOC_PIX, CA_INTERAC, CL_TEF, CN_CNAPS, CO_ACH, CR_SINPE, CZ_CERTIS, DK_NEMKONTO_FI, DO_ACH, EC_LOCAL, EG_RTGS_IPN, GB_BACS_CHAPS_FPS, GH_GHIPSS, GT_ACH, HK_HKICL_CHATS_ECG, HU_GIRO, ID_SKN_RTGS, IL_ZAHAV, IN_NEFT_RTGS_IMPS, JM_LOCAL, JO_ACH, JP_ZENGIN, KE_KIBBS_PESALINK, KR_LOCAL, LK_LOCAL, MX_SPEI, MY_IBG_RENTAS, NG_NIBSS_NEFT, NO_NICS, NP_LOCAL, NZ_LOCAL, PE_CCE, PH_INSTAPAY_PESONET, PK_RAAST_IBFT, PL_ELIXIR_BLUE_CASH, QA_QPS, RO_RTGS, SA_MADA, SE_BANKGIROT, SG_FAST_MEPS, SV_LOCAL, SWIFT, TH_BAHTNET_PROMPTPAY, TR_FAST_EFT, TZ_RTGS, VN_IBPS, ZA_RTGS_EFT, ACH_SAME_DAY "ACH"
Schema representing either a fiat or crypto currency
Show child attributes
The chain the crypto currency is on
ARBITRUM, BASE, ETHEREUM, OPTIMISM, POLYGON, SOLANA {
"label": "USDC",
"chain": "ETHEREUM",
"contractAddress": "0x123456789abcd123456789abcd123456789abcd",
"currencyDecimals": 18
}Destination details for a transaction in an automation rule
Show child attributes
The receiving Payment Account Id.
"072a8b7b-38c7-429a-a6cf-35dae7f2fb77"
The payment method for the destination transaction
ACH, WIRE, SEPA, AE_UAEFTS, AR_TRANSFERS_3, AU_BECS, BD_BEFTN, BO_RTGS, BR_TED_DOC_PIX, CA_INTERAC, CL_TEF, CN_CNAPS, CO_ACH, CR_SINPE, CZ_CERTIS, DK_NEMKONTO_FI, DO_ACH, EC_LOCAL, EG_RTGS_IPN, GB_BACS_CHAPS_FPS, GH_GHIPSS, GT_ACH, HK_HKICL_CHATS_ECG, HU_GIRO, ID_SKN_RTGS, IL_ZAHAV, IN_NEFT_RTGS_IMPS, JM_LOCAL, JO_ACH, JP_ZENGIN, KE_KIBBS_PESALINK, KR_LOCAL, LK_LOCAL, MX_SPEI, MY_IBG_RENTAS, NG_NIBSS_NEFT, NO_NICS, NP_LOCAL, NZ_LOCAL, PE_CCE, PH_INSTAPAY_PESONET, PK_RAAST_IBFT, PL_ELIXIR_BLUE_CASH, QA_QPS, RO_RTGS, SA_MADA, SE_BANKGIROT, SG_FAST_MEPS, SV_LOCAL, SWIFT, TH_BAHTNET_PROMPTPAY, TR_FAST_EFT, TZ_RTGS, VN_IBPS, ZA_RTGS_EFT, ACH_SAME_DAY "ETHEREUM"
Schema representing either a fiat or crypto currency
Show child attributes
The chain the crypto currency is on
ARBITRUM, BASE, ETHEREUM, OPTIMISM, POLYGON, SOLANA {
"label": "USDC",
"chain": "ETHEREUM",
"contractAddress": "0x123456789abcd123456789abcd123456789abcd",
"currencyDecimals": 18
}Configuration for transaction amount (flat or percentage)
The fee amount you would like Fern to deduct from the transaction. For Builder tier, developer fee must be greater than or equal to the fernFee.
Trigger configuration for automation rules
Show child attributes
ISO timestamp when this automation rule was created
"2025-09-12T12:00:00Z"
Was this page helpful?