Example API Call

Here is how you can request your auth token:

curl -X 'GET' \
  'https://api.opentact.org/rest/auth' \
  -H 'accept: application/json' \
  -H 'Authorization: Basic b3BlbnRhY3RAY2FsbGlmeS5pbzoxMjM0NTY3OA==' \
  -H 'X-Auth-Token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiMjk4NGExY2EtZmZmNy00YzU5LWE2M2ItMzQ2ODE3OWQ3ZGY3Iiwicm9sZSI6IlVzZXIiLCJpYXQiOjE2NzI3MzA5NTAsImV4cCI6MTY3MjgxNzM1MH0.iJ5Cf77a1Vn8B58g9KsP6wW8eixroXhdAzcF3YjmqGo'
  
Request URL
https://api.opentact.org/rest/auth

Here is the response:

Response code: 200
{
  "success": true,
  "payload": {
    "uuid": "0116f6d1-1280-44b2-9134-da48509ec575",
    "email": "info@opentact.org",
    "wss_online": true,
    "role": "User",
    "created_on": "2024-01-16T14:15:48.540Z",
    "modified_on": "2024-01-16T14:15:48.540Z",
    "deleted_on": null,
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiZGU3NDBjYTQtYjNhYi00N2UzLWIzMDctZmQ3NT",
    "phone_number": "+1234567890",
    "dob": "2024-01-16T14:15:48.540Z",
    "avatar": "https://google/image.png",
    "first_name": "First Name",
    "last_name": "Last Name",
    "gender": "Female",
    "account": {
      "created_on": "2024-01-16T14:15:48.540Z",
      "modified_on": "2024-01-16T14:15:48.540Z",
      "uuid": "f2cb79fb-6bf8-4484-8034-debf95aac73b",
      "email": "info@denovolab.com",
      "name": "DENOVOLAB",
      "level": "Level0",
      "deleted_on": null,
      "balance": 99.87895
    }
  }
}

Last updated