Akkroo
  1. Support
  2. Developers
  3. API
  4. Endpoints
  5. Test Methods

API Tests

We offer two simple tests to check that you can connect to the API. The Self Test allows you to check that you’re hitting the API and getting a response. The Authentication Test allows you to check that your access token is correct.

##Self Test

This API endpoint allows you to test if the API is alive, and you’re able retrieve a simple response.

    GET https://akkroo.com/api/selftest

###Response

HTTP/1.1 200 OK
Content-Type: application/vnd.akkroo-v1.1.5+json

{
	"success" : true
}
success
"success": true
Booelan either true or false

##Authentication Test

This API endpoint allows you to test if the access token you are going to use is valid.

    GET https://akkroo.com/api/authTest

Responses

Success

HTTP/1.1 200 OK
Content-Type: application/vnd.akkroo-v1.1.5+json

{
    "success" : true
}

Error

HTTP/1.1 401 OK
Content-Type: application/vnd.akkroo-v1.1.5+json

{
    "error" : "invalid_grant",
    "error_description" : "Access invalid",
    "detail_error" : "authAccessTokenInvalid"
}
error
"error": "invalid_grant"
string
error_description
"error_description": "Access Invalid"
String
detail_error
"detail_error": "authAccessTokenInvalid"
String