1. Get access token and client-id

    POST https://adcel.co/api/login

    Parameters:

    email

    password

Example

curl -X POST -d '{"email":"user@gmail.com", "password": "password"}' -s 'https://adcel.co/api/login' | json_pp

{
"access_token" : "1ed963ab06a53e61cf8de508069a66425b4ddba0",
"avatar" : "https://www.gravatar.com/avatar/21c8a3c00d0ed4b98b17e75dcd2b11e5?default=mp&site=100",
"client_id" : "e675e157-85f4-49b5-9322-8f70fa8a13b1",
"lang" : "en",
"name" : "User",
"registration_date" : "2021-11-14",
"status" : "ok",
"surname" : "Surname",
"time_zone" : "UTC",
}

2. For test use access-token and client-id in headers

curl -H "Access-Token: 1ed963ab06a53e61cf8de508069a66425b4ddba0" -H "Client-Id: e675e157-85f4-49b5-9322-8f70fa8a13b1" -s 'https://adcel.co/api/test' | json_pp
{
"status" : "ok"
}

If you change account password you need get access token again

Did this answer your question?