Skip to content

POST /projects/{project}/probes

POST /api/v1/projects/{project}/probes

Creates a probe below the project defined in the route. The request body does not need a project field.

ParameterTypeRequiredDescription
projectstringYesProject name
FieldTypeRequiredDescription
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/projects/status-page/probes \
-H "Content-Type: application/json" \
-H "X-Uplinkr-Api-Key: replace-me-with-a-long-random-key" \
-d '{
"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