NFTRainbow
NFTRainbow 控制台GithubWhat's an NFT?
  • NFTRainbow - NFT 彩虹桥 🌈🌉🦄
  • Tutorials
    • Mints
      • 铸造NFT快速指南
    • Interactive Flowchart
    • By Community
      • NFTRainbow 使用教程
    • Account Solutions
    • Guides
      • 控制台合约代付设置
      • 元数据管理
      • Rainbow 铸造工具简介
  • Docs
    • FAQs
    • Changelog
    • RoadMap
    • Conflux Sponsor
    • Terminology
    • Prices
  • Products
    • Conflux RPC Bridge
    • ERC-6551
    • Web3 Services
  • API Reference
    • Open-API
      • Login
      • Files
      • Metadata
      • Contract
      • Mints
      • Transfers
      • Transaction
      • NFT
      • Burns
    • Swagger-Doc
    • Postman Collection
    • SDKs
      • Go-SDK
    • Common Errors
  • ABOUT THE APIs
    • Authentication
    • Error codes
    • Quotas and rate limits
Powered by GitBook
On this page
  1. ABOUT THE APIs

Authentication

PreviousCommon ErrorsNextError codes

Last updated 2 years ago

All the open APIs use a single authentication scheme: a Bearer JWT passed in the HTTP request header.

To obtain the access to , users have to do the following:

  1. Use app_id and app_secret to call to get the JWT.

  2. Add the Authorization: Bearer {JWT} in the request header to call the corresponding API. The corresponding example can refer to .

Note: app_id and app_secret are obtained from Rainbow Console.

The Bearer JWT is valid for one hour to call . Once the token is expired for one hour, users have to call to obtain a new JWT. The corresponding example can refer to .

Note: Bearer JWT is valid for five hours to call . Once the token is expired for five hours, users have to call again.

To debug various error codes related to authentication, please see

open APIs
open APIs
Error codes.
login
sample
Refersh JWT
sample
Refersh JWT
login