Skip to content

POST /probes

POST /api/v1/probes

Creates a probe for an existing project. The target project is provided in the request body.

FieldTypeRequiredDescription
projectstringYesExisting project name
urlstringYesTarget URL
methodstringNoGET, POST, PUT, PATCH, DELETE, HEAD, or OPTIONS
headersobjectNoKey-value request headers
bodymixedNoOptional request body
latencyintegerNoMaximum expected latency in milliseconds
Terminal window
curl -X POST http://localhost/api/v1/probes \
-H "Content-Type: application/json" \
-H "X-Uplinkr-Api-Key: replace-me-with-a-long-random-key" \
-d '{
"project": "status-page",
"url": "https://example.com/health",
"method": "GET",
"headers": {
"Accept": "application/json"
},
"body": "{\"ping\":true}"
}'
{
"data": {
"project": "status-page",
"url": "https://example.com/health",
"probe_id": "5be5db4b8f0d98f0c4b2c6f24395d5f7f8d4fe10"
},
"meta": {
"created": true
}
}
  • 201 Probe created
  • 200 Probe already existed for that URL and was written again
  • 401 Missing or invalid API key
  • 404 Project not found
  • 422 Validation failed