Common response

Firstoken uses JSON-encoded responses. These responses maintain the same structure across all requests as follows:

Attributes of Response

  • status: string The status is a string result that only has three possible values. "Success", "Fail" or “error”.

  • message: string The message value represents a short description about the status received.

  • data: {object} The data variable represents the information expected from the request made. For success requests a JSON is returned. For failure requests an empty string is returned.

Example of the response structure

{"status": success, "message": " Authorization successful", "data": {} }

{
    "status": success,
    "message": " Authorization successful", 
    "data": {} 
}

Last updated

Was this helpful?