v1/gateway REST API Endpoint
Body Parameters
name
string
REQUIRED
Loading...
isPrivate
boolean
Loading...
isEnabled
boolean
Loading...
Returns
id
integer
Loading...
uuid
string
Loading...
createdAt
string
Loading...
updatedAt
string
Loading...
name
string
Loading...
domain
string
Loading...
status
string
Loading...
isPrivate
boolean
Loading...
isEnabled
boolean
Loading...
Request
1curl --location --request POST 'https://api.quicknode.com/ipfs/rest/v1/gateway' \2--header 'x-api-key: YOUR_API_KEY' \3--header 'Content-Type: application/json' \4--data-raw ' {5"name": "YOUR_GATEWAY_NAME",6"isPrivate": false,7"isEnabled": false8}'9
1curl --location --request POST 'https://api.quicknode.com/ipfs/rest/v1/gateway' \2--header 'x-api-key: YOUR_API_KEY' \3--header 'Content-Type: application/json' \4--data-raw ' {5"name": "YOUR_GATEWAY_NAME",6"isPrivate": false,7"isEnabled": false8}'9
1var myHeaders = new Headers();2myHeaders.append("x-api-key", "YOUR_API_KEY");3myHeaders.append("Content-Type", "application/json");45var raw = JSON.stringify({6"name": "YOUR_GATEWAY_NAME",7"isPrivate": false,8"isEnabled": false9});1011var requestOptions = {12method: 'POST',13headers: myHeaders,14body: raw,15redirect: 'follow'16};1718fetch("https://api.quicknode.com/ipfs/rest/v1/gateway", requestOptions)19.then(response => response.text())20.then(result => console.log(result))21.catch(error => console.log('error', error));22
1var myHeaders = new Headers();2myHeaders.append("x-api-key", "YOUR_API_KEY");3myHeaders.append("Content-Type", "application/json");45var raw = JSON.stringify({6"name": "YOUR_GATEWAY_NAME",7"isPrivate": false,8"isEnabled": false9});1011var requestOptions = {12method: 'POST',13headers: myHeaders,14body: raw,15redirect: 'follow'16};1718fetch("https://api.quicknode.com/ipfs/rest/v1/gateway", requestOptions)19.then(response => response.text())20.then(result => console.log(result))21.catch(error => console.log('error', error));22
1import requests2import json34url = "https://api.quicknode.com/ipfs/rest/v1/gateway"56payload = json.dumps({7"name": "YOUR_GATEWAY_NAME",8"isPrivate": False,9"isEnabled": False10})11headers = {12'x-api-key': 'YOUR_API_KEY',13'Content-Type': 'application/json'14}1516response = requests.request("POST", url, headers=headers, data=payload)1718print(response.text)19
1import requests2import json34url = "https://api.quicknode.com/ipfs/rest/v1/gateway"56payload = json.dumps({7"name": "YOUR_GATEWAY_NAME",8"isPrivate": False,9"isEnabled": False10})11headers = {12'x-api-key': 'YOUR_API_KEY',13'Content-Type': 'application/json'14}1516response = requests.request("POST", url, headers=headers, data=payload)1718print(response.text)19
1require "uri"2require "json"3require "net/http"45url = URI("https://api.quicknode.com/ipfs/rest/v1/gateway")67https = Net::HTTP.new(url.host, url.port)8https.use_ssl = true910request = Net::HTTP::Post.new(url)11request["x-api-key"] = "YOUR_API_KEY"12request["Content-Type"] = "application/json"13request.body = JSON.dump({14"name": "YOUR_GATEWAY_NAME",15"isPrivate": false,16"isEnabled": false17})1819response = https.request(request)20puts response.read_body
1require "uri"2require "json"3require "net/http"45url = URI("https://api.quicknode.com/ipfs/rest/v1/gateway")67https = Net::HTTP.new(url.host, url.port)8https.use_ssl = true910request = Net::HTTP::Post.new(url)11request["x-api-key"] = "YOUR_API_KEY"12request["Content-Type"] = "application/json"13request.body = JSON.dump({14"name": "YOUR_GATEWAY_NAME",15"isPrivate": false,16"isEnabled": false17})1819response = https.request(request)20puts response.read_body
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free