Save an account creation draft

Browser-session endpoint; API keys are rejected. Use revision 0 to create and the last returned revision to update. A stale revision returns 409 without overwriting. Configuration contains styleId (immutable style version UUID or null), prompt, aspectRatio, outputCount (1–10), creation settings (model peelaway-p1, quality max, visibility private or public), and optional submission checkpoint. Checkpointed images must belong to this account. Omit file to retain it, use null to clear it, or send base64 data and name for a JPG, PNG, or WebP up to 10MB. Saving never submits generation or spends credits.

put/api/drafts/{id}

Request

  • Base URL: https://api.peelaway.io
  • URL: https://api.peelaway.io/api/drafts/{id}
  • Auth: API key in cookie better-auth.session_token

Request body

revisioninteger required
configurationobject required

Response

id, userId, and the saved revision

Changes

No recorded changes to this operation across all 1 revision of this API.