Dynamo Developer DocsDynamo Developer Docs
Getting Started

Errors & conventions

Content types, error envelopes, and the full status-code reference.

Conventions

  • Content type — send Content-Type: application/json on POST and PATCH.
  • Responses — JSON. A successful call returns the resource, or { "message": "..." }.

Error envelopes

There are two error shapes.

Shape validation (Joi) → 422

Request-shape errors return an error array. Each entry's path points at the exact offending field, so a caller (or agent) can correct itself.

{
  "error": [
    {
      "message": "\"values\" must contain at least 1 items",
      "path": ["channels", "FB_PAGE_123", "superpower", "conditionGroups", 0, "conditions", 0, "values"],
      "type": "array.min",
      "context": {}
    }
  ]
}

Business errors → 400 / 409 / 422

Model and business-rule errors return a message (plus optional details).

{ "message": "Hashtag already in use" }

Status codes

CodeWhen
200OK — reads, updates, lifecycle transitions, delete.
201Scheduled post created.
400Unknown/foreign channel id; model validation error (e.g. a past scheduledFor).
402Organization inactive.
403Auth failure — see Authentication.
404Resource not found.
409Superpower hashtag already in use, or duplicated within the request.
422Request shape invalid (Joi), or a superpower's per-template config is incomplete.

On this page