Skip to main content
POST
/
environments
/
{environmentId}
/
waas
/
{walletId}
/
signaturePolicy
Create a new WAAS signature policy for a wallet
curl --request POST \
  --url https://app.dynamicauth.com/api/v0/environments/{environmentId}/waas/{walletId}/signaturePolicy \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "policyContent": [
    {
      "chain": "EVM",
      "toAddresses": [
        "0xbF394748301603f18d953C90F0b087CBEC0E1834"
      ],
      "valueLimits": [
        {
          "asset": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
          "maxPerCall": "<string>"
        }
      ]
    }
  ],
  "timeLimit": 2
}
'
{
  "id": "95b11417-f18f-457f-8804-68e361f9164f",
  "walletId": "95b11417-f18f-457f-8804-68e361f9164f",
  "expiresAt": "2023-11-07T05:31:56Z",
  "policyContent": [
    {
      "chain": "EVM",
      "toAddresses": [
        "0xbF394748301603f18d953C90F0b087CBEC0E1834"
      ],
      "valueLimits": [
        {
          "asset": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
          "maxPerCall": "<string>"
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

environmentId
string
required

ID of the environment

Required string length: 36
Example:

"95b11417-f18f-457f-8804-68e361f9164f"

walletId
string
required

UUID of the wallet

Required string length: 36
Example:

"95b11417-f18f-457f-8804-68e361f9164f"

Body

application/json
policyContent
object[]
required

Array of policy rules, each defining allowed addresses, chain, and value limits for different assets

Minimum array length: 1
timeLimit
integer
required

Time limit in seconds until the policy expires. Must be greater than 0 seconds.

Required range: x >= 1

Response

WAAS signature policy created successfully

id
string
required
Required string length: 36
Example:

"95b11417-f18f-457f-8804-68e361f9164f"

walletId
string
required
Required string length: 36
Example:

"95b11417-f18f-457f-8804-68e361f9164f"

expiresAt
string<date-time>
required

Timestamp when the policy expires

policyContent
object[]
required

Array of policy rules, each defining allowed addresses, chain, and value limits for different assets

Minimum array length: 1