Administer
Errors
Every error the API returns, by its code and status, with what it means and what to do about it.
Every error the API returns is an application/problem+json body, as RFC 9457 defines it. It carries:
code, one of the codes below, which never changes, so automation can act on it.type, a link to the code's section on this page.title, the error in plain words, anddetail, what happened this time, where there is more to say.status, the HTTP status, andinstance, the path requested.requestId, which identifies the request; quote it to support about a failure.issues, for a request that failed validation: each field, by its path, and what is wrong with it.
Validation failed
validation_failed, status 400. A field of the request is missing or invalid; issues names each one. A file that cannot be accepted answers with this code too: status 413 when it is too large, 415 when it is not a type CostReveal reads, and 422 when its contents cannot be read, with detail saying what to change. Correct the request and send it again.
Unauthenticated
unauthenticated, status 401. The request has no valid session, or its API key is not one, has been revoked or has expired. Sign in, or send a valid key as Authorization: Bearer.
Session expired
session_expired, status 401. The session can no longer be renewed. Sign in again.
Invalid credentials
invalid_credentials, status 401. The email address or the password is incorrect. The answer is the same whether or not an account has the address.
MFA invalid
mfa_invalid, status 401. The two step verification code or backup code is not valid. Enter the current code from your authenticator app, or an unused backup code.
Email not verified
email_not_verified, status 403. The address has not been confirmed. Open the confirmation email and choose Confirm and continue.
Forbidden
forbidden, status 403. The role, or the API key's scope, does not allow this, or the organization named is not one you belong to; detail says which where it can. A staff inspection is read only, so every change is refused this way too.
CSRF invalid
csrf_invalid, status 403. A change from the browser did not carry the session's CSRF token. Reload the page and try again. Requests with an API key do not use one.
Approval required
approval_required, status 403. The organization's trial is waiting for CostReveal to approve it. Its owner is emailed once it is approved, and the trial starts that day.
SSO required
sso_required, status 403. The organization requires sign in through its identity provider, and this session did not use it. Sign in with single sign on.
Two step required
two_step_required, status 403. The organization requires two step verification, and your account does not have it. Turn it on under Your account, Security.
Not found
not_found, status 404. What the request names does not exist, or is not one you can see.
Conflict
conflict, status 409. The change conflicts with existing data, such as a name already in use; detail says what.
Plan limit reached
plan_limit_reached, status 402. The plan's limit of projects, provider connections or seats is reached, or what was asked for, such as single sign on or provisioning, is not in the plan; detail names which. Compare plans in Settings, Plan and usage.
Scoped access
scoped_access, status 403. The person sees part of the project named, which only Home, Explore, budgets and unit costs show, and this request reads or changes the whole of it. See Part of a project; an owner or admin can grant the whole project.
Trial ended
trial_ended, status 402. The trial is over. Every figure stays readable, and connecting and syncing providers wait until a plan is chosen.
Subscription ended
subscription_ended, status 402. The plan's subscription has ended. Every figure stays readable, and connecting and syncing providers wait until a plan is chosen in Settings, Plan and usage.
Idempotency conflict
idempotency_conflict, status 422. The Idempotency-Key header was used before with a different request. Send each distinct request with a key of its own.
Connection failed
connection_failed, status 422. The provider refused the connection details; issues names the field to check, and detail what the provider said.
Rate limited
rate_limited, status 429. Too many requests were sent in a minute. The Retry-After header says how many seconds to wait before sending again.
Maintenance
maintenance, status 503. CostReveal is undergoing scheduled maintenance; detail carries the notice, where there is one. Try again once it ends.
Service unavailable
service_unavailable, status 503. A service CostReveal depends on is unavailable for the moment. Try again shortly.
Internal error
internal_error, status 500. Something failed on CostReveal's side. Try again, and if it persists, write to support quoting the requestId.