Versions Compared

Key

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

Basic form of API URL

Paste code macro
languagehttp
themeSunburst
titleBasic Form
#latest version
https://api.machbasecloud.com/

#specific version 1
https://api.machbasecloud.com/v1/

Headers

Paste code macro
languagehttp
themeSunburst
Content-Type: application/json; charset=utf8
x-api-key: {API Key}

Please keep your API Key carefully to prevent security threats.

Basic response format

The response of all requests must follow the format below, and the response in the description of each API describes only the value of the "data" key.

...

Type

Description

Required Keys

Optional Keys

Success

All went well, and (usually) some data was returned.

status, data

Fail

There was a problem with the data submitted, or some pre-condition of the API call wasn't satisfied

status, data

Error

An error occurred in processing the request, i.e. an exception was thrown

status, data

code, data

Example response type

  • Success

Paste code macro
languagejson
themeSunburst
{
    status : "success",
    data : {
        "tag_1" : [ .... ],
        "tag_2" : [ .... ]
    }
}

{
    status : "success",
    data : { "id" : 2, "title" : "Another blog post", "body" : "More content" }
}

{
    status : "success",
    data : null
}

...