bullseye-arrowCreate APIKey

πŸ“˜ API Documentation: createApiKey Mutation

🧠 Overview

The createApiKey A mutation allows you to generate a unique API key for accessing protected endpoints. It requires a private key from a USDT wallet. Upon successful wallet verification and transfer, a new API key is issued. It costs 20 USDT to create an API key with an opening balance of 500 queries.

circle-info

Please ensure you use a new wallet generated to pay to avoid any Loss of Funds. The private key should be that of a dedicated USDT-BEP20 Address.


πŸ” Endpoint

URL: https://argonpay.onrender.com/graphqlarrow-up-right Method: POST Content-Type: application/json


🧾 Mutation Structure

graphqlCopyEditmutation CreateApiKey(
  $firstName: String!,
  $lastName: String!,
  $email: String!,
  $password: String!,
  $privateKey: String!
) {
  createApiKey(
    firstName: $firstName,
    lastName: $lastName,
    email: $email,
    password: $password,
    privateKey: $privateKey
  ) {
    key
    wallet
    queriesLeft
  }
}

πŸ“₯ Required Parameters

Name
Type
Description

firstName

String

Your first name

lastName

String

Your last name

email

String

Your valid email address

password

String

Your secure password

privateKey

String

Private key of your USDTBEPP20-compatible wallet (must start with 0x)


βœ… Response Format


πŸ§ͺ Code Examples

Python Example (Using requests)


JavaScript Example (Using fetch)


πŸ›‘ Error Handling

You may receive errors like:

  • "Invalid private key format." – The private key must start with 0x.

  • "Something went wrong while creating API key." – Indicates blockchain/network errors during wallet verification or transaction.

Last updated