Transactions
- Overview
- Installation
- Endpoints
- Examples
Indexer
Indexer Gateway
Analytics
- Overview
- Endpoints
- Examples
Metadata
- Overview
- Endpoints
- Examples
Infrastructure
- Overview
- Endpoints
Builder
- Overview
- Endpoints
Marketplace
- Overview
- Endpoints
- Examples
Node Gateway
secret
ToggleWebhookListener
POST
/
rpc
/
Indexer
/
ToggleWebhookListener
curl --request POST \
--url https://amoy-indexer.sequence.app/rpc/Indexer/ToggleWebhookListener \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": 123,
"projectId": 123
}'
{
"webhookListener": {
"id": 123,
"projectID": 123,
"url": "<string>",
"filters": {
"events": [
"<string>"
],
"contractAddresses": [
"<string>"
],
"accounts": [
"<string>"
],
"tokenIDs": [
"<string>"
]
},
"name": "<string>",
"updatedAt": "<string>",
"active": true
}
}
Authorizations
Secret JWT token for authenticating requests obtained from Sequence Builder - should not be exposed publicly.
Response
200
application/json
OK
Was this page helpful?
curl --request POST \
--url https://amoy-indexer.sequence.app/rpc/Indexer/ToggleWebhookListener \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": 123,
"projectId": 123
}'
{
"webhookListener": {
"id": 123,
"projectID": 123,
"url": "<string>",
"filters": {
"events": [
"<string>"
],
"contractAddresses": [
"<string>"
],
"accounts": [
"<string>"
],
"tokenIDs": [
"<string>"
]
},
"name": "<string>",
"updatedAt": "<string>",
"active": true
}
}