# Auth Transactions and Earn

At Criptan, we prioritize security, and our API is no exception. To make authenticated API requests, you'll need to utilize [JWT](https://jwt.io/) (JSON Web Token) authentication. Here's how it works:

**Authentication Header:**

Include the `Authentication` header in your API requests. The header should contain the value `Bearer` followed by your unique `id_token`.

**Obtaining the id\_token:**

To obtain the necessary `id_token` for authentication, follow the steps outlined in our authentication API, as described [here](/general/api/authentication/auth-transactions-and-earn/api-reference.md#auth-login).

**Handling Authentication Failures:**

In the event of authentication failure, our API will respond with a JSON object containing an error message. The HTTP status code will be 401, indicating an unauthorized request.

By implementing JWT authentication, we ensure the highest level of security for your API interactions with Criptan. Your data and transactions are protected, providing peace of mind as you navigate the world of cryptocurrency.

{% hint style="info" %}
Unless otherwise noted, all request needs to be authenticated.
{% endhint %}


---

# 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://developers.criptan.com/general/api/authentication/auth-transactions-and-earn.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.
