curl --location --request GET 'https://nostrapi.com/api/v1/utils/test-api' \
--header 'Content-Type: application/json' \
--header 'apikey: <YOUR_KEY_HERE>'
{
"success": true,
"message": "This is a valid API key!"
}
Healthcheck APIs
Test API
Test API to check the validity of NOSTRAPI API keys
GET
/
api
/
v1
/
utils
/
test-api
curl --location --request GET 'https://nostrapi.com/api/v1/utils/test-api' \
--header 'Content-Type: application/json' \
--header 'apikey: <YOUR_KEY_HERE>'
{
"success": true,
"message": "This is a valid API key!"
}
Response
boolean
Indicates whether the call was successful.
true if successful, false if not.string
Message detailing the results of the operation.
curl --location --request GET 'https://nostrapi.com/api/v1/utils/test-api' \
--header 'Content-Type: application/json' \
--header 'apikey: <YOUR_KEY_HERE>'
{
"success": true,
"message": "This is a valid API key!"
}