Skip to main content
POST
addPolicy
Example values you can use to demo the API:
Example response:

Headers

apikey
string
required

API key for authentication

Body

application/json
walletAddress
string
required
Example:

"0x70997970C51812dc3A010C7d01b50e0d17dc79C8"

name
string
required
Example:

"Sample Policy"

isPublic
boolean
required
isEnabled
boolean
required
description
string
Example:

"This is a sample policy"

isApplicableToAllNetworks
boolean
enabledChains
integer[]
supportedEPVersions
string[]
isPerpetual
boolean
startTime
string<date-time>
endTime
string<date-time>
globalMaximumApplicable
boolean
globalMaximumUsd
number
globalMaximumNative
number
globalMaximumOpCount
number
perUserMaximumApplicable
boolean
perUserMaximumUsd
number
perUserMaximumNative
number
perUserMaximumOpCount
number
perOpMaximumApplicable
boolean
perOpMaximumUsd
number
perOpMaximumNative
number

Response

Policy created successfully

createdAt
string<date-time>
updatedAt
string<date-time>
id
integer
walletAddress
string
name
string
description
string
isPublic
boolean
isEnabled
boolean
isApplicableToAllNetworks
boolean
enabledChains
integer[]
supportedEPVersions
string[]
isPerpetual
boolean
startTime
string<date-time>
endTime
string<date-time>
globalMaximumApplicable
boolean
globalMaximumUsd
string
globalMaximumNative
string
globalMaximumOpCount
integer
perUserMaximumApplicable
boolean
perUserMaximumUsd
string
perUserMaximumNative
string
perUserMaximumOpCount
integer
perOpMaximumApplicable
boolean
perOpMaximumUsd
string
perOpMaximumNative
string
addressAllowList
string[] | null
addressBlockList
string[] | null