/webhooks/rest/v1/webhooks/{id}/activate REST API Endpoint
Path Parameters
id
string
REQUIRED
Loading...
Body Parameters
startFrom
string
REQUIRED
Loading...
Returns
201 Created
Loading...
Request
curl -X POST \
"https://api.quicknode.com/webhooks/rest/v1/webhooks/YOUR_WEBHOOK_ID/activate" \
-H "accept: application/json" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d $'{
"startFrom": "latest"
}' const axios = require('axios')
const webhookId = 'YOUR_WEBHOOK_ID' // Replace with your actual webhook ID
const url = `https://api.quicknode.com/webhooks/rest/v1/webhooks/${webhookId}/activate`
const payload = {
startFrom: 'latest',
}
const headers = {
accept: 'application/json',
'Content-Type': 'application/json',
'x-api-key': 'YOUR_API_KEY', // Replace with your actual API key
}
axios
.post(url, payload, { headers })
.then(response => {
console.log(response.data)
})
.catch(error => {
console.error('Error:', error.response?.data || error.message)
})
import requests
webhook_id = "YOUR_WEBHOOK_ID" # Replace with your actual webhook ID
url = f"https://api.quicknode.com/webhooks/rest/v1/webhooks/{webhook_id}/activate"
payload = {
"startFrom": "latest"
}
headers = {
"accept": "application/json",
"Content-Type": "application/json",
"x-api-key": "YOUR_API_KEY" # Replace with your actual API key
}
response = requests.post(url, headers=headers, json=payload)
print(response.text) require "uri"
require "net/http"
require "json"
webhook_id = "YOUR_WEBHOOK_ID" # Replace with your actual webhook ID
url = URI("https://api.quicknode.com/webhooks/rest/v1/webhooks/#{webhook_id}/activate")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["accept"] = "application/json"
request["Content-Type"] = "application/json"
request["x-api-key"] = "YOUR_API_KEY" # Replace with your actual API key
request.body = {
"startFrom" => "latest"
}.to_json
response = https.request(request)
puts response.body Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free