LightNode
    en
    • cn
    • en
    • API Overview
    • API Authentication Guide
    • Instances
      • Create Instance
        POST
      • Delete Instance
        POST
      • Stop Instance
        POST
      • Start Instance
        POST
      • Restart Instance
        POST
      • Reset Password
        POST
      • Instance Details
        GET
      • Reinstall OS
        POST
      • Instance List
        GET
    • Security Groups
      • Security Group List
        GET
    • Images
      • Image List
        GET
    • Async Tasks
      • Get Async Task Result
        GET
    • SSH Keys
      • SSH Key List
        GET
    • Regions
      • Region List
        GET
    • Packages
      • Package List
        GET
    • Schemas
      • Instance Model

    API Authentication Guide

    Authentication Overview#

    All ECS resource lifecycle management APIs require authentication to ensure secure access.

    Getting Credentials#

    1. Sign Up#

    Visit console and register an account if you do not already have one.

    2. Request API Credentials#

    In the user console, go to Account -> Token List and submit a token request. After approval, you will receive a token. Keep it secure and do not disclose it.
    Important: If your credentials are exposed, contact customer support immediately.

    Request Header#

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

    Header Format#

    Handling Authentication Failures#

    Common Error Code#

    401 Unauthorized: Missing or invalid authentication credentials

    Troubleshooting Steps#

    1.
    Check whether x-open-token was copied correctly and contains no extra spaces.
    2.
    Verify that the token is in the "Enabled" state.
    3.
    Check whether the token has expired or been revoked.
    Modified at 2026-04-10 06:47:23
    Previous
    API Overview
    Next
    Create Instance
    Built with