POST
/
accounts
/
{id}
/
vault
/
activate
curl -X POST "https://api.stableyard.fi/v2/accounts/acc_123/vault/activate" \
  -H "Authorization: Bearer sy_auth_*" \
  -H "Content-Type: application/json" \
  -d '{}'
{
  "txData": {
    "to": "0xModuleFactory...",
    "value": "0",
    "data": "0xencoded_data...",
    "operation": 1,
    "safeAddress": "0xSafeAddr...",
    "roleKey": "0xrolekey..."
  },
  "requestId": "req_abc123"
}
Step 2 of vault setup. This endpoint has two modes:
  1. Without txData: Returns the transaction data that the user must sign
  2. With txData + signature: Submits the signed transaction to activate the role module
Auth: sy_auth_*
id
string
required
Account ID
txData
object
Signed transaction data (for step 2b)
signature
string
The user’s signature of the transaction data (required with txData)
curl -X POST "https://api.stableyard.fi/v2/accounts/acc_123/vault/activate" \
  -H "Authorization: Bearer sy_auth_*" \
  -H "Content-Type: application/json" \
  -d '{}'
{
  "txData": {
    "to": "0xModuleFactory...",
    "value": "0",
    "data": "0xencoded_data...",
    "operation": 1,
    "safeAddress": "0xSafeAddr...",
    "roleKey": "0xrolekey..."
  },
  "requestId": "req_abc123"
}