Jepto
Developer Docs
Developer docs

Errors and Limits

Error codes, common query errors, timeouts, limits, caching and retries for the Jepto API.

The REST and GraphQL APIs use the same error codes and limits.

Error format

REST404 Not Found
{
  "error": {
    "code": "CLIENT_NOT_FOUND",
    "message": "Client a1b2c3d4e5f6a7b9 not found. List clients with GET /clients."
  }
}
GraphQL200 OK
{
  "data": { "analyticsQuery": null },
  "errors": [
    {
      "errorType": "CLIENT_NOT_FOUND",
      "message": "Client a1b2c3d4e5f6a7b9 not found."
    }
  ]
}
Failed query (both)200 OK
{
  "queryId": "qry_a1b2c3d4e5f6a7b8",
  "status": "FAILED",
  "error": {
    "code": "SOURCE_ERROR",
    "message": "googleAds: the connection needs to be re-authorised in Jepto."
  }
}

Branch on code (REST) or errorType (GraphQL). Messages are for people and can change.

‍

Error codes

CodeHTTPMeaningRetry?
UNAUTHENTICATED401Token missing, malformed, expired, or not an access tokenAfter refreshing the token
FORBIDDEN403The user can’t read this dataNo
INVALID_REQUEST400Malformed or unknown body key, invalid JSON, or "all_clients" where only one client is allowedNo
INVALID_QUERY400The query breaks a rule in QueriesNo
CLIENT_NOT_FOUND404No active client with this ID in your accountNo
QUERY_NOT_FOUND404Unknown, expired (after one hour) or another user’s queryIdNo; run the query again
RATE_LIMITED429Too many requestsYes, after Retry-After
INTERNAL_ERROR500An error on Jepto’s sideYes, with backoff
QUERY_TIMEOUTin FAILEDThe query ran for 5 minutes without finishingNarrow it first
RESULT_TOO_LARGEin FAILEDThe result is over 5 MBLower limit or use a coarser granularity
SOURCE_ERRORin FAILEDA platform returned an error, for example because the connection needs re-authorisingYes, after fixing the connection

Common INVALID_QUERY messages

MessageFix
Unknown field <name>…Copy the field name from the schema, including case
Only one timeDimensions entry is supported per query.Send one time dimension
Date dimension '<name>' must not appear in dimensions; use timeDimensions…Move the date field to timeDimensions and add granularity
Invalid granularity '<x>'. Use one of: day, month, quarter, sunday_week, week, year.Use one of the listed values
Time granularity '<g>' is finer than dateGrain '<s>' for measure '<m>'.Use a coarser granularity for that metric
Unsupported filter operator '<op>' on '<member>'…Use an operator from the Filters table
Unsupported measure aggregation '<x>'; use one of: avg, count, count_distinct, max, min, sumUse one of the listed values
Invalid compareDateRange…Send [[start, end], [start, end]] with ISO dates
Custom field '<x>' cannot be used as a dimension…Put metric custom fields in measures
apiPeriod time series requires <n> bucket fetches (limit 36)…Use a shorter range or a coarser granularity for that metric (see Data Model → Period rollups)

‍

Timeouts

LimitValue
Wait before 202 / RUNNINGAbout 25 seconds
Maximum query run time5 minutes, then QUERY_TIMEOUT
Result kept after finishing1 hour, then QUERY_NOT_FOUND

Limits

LimitValue
Rows per request (limit)1 to 10,000. Default 10,000.
Rows per query across all pages10,000 (offset + limit)
Time dimensions per query1
Result size5 MB
Clients per query1. "all_clients" is only accepted when reading the schema.
Access token lifetime60 minutes
Refresh token lifetime30 days
Request rateLimited per account. 429 responses include Retry-After.

Caching

  • Results are cached for up to 12 hours and shared across your account and Jepto’s own reports.
  • renewQuery: true refetches from the platforms and replaces the cached result.
  • Empty results aren’t cached.
  • cacheStatus and lastRefreshTime in each response tell you whether the result came from the cache and when it was computed.

Retries

  • Retry RATE_LIMITED, INTERNAL_ERROR and SOURCE_ERROR with exponential backoff and jitter: about 1, 2, 4 and 8 seconds, then stop.
  • Don’t retry INVALID_REQUEST, INVALID_QUERY, FORBIDDEN or CLIENT_NOT_FOUND; the same request fails the same way.
  • On UNAUTHENTICATED, refresh the token once and retry. If it fails again, sign in again.
  • 202 and RUNNING aren’t errors. Poll the queryId; don’t start the query again.