# Example API Call

Here is how you can request your auth token:

{% code overflow="wrap" %}

```bash
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

```

{% endcode %}

Here is the response:

```json
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
    }
  }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.opentact.org/opentact-api-documentation/overview/authentication-api/example-api-call.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
