Skip to content

Reference

Errors

When Slurry itself refuses a request, it answers with one envelope, everywhere. When the simulated API fails on purpose, it answers the way that API would.

The envelope

The management API and every simulation host use the same body when Slurry is the one speaking. type is always slurry_error, docs_url links to the row for that code on this page, and request_id identifies the request in our logs. On simulation hosts the x-slurry-error header carries the code as well.

403 Forbidden
{
  "error": {
    "type": "slurry_error",
    "code": "ip_not_allowed",
    "message": "Requests from 203.0.113.9 are not on this simulation's IP allow-list",
    "docs_url": "https://slurry.io/docs/errors#ip_not_allowed",
    "request_id": "req_01J8Z6Q4M2V7K3T9"
  }
}

Slurry error or simulated vendor error?

Errors produced by your rules, scenarios or Slurry-Force are part of the simulation (a committed_error fault answers with one after the write has landed): they use the error schema from the API's spec where it has one, never set type: slurry_error and never send x-slurry-error. Where the spec defines no error schema, the body is a neutral one like this:

simulated 503
{
  "error": {
    "status": 503,
    "message": "Simulated failure"
  }
}

So a client can branch on one check: if x-slurry-error is present, Slurry refused the request; otherwise the simulated API answered.

One exception: a simulation with Idempotency-Key handling on (see Idempotency-Key under Rules) answers a bad key with the vendor's error body and says why in x-slurry-error: idempotency_key_invalid and idempotency_key_reused (400), idempotency_in_progress and idempotency_reply_not_stored (409).

Management API codes

CodeStatusWhen
invalid_request400The body or query failed validation. The message names the field.
bad_request400The request made sense but cannot be done, for example an invalid CIDR range.
unsafe_url400A webhook URL points at a private or internal address.
unauthorised401Missing, invalid, revoked or expired account key.
insufficient_scope403The key lacks the scope this endpoint needs (simulations:read or simulations:write).
ip_not_allowed403The account key is restricted to IP ranges that do not include the caller.
account_suspended403The account is suspended pending review.
forbidden403Your role in the organisation does not allow this (for example a viewer trying to change a simulation). See Teams and roles.
member_access_revoked403The key belongs to someone who has left the organisation, or whose role is now below what the key needs. Create a new key.
suspended403The simulation or account is suspended, so this change is refused.
payment_required402No active subscription.
plan_limit402Creating this would exceed your plan (simulations or concurrent forks).
seat_limit402Members plus pending invitations already fill the seats on your plan.
storage_limit402Records across simulations, forks and snapshots would exceed your plan.
no_credit402Your monthly AI allowance and prepaid credit are used up and no model key is set.
model_rate_limited429Too many model calls in the last hour. Try later or use your own model key.
rate_limited429Too many management API requests. Honour Retry-After.
not_found404No such simulation, snapshot, rule or library entry in your account.
conflict409The name or subdomain is taken, or the simulation is in a state that does not allow this yet.
idempotency_in_progress409A request with the same Idempotency-Key is still running. Retry shortly.
idempotency_key_reused422The Idempotency-Key was already used with a different request: another body or path, another API key, or the same key after its role changed.
invalid_spec422The uploaded spec could not be parsed.
invalid_rule422A rule or behaviour step does not fit the data model.
content_blocked422Uploaded content was refused by review under the Acceptable Use Policy.
moderation_unavailable503Content review could not run. The content is held, not published; try again shortly.
capacity_unavailable503Hosted model generation is temporarily at capacity. Try later or use your own model key.
generation_unavailable503Hosted model generation is switched off for now. Use your own model key.
internal500Something failed on our side. Quote the request_id to support.

Simulation host codes

CodeStatusWhen
simulation_not_found404No simulation lives at this hostname or path.
invalid_api_key401Missing or wrong simulation key.
ip_not_allowed403The calling address is not on the allow-list. The message shows the address Slurry saw.
simulation_suspended403Stopped by abuse monitoring or an administrator.
fork_expired410The fork passed its expiry time.
subscription_inactive402The owning account has no active plan.
monthly_quota429The account used its monthly request allowance.
rate_limited429Over a per-minute limit, on a simulation or the management API. Honour Retry-After.
simulation_paused503Paused by its owner.
simulation_not_ready503Still being analysed or seeded.
simulation_pending_review503Waiting for content review before going live.
no_such_operation404The method and path are not in this API’s spec.
malformed_path400The path could not be decoded.
body_too_deep400The request body nests objects or arrays more than 64 levels deep. Nothing was stored. A simulation's MCP server refuses a whole request nested more than 80 levels deep the same way, before any tool runs; a tool call whose body alone passes 64 gets this error as a tool error. On the management API, a POST with an Idempotency-Key whose body nests more than 512 levels deep gets it too, and nothing is stored for the key; so does an action's params or target nested more than 64 levels. A rules explain body nested that deep is refused as invalid_request.
record_limit409A create would take the simulation over its plan’s records limit. Not retryable: delete records or upgrade.
engine_error500The engine failed while handling the request.

Playground codes

Returned by POST /v1/playground and by playground simulations, in the envelope above.

CodeStatusWhen
unknown_library404That API is not offered in the playground. GET /v1/playground/libraries lists the ones you can try.
ip_unknown400Slurry could not determine the calling IP address, so it cannot lock the playground to it.
playground_active429This IP address already has an active playground. Use it until it expires.
playground_daily_limit429This IP address has created its three playgrounds for the last 24 hours.
playground_full503The playground is at capacity. Honour Retry-After.
playground_restricted403The feature (for example webhooks) is not available on playground simulations.
playground_expired410The playground passed its two-hour expiry. Create another, or start a trial.

OAuth and device login codes

The /oauth endpoints follow the OAuth standards, so these come back as {"error": "...", "error_description": "..."}, not in the Slurry envelope. See Connecting.

CodeStatusWhen
invalid_request400A required parameter is missing or malformed.
invalid_client401Unknown client_id.
invalid_client_metadata400Dynamic client registration refused the metadata.
invalid_redirect_uri400A redirect URI is missing or not allowed (https, loopback or a known desktop app scheme).
unauthorized_client400The client may not use this grant type.
invalid_grant400The code, refresh token or PKCE verifier is wrong, used or expired. Start sign-in again.
unsupported_grant_type400The grant type is not supported.
invalid_scope400The scope is not one of simulations:read, simulations:write or account_key.
invalid_target400The resource indicator is not the Slurry MCP server or API.
authorization_pending400Device login: the user has not approved yet. Keep polling.
slow_down400Device login: polling too fast. Add 5 seconds to the interval.
access_denied400Device login: the user refused. Stop polling.
expired_token400Device login: the code expired. Start again.
server_error500Something failed on our side.