Introduction

Introduction

The zkcloud api is build on HTTP. Our API is RESTful Api.

BaseURL

All API calls referenced in our documentation start with a base URL.It’s also important to note that our platform uses URI versioning for our API endpoints,

Our base URL is:

https://api.zkcloud.io/

Authentication

The zkcloud api use API Keys to authenticate all requests. You can view and manage your API Keys in the settings page.

Please keep it in a safe place so that it will not be published. If you don't need to use api keys, delete the api keys in the settings paes.

Authentication to the API is performed via bearer auth. use -H .

To test requests using your account, replace the <API_TOKEN> with your actual API key.

curl -H "Authorization: Bearer <API_TOKEN>"

Versioning

We adopt media Type Versioning uses the Accept header of the request to specify the version. You add v=1 on the headers to request all apis.

curl -H "Accept: application/json;v=1" -H "Authorization: Bearer <API_TOKEN>" https://api.zkcloud.io/proofs

Date Format

JSON does not have a built-in date type, dates are passed as strings encoded according to RFC 2822#page-14.

'Sun, 03 Oct 2021 14:02:46 GMT'

Status Codes

HTTP response status codes indicate whether a specific HTTP request has been successfully completed.

Error Response

Error Reponse format is following.

{
  "error": {
    "message":"invalid token",
    "type":"invalid_request_error"
   }
}

Error type means the type of errors in the server. Message means actual error message.

Last updated