Errors

Errors

Written by James Chan
Last update: %A,%b%d,%Y

REFERENCE

Authentication 

The API uses Bearer Token Authorization

  1. You can view your API key in your website > Website Settings > ApplicationsAPI Key.

  2. You can use your API key to access protected resources in your website only by passing the Authorization header:

    Authorization: Bearer <API KEY>

  3. All API requests must be made over HTTPS

Errors 

The API uses conventional HTTP response codes to indicate the success or failure of an API request.

In general: Codes in the 2xx range indicate success. Codes in the 4xx range indicate an error that failed given the information provided (e.g., a required parameter was omitted, a resource was missing, etc.). Codes in the 5xx range indicate a serer error or an unprocessable entry.

Every error include a human-readable message:

{
    success: false,
    message: "Error message..."
}

Website API

5 article in this category.
Written by James Chan.