curl --request POST \
--url https://api.checklyhq.com/accounts/{accountId}/metrics \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"startTime": "2023-12-25",
"endTime": "2023-12-25",
"step": 60
}
'"<string>"curl --request POST \
--url https://api.checklyhq.com/accounts/{accountId}/metrics \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"startTime": "2023-12-25",
"endTime": "2023-12-25",
"step": 60
}
'"<string>"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]"
Successful
The response is of type string.
Was this page helpful?