Errors and limits

Error format, HTTP codes, error names, rate limits and RateLimit headers.

On this page

When a request fails, the API returns an HTTP code and an error in a fixed format. The error name in the name field is stable, so base your logic on it, not on the message text.

Error format

Error
{
  "success": false,
  "error": {
    "message": "A human-readable description",
    "name": "noPermissions",
    "extra": {},
    "requestId": "3f2c9a4e-8d1b-4c6f-9e2a-5b7d0c1e4f60"
  }
}
FieldMeaning
messageError description. It may change, so don't compare it in code
nameFixed error name
extraError-specific details, for example the missing permissions
requestIdRequest ID. The same one is in the X-Request-Id header of every response

When you write to us about an error, include the requestId. You can also send your own ID in the X-Request-Id header (8 to 64 characters: letters, digits and -), and Hypris will use it in the response and in the logs.

HTTP codes

CodeWhen
400Invalid request or field value
401Missing authentication, wrong key ID or secret, expired key or token
402The feature isn't available on the plan or the workspace is suspended
403Missing permissions for the resource or operation
404The resource doesn't exist or the ID is wrong
409The resource changed during the write, for example with a PATCH of dashboard widget options. Read it again and retry the request
429Rate limit exceeded
500An error on the Hypris side. Try again, and if it keeps happening, write to us
503Hypris can't handle the request right now, for example when a lot of widgets are being created in one dashboard at the same time. Retry the request after a moment

Most common errors

nameCodeWhat to do
INVALID_REQUEST400Fix the request according to extra.validationErrors
INVALID_FIELD_VALUE400Fix the shape of the field value, see Field values
invalid-credentials401Check the API key ID and secret, see Wrong key and invalid ID
noPermissions403Request the missing permissions from extra.missingPermissions
FORBIDDEN403This operation requires a different kind of access
not-found404Check the ID and access to the resource
conflict409Someone changed the resource at the same time. Read it again and retry the change, see Retrying requests
TOO_MANY_REQUESTS429Wait for the time in the Retry-After header
timeout503The server didn't manage to handle the request in time, for example to place a new widget on the dashboard. Retry it after a moment
plan-feature-not-entitled402The feature isn't available on the workspace's plan
workspace-suspended402Access to the workspace is suspended due to an unpaid subscription

Wrong key and invalid ID

When the API key doesn't match, you get 401 with the name invalid-credentials and the message Authorization failed. The same response comes for a wrong secret, an unknown key ID, a key ID in the wrong format and a disabled or expired key, so it doesn't reveal what exactly is wrong. Check both parts of the key in the Authorization header, as described in the Authorization guide.

A resource ID in the wrong format, for example abc instead of 24 hexadecimal characters, usually ends with a 404 error with the name not-found. When the value sent is a string or a number, the message includes it, shortened to 64 characters:

404 Not Found
{
  "success": false,
  "error": {
    "message": "Resource not found: \"abc\" is not a valid id",
    "name": "not-found",
    "requestId": "3f2c9a4e-8d1b-4c6f-9e2a-5b7d0c1e4f60"
  }
}

Any other value, for example an object or an array in place of an ID, is left out of the message, which says only Resource not found. A value in the wrong format in a field that isn't an ID ends with a 400 error with the name INVALID_REQUEST and the message Invalid request. The MCP server tools return the same message in these cases.

Some endpoints check the ID format already in their schema and then return 400 with the name INVALID_REQUEST, as in the Validation error section.

Validation error

When the body, parameters or address don't match the endpoint's schema, you get 400 with the name INVALID_REQUEST. The message lists the wrong places, and extra.validationErrors contains the full list of problems. This is the response to PUT /dashboard-item/:dashboardItemId/placement with the body {"placement": {"x": 0, "y": 0, "width": 13, "height": 4}}:

400 Bad Request
{
  "success": false,
  "error": {
    "message": "Invalid request: placement.width: width must be between 1 and 12: the dashboard grid has 12 columns",
    "name": "INVALID_REQUEST",
    "extra": {
      "validationErrors": [
        {
          "code": "too_big",
          "maximum": 12,
          "type": "number",
          "inclusive": true,
          "exact": false,
          "message": "width must be between 1 and 12: the dashboard grid has 12 columns",
          "path": ["placement", "width"]
        }
      ]
    },
    "requestId": "3f2c9a4e-8d1b-4c6f-9e2a-5b7d0c1e4f60"
  }
}
Problem fieldMeaning
pathWhere the error is, counting from the root of the request body. A number is an index in an array, so ["options", "rowPropertiesPayload", 0, "aggregationType"] is options.rowPropertiesPayload[0].aggregationType
codeThe kind of problem, for example invalid_type, invalid_enum_value, unrecognized_keys, too_small, too_big or custom
messageWhat's wrong and what's allowed
Other fieldsDetails that depend on code: options with the allowed values, received with the value sent, keys with the unknown keys, minimum or maximum

The message lists up to five problems and sums up the rest as and N more. The full list is always in validationErrors. An MCP tool result contains only the message, without this list, see Tool errors. Fix the paths it points to and send the request again. Retrying without changes returns the same error.

Warnings

Some endpoints, for example dashboards, return a warnings list alongside the result. A warning means the request succeeded, but the server skipped, corrected or filled in something with a default value:

200 OK, shortened
{
  "success": true,
  "data": {
    "dashboardItem": {},
    "warnings": [
      {
        "code": "default-applied",
        "path": "options.rowPropertiesPayload[0].selectedColor",
        "message": "…"
      }
    ]
  }
}
FieldMeaning
codeFixed warning code. Base your logic on it
pathThe place in the request body it refers to. It may be missing
messageWhat happened and what to send instead

An empty list means the server didn't skip or correct anything in your request.

Invalid field values

A value in the wrong shape, for example a date as a plain string or a status name instead of an ID, ends with an INVALID_FIELD_VALUE error. The message says which field and why. The surest way to avoid it is to build values from exampleCellValue, as described in the Field values guide.

Rate limits

ScopeLimit
All API and MCP requests600 per minute from one IP address
Dynamic OAuth client registration10 per hour from one IP address
Webhook listener120 per minute per listener by default

Every response covered by a limit has these headers:

HeaderMeaning
RateLimit-LimitThe limit in the current window
RateLimit-RemainingHow many requests are left
RateLimit-ResetHow many seconds until the window resets
Retry-AfterWith a 429 response: how many seconds to wait

Retrying requests

Retry a request unchanged only after a 429 or 5xx error. With 429, wait as long as Retry-After says. With 5xx, increase the delay exponentially:

JavaScript
async function fetchWithRetry(url, options, attempts = 5) {
  for (let attempt = 0; attempt < attempts; attempt++) {
    const response = await fetch(url, options)
    if (response.status !== 429 && response.status < 500) {
      return response
    }
    const retryAfter = Number(response.headers.get('Retry-After'))
    const delay = retryAfter > 0 ? retryAfter * 1000 : 2 ** attempt * 500
    await new Promise(resolve => setTimeout(resolve, delay))
  }
  throw new Error('Hypris API is not responding')
}

Retry a 409 with the name conflict only after reading the resource again. Someone changed it at the same time, so first check whether your change still makes sense. With a PATCH of widget options, the server itself retries the merge three times before it returns 409, as described in the Dashboards guide.

A 503 with the name timeout when creating or copying a widget means the widget wasn't created, because too many widgets were being created in the same dashboard at the same time. So retrying won't create a duplicate, as described in the Dashboards guide.

Don't retry a 429 whose name starts with chartTooMany. It's a chart size limit, not a rate limit, so the next attempt will end the same way. Narrow the widget's filter or date range, as described in the Dashboards guide.