Rest API
- Introduction
- GlobalWallets
- GlobalWalletAccessControl
- NameServices
- TestAccount
- CustomHostnames
- Exports
- Gates
- Settings
- Analytics
- Organizations
- Projects
- Custom Networks
- Chainalysis
- Environments
- Sessions
- Wallets
- Users
- Visits
- Members
- MfaSettings
- Invites
- ExternalJwt
- Origins
- UserApiTokens
- Tokens
- Allowlists
- Chains
- SDK Views
- Events
- Webhooks
- SDK
- Custom Fields
- DeeplinkUrls
- Mfa
- Waas
Gates
Creates a new gate for the project environment
POST
/
environments
/
{environmentId}
/
gates
Copy
Ask AI
curl --request POST \
--url https://app.dynamicauth.com/api/v0/environments/{environmentId}/gates \
--header 'Content-Type: application/json' \
--data '{
"name": "Super User Gate",
"outcome": "scope",
"scope": "superuser",
"rules": [
{
"type": "nft",
"address": {
"networkId": 1,
"contractAddress": "0xbF394748301603f18d953C90F0b087CBEC0E1834"
},
"filter": {
"tokenId": "0x01",
"amount": 123
}
}
]
}'
Copy
Ask AI
{
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"name": "Super User Gate",
"scope": "superuser",
"enabledAt": "2023-11-07T05:31:56Z",
"rules": [
{
"type": "nft",
"address": {
"networkId": 1,
"contractAddress": "0xbF394748301603f18d953C90F0b087CBEC0E1834"
},
"filter": {
"tokenId": "0x01",
"amount": 123
}
}
],
"outcome": "scope"
}
Path Parameters
ID of the environment
Required string length:
36
Example:
"95b11417-f18f-457f-8804-68e361f9164f"
Body
application/json
Request body to create a new gate. The gate will be not enabled by default.
Response
201
application/json
Successfully created
The response is of type object
.
Was this page helpful?
Copy
Ask AI
curl --request POST \
--url https://app.dynamicauth.com/api/v0/environments/{environmentId}/gates \
--header 'Content-Type: application/json' \
--data '{
"name": "Super User Gate",
"outcome": "scope",
"scope": "superuser",
"rules": [
{
"type": "nft",
"address": {
"networkId": 1,
"contractAddress": "0xbF394748301603f18d953C90F0b087CBEC0E1834"
},
"filter": {
"tokenId": "0x01",
"amount": 123
}
}
]
}'
Copy
Ask AI
{
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"name": "Super User Gate",
"scope": "superuser",
"enabledAt": "2023-11-07T05:31:56Z",
"rules": [
{
"type": "nft",
"address": {
"networkId": 1,
"contractAddress": "0xbF394748301603f18d953C90F0b087CBEC0E1834"
},
"filter": {
"tokenId": "0x01",
"amount": 123
}
}
],
"outcome": "scope"
}
Assistant
Responses are generated using AI and may contain mistakes.