These docs are for v1.0. Click to read the latest docs for v2.0.

Errors

Miro API uses common HTTP codes to indicate the status of the request. In addition to the HTTP code, we complement each response with a corresponding JSON object.

In general, response codes are divided into four (4) categories:

2xxRequest received and successfully processed
3xxThe client must perform additional actions to complete the request
4xxAn error occurred in handling the request. The most common cause of this error is an invalid parameter.
5xxAn internal error occurred on the Miro servers when processing the request

Error Object

type
string
error
status
int
The HTTP status of the response
code
string
A short string describing the kind of error that occurred
context
object
Additional context information describing the error
messageA human-readable message describing the error

Error Codes

Common error codes that may be produced when using the API are listed in the following table. We recommend handling all errors.

This is not an exhaustive list and additional errors may occur. Usually, these errors are described for specific methods.

StatusCodeDescription
400invalidParametersInvalid parameters in request. For more information, see the Invalid Parameters Context section at the bottom of this page.
401tokenNotProvidedNo authorization data was found on the request
401tokenNotFoundThe API key does not exist
403insufficientPermissionsInsufficient permissions to do this action
404notFoundThe requested resource is not found
500internalError

Invalid Parameters Context

The context contains fields field with an array of JSON objects. They represent invalid parameters and describe what went wrong.

{  
   "status":400,
   "code":"invalidParameters",
   "message":"Method parameters are not valid",
   "context":{  
      "fields":[  
         {  
            "field":"team",
            "reason":"notFound",
            "message":"Team not found"
         },
         {  
            "field":"sharingPolicy.access",
            "reason":"invalidParameter",
            "message":"Invalid value: must be one of private, view or comment"
         }
      ]
   },
   "type":"error"
}

Currently, there are two possible values for the reason field: notFound and invalidParameter.

There is also a message field with a human-readable message describing the error.