PilotOS Login

URL: https://xx.com/management/pilotosmachinelogin

The login function is a prerequisite for using the PilotOS OpenAPI, used for authentication. The Token obtained after logging in allows users to perform subsequent operations (like submitting tasks). Upon login, the user’s API Key must be used for authentication.

Request Method: Post

Required Parameters:

  • apiKey(str): The “Digital ID” or “Exclusive Key” used for PilotOS

Return Values:

  • errCode(uint): Error code

  • errInfo(str): Error info

  • token(str): User identity identifier for this login

Request Example:

{
    "apiKey": "D13A8E5ADxxxxxxxxF36A4B940D18CEF"
}

Response Example:

{
    "errCode": 0,
    "errInfo": "",
    "token": "c3f7fe35-xxxx-xxxx-a178-070cc311d03b"
}