This page will help you get started with Acefone. You'll be up and running in a jiffy!

At its core, Acefone uses JWTs to provide RESTful access to its resources. Access tokens can be of an unlimited lifetime (contact Acefone support for unlimited access tokens) or short-lived (1-hour validity).

In the next section, we'll see how to get a token (JWT) using the API.

Requesting a Token

The token can be requested in the following manner.

curl --request POST \
  --url https://api.acefone.co.uk/v1/auth/login \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '{"login_id":"[email protected]","password":"yourpasswordhere"}'

Body parameters

Variable NameDescriptionData Type
login_idLogin ID of the userString
passwordPassword associated with the user's accountString

Response

Variable NameDescriptionData Type
successRequest success statusBoolean
access_tokenJWT token (requests resources from server) has 1 hour validityString
token_typeType of token generatedString
expires_inTime (in seconds) for which the token is validNumber