LogoLogo
  • GENERAL
    • About Criptan
    • Get started
      • Introduction
      • 1. Activate your account
      • 2. Add funds to your balance
      • 3. Start interacting with the API
    • API
      • Introduction
      • Authentication
        • Auth Transactions and Earn
          • API Reference
        • Auth Business (Criptan Pay)
      • Real-Time API (WebSockets)
        • OHLCV
        • TICKERS
      • Webhooks
        • Transactions and Earn Webhooks
        • Business Webhooks
      • API reference
      • Changelog
    • Developer tools
      • Sandbox
      • Support
      • Feedback
    • Security
  • Transactions
    • General
      • Overview
      • Available exchange
      • Geographic availability
      • Use cases
        • Buy
          • UX example
        • Sell
          • UX example
        • Send crypto
          • UX example
        • Receive crypto
          • UX example
        • Recurring purchases
          • UX example
        • Check history
      • FAQ
    • API Reference
      • Trades
      • Withdrawals
      • Information
  • Earn
    • General
      • Overview
      • Geographic availability
      • Use cases
        • 3, 6, 12 months
          • Make a deposit
            • UX example
          • Set up auto-renew a deposit automatically
            • UX example
        • Flex
          • Make a deposit
            • UX example
          • Make a withdrawal
            • UX example
          • Cancel a withdrawal
            • UX example
          • Set up reinvest or not rewards
            • UX example
        • Flex and 3, 6, 12 months
          • Receiving Rewards
      • FAQ
    • API Reference
  • Business (Criptan Pay)
    • General
      • Business (Criptan Pay)
      • Onboarding
      • Payment Button
      • Charges
      • FAQ
    • API Reference
      • Charge
      • Generate charge receipt
      • Get payment
    • Types CPay definitions
      • BusinessAccount
      • BusinessCharge
Powered by GitBook
On this page
  1. GENERAL
  2. API
  3. Authentication

Auth Transactions and Earn

PreviousAuthenticationNextAPI Reference

Last updated 1 year ago

At Criptan, we prioritize security, and our API is no exception. To make authenticated API requests, you'll need to utilize (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 .

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.

Unless otherwise noted, all request needs to be authenticated.

JWT
here