Skip to main content
GET
/
environments
/
{environmentId}
/
waas
/
policies
Get the WAAS policy for an environment
curl --request GET \
  --url https://app.dynamicauth.com/api/v0/environments/{environmentId}/waas/policies \
  --header 'Authorization: Bearer <token>'
{
  "policyId": "<string>",
  "projectEnvironmentId": "95b11417-f18f-457f-8804-68e361f9164f",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "policyContent": [
    {
      "name": "<string>",
      "ruleType": "allow",
      "chain": "EVM",
      "ruleId": "95b11417-f18f-457f-8804-68e361f9164f",
      "address": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
      "addresses": [
        "0xbF394748301603f18d953C90F0b087CBEC0E1834"
      ],
      "chainId": 123,
      "chainIds": [
        123
      ],
      "contractAbi": [
        {}
      ],
      "functionName": "<string>",
      "argumentConstraints": [
        {
          "operator": "equal",
          "value": "<unknown>",
          "index": 1
        }
      ],
      "valueLimit": {
        "asset": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
        "maxPerCall": "<string>",
        "totalLimit": "<string>"
      },
      "operationRestrictions": {
        "blockExport": true,
        "blockRevocation": true,
        "blockClientSigning": true
      }
    }
  ],
  "message": "<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"

Response

WAAS policy fetched successfully

policyId
string
required
projectEnvironmentId
string
required
Required string length: 36
Example:

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

createdAt
string<date-time>
required
updatedAt
string<date-time>
required
policyContent
object[]
required
message
string

Message describing the operation result