curl --request POST \
--url https://api.checklyhq.com/v1/private-locations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "New Private Location",
"slugName": "new-private-location",
"icon": "location",
"proxyUrl": "https://user:password@164.92.149.127:3128"
}
'{
"id": "0baf2a80-7266-44af-b56c-2af7086782ee",
"name": "New Private Location",
"slugName": "new-private-location",
"created_at": "2023-12-25",
"icon": "location",
"updated_at": "2023-12-25",
"checkAssignments": [
{
"id": "4295d566-18bd-47ef-b22b-129a64ffd589",
"checkId": "25039e6d-8631-4ee8-950a-bf7c893c3c1c",
"privateLocationId": "cc3f943d-7a99-49f4-94aa-bddbaaad6eb0"
}
],
"groupAssignments": [
{
"id": "450d2f06-2300-46ed-8982-b63cd53fc494",
"groupId": 10,
"privateLocationId": "895c13cc-7de2-46df-9985-cb01b995a3cf"
}
],
"keys": [
{
"id": "fed3ada8-7d9b-4634-a0fe-471afe0518b6",
"rawKey": "pl_a89026d28a0c45cf9e11b4c3637f3912",
"maskedKey": "...6a1e",
"created_at": "2023-12-25",
"updated_at": "2023-12-25"
}
],
"proxyUrl": "https://user:password@164.92.149.127:3128"
}Creates a new private location.
curl --request POST \
--url https://api.checklyhq.com/v1/private-locations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "New Private Location",
"slugName": "new-private-location",
"icon": "location",
"proxyUrl": "https://user:password@164.92.149.127:3128"
}
'{
"id": "0baf2a80-7266-44af-b56c-2af7086782ee",
"name": "New Private Location",
"slugName": "new-private-location",
"created_at": "2023-12-25",
"icon": "location",
"updated_at": "2023-12-25",
"checkAssignments": [
{
"id": "4295d566-18bd-47ef-b22b-129a64ffd589",
"checkId": "25039e6d-8631-4ee8-950a-bf7c893c3c1c",
"privateLocationId": "cc3f943d-7a99-49f4-94aa-bddbaaad6eb0"
}
],
"groupAssignments": [
{
"id": "450d2f06-2300-46ed-8982-b63cd53fc494",
"groupId": 10,
"privateLocationId": "895c13cc-7de2-46df-9985-cb01b995a3cf"
}
],
"keys": [
{
"id": "fed3ada8-7d9b-4634-a0fe-471afe0518b6",
"rawKey": "pl_a89026d28a0c45cf9e11b4c3637f3912",
"maskedKey": "...6a1e",
"created_at": "2023-12-25",
"updated_at": "2023-12-25"
}
],
"proxyUrl": "https://user:password@164.92.149.127:3128"
}The Checkly Public API uses API keys to authenticate requests. You can get the API Key here. Your API key is like a password: keep it secure!
Authentication to the API is performed using the Bearer auth method in the Authorization header and using the account ID.
For example, set Authorization header while using cURL: curl -H "Authorization: Bearer [apiKey]" "X-Checkly-Account: [accountId]"
Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general
The name assigned to the private location.
"New Private Location"
Valid slug name.
"new-private-location"
"location"
A proxy for outgoing API check HTTP calls from your private location.
"https://user:password@164.92.149.127:3128"
Created
"0baf2a80-7266-44af-b56c-2af7086782ee"
The name assigned to the private location.
"New Private Location"
Valid slug name.
"new-private-location"
The private location icon.
"location"
The check this private location has assigned.
Show child attributes
"4295d566-18bd-47ef-b22b-129a64ffd589"
The ID of the check.
"25039e6d-8631-4ee8-950a-bf7c893c3c1c"
The ID of the assigned private location.
"cc3f943d-7a99-49f4-94aa-bddbaaad6eb0"
The group this private location has assigned.
Show child attributes
A proxy for outgoing API check HTTP calls from your private location.
"https://user:password@164.92.149.127:3128"
Was this page helpful?