FTP-Stream APIs
Space shortcuts
FTP-Stream APIs FA

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This API call is used to retrieve User ID. 

 

Request

Code Block
languagejs
GET https://www.maytech.net/panel/api/1.0/user/<uuid>/?api_key=12345678-0000-0000-0000-000000000000&fields=login,real_name 


<uuid> - User ID unique identifier

 

Optional parameters

fields - Allows to obtain only specified User ID fields

 

Response

  • 200 - OK
  • 400 - Bad request
  • 401 - Invalid api_key
  • 500 - Internal Server Error

 

Code Block
languagejs
HTTP/1.1 200 OK
Content-Type: application/json
{"status":"OK","data":{"login":"demo","real_name":"John Smith"}}

 

Code Block
languagejs
HTTP/1.1 400 Bad Request
Content-Type: application/json 
{"status":"ERROR","message":"User record not found or API key owner have no access to User record."}


 

 

 



FTP-Stream APIs FA