lightnode
en
  • cn
  • en
    lightnode
    en
    • cn
    • en
    • API Introduction
    • Authentication Overview
    • Instance
      • Create
        POST
      • Release
        POST
      • Stop
        POST
      • Start
        POST
      • Restart
        POST
      • Modify Password
        POST
      • Instance Details
        GET
      • Reinstall
        POST
    • Security Group
      • Security Group Query
        GET
    • Image
      • Image Query
        GET
    • Asynchronous Task
      • Query Async Task
        GET
    • SSH key
      • Key Pair Query
        GET

    Authentication Overview

    All ECS resource lifecycle management APIs require authentication to
    ensure the security of API calls.

    Obtaining Authentication Credentials#

    1. Registration#

    Visit https://console.lightnode.com and register an account (ignore this
    step if you already have one).

    2. Obtain API Authentication Credentials#

    Please contact customer support to obtain your API authentication
    credentials.
    Important Note: If your authentication credentials are leaked,
    please contact customer support immediately to obtain a new token.

    Authentication Header Settings#

    All API requests must include authentication information in the HTTP
    headers:

    Request Header Format#

    Code Examples#

    Python Example#

    JavaScript Example#

    curl Example#

    Handling Authentication Failures#

    Common Error Codes#

    401 Unauthorized: Authentication information is missing or
    invalid.

    Troubleshooting Steps#

    1.
    Check whether the x-open-token is copied correctly and ensure there
    are no extra spaces.
    2.
    Verify whether the key is in the "enabled" state.
    3.
    Check whether the key has expired or been revoked.
    Modified at 2025-09-24 05:42:51
    Previous
    API Introduction
    Next
    Create
    Built with