This endpoint provides general information about the current API status, environment, and whether the user is logged in or not.
This API only accepts GET
requests.
https://dev-api.aymakan.com.sa/v2/ping
https://api.aymakan.net/v2/ping
The following headers should be sent along with the request
Your account security code / Api Token
(optional)Upon successful request, the following response will be sent back with an HTTP status 200 OK
.
{
"status": "Healthy",
"environment": "development",
"logged_in": "Yes"
}
{info} The
environment
well beproduction
for production API.
{
"status": "Healthy",
"environment": "production",
"logged_in": "Yes"
}
In case of a missing Authorization
header or invalid/missing security code / Api Token
the following response can be returned:
{
"status": "Healthy",
"environment": "production",
"logged_in": "No"
}
{info} Make sure the Authorization header and the secret code / Api Token are entered correctly.