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 Name | Description | Data Type |
---|---|---|
login_id | Login ID of the user | String |
password | Password associated with the user's account | String |
Response
Variable Name | Description | Data Type |
---|---|---|
success | Request success status | Boolean |
access_token | JWT token (requests resources from server) has 1 hour validity | String |
token_type | Type of token generated | String |
expires_in | Time (in seconds) for which the token is valid | Number |