Skip to main content

v0/endpoints/{id}/security/referrers REST API Endpoint

Creates a new endpoint referrer.

Updated on
Sep 27, 2024

v0/endpoints/{id}/security/referrers REST API Endpoint

Path Parameters

id
string
REQUIRED
The unique identifier for the specific endpoint

Body Parameters

referrer
string
REQUIRED
The URL or domain that is allowed to access the specific API endpoint. Only requests coming from this referrer will be permitted

Returns

data
object
The data object which contains the following fields:
id
string
A unique identifier for the referrer
referrer
string
The URL or domain that is allowed to access the specific API endpoint. Only requests coming from this referrer will be permitted
error
string
A field containing an error message if any issue occurs
Request
1
curl -X 'POST' \
2
'https://api.quicknode.com/v0/endpoints/{id}/security/referrers' \
3
-H 'accept: */*' \
4
-H 'x-api-key: YOUR_API_KEY' \
5
-H 'Content-Type: application/json' \
6
-d '{
7
"referrer": "YOUR_ENDPOINT_REFERRER"
8
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free