Errors

The error format, status codes and error codes of the ScriptBunker API.

Every failure has the same shape:

{ "error": { "code": "insufficient_scope", "message": "This token does not have the \"keys:write\" scope." } }

code is stable and meant for programs; message is for people and may change.

StatuscodeWhen
400invalid_requestA parameter or body field is missing or invalid
401invalid_tokenThe token is missing, malformed, unknown, revoked or expired
403insufficient_scopeThe token lacks the required scope
403account_suspendedA write was attempted while the creator account is suspended
404not_foundThe resource does not exist, is not public, or is not yours
409keys_not_enabledThe project does not use ScriptBunker Keys
409limit_reachedA per-account limit was reached (webhooks, tokens)
409webhook_disabledA test was requested for a disabled webhook
429rate_limitedToo many requests — see Retry-After
500internal_errorSomething went wrong on our side; the message never contains internals

Release and key validation errors (400) put the first problem in message.

404 is deliberate

The API does not tell you whether a resource you cannot access exists. A draft or removed script on the public API, and another creator's project on the creator API, both answer 404 not_found, exactly like an id that never existed.