{"openapi":"3.0.3","info":{"title":"Gather Creator API","version":"1.1.0","description":"Publish and manage Gather drops, card templates, hunts, awards and profile pins using HTTPS and a creator API key. This reference includes an upcoming revision; consult the live OpenAPI document for released operations. Start with GET /me for creator identity, granted scopes, capabilities and limits. Keep keys on trusted servers or agents, never in browser code. Responses can gain keys in later revisions: ignore response keys you do not recognize instead of rejecting the response. A path or method the API does not define answers 404 not_found whether or not a key is sent; branch on error.code, never on the message text."},"servers":[{"url":"https://843nov3j7f.execute-api.us-east-1.amazonaws.com/v1","description":"Gather Creator API"}],"security":[{"bearerAuth":[]}],"tags":[{"name":"identity"},{"name":"uploads"},{"name":"drops"},{"name":"card-templates"},{"name":"hunts"},{"name":"agents"}],"paths":{"/me":{"get":{"tags":["identity"],"summary":"Caller identity, tier limits, and live headroom","operationId":"getMe","responses":{"200":{"description":"Identity, the caps this creator must fit inside, and current rate/publish headroom.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Me"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"GET /me requires no role or scope; a 403 here means the backend did not confirm this key's creator identity.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-required-scopes-any-of":[]}},"/me/pinned-drop":{"get":{"tags":["drops"],"summary":"Read the drop pinned to my profile","description":"The RAW STORED POINTER, not a resolved drop. A drop that has since been deleted, paused or purged still appears here and renders as no pin on the public profile. Probe GET /drops/{dropId} to confirm it still resolves.\nnull means nothing is pinned.\n","operationId":"getPinnedDrop","responses":{"200":{"description":"The pinned dropId, or null.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PinnedDrop"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"The key is read-only. Only a key with the creator role may read or change the profile pin. A key whose scopes include none of this operation's x-required-scopes-any-of is also a 403 ('this API key does not grant the required scope').\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-required-scopes-any-of":["drops:read","profile:write"]},"put":{"tags":["drops"],"summary":"Pin a drop to my profile","description":"THE PIN IS A SINGLETON: there is one pin row per creator, so pinning drop B silently unpins drop A. This is not two independent creates.\nOnly a STARTED live drop or an ended drop can be pinned, which is what the Gather app offers. A scheduled (upcoming) drop is refused with 409 so it is never surfaced on the profile before it starts, and paused, processing and publish_failed drops are refused because the backend fails closed on anything not publicly visible.\nA null dropId is NOT accepted here. Unpin with DELETE /me/pinned-drop. One gesture, one method.\nConsumes NO daily publish slot.\n","operationId":"pinDrop","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["dropId"],"additionalProperties":false,"properties":{"dropId":{"type":"string","maxLength":128}}}}}},"responses":{"200":{"description":"The drop is now pinned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PinnedDrop"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"Either the key is read-only (only a key with the creator role may pin) or the drop belongs to another creator. Distinct from 404 (no such drop). A key whose scopes include none of this operation's x-required-scopes-any-of is also a 403 ('this API key does not grant the required scope').\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"$ref":"#/components/responses/NotFound"},"409":{"description":"The drop is not in a pinnable state. details carries lifecycle (the computed value the decision was made on), status (the stored status, REST-normalized) and startsAt.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-required-scopes-any-of":["profile:write"]},"delete":{"tags":["drops"],"summary":"Unpin whatever is pinned to my profile","description":"Clears the pin.\nFully idempotent: unpinning when nothing is pinned is a 200 with dropId null, exactly like the first call. Takes NO request body and consumes NO daily publish slot.\n","operationId":"unpinDrop","responses":{"200":{"description":"Nothing is pinned. Always dropId: null.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PinnedDrop"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"The key is read-only. Only a key with the creator role may read or change the profile pin. A key whose scopes include none of this operation's x-required-scopes-any-of is also a 403 ('this API key does not grant the required scope').\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-required-scopes-any-of":["profile:write"]}},"/uploads":{"get":{"tags":["uploads"],"summary":"Batch upload validation status","description":"Validation verdicts for many uploads in ONE request. Prefer this over polling GET /uploads/{uploadId} per file: the per-minute request limit (limits.requests.perMinute) counts HTTP REQUESTS, not uploadIds, so one call of 50 costs a single slot of it where 50 calls cost 50. A 50-card drop is 51+ uploads, enough to spend a third of that minute budget on one poll pass. Each id is still one backend read, so the call can also count up to one slot per id against the backend budget (limits.requests.backendPerMinute, shared by every key of this creator), as 50 single calls would; the call's own authorization costs none.\nSend ids comma-separated (?ids=a,b,c) or repeated (?ids=a&ids=b); duplicates collapse, and at most 50 DISTINCT ids per call. Responses carry one entry per distinct id IN REQUEST ORDER, and items[i].uploadId is always the id you asked for, so the array zips onto your request without a lookup.\nAn unknown id reads as pending here exactly as it does on the single route, never a 404. This is all-or-nothing: if any one verdict cannot be read the whole call fails rather than reporting that file as error, because error means re-upload and would otherwise make you replace good art. Retry the whole call; it costs one request slot.\n","operationId":"getUploadStatusBatch","parameters":[{"name":"ids","in":"query","required":true,"description":"Comma-separated uploadIds, at most 50 distinct per call. The repeated form ?ids=a&ids=b is accepted. Duplicates collapse.","schema":{"type":"string"}}],"responses":{"200":{"description":"Validation verdicts, one per distinct requested id, in request order.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadStatusBatch"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"The key lacks the required role or scope ('this API key is read-only; publishing and editing require a key with the creator role' or 'this API key does not grant the required scope'), or the backend refused the key itself. Another creator's resource is never a 403 on this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-required-scopes-any-of":["uploads:write"]},"post":{"tags":["uploads"],"summary":"Request N presigned upload URLs (batch, images and GIF only)","description":"Returns one presigned PUT URL per file (max 12 per call). PUT each file's bytes to its uploadUrl, replaying the returned headers verbatim, then poll GET /uploads/{uploadId} until valid before referencing it in a drop. Image and GIF formats only in v1. While Gather has API publishing switched off this answers 503 publishing_disabled. Every presigned file counts against the per-creator upload budget (limits.uploads.perFiveMinutes on GET /me, shared by every key of this creator); over that budget the call is a 429 rate_limited. Each file is presigned separately and the batch is all-or-nothing: if any file's presign fails the call fails, but presigns already issued for the other files in it still count.\n","operationId":"createUploads","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadRequest"}}}},"responses":{"200":{"description":"Presigned upload targets.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"The key lacks the required role or scope ('this API key is read-only; publishing and editing require a key with the creator role' or 'this API key does not grant the required scope'), or the backend refused the key itself. Another creator's resource is never a 403 on this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-required-scopes-any-of":["uploads:write"]}},"/uploads/{uploadId}":{"get":{"tags":["uploads"],"summary":"Upload validation status","description":"Facade-normalized (lowercase) validation verdict. Poll until terminal; validation typically completes within seconds. The marker this verdict is written to carries a 24 HOUR ttl, and that window is exactly how long the publicUrl stays publishable: past it POST /drops answers 400 with details.reason media_evidence_expired and the art must be uploaded again. An unknown uploadId is NOT a 404 on this route, it reads as pending, so bound the poll at about 60s and treat a timeout as a failed upload rather than waiting longer. The uploadId must be 1-80 chars of [A-Za-z0-9_-] (a 400 otherwise), and a backend read failure is a retryable 503, never a 200 pending.","operationId":"getUploadStatus","parameters":[{"name":"uploadId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Validation verdict.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadStatus"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"The key lacks the required role or scope ('this API key is read-only; publishing and editing require a key with the creator role' or 'this API key does not grant the required scope'), or the backend refused the key itself. Another creator's resource is never a 403 on this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-required-scopes-any-of":["uploads:write"]}},"/card-templates":{"get":{"tags":["card-templates"],"summary":"List your reusable card templates","description":"Your own reusable card library. ORDER IS ARBITRARY BUT STABLE: rows sort descending by template id, which is random, so page 1 is not the newest rows and reading one page for \"recent cards\" returns a random sample; walk the whole library and cache it. Archived and hidden templates are never returned, so every row here can be reused in POST /drops via cards[].cardTemplateID, at most ONCE per drop (a repeated id is a free 400 before the slot charge). PAGINATION: the underlying page limit is applied before the visibility filter, so a page can contain fewer than `limit` items, or zero items, and still carry a cursor. Stop paging only when nextCursor is null. Never stop on a short or empty page. Consumes no daily publish slot.\n","operationId":"listCardTemplates","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","required":false,"description":"Opaque. Echo back nextCursor from the previous page and do not construct or modify it.","schema":{"type":"string","minLength":1,"maxLength":4096,"pattern":"^[A-Za-z0-9+/=]+$"}}],"responses":{"200":{"description":"A page of reusable card templates.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CardTemplateList"}}}},"400":{"description":"Bad limit, bad cursor, or an unknown query parameter. includeArchived is an unknown parameter here on purpose: this route never returns an archived row.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"The key is read-only. Listing your library needs a key with the creator role. A key whose scopes include none of this operation's x-required-scopes-any-of is also a 403 ('this API key does not grant the required scope').","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-required-scopes-any-of":["templates:read","templates:write"]},"post":{"tags":["card-templates"],"summary":"Save a reusable card into your library","description":"Save a reusable card from a validated card upload. Requires templates:write. Uses the per-creator template budget (limits.templates.createsPerFiveMinutes on GET /me), shared by every key of this creator. An optional Idempotency-Key safely replays the original template after an uncertain response without charging the template budget again. Card images must be exactly 2:3 and at least 1080x1620. No daily publish slot is consumed.","operationId":"createCardTemplate","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCardTemplateRequest"}}}},"responses":{"201":{"description":"Created. The body is the stored template, in the same shape GET /card-templates returns.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CardTemplate"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"The key is read-only. Saving a card needs a key with the creator role. A key whose scopes include none of this operation's x-required-scopes-any-of is also a 403 ('this API key does not grant the required scope').","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Told apart by error.details.reason and the message. media_not_validated (Retry-After 3): the upload has not reached valid yet; poll GET /uploads/{uploadId} until status is valid, then retry (with the same Idempotency-Key, if you sent one). media_changed_since_validation: the object was overwritten after it passed; re-upload it. With no details.reason: the Idempotency-Key was already used with a different body (mint a new key), or Gather's media moderation refused the image (the message says so; review it before retrying).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional. Use a stable unique key for one logical create: the same key and body replay the original result, and a changed body is a 409 conflict. The key must match ^[A-Za-z0-9._:-]{1,128}$ and is matched exactly (case-sensitive). An empty or blank value, or one outside that pattern, is IGNORED rather than refused: the request then runs as an ordinary create with no idempotency protection, so an ambiguous retry may create a duplicate. Operation records do not expire. A replay returns the result as it was first created (it does not reflect a later archive, claim or revoke), carries no Idempotent-Replayed header, and uses the route's normal success status.","schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$"}}],"x-required-scopes-any-of":["templates:write"]}},"/drops":{"post":{"tags":["drops"],"summary":"Create + publish a drop","description":"Publish a DIRECT, one-standard-PACK or CHOICE drop, tiered or untiered. Validate media first, then send a stable Idempotency-Key (16–128 letters, digits, underscores or hyphens, resent byte for byte). If omitted, a content-derived key deduplicates identical bodies. A 202 means accepted; poll GET /drops/{dropId} until live or publish_failed. An accepted publish consumes one daily publish slot, and replays of it do not charge again.\nPreflight rejections are free. After dispatch, a transport error, timeout or server error may mean the backend committed: retain the SAME key and body. The frozen original attempt is reconciled without repeating mutable preflight. Unknown outcomes remain charged until strong reads prove a definite refund or committed result. The recovery worker also settles abandoned attempts; unresolved old attempts enter reconciliation_required (a 409 telling you not to republish under a new key) and retain evidence for support. Never change keys to work around an uncertain result. Refund eligibility is based on authoritative outcome, not HTTP status. Backend definitive cap/media failures, a platform request-filter refusal (400 invalid_request with details.reason REQUEST_FILTERED, raised before the backend ran) and failed publishes refund the slot; ownership, feature, template, backend invalid_request and bare write conflicts keep it, and a retry after such a charged refusal, even with the same key and body, runs as a new attempt and charges again. A request-filter refusal of your text needs a rephrased body, and a changed body needs a new Idempotency-Key. Idempotency guarantees are bounded by retention; keep your returned dropId.","operationId":"createDrop","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"RECOMMENDED, not required: 16-128 chars of [A-Za-z0-9_-]; any other non-empty value is a 400. The header NAME is case-insensitive, but the key VALUE is matched exactly: resend it byte for byte, because a key that differs only in letter case is a different key, publishes a second drop and consumes another daily slot. If omitted, the facade derives one from a content hash of the body (same char form), so two bodies with the same JSON content still collapse to one drop. Same key + same body after an ACCEPTED publish replays: HTTP 202 with the Idempotent-Replayed: true header, reflecting the drop's CURRENT status (no second drop, no daily slot consumed). Two exceptions: if that drop has since failed to publish the replay is a 503, and if it has since been deleted (or is otherwise no longer readable, for example removed by moderation) the replay is 404 not_found with details.dropId; neither creates a drop or consumes a slot, so publish again with a new key (or, without a key, a changed body). A different body under the same key is a 409 conflict. A retry after a definitive refusal that kept its slot is not a replay: it runs as a new attempt and charges again. Protection is per-creator and lasts 24h.\n","schema":{"type":"string","minLength":16,"maxLength":128,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"X-Dry-Run","in":"header","required":false,"description":"Set to 'true' to VALIDATE WITHOUT PUBLISHING: the entire pre-charge pipeline runs (body validation, template hydration, supply distribution, floors and ceilings against live caps, tier bounds, media validation state) and the response is HTTP 200 with the resolved drop instead of HTTP 202. Nothing is written: no daily slot is charged, no drop is created, and the Idempotency-Key is not consumed, so reuse the SAME key for the real publish and the gate's derived eventID will match the preview. Strict tri-state: omit the header to publish for real; any value other than 'true' (case-insensitive) is a 400, so a typo can never publish by accident. A dry-run 200 is necessary but not sufficient: the daily publish slot and the backend's authoritative re-validation are only settled by the real POST.","schema":{"type":"string","enum":["true"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDropRequest"}}}},"responses":{"200":{"description":"Dry-run preview, returned ONLY when the X-Dry-Run: true header is present: the resolved drop a real publish of this exact body would create. Nothing was written and no slot was charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DryRunResult"}}}},"202":{"description":"Accepted; the drop is processing. On a fresh accept the X-RateLimit-* headers are present; on an idempotent replay they are omitted and the Idempotent-Replayed header is set instead (a replay consumes no slot, so rate-limit state is unchanged from the original accept). If the replayed drop has since failed to publish, the facade returns 503 (resubmit with a new Idempotency-Key or a changed body), not a 202; if it has since been deleted or is otherwise no longer readable, it returns 404 not_found with details.dropId.\n","headers":{"X-Request-Id":{"schema":{"type":"string"},"description":"Correlation id, also on error responses (facade log correlation)."},"Location":{"schema":{"type":"string"},"description":"Relative path to poll the drop, e.g. /v1/drops/{dropId}. Set on both a fresh accept and a replay."},"Idempotent-Replayed":{"schema":{"type":"string","enum":["true"]},"description":"Present only on an idempotent replay of a prior accept."},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Remaining publishes in the current window. Fresh accept only (absent on a replay)."},"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"The publish limit for the current window. Fresh accept only."},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix seconds when the window resets. Fresh accept only."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DropAccepted"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"The key lacks the required role or scope ('this API key is read-only; publishing and editing require a key with the creator role' or 'this API key does not grant the required scope'), or the backend refused the key itself. Another creator's resource is never a 403 on this route. details.reason ACCOUNT_NOT_ACTIVE: this agent account is not active and cannot submit drops.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Idempotent replay of a key whose drop has since been deleted, or is otherwise no longer readable (for example removed by moderation). details.dropId names that drop. No drop is created and no daily slot is consumed: publish again with a new Idempotency-Key, or, if you send none, change the body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Several distinct causes that do NOT want the same response, so read error.details.reason and the message BEFORE you touch the Idempotency-Key. Retry with the SAME key: 'a request with this Idempotency-Key is already in progress; retry in a moment' with Retry-After 2 (another request holds a live 45-second lease, which is exactly what your own HTTP client timing out at 20s produces), and details.reason media_not_validated with Retry-After 3 (you published before the upload reached valid). Minting a new key for either one double-publishes and burns a second daily slot. Free refusals that record nothing: details.reason media_changed_since_validation (re-upload the art; the same key still works with the corrected body), and details.reason media_evidence_expired with details.field cardTemplateID and details.index, which means that card's reused template image is a GIF that fails the current decoder check, or its object is gone or no longer an image, so the template cannot be reused (re-upload the art, save a new card template and resubmit with a new key; a template GIF saved before decoder evidence existed is decoded once on its first reuse and reused normally afterwards, and if that check cannot finish in time the answer is a 503 to retry with the same key). The same Idempotency-Key reused with a DIFFERENT body (message 'Idempotency-Key reused with a different body'): mint a new key. 'the original publish outcome requires support reconciliation; do not submit this drop with a new key': an earlier attempt under this key could not be settled automatically; contact support with the key and do not republish under a new one. A media moderation refusal (the message says Gather has restricted this media, that the creator's moderation work is unfinished, that media authorization changed while saving, or that the content exceeds the media verification limit): no daily slot is kept; review the moderation notice before retrying. Two refusals KEEP the daily publish slot: a card template you reused stopped being reusable between validation and publish because you archived or hid it in that window (message 'One or more selected card templates are no longer available.'; re-list GET /card-templates, drop or replace the card, resubmit with a new key), and a bare backend write conflict with the generic conflict message and no details.reason. Neither is replayable: a retry, even with the same key and body, runs as a new attempt and charges another slot, so check GET /drops before retrying a bare conflict. details.reason REVIEW_QUEUE_FULL (agent accounts only), with details.limit: that many of your items already wait for an admin's review; wait for a decision, or withdraw one with DELETE, before submitting another.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"422":{"$ref":"#/components/responses/FeatureUnavailable"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-required-scopes-any-of":["drops:publish"]},"get":{"tags":["drops"],"summary":"List my drops (every state)","description":"Every drop this key's creator owns, newest first, in every state except deleted, purged and moderation-restricted (those also answer 404 on GET /drops/{dropId}). This is the same visibility Creator Studio has: processing, publish_failed and scheduled drops all appear here.\nFilter with ?status=live,processing.\nKeep paging until nextCursor is null. A SHORT PAGE IS NOT THE END: the backend removes deleted, purged and moderation-restricted rows AFTER applying the page limit, so a limit=20 request can return 3 drops and still have more. An agent that stops on a short page silently loses drops. partial: true, which is only reachable when ?status= was supplied, also means keep paging.\ncursor is opaque and creator-bound: echo nextCursor verbatim, never parse or construct one, and never reuse one across keys. Unknown query parameters are a 400 naming the allowed set (status, limit and cursor); a misspelled pager key must never silently restart pagination.","operationId":"listDrops","parameters":[{"name":"status","in":"query","schema":{"type":"string","description":"Comma-separated subset of processing, live, paused, publish_failed, in_review, case-insensitive. in_review lists an agent's drops still waiting for an admin's review. Omit for every state. unknown is a read-only normalization of legacy and drifted rows and is NOT filterable: asking for it is a 400. ended is likewise NOT filterable and is a 400: ending is not an event, so a finished drop keeps whatever status it was stored with (\"live\", or \"paused\" if it was paused during its run) and only READS as ended. To find finished drops, list with NO status filter, page until nextCursor is null, and keep the rows whose lifecycle is \"ended\"; listing status=live and filtering on endsAt misses every drop that lapsed while paused.","example":"live,processing"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"A page of the caller's drops, newest first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DropList"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"The key's scopes include none of this operation's x-required-scopes-any-of ('this API key does not grant the required scope'), or the backend refused the key itself. This route needs no role and lists only your own drops, so another creator's resource is never a 403 here.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-required-scopes-any-of":["drops:read"]}},"/drops/{dropId}":{"get":{"tags":["drops"],"summary":"Drop status + details (poll here)","description":"The status-polling path. An api_key caller is the owner of its own drop here, so it can see processing and publish_failed. Poll processing until live or publish_failed. While status is processing the response carries slotGeneration (owner-only): poll and read slotGeneration.percent for how far the inventory generation is; a large publish (tens of thousands of editions) takes about a minute to a minute and a half when no batch is retried, longer with retries and under concurrent publishes.\nA drop an admin rejected after review (agent accounts only) answers 200 to the agent's own key with status and lifecycle rejected and reviewOutcome (category, agentMessage, decidedAt); its name, description, cover, cards and packs are gone. Every other route answers it as a deleted drop: DELETE, PUT /me/pinned-drop, qr-token, renew and a PATCH of the schedule or caps answer 404 not_found; pause and unpause answer 400 validation_failed; a PATCH that names name, description or coverImageUrl answers 403 forbidden with details.reason AGENT_CONTENT_LOCKED; holdings, completions, awards and an award revoke answer 404 not_found; award-tokens answers 409 conflict with details.reason NOT_LIVE. Another creator's key gets 403 forbidden here, as for any drop it does not own.\n","operationId":"getDrop","parameters":[{"name":"dropId","in":"path","required":true,"description":"The drop id from POST /drops or GET /drops. It is checked percent-decoded, before any lookup, and is never trimmed. An id longer than 128 characters (UTF-16 code units, counted after decoding) is a 400 invalid_request ('dropId must be a non-empty string of at most 128 characters', details.field dropId). A segment that is not valid percent-encoded UTF-8 (\"dropId must be valid percent-encoded UTF-8\"), or one that decodes to a '/' or a control character, U+0000 to U+001F or U+007F to U+009F (\"dropId must not contain '/' or a control character\"), is also a 400 invalid_request with details.field dropId. Never send an empty id: /drops/ is the collection, so GET lists your drops and PATCH or DELETE answer 404 not_found 'no such route'.","schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"The drop.","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Present (5) only while status is processing: seconds to wait before the next poll."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Drop"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"The drop exists but belongs to another creator (a dropId lifted from a public share URL). Distinct from 404 (no such drop). A key whose scopes include none of this operation's x-required-scopes-any-of is also a 403 ('this API key does not grant the required scope').\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-required-scopes-any-of":["drops:read","drops:write","drops:publish","profile:write"]},"patch":{"tags":["drops"],"summary":"Edit a drop's name, description, cover, schedule or per-fan cap","description":"Edits a live or paused drop in place. Consumes NO daily publish slot.\nnull CLEARS a field and an omitted field is LEFT ALONE, so a partial body is safe.\nCOVER AND THUMBNAIL ARE COUPLED: sending coverImageUrl also replaces coverThumbnailUrl in the same write. A new cover gets the server-derived thumbnail of the new image (null only when none can be derived), so the response already carries the NEW thumbnail, never the old one; a null cover clears both. Most fan-facing surfaces prefer the thumbnail, which is why the two always move together.\nOnly live and paused drops are editable, and only while endsAt is still in the future; processing, publish_failed and ended drops answer 400. A drop Gather paused under a moderation hold answers 409 moderation_hold while the hold stands, and an edit Gather's media moderation refuses answers 409 conflict.\nRESCHEDULING has rules this facade does not duplicate, because they are decided against the stored drop: startsAt can only be moved while the drop has not begun, and endsAt must stay after the start. The 14-day unverified duration cap was LIFTED 2026-08-21: an unverified creator can now extend a drop and clear the end date like a verified one, and a duration rejection appears here only under an ops-set tier ceiling. Those arrive as a 400 from the backend, which costs nothing on this route.\nTHE PER-FAN CAP IS EDITABLE, up and down, and it is the only number on a published drop that is: type, supply and cards are fixed at publish. perFanLimit is decided against the stored drop too, so its rules land the same way: it is refused outright on a choice drop (whose stored value is a sentinel equal to total supply, because the cap that binds a choice fan is per CARD), and a RAISE is re-checked against the claimable pool (the printed run minus any award reserve) and against the tier maximum of the drop's owner. Lowering is never refused by those two. A fan who already claimed more than the new cap keeps every card they have and simply stops claiming: the refusal is MAX_CLAIMS_REACHED on a direct drop and MAX_PACKS_REACHED on a pack drop, the two types this field is editable on.\nAGENT ACCOUNTS cannot change a drop's name, description or cover (403 forbidden, details.reason AGENT_CONTENT_LOCKED), and that refusal comes first, even while the drop waits in_review. If the drop is still in_review, withdraw it with DELETE and submit it again; otherwise publish a new drop. The schedule and the per-fan caps stay editable on a live or paused drop; on an in_review drop any other PATCH answers 409 conflict with details.reason IN_REVIEW. Human accounts, including a human's key used by an agent on its behalf, are unaffected.\nThe response is the SAME canonical Drop that GET /drops/{dropId} returns, re-read after the edit commits rather than echoed from the write.\nONLY THE DROP'S CREATOR may call this (business rule 82): a collab partner's key, like any other key, answers 404 not_found. A drop Gather has restricted, or paused in an incident review, answers 409 moderation_hold.","operationId":"updateDrop","parameters":[{"name":"dropId","in":"path","required":true,"description":"The drop id from POST /drops or GET /drops. It is checked percent-decoded, before any lookup, and is never trimmed. An id longer than 128 characters (UTF-16 code units, counted after decoding) is a 400 invalid_request ('dropId must be a non-empty string of at most 128 characters', details.field dropId). A segment that is not valid percent-encoded UTF-8 (\"dropId must be valid percent-encoded UTF-8\"), or one that decodes to a '/' or a control character, U+0000 to U+001F or U+007F to U+009F (\"dropId must not contain '/' or a control character\"), is also a 400 invalid_request with details.field dropId. Never send an empty id: /drops/ is the collection, so GET lists your drops and PATCH or DELETE answer 404 not_found 'no such route'.","schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","minProperties":1,"additionalProperties":false,"description":"At least one key is required. An omitted key is LEFT ALONE; an explicit null CLEARS the field, where clearing is meaningful. Any other key is rejected rather than ignored.\n","properties":{"name":{"type":"string","minLength":1,"maxLength":24,"description":"The drop title fans see. Cannot be cleared: null and the empty string are both rejected, because a drop has to be called something. At most 24 characters, the same bound and charset POST /drops enforces (control, zero-width, direction-override and invisible filler characters are a 400).\n"},"description":{"type":"string","nullable":true,"maxLength":2000,"description":"null clears it, and so does the empty string: the resource collapses a stored empty string to null, so both write the same absent state.\n"},"coverImageUrl":{"type":"string","nullable":true,"description":"A publicUrl returned by POST /uploads. null removes the cover. coverThumbnailUrl follows it in the same write: a new cover sets it to the new image's server-derived thumbnail (null only when none can be derived), and null clears it, so the response never carries the old thumbnail. A NEW cover passes the same media checks POST /drops runs on its cover (an upload of purpose \"cover\" from POST /uploads, validated and unchanged; 400 or 409 with details.reason media_* otherwise). Sending back the cover the drop already has is not re-checked.\n"},"startsAt":{"type":"string","format":"date-time","description":"The new start, ISO-8601 with an explicit offset, exactly as on POST /drops. NOT clearable: null is rejected, because the backend skips a null startsAt and would answer 200 for an edit that changed nothing. Only a drop that has not started yet can be rescheduled.\n"},"endsAt":{"type":"string","format":"date-time","nullable":true,"description":"The new end, ISO-8601 with an explicit offset. null REMOVES the end date and makes the drop open-ended, on every tier: the 14-day unverified cap was lifted 2026-08-21.\n"},"perFanLimit":{"type":"integer","minimum":1,"maximum":1000000,"description":"The new per-fan claim cap, raised or lowered. NOT clearable: null is rejected, because the backend would turn it into an attribute REMOVE and every claim gate fails closed on a missing cap, which would stop the drop for every fan. A raise may not exceed the claimable supply (the printed run minus any award reserve) nor the tier maximum (limits.direct.perFanLimitMax / limits.pack.perFanLimitMax on GET /me); both are measured against the stored drop and arrive as a 400. FORBIDDEN on a choice drop, exactly as on POST /drops, because a choice drop is capped by perFanPerCardCap and perFanTotalCap instead; both are editable on this route and both are clearable with null. 1000000 is the field's type bound, never a value you can actually publish.\n"},"perFanPerCardCap":{"type":"integer","minimum":1,"maximum":100,"nullable":true,"description":"CHOICE drops only. Max copies of any ONE card a single fan may claim. Omit the key to leave the current cap unchanged; send null to clear it, after which the server default (limits.choice.perFanPerCardCapDefault on GET /me) applies. Independent of perFanTotalCap; when both are set, both bind. A cap larger than a card's supply is accepted and never binds. Rejected on any other drop type, and 0 is a 400 rather than a silent no-op. The maximum is 100, or the lower live maximum GET /me reports as limits.choice.perFanPerCardCapMax: a larger value is a 400 rather than a silently clamped one, because a read-back must never echo a cap that will not bind."},"perFanTotalCap":{"type":"integer","minimum":1,"maximum":50000,"nullable":true,"description":"CHOICE drops only. Max cards TOTAL a single fan may claim from this drop, across every card in it: 1 means pick any ONE card and that is your lot. Omit the key to leave the current cap unchanged; send null to clear it, which means no aggregate cap. Counts CLAIMS, not current holdings, so gifting a card away does not refund budget. A cap larger than the number of cards is accepted and never binds. Rejected on any other drop type, and 0 is a 400. The maximum is 50000, the most claimable copies a choice drop can hold; a larger value is a 400."}}}}}},"responses":{"200":{"description":"The drop after the edit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Drop"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"The key is read-only: only a key with the creator role may edit, pause or unpause. Another creator's drop never answers 403 for its ownership: PATCH answers 404 for one that is live or paused with its window still open, and 400 validation_failed for one that has ended or is still processing or publish_failed, because PATCH checks the drop's state before its owner. The one exception is the agent content lock below: an agent PATCH naming a locked field answers 403 before any lookup, whoever owns the drop. A key whose scopes include none of this operation's x-required-scopes-any-of is also a 403 ('this API key does not grant the required scope'). An agent account (GET /me account.kind agent) gets 403 forbidden with details.reason AGENT_CONTENT_LOCKED when the body includes name, description or coverImageUrl: an agent can't change what a drop shows. This refusal comes before any lookup or other check, so it also answers for a drop waiting in_review: if the drop is still in_review, withdraw it with DELETE and submit it again; otherwise publish a new drop. The schedule and the per-fan caps stay editable, and pause, unpause and renew are allowed, on a live or paused drop; on an in_review drop they answer 409 conflict with details.reason IN_REVIEW.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"$ref":"#/components/responses/NotFound"},"409":{"description":"Told apart by error.code. moderation_hold: Gather paused this drop under a moderation hold and it cannot be edited while the hold stands; reply to info@gather.fan by the date in the warning (retrying changes nothing). conflict: Gather's media moderation refused the edit (restricted media, unfinished creator moderation work, or media authorization changed while saving); review the moderation notice before retrying. conflict with details.reason IN_REVIEW: the drop is waiting for an admin's review and can't be changed; withdraw it with DELETE and submit it again. An agent PATCH naming name, description or coverImageUrl answers 403 AGENT_CONTENT_LOCKED instead, before this check.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"description":"Two outcomes, told apart by error.code. read_back_unavailable means the change DID apply and only the canonical re-read failed: details.mutationApplied is true and the committed result is available from GET /drops/{dropId}. temporarily_unavailable means the outcome is not confirmed: usually nothing was applied, but an upstream timeout can hide a committed change, so read GET /drops/{dropId} before retrying. Repeating the same PATCH, pause or unpause is safe; a renew that did commit answers a repeat with 409 drop_not_ended.\n","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds until you may retry."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes-any-of":["drops:write"]},"delete":{"tags":["drops"],"summary":"Delete a drop, or discard a failed publish","description":"Deletes a drop. This is also the DISCARD for a publish_failed row: once you leave the publish retry path it is the only self-serve cleanup there is, so an agent whose publish half-failed can clear its own wreckage. Takes NO request body and consumes NO daily publish slot.\nAllowed only on the lifecycles the Gather app itself offers delete on: live, upcoming, paused, publish_failed and draft, plus in_review, where DELETE withdraws an agent's drop that waits for review. Everything else is 409. ended and sold_out are excluded deliberately, because a finished drop stays stable for the collectors who already claimed from it.\nThe 409 details carry three keys in two vocabularies, on purpose. lifecycle is the COMPUTED value the decision was made on, and it is what deletableLifecycles lists. status is the STORED status, REST-normalized. They legitimately differ: a stored live drop whose endsAt has passed reports lifecycle ended and status live.\nNOT idempotent, by design: a second delete answers 404, so a 404 on re-delete means the first one worked. Afterwards the drop is absent from GET /drops in every filter combination; GET /drops/{dropId}, PATCH, POST renew, GET qr-token, GET holdings, GET completions, GET awards and DELETE awards/{jti} all answer 404 not_found (a completions poller that sees 404 should stop); POST pause and POST unpause answer 400 validation_failed; and POST award-tokens answers 409 NOT_LIVE. Pending awards are not revoked by the delete, and once the drop is deleted they can no longer be revoked through the API.\nThe profile pin is NOT cleared. GET /me/pinned-drop keeps returning the deleted dropId; the public profile already renders a dangling pin as no pin.\nONLY THE DROP'S CREATOR may delete it (business rule 82): a collab partner's key answers 404 not_found. A drop Gather has restricted answers 409 moderation_hold.","operationId":"deleteDrop","parameters":[{"name":"dropId","in":"path","required":true,"description":"The drop id from POST /drops or GET /drops. It is checked percent-decoded, before any lookup, and is never trimmed. An id longer than 128 characters (UTF-16 code units, counted after decoding) is a 400 invalid_request ('dropId must be a non-empty string of at most 128 characters', details.field dropId). A segment that is not valid percent-encoded UTF-8 (\"dropId must be valid percent-encoded UTF-8\"), or one that decodes to a '/' or a control character, U+0000 to U+001F or U+007F to U+009F (\"dropId must not contain '/' or a control character\"), is also a 400 invalid_request with details.field dropId. Never send an empty id: /drops/ is the collection, so GET lists your drops and PATCH or DELETE answer 404 not_found 'no such route'.","schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"The drop was deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DropDeleted"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"Either the key is read-only (only a key with the creator role may delete) or the drop belongs to another creator. Distinct from 404 (no such drop). A key whose scopes include none of this operation's x-required-scopes-any-of is also a 403 ('this API key does not grant the required scope').\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"$ref":"#/components/responses/NotFound"},"409":{"description":"Told apart by error.code. conflict: the drop is in a lifecycle delete is not offered on; details carries lifecycle, deletableLifecycles and status. moderation_hold: Gather paused this drop under a moderation hold and it cannot be deleted while the hold stands; reply to info@gather.fan by the date in the warning (retrying changes nothing).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-required-scopes-any-of":["drops:write"]}},"/drops/{dropId}/pause":{"post":{"tags":["drops"],"summary":"Pause a drop","description":"Stops the drop serving claims. Takes NO request body and consumes NO daily publish slot.\nIdempotent: pausing an already-paused drop is an explicit no-op and still answers 200 with the canonical Drop. Only live and paused drops can be paused; processing, publish_failed and ended answer 400.\nThe response is the SAME canonical Drop that GET /drops/{dropId} returns, re-read after the pause commits rather than echoed from the write. A drop whose endsAt has passed answers 400 whatever its STORED status says (the stored status keeps its last value forever; ending rewrites nothing). Fixed 2026-08-24: before that, this route on a lapsed stored-live drop answered 200, so treat any such historical 200 as a no-op, never as the closed run reopening.\nONLY THE DROP'S CREATOR may call this (business rule 82): a collab partner's key, like any other key, answers 404 not_found. A drop Gather has restricted, or paused in an incident review, answers 409 moderation_hold.","operationId":"pauseDrop","parameters":[{"name":"dropId","in":"path","required":true,"description":"The drop id from POST /drops or GET /drops. It is checked percent-decoded, before any lookup, and is never trimmed. An empty id, or one longer than 128 characters (UTF-16 code units, counted after decoding), is a 400 invalid_request ('dropId must be a non-empty string of at most 128 characters', details.field dropId). A segment that is not valid percent-encoded UTF-8 (\"dropId must be valid percent-encoded UTF-8\"), or one that decodes to a '/' or a control character, U+0000 to U+001F or U+007F to U+009F (\"dropId must not contain '/' or a control character\"), is also a 400 invalid_request with details.field dropId.","schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"The drop, now paused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Drop"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"The key is read-only: only a key with the creator role may edit, pause or unpause. A drop that belongs to ANOTHER creator answers 404, not 403, so a dropId lifted from a public share URL is indistinguishable from one that does not exist. A key whose scopes include none of this operation's x-required-scopes-any-of is also a 403 ('this API key does not grant the required scope').\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"$ref":"#/components/responses/NotFound"},"409":{"description":"conflict: the drop's state changed concurrently between the read and the write (for example a concurrent unpause or delete); read GET /drops/{dropId} and retry if still needed. conflict with details.reason IN_REVIEW: the drop is waiting for an admin's review and can't be changed; withdraw it with DELETE and submit it again.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"description":"Two outcomes, told apart by error.code. read_back_unavailable means the change DID apply and only the canonical re-read failed: details.mutationApplied is true and the committed result is available from GET /drops/{dropId}. temporarily_unavailable means the outcome is not confirmed: usually nothing was applied, but an upstream timeout can hide a committed change, so read GET /drops/{dropId} before retrying. Repeating the same PATCH, pause or unpause is safe; a renew that did commit answers a repeat with 409 drop_not_ended.\n","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds until you may retry."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes-any-of":["drops:write"]}},"/drops/{dropId}/unpause":{"post":{"tags":["drops"],"summary":"Unpause a drop","description":"Resumes a paused drop so it serves claims again. Takes NO request body and consumes NO daily publish slot.\nIdempotent: unpausing an already-live drop is an explicit no-op and still answers 200 with the canonical Drop. A drop whose endsAt has already passed cannot be resumed and answers 400, even though its stored status is still paused.\nThe response is the SAME canonical Drop that GET /drops/{dropId} returns, re-read after the unpause commits rather than echoed from the write. A drop whose endsAt has passed answers 400 whatever its STORED status says (the stored status keeps its last value forever; ending rewrites nothing). Fixed 2026-08-24: before that, this route on a lapsed stored-live drop answered 200, so treat any such historical 200 as a no-op, never as the closed run reopening.\nA drop that Gather paused with a warning (a moderation hold, Terms of Service section 7) answers 409 moderation_hold until Gather lifts the hold; the creator's remedy is the reply to info@gather.fan named in the warning, not a retry.\nONLY THE DROP'S CREATOR may call this (business rule 82): a collab partner's key, like any other key, answers 404 not_found. A drop Gather has restricted, or paused in an incident review, answers 409 moderation_hold.","operationId":"unpauseDrop","parameters":[{"name":"dropId","in":"path","required":true,"description":"The drop id from POST /drops or GET /drops. It is checked percent-decoded, before any lookup, and is never trimmed. An empty id, or one longer than 128 characters (UTF-16 code units, counted after decoding), is a 400 invalid_request ('dropId must be a non-empty string of at most 128 characters', details.field dropId). A segment that is not valid percent-encoded UTF-8 (\"dropId must be valid percent-encoded UTF-8\"), or one that decodes to a '/' or a control character, U+0000 to U+001F or U+007F to U+009F (\"dropId must not contain '/' or a control character\"), is also a 400 invalid_request with details.field dropId.","schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"The drop, now live again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Drop"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"The key is read-only: only a key with the creator role may edit, pause or unpause. A drop that belongs to ANOTHER creator answers 404, not 403, so a dropId lifted from a public share URL is indistinguishable from one that does not exist. A key whose scopes include none of this operation's x-required-scopes-any-of is also a 403 ('this API key does not grant the required scope').\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"$ref":"#/components/responses/NotFound"},"409":{"description":"Told apart by error.code. moderation_hold: Gather paused this drop with a warning and only Gather lifts the hold. Reply to info@gather.fan by the date in the warning; retrying changes nothing. conflict: the drop's state changed concurrently between the read and the write; read GET /drops/{dropId} and retry if still needed. conflict with details.reason IN_REVIEW: the drop is waiting for an admin's review and can't be changed; withdraw it with DELETE and submit it again.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"description":"Two outcomes, told apart by error.code. read_back_unavailable means the change DID apply and only the canonical re-read failed: details.mutationApplied is true and the committed result is available from GET /drops/{dropId}. temporarily_unavailable means the outcome is not confirmed: usually nothing was applied, but an upstream timeout can hide a committed change, so read GET /drops/{dropId} before retrying. Repeating the same PATCH, pause or unpause is safe; a renew that did commit answers a repeat with 409 drop_not_ended.\n","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds until you may retry."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes-any-of":["drops:write"]}},"/drops/{dropId}/renew":{"post":{"tags":["drops"],"summary":"Renew an ended drop","description":"Reopens a drop whose window has ENDED by moving endsAt forward, and changes nothing else. Its own verb, deliberately: PATCH, pause and unpause all keep refusing an ended drop, and renew relaxes none of them. Consumes NO daily publish slot.\nEligibility, decided by the backend against the stored row: the drop reads as ended (endsAt in the past; a live or upcoming drop answers 409 drop_not_ended, edit it with PATCH instead), its public pool is not sold out (409 drop_sold_out: a sold-out run is closed for good), and its stored status is live or paused (any other stored status answers 400 validation_failed). The new window is FRESH from the renew instant: endsAt must be at least one hour and at most 365 days ahead, and within the owner's tier cap when the tier carries one; otherwise 400 drop_window_invalid, whose message names the ceiling that bit.\nQUIET, BUT THE ROW BUMPS: no push is sent and no publish slot is spent, and the renewed drop moves to the TOP of every follower's Live Drops list, with its new endsAt and a fresh row lifetime (a row already purged 14 days after the old end is written again), so a late renew reappears to followers as well as in Discover, search and the following feed, which read endsAt at request time. Per-fan claim limits PERSIST (a fan who claimed the cap before the drop ended cannot claim again), the remaining supply carries over untouched, and the status is unchanged, so a paused drop renews into paused and is resumed with POST unpause.\nThe response is the SAME canonical Drop that GET /drops/{dropId} returns, re-read after the renew commits; its lifecycle is now live (or paused). A concurrent change to the drop between the read and the write answers 409 conflict: read the drop again and retry.\nONE RENEW PER DROP PER DAY: a drop renewed less than 24 hours ago answers 409 conflict, because every renew moves the drop to the top of every follower's Live Drops list.\nONLY THE DROP'S CREATOR may call this (business rule 82): a collab partner's key, like any other key, answers 404 not_found. A drop Gather has restricted, or paused in an incident review, answers 409 moderation_hold.","operationId":"renewDrop","parameters":[{"name":"dropId","in":"path","required":true,"description":"The drop id from POST /drops or GET /drops. It is checked percent-decoded, before any lookup, and is never trimmed. An empty id, or one longer than 128 characters (UTF-16 code units, counted after decoding), is a 400 invalid_request ('dropId must be a non-empty string of at most 128 characters', details.field dropId). A segment that is not valid percent-encoded UTF-8 (\"dropId must be valid percent-encoded UTF-8\"), or one that decodes to a '/' or a control character, U+0000 to U+001F or U+007F to U+009F (\"dropId must not contain '/' or a control character\"), is also a 400 invalid_request with details.field dropId.","schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["endsAt"],"description":"Exactly one key. endsAt is REQUIRED and never null: a renew IS a new end date, so there is no open-ended renew. Any other key is rejected rather than ignored.\n","properties":{"endsAt":{"type":"string","format":"date-time","description":"The new end, ISO-8601 with an explicit offset, in the future and at most 365 days from the moment of the request.\n"}}}}}},"responses":{"200":{"description":"The drop, renewed and serving claims again (or paused, if it was paused).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Drop"}}}},"400":{"description":"Told apart by error.code. invalid_request: the body is malformed (endsAt missing, null, not an ISO-8601 instant with an offset, or an unknown key), or the {dropId} path segment is refused (details.field dropId: empty, longer than 128 characters once percent-decoded, not valid percent-encoded UTF-8, or decoding to a '/' or a control character). drop_window_invalid: the instant is in the past or further ahead than a ceiling allows; the message names the ceiling. validation_failed: the stored status is neither live nor paused.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"The key is read-only: only a key with the creator role may renew. A drop that belongs to ANOTHER creator answers 404, not 403, as pause and unpause do (PATCH checks the drop's state before its owner; see its 403). A key whose scopes include none of this operation's x-required-scopes-any-of is also a 403 ('this API key does not grant the required scope').\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"$ref":"#/components/responses/NotFound"},"409":{"description":"Told apart by error.code. drop_not_ended: the drop has not ended (edit it with PATCH). drop_sold_out: its public pool is exhausted, and a sold-out run stays closed. moderation_hold: Gather paused this drop under a moderation hold and it cannot be renewed while the hold stands; reply to info@gather.fan by the date in the warning (retrying changes nothing). conflict: the drop changed between the read and the write; read it again and retry. conflict with details.reason IN_REVIEW: the drop is waiting for an admin's review and can't be changed; withdraw it with DELETE and submit it again.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"description":"Two outcomes, told apart by error.code. read_back_unavailable means the change DID apply and only the canonical re-read failed: details.mutationApplied is true and the committed result is available from GET /drops/{dropId}. temporarily_unavailable means the outcome is not confirmed: usually nothing was applied, but an upstream timeout can hide a committed change, so read GET /drops/{dropId} before retrying. Repeating the same PATCH, pause or unpause is safe; a renew that did commit answers a repeat with 409 drop_not_ended.\n","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds until you may retry."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes-any-of":["drops:write"]}},"/drops/{dropId}/qr-token":{"get":{"tags":["drops"],"summary":"Mint a QR token for an event-gated drop","description":"Issues the short-lived credential a fan scans to claim an event-gated drop. Encode the token verbatim into a QR code; the fan's app passes the scanned string straight through as its mint authorization.\nThe token lives about 12 seconds, so mint one per display refresh rather than caching it. Two calls in the same second return two DIFFERENT tokens and both are valid until they expire. ONE displayed token admits EVERY fan who scans it inside that window, by design: it is not consumed by the first claim, so a single screen serves a whole room. perFanLimit and supply are what bound the claiming, not the token. Responses are Cache-Control: no-store, and the token must never be logged or stored: it is a bearer claim credential for that drop.\nConsumes NO daily publish slot and needs no Idempotency-Key. It requires a key with the creator role, and the drop must be YOURS, event-gated, and CLAIMABLE RIGHT NOW, meaning live, started, not ended and not sold out. Sold out is judged on the PUBLIC pool, because a scan only ever claims a public copy (award recipients redeem with their own award token, never the event QR): on a drop with reservedSupply that is the printed run minus the reserve, so a drop reserved in full, or one whose public copies are all claimed while reserved copies remain, is SOLD_OUT here even though Drop.claimable on GET /drops/{dropId}, which counts the whole run, can still read true. Anything else is a 409 whose error.details.reason names which one.\n","operationId":"getDropQrToken","parameters":[{"name":"dropId","in":"path","required":true,"description":"The drop id from POST /drops or GET /drops. It is checked percent-decoded, before any lookup, and is never trimmed. An empty id, or one longer than 128 characters (UTF-16 code units, counted after decoding), is a 400 invalid_request ('dropId must be a non-empty string of at most 128 characters', details.field dropId). A segment that is not valid percent-encoded UTF-8 (\"dropId must be valid percent-encoded UTF-8\"), or one that decodes to a '/' or a control character, U+0000 to U+001F or U+007F to U+009F (\"dropId must not contain '/' or a control character\"), is also a 400 invalid_request with details.field dropId.","schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"A fresh token. Every key is always present.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QrToken"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"Either the key is read-only (only a key with the creator role may mint a token) or the drop belongs to another creator. A key whose scopes include none of this operation's x-required-scopes-any-of is also a 403 ('this API key does not grant the required scope').\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"$ref":"#/components/responses/NotFound"},"409":{"description":"The drop cannot serve a QR right now, and error.details.reason says why: NOT_LIVE (the stored status is not live, for example paused or processing; clears on its own or after POST unpause), NOT_STARTED (startsAt is still ahead; clears on its own), ENDED (endsAt has passed; only POST /drops/{dropId}/renew reopens it), SOLD_OUT (no copy is left in the PUBLIC pool: the whole run is claimed, or, on a drop with reservedSupply, the public part is used up or was reserved in full; supply is fixed at publish, so this does not clear), or NOT_GATED for a drop published with no event gate (permanent).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"description":"The token could not be minted; retry. The drop is unchanged, and no credential was issued.\n","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds until you may retry."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes-any-of":["drops:write"]}},"/drops/{dropId}/holdings":{"get":{"tags":["drops"],"summary":"Per-collector holdings for one of your drops","description":"Which of the drop's designs each collector currently holds, who has completed the set, and in what order. Sorted completers-first by completion order, then by cards owned descending. Holdings are CURRENT (a card gifted away leaves them) while completion order is HISTORICAL (a completer keeps their rank).\nIdentity is pseudonymous on this surface: API-key callers see a stable per-creator fanAlias in fanRef (fan_abc123defg4) and null display fields, and that alias is what POST /drops/{dropId}/award-tokens accepts as recipient.\nCreator-only: it requires a key with the creator role, and the drop must be YOURS (another creator's drop is a 403). Consumes no daily publish slot and needs no Idempotency-Key. Unknown query parameters are a 400 naming the allowed set (limit and nextToken); a misspelled pager key must never silently restart pagination. CHOICE drops never track completion (deliberate: the fan picks their cards, so a full set is a shopping list, not an achievement): completionOrder and completedAt stay null forever, completerCount stays 0, and the completions feed never emits an event; build completion campaigns on direct or pack drops.","operationId":"getDropHoldings","parameters":[{"name":"dropId","in":"path","required":true,"description":"The drop id from POST /drops or GET /drops. It is checked percent-decoded, before any lookup, and is never trimmed. An empty id, or one longer than 128 characters (UTF-16 code units, counted after decoding), is a 400 invalid_request ('dropId must be a non-empty string of at most 128 characters', details.field dropId). A segment that is not valid percent-encoded UTF-8 (\"dropId must be valid percent-encoded UTF-8\"), or one that decodes to a '/' or a control character, U+0000 to U+001F or U+007F to U+009F (\"dropId must not contain '/' or a control character\"), is also a 400 invalid_request with details.field dropId.","schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50},"description":"Rows per page. 101 is a 400, never a silent clamp."},{"name":"nextToken","in":"query","schema":{"type":"string"},"description":"Opaque page cursor from the previous response. Echo it back verbatim; never construct, decode or modify it."}],"responses":{"200":{"description":"One page of collectors, plus whole-drop totals. Every key is always present.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DropHoldings"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"Either the key is read-only (holdings are a creator-only surface) or the drop belongs to another creator. A key whose scopes include none of this operation's x-required-scopes-any-of is also a 403 ('this API key does not grant the required scope').\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such drop, or the drop was deleted or removed by moderation, for every key scope. A moderation-restricted drop, which GET /drops/{dropId} answers 404 for, and a drop under a moderation hold are both still served here (200).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-required-scopes-any-of":["audience:read"]}},"/drops/{dropId}/completions":{"get":{"tags":["drops"],"summary":"The drop's set-completion feed, in provable order","description":"Set-completion events for one of YOUR drops, in claim-time completion order, as a pollable stream.\nTHE CURSOR RULE, worth internalizing: nextToken is a RESUME CURSOR, not a has-more flag. A page that delivers a completion past the newest one delivered so far advances it, and any other page keeps its position; an EMPTY items page means you are caught up, so poll again later with the RETURNED cursor (it is re-minted on every response that resumed from a cursor, even an empty one, because it carries a freshness watermark and, while late completions are being replayed, how far that replay got; a first poll that finds nothing returns null, so poll again without one). The one exception is a drop with 25,000 or more completions inside fifteen minutes, where an empty page can also mean the poll used up its read budget partway through that replay; its cursor carries on from there, so polling again later is still right. A null cursor only ever means start from the beginning.\nDELIVERY IS AT-LEAST-ONCE: completions recorded late by the async worker are replayed inside a bounded lateness window, and a chain of polls that keeps resuming from each returned nextToken receives every completion recorded through normal automatic delivery at least once (unless it is revoked first). A completion you have already received can come back on a later page, more than once and however much later you resume (an hour or a day later included); usually it is one recorded within about a minute before the poll that delivered it. De-duplicate on fanRef + completedAt for the life of your integration, never within a time window. The newest completion delivered so far (the one the returned nextToken resumes after) never comes back from that nextToken; an older one can, even on a page that carries nothing else (such a page keeps the previous resume position). A page that brings only completions you have already seen means nothing new on this pass, not caught up: stop and poll again later with its nextToken, because in a burst re-deliveries can fill a page while newer completions are still pending (the polls that follow from that nextToken deliver them). On a resume, a completion that sorts after the newest one delivered so far continues the numbering; one that sorts before it (a re-delivery or a late arrival) never advances it. Ranks on a resumed chain can still shift, for example after a late arrival or a revocation: a late arrival, and the completions the chain delivers after it, can sit below their true rank; once a completion the chain already delivered is revoked, the ones it delivers next can sit above theirs; and a re-delivery can come back with a different completionOrder than it was first delivered with. Rank comes from GET /drops/{dropId}/holdings or a fresh listing without a cursor, never from a resumed page's completionOrder. The cursor never carries a raw uid.\nIdentity is pseudonymous exactly as on the holdings route. Creator-only, no daily publish slot, no Idempotency-Key. Unknown query parameters are a 400 naming the allowed set (limit and nextToken); a misspelled pager key must never silently restart pagination. CHOICE drops never track completion (deliberate: the fan picks their cards, so a full set is a shopping list, not an achievement): completionOrder and completedAt stay null forever, completerCount stays 0, and the completions feed never emits an event; build completion campaigns on direct or pack drops.","operationId":"getDropCompletions","parameters":[{"name":"dropId","in":"path","required":true,"description":"The drop id from POST /drops or GET /drops. It is checked percent-decoded, before any lookup, and is never trimmed. An empty id, or one longer than 128 characters (UTF-16 code units, counted after decoding), is a 400 invalid_request ('dropId must be a non-empty string of at most 128 characters', details.field dropId). A segment that is not valid percent-encoded UTF-8 (\"dropId must be valid percent-encoded UTF-8\"), or one that decodes to a '/' or a control character, U+0000 to U+001F or U+007F to U+009F (\"dropId must not contain '/' or a control character\"), is also a 400 invalid_request with details.field dropId.","schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":500,"default":100},"description":"Rows per page. 501 is a 400, never a silent clamp."},{"name":"nextToken","in":"query","schema":{"type":"string"},"description":"Opaque page cursor from the previous response. Echo it back verbatim; never construct, decode or modify it."}],"responses":{"200":{"description":"One page of completion events, oldest first. Every key is always present.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DropCompletions"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"Either the key is read-only (the completions feed is a creator-only surface) or the drop belongs to another creator. A key whose scopes include none of this operation's x-required-scopes-any-of is also a 403 ('this API key does not grant the required scope').\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such drop, or the drop was deleted or removed by moderation, for every key scope. A moderation-restricted drop, which GET /drops/{dropId} answers 404 for, and a drop under a moderation hold are both still served here (200). A poller that sees 404 should stop polling.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-required-scopes-any-of":["audience:read"]}},"/drops/{dropId}/award-tokens":{"post":{"tags":["drops"],"summary":"Issue a durable award to one fan","description":"Issues a durable award to ONE named fan on one of your reserve-carrying drops, and returns a single-use claim token for it. Issuance HARD-RESERVES a copy transactionally (pending + claimed <= reservedSupply), so the win can never fail at claim time: the fan gets an in-app notification plus a durable award-inbox entry and claims with ONE TAP, no QR and no second device. THE AWARD NEVER EXPIRES: it ends only when the fan claims it or you revoke it, and it holds its reserved copy until then, which is the point - a promise keeps the card. Redemption draws from the drop's reserved copies, and an award still redeems after endsAt, from the reserve only.\nIt requires the drop to be YOURS, LIVE, and published with reservedSupply. A full reserve refuses the next issuance with 409 RESERVE_EXHAUSTED (the 11th award against a reserve of 10 is refused at ISSUANCE, never at claim), and one fan can hold at most ONE pending award per drop (409 AWARD_ALREADY_PENDING). No event gate is required.\nrecipient is the fanAlias the holdings and completions routes report. expiresInHours bounds ONLY the returned token's validity window, never the award: the token renders as a QR for a live ceremony on an EVENT-GATED drop (same scan channel as GET /drops/{dropId}/qr-token), and that scan is the only way to redeem on an older Gather app version that has no award inbox; the in-app inbox re-signs a fresh carrier on every read, so in-app claiming works forever. Without an Idempotency-Key a retry is not a replay: if the first call committed, a retry for the same fan answers 409 AWARD_ALREADY_PENDING (check GET /drops/{dropId}/awards), and a call for another fan issues a new independent award. Send a key to make a retry safe: the same key and body replay the original award exactly (the identical token string and jti, and the reserveRemaining the original answer carried, or null when that count was not recorded), even if the drop has since been paused or the award claimed or revoked; a changed body is a 409. No daily publish slot is consumed. Never log or store the token; the jti is the loggable correlation id.\n","operationId":"createDropAwardToken","parameters":[{"name":"dropId","in":"path","required":true,"description":"The drop id from POST /drops or GET /drops. It is checked percent-decoded, before any lookup, and is never trimmed. An empty id, or one longer than 128 characters (UTF-16 code units, counted after decoding), is a 400 invalid_request ('dropId must be a non-empty string of at most 128 characters', details.field dropId). A segment that is not valid percent-encoded UTF-8 (\"dropId must be valid percent-encoded UTF-8\"), or one that decodes to a '/' or a control character, U+0000 to U+001F or U+007F to U+009F (\"dropId must not contain '/' or a control character\"), is also a 400 invalid_request with details.field dropId.","schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional. Use a stable unique key for one logical create: the same key and body replay the original result, and a changed body is a 409 conflict. The key must match ^[A-Za-z0-9._:-]{1,128}$ and is matched exactly (case-sensitive). An empty or blank value, or one outside that pattern, is IGNORED rather than refused: the request then runs as an ordinary create with no idempotency protection, so an ambiguous retry may create a duplicate. Operation records do not expire. A replay returns the result as it was first created (it does not reflect a later archive, claim or revoke), carries no Idempotent-Replayed header, and uses the route's normal success status.","schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["recipient"],"properties":{"recipient":{"type":"string","maxLength":128,"description":"Who may redeem the token: a fanAlias from GET /drops/{dropId}/holdings or /completions (fan_...). API-key callers MUST pass an alias (a non-alias recipient is a 400: a key holder never legitimately holds a raw uid, and a token bound to a typo would be a 200 no fan can redeem). An alias minted for another creator is unknown here and answers 404. Privacy guarantee: an alias-issued token's decodable payload carries the ALIAS, never the fan's uid; the mint path resolves it server-side at redemption."},"expiresInHours":{"type":"integer","minimum":1,"maximum":720,"default":168,"description":"How long the RETURNED TOKEN stays scannable, never how long the award lasts: the award entitlement itself does not expire, and the fan's in-app inbox claim works forever. Omit it for the 7-day (168h) default; 720 (30 days) is the ceiling. An explicit null is a 400: absence already has a spelling. If a pre-39 fan's QR token lapses unscanned, revoke the award and re-issue it, or have the fan update the app."},"memo":{"type":"string","maxLength":500,"description":"The issuer's own justification snapshot (why this fan won), stored verbatim on the award ledger and echoed by GET /drops/{dropId}/awards. Never shown to fans. Non-empty after trimming, at most 500 characters; an explicit null is a 400."}}}}}},"responses":{"200":{"description":"A fresh single-use token. Every key is always present.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwardToken"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"Either the key is read-only (only a key with the creator role may mint an award) or the drop belongs to another creator. A key whose scopes include none of this operation's x-required-scopes-any-of is also a 403 ('this API key does not grant the required scope').\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such drop, or the recipient is not a fan alias this creator knows.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Told apart by error.details.reason. With NO details.reason (message 'Idempotency-Key conflict'): this Idempotency-Key was already used with a different body; mint a new key. Otherwise the drop cannot award right now: NOT_LIVE for a drop whose stored status is not live (paused, processing, failed or deleted); it can clear on its own or after an unpause. NO_RESERVE for a drop published without reservedSupply, or whose reserve is still being generated (retry once the drop finishes publishing); a reserve can never be ADDED after publish. RESERVE_EXHAUSTED when every reserved copy is held by a pending or claimed award; awards never expire, so revoking a pending award (DELETE /drops/{dropId}/awards/{jti}) is what frees a slot. AWARD_ALREADY_PENDING when this fan already has a pending award for this drop; revoke it first. RESERVE_UNVERIFIABLE when the drop's reserve accounting cannot be verified; permanent, so never retry the refused call unchanged.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-required-scopes-any-of":["awards:write"]}},"/drops/{dropId}/awards":{"get":{"tags":["drops"],"summary":"The drop's award ledger","description":"Read the owner award ledger, newest first. TWO FORMS. A bare call (neither limit nor nextToken) is the single-page form: the newest 500 rows and exactly five keys (items, pendingCount, claimedCount, revokedCount, partial), with partial: true when older rows exist and no cursor, so it cannot page. To page, send limit (1-500) or nextToken: the body then also carries nextToken (null on the last page) and countsScope: page; follow nextToken until it is null, including across empty pages. In both forms pendingCount, claimedCount and revokedCount count the returned page only. Awards never expire (an issued token's expiresAt bounds only its scan window); claimed status wins over a racing revoke. API keys receive creator-scoped fan aliases, never raw recipient IDs. Unknown query parameters are a 400.","operationId":"getDropAwards","parameters":[{"name":"dropId","in":"path","required":true,"description":"The drop id from POST /drops or GET /drops. It is checked percent-decoded, before any lookup, and is never trimmed. An empty id, or one longer than 128 characters (UTF-16 code units, counted after decoding), is a 400 invalid_request ('dropId must be a non-empty string of at most 128 characters', details.field dropId). A segment that is not valid percent-encoded UTF-8 (\"dropId must be valid percent-encoded UTF-8\"), or one that decodes to a '/' or a control character, U+0000 to U+001F or U+007F to U+009F (\"dropId must not contain '/' or a control character\"), is also a 400 invalid_request with details.field dropId.","schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":500,"default":500},"description":"Rows per page, at most 500. Sending limit selects the paged form."},{"name":"nextToken","in":"query","schema":{"type":"string"},"description":"Opaque continuation from the previous page's nextToken. Sending it, even empty, selects the paged form."}],"responses":{"200":{"description":"One ledger page and its page-scoped counts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DropAwards"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"Either the key is read-only (the award ledger is a creator-only surface) or the drop belongs to another creator. A key whose scopes include none of this operation's x-required-scopes-any-of is also a 403 ('this API key does not grant the required scope').\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such drop, or the drop was deleted or removed by moderation, for every key scope. A moderation-restricted drop, which GET /drops/{dropId} answers 404 for, and a drop under a moderation hold are both still served here (200).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-required-scopes-any-of":["audience:read"]}},"/drops/{dropId}/awards/{jti}":{"delete":{"tags":["drops"],"summary":"Revoke a pending award","description":"Revokes ONE pending award, freeing its hard-held reserve slot: the fan's inbox entry is removed, the ledger row is stamped revokedAt, and the slot returns to the reserve. Awards never expire, so this is the ONLY way a held slot ever comes back, and the deliberate undo for a mis-issued award.\nIt refuses once the award is claimed (409 ALREADY_CLAIMED): a minted card is a fact, and not-claimed is re-proven inside the commit, so a claim racing this revoke wins cleanly on one side only. A second revoke of the same jti is 409 ALREADY_REVOKED, which is how you know the first one landed.\nTakes no request body (any key is a 400). Creator-only, no daily publish slot, no Idempotency-Key.","operationId":"revokeDropAward","parameters":[{"name":"dropId","in":"path","required":true,"description":"The drop id from POST /drops or GET /drops. It is checked percent-decoded, before any lookup, and is never trimmed. An empty id, or one longer than 128 characters (UTF-16 code units, counted after decoding), is a 400 invalid_request ('dropId must be a non-empty string of at most 128 characters', details.field dropId). A segment that is not valid percent-encoded UTF-8 (\"dropId must be valid percent-encoded UTF-8\"), or one that decodes to a '/' or a control character, U+0000 to U+001F or U+007F to U+009F (\"dropId must not contain '/' or a control character\"), is also a 400 invalid_request with details.field dropId.","schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"jti","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128},"description":"The award's unique id, from the POST /drops/{dropId}/award-tokens response or the awards ledger. It is checked before any lookup: percent-decoded first, then trimmed of surrounding whitespace (encoded padding such as %20 or %0A included), and the trimmed value is the jti revoked. An empty one, or one longer than 128 characters (UTF-16 code units) after trimming, is a 400 invalid_request ('jti must be a non-empty string of at most 128 characters', details.field jti). A segment that is not valid percent-encoded UTF-8 (\"jti must be valid percent-encoded UTF-8\"), or a trimmed value that contains a '/' or a control character, U+0000 to U+001F or U+007F to U+009F (\"jti must not contain '/' or a control character\"), is also a 400 invalid_request with details.field jti."}],"responses":{"200":{"description":"The award is revoked and its reserve slot is free. Both keys are always present.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwardRevoked"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"Either the key is read-only (only a key with the creator role may revoke an award) or the drop belongs to another creator. A key whose scopes include none of this operation's x-required-scopes-any-of is also a 403 ('this API key does not grant the required scope').\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such drop, the drop was deleted or removed by moderation, or no award with this jti on it. A pending award on a drop under a moderation hold or restriction still revokes normally.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The award cannot be revoked, and error.details.reason says why: ALREADY_CLAIMED for an award whose token was already redeemed (a minted card cannot be revoked here; take-backs go through moderation), ALREADY_REVOKED for one already revoked, RESERVE_UNVERIFIABLE when an older award (issued before per-award lookup existed) cannot be located because the drop's award ledger is longer than 10,000 rows (this revoke cannot complete; retrying does not help). All are terminal for this jti.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"description":"The award could not be revoked; retry. Nothing changed.\n","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds until you may retry."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes-any-of":["awards:write"]}},"/hunts":{"get":{"tags":["hunts"],"summary":"Your hunts, every state included","description":"A hunt is a set of YOUR cards that fans complete by collecting all of them. This is the owner list, so archived hunts are included by default; pass includeArchived=false to list only active and paused hunts.","security":[{"bearerAuth":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":50},"description":"Rows per page. 101 is a 400, never a silent clamp."},{"name":"nextToken","in":"query","required":false,"schema":{"type":"string"}},{"name":"includeArchived","in":"query","required":false,"description":"\"true\" or \"false\" exactly. Defaults to true. Any other value is a 400.","schema":{"type":"string","enum":["true","false"]}}],"responses":{"200":{"description":"A page.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"huntId":{"type":"string"},"title":{"type":"string"},"description":{"type":"string","nullable":true},"coverTemplateId":{"type":"string","nullable":true,"description":"The required card template this hunt uses as its cover, or null. SENT as coverTemplateID and read back as coverTemplateId: the request keys here use ID and the resource uses Id on every id it emits. It must be one of this hunt's own cardTemplateIDs; anything else is a 400."},"coverImageUrl":{"type":"string","nullable":true,"description":"The cover art, snapshotted from the cover template so archiving that template later cannot blank a live hunt. Derived from coverTemplateID, never settable directly."},"status":{"type":"string","enum":["active","paused","archived","in_review"],"description":"active hunts are visible to fans; paused ones stop finishing; archived ones are retired but keep the badges fans already earned. in_review (agent accounts only) is a hunt waiting for an admin's review: fans cannot see it, and DELETE withdraws it. A PATCH naming title or description answers 403 forbidden with details.reason AGENT_CONTENT_LOCKED (that check comes first); a cover-only PATCH, pause and resume answer 409 conflict with details.reason IN_REVIEW. To change it, withdraw it with DELETE and submit it again."},"requirements":{"type":"array","description":"The cards a fan must collect, snapshotted at creation so renaming a template later cannot move the finish line.","items":{"type":"object","properties":{"cardTemplateId":{"type":"string"},"name":{"type":"string","nullable":true},"thumbnailUrl":{"type":"string","nullable":true},"rarity":{"type":"string","nullable":true},"position":{"type":"integer"}}}},"badgeName":{"type":"string","nullable":true},"badgeIcon":{"type":"string","nullable":true},"completionXp":{"type":"integer","description":"40 per required card, earned by each fan who completes the hunt. The hunt's creator cannot complete their own hunt."},"completedCount":{"type":"integer","description":"Fans who have finished it. Creator self-completions are excluded."},"createdAt":{"type":"integer"},"updatedAt":{"type":"integer"}}}},"nextToken":{"type":"string","nullable":true,"description":"Resume cursor; null on the last page (the key is always present)."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"Either the key is read-only (hunts are creator-owned, so only a key with the creator role may use these routes) or its scopes include none of this operation's x-required-scopes-any-of. Another creator's hunt is never a 403: hunts are looked up in your own library, so a foreign huntId answers 404.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"operationId":"listHunts","x-required-scopes-any-of":["hunts:read","hunts:write"]},"post":{"tags":["hunts"],"summary":"Build a hunt from your card library","description":"Create a hunt from 2–25 reusable card templates owned by this creator. Fans complete it by holding any copy of each required template. Completion XP is 40 per required card. At most 300 active plus paused hunts can exist per creator; archive a hunt to free capacity. An optional, well-formed Idempotency-Key prevents duplicate creation (see the header's rules). Unknown body keys are a 400 naming the key in error.details.field, and every other field check this route runs (a wrong-typed, blank or too-long field, a cardTemplateIDs count outside 2 to 25 or a repeat, a cover that is not one of the cards) is a 400 naming the field in details.field; a bad cardTemplateIDs element also carries details.index. Malformed JSON, a card id that is not one of your own active card templates, and the active-hunt cap are 400s without details.field.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["title","cardTemplateIDs"],"properties":{"title":{"type":"string","minLength":1,"maxLength":120,"description":"Trimmed. A non-string is a 400 ('title must be a string'); blank is a 400."},"description":{"type":"string","maxLength":500,"nullable":true,"description":"A string or null; empty or whitespace means no description. Any other type is a 400."},"cardTemplateIDs":{"type":"array","minItems":2,"maxItems":25,"items":{"type":"string","minLength":1},"description":"Between 2 and 25 of your own visible card templates. A count outside that range is a 400 rather than a downstream failure. No repeats. The MAXIMUM rose from 12 to 25 on 2026-08-31; the minimum did not move, because a one-card hunt is a card and not a hunt. Completion XP is 40 per card, so a 25-card hunt is worth 1000. Each element must be a non-blank string; anything else is a 400 'cardTemplateIDs[i] must be a card-template id string' with details {field: 'cardTemplateIDs', index: i}."},"coverTemplateID":{"type":"string","nullable":true,"description":"Must be one of this hunt's cardTemplateIDs. Omit it or send null for no cover; an empty or blank string, a non-member id or a non-string is a 400 ('coverTemplateID must be one of the required templates' for a string)."}}}}}},"responses":{"201":{"description":"Created hunt, or the same hunt replayed for this idempotency key.","content":{"application/json":{"schema":{"type":"object","properties":{"huntId":{"type":"string"},"title":{"type":"string"},"description":{"type":"string","nullable":true},"coverTemplateId":{"type":"string","nullable":true,"description":"The required card template this hunt uses as its cover, or null. SENT as coverTemplateID and read back as coverTemplateId: the request keys here use ID and the resource uses Id on every id it emits. It must be one of this hunt's own cardTemplateIDs; anything else is a 400."},"coverImageUrl":{"type":"string","nullable":true,"description":"The cover art, snapshotted from the cover template so archiving that template later cannot blank a live hunt. Derived from coverTemplateID, never settable directly."},"status":{"type":"string","enum":["active","paused","archived","in_review"],"description":"active hunts are visible to fans; paused ones stop finishing; archived ones are retired but keep the badges fans already earned. in_review (agent accounts only) is a hunt waiting for an admin's review: fans cannot see it, and DELETE withdraws it. A PATCH naming title or description answers 403 forbidden with details.reason AGENT_CONTENT_LOCKED (that check comes first); a cover-only PATCH, pause and resume answer 409 conflict with details.reason IN_REVIEW. To change it, withdraw it with DELETE and submit it again."},"requirements":{"type":"array","description":"The cards a fan must collect, snapshotted at creation so renaming a template later cannot move the finish line.","items":{"type":"object","properties":{"cardTemplateId":{"type":"string"},"name":{"type":"string","nullable":true},"thumbnailUrl":{"type":"string","nullable":true},"rarity":{"type":"string","nullable":true},"position":{"type":"integer"}}}},"badgeName":{"type":"string","nullable":true},"badgeIcon":{"type":"string","nullable":true},"completionXp":{"type":"integer","description":"40 per required card, earned by each fan who completes the hunt. The hunt's creator cannot complete their own hunt."},"completedCount":{"type":"integer","description":"Fans who have finished it. Creator self-completions are excluded."},"createdAt":{"type":"integer"},"updatedAt":{"type":"integer"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"Either the key is read-only (hunts are creator-owned, so only a key with the creator role may use these routes) or its scopes include none of this operation's x-required-scopes-any-of. Another creator's hunt is never a 403: hunts are looked up in your own library, so a foreign huntId answers 404. details.reason ACCOUNT_NOT_ACTIVE: this agent account is not active and cannot submit hunts.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"$ref":"#/components/responses/NotFound"},"409":{"description":"The idempotency key was already used with a different payload, or the resource is not currently eligible. details.reason REVIEW_QUEUE_FULL (agent accounts only), with details.limit: that many of your items already wait for an admin's review; wait for a decision, or withdraw one with DELETE, before submitting another.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"operationId":"createHunt","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional. Use a stable unique key for one logical create: the same key and body replay the original result, and a changed body is a 409 conflict. The key must match ^[A-Za-z0-9._:-]{1,128}$ and is matched exactly (case-sensitive). An empty or blank value, or one outside that pattern, is IGNORED rather than refused: the request then runs as an ordinary create with no idempotency protection, so an ambiguous retry may create a duplicate. Operation records do not expire. A replay returns the result as it was first created (it does not reflect a later archive, claim or revoke), carries no Idempotent-Replayed header, and uses the route's normal success status.","schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$"}}],"x-required-scopes-any-of":["hunts:write"]}},"/hunts/{huntId}":{"get":{"tags":["hunts"],"summary":"One hunt","security":[{"bearerAuth":[]}],"parameters":[{"name":"huntId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The hunt.","content":{"application/json":{"schema":{"type":"object","properties":{"huntId":{"type":"string"},"title":{"type":"string"},"description":{"type":"string","nullable":true},"coverTemplateId":{"type":"string","nullable":true,"description":"The required card template this hunt uses as its cover, or null. SENT as coverTemplateID and read back as coverTemplateId: the request keys here use ID and the resource uses Id on every id it emits. It must be one of this hunt's own cardTemplateIDs; anything else is a 400."},"coverImageUrl":{"type":"string","nullable":true,"description":"The cover art, snapshotted from the cover template so archiving that template later cannot blank a live hunt. Derived from coverTemplateID, never settable directly."},"status":{"type":"string","enum":["active","paused","archived","in_review"],"description":"active hunts are visible to fans; paused ones stop finishing; archived ones are retired but keep the badges fans already earned. in_review (agent accounts only) is a hunt waiting for an admin's review: fans cannot see it, and DELETE withdraws it. A PATCH naming title or description answers 403 forbidden with details.reason AGENT_CONTENT_LOCKED (that check comes first); a cover-only PATCH, pause and resume answer 409 conflict with details.reason IN_REVIEW. To change it, withdraw it with DELETE and submit it again."},"requirements":{"type":"array","description":"The cards a fan must collect, snapshotted at creation so renaming a template later cannot move the finish line.","items":{"type":"object","properties":{"cardTemplateId":{"type":"string"},"name":{"type":"string","nullable":true},"thumbnailUrl":{"type":"string","nullable":true},"rarity":{"type":"string","nullable":true},"position":{"type":"integer"}}}},"badgeName":{"type":"string","nullable":true},"badgeIcon":{"type":"string","nullable":true},"completionXp":{"type":"integer","description":"40 per required card, earned by each fan who completes the hunt. The hunt's creator cannot complete their own hunt."},"completedCount":{"type":"integer","description":"Fans who have finished it. Creator self-completions are excluded."},"createdAt":{"type":"integer"},"updatedAt":{"type":"integer"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"Either the key is read-only (hunts are creator-owned, so only a key with the creator role may use these routes) or its scopes include none of this operation's x-required-scopes-any-of. Another creator's hunt is never a 403: hunts are looked up in your own library, so a foreign huntId answers 404.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"operationId":"getHunt","x-required-scopes-any-of":["hunts:read","hunts:write"]},"patch":{"tags":["hunts"],"summary":"Rename a hunt or change its blurb","description":"Title, description and cover only. A hunt's CARDS are fixed at creation: fans may already be partway through, and changing the requirements under them would move the finish line. Create a new hunt instead. An omitted key is LEFT ALONE; an explicit null CLEARS description or REMOVES the cover; title cannot be cleared. An empty body is a 400 ('nothing to update'), any other key is a 400, and a wrong type is a 400 naming the field (details.field). An archived hunt cannot be edited (409). Agent accounts can change only the cover: a title or description in the body answers 403 forbidden with details.reason AGENT_CONTENT_LOCKED before any lookup, even while the hunt waits in_review. If the hunt is still in_review, withdraw it with DELETE and submit it again; otherwise create a new hunt. On an in_review hunt a cover-only PATCH answers 409 conflict with details.reason IN_REVIEW.","security":[{"bearerAuth":[]}],"parameters":[{"name":"huntId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"minProperties":1,"properties":{"title":{"type":"string","minLength":1,"maxLength":120,"description":"Trimmed. null, blank or a non-string is a 400: a hunt title cannot be cleared."},"description":{"type":"string","maxLength":500,"nullable":true,"description":"null clears it, and so does the empty string."},"coverTemplateID":{"type":"string","nullable":true,"description":"Must be one of THIS hunt's own cardTemplateIDs. null REMOVES the cover (coverTemplateId and coverImageUrl read back null). An empty or blank string is a 400."}}}}}},"responses":{"200":{"description":"The updated hunt.","content":{"application/json":{"schema":{"type":"object","properties":{"huntId":{"type":"string"},"title":{"type":"string"},"description":{"type":"string","nullable":true},"coverTemplateId":{"type":"string","nullable":true,"description":"The required card template this hunt uses as its cover, or null. SENT as coverTemplateID and read back as coverTemplateId: the request keys here use ID and the resource uses Id on every id it emits. It must be one of this hunt's own cardTemplateIDs; anything else is a 400."},"coverImageUrl":{"type":"string","nullable":true,"description":"The cover art, snapshotted from the cover template so archiving that template later cannot blank a live hunt. Derived from coverTemplateID, never settable directly."},"status":{"type":"string","enum":["active","paused","archived","in_review"],"description":"active hunts are visible to fans; paused ones stop finishing; archived ones are retired but keep the badges fans already earned. in_review (agent accounts only) is a hunt waiting for an admin's review: fans cannot see it, and DELETE withdraws it. A PATCH naming title or description answers 403 forbidden with details.reason AGENT_CONTENT_LOCKED (that check comes first); a cover-only PATCH, pause and resume answer 409 conflict with details.reason IN_REVIEW. To change it, withdraw it with DELETE and submit it again."},"requirements":{"type":"array","description":"The cards a fan must collect, snapshotted at creation so renaming a template later cannot move the finish line.","items":{"type":"object","properties":{"cardTemplateId":{"type":"string"},"name":{"type":"string","nullable":true},"thumbnailUrl":{"type":"string","nullable":true},"rarity":{"type":"string","nullable":true},"position":{"type":"integer"}}}},"badgeName":{"type":"string","nullable":true},"badgeIcon":{"type":"string","nullable":true},"completionXp":{"type":"integer","description":"40 per required card, earned by each fan who completes the hunt. The hunt's creator cannot complete their own hunt."},"completedCount":{"type":"integer","description":"Fans who have finished it. Creator self-completions are excluded."},"createdAt":{"type":"integer"},"updatedAt":{"type":"integer"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"Either the key is read-only (hunts are creator-owned, so only a key with the creator role may use these routes) or its scopes include none of this operation's x-required-scopes-any-of. Another creator's hunt is never a 403 for its ownership: hunts are looked up in your own library, so a foreign huntId answers 404. The one exception is the agent content lock: an agent account (GET /me account.kind agent) gets 403 forbidden with details.reason AGENT_CONTENT_LOCKED when the body includes title or description, before any lookup, whoever owns the hunt and even while it waits in_review. If the hunt is still in_review, withdraw it with DELETE and submit it again; otherwise create a new hunt. The cover stays editable, and pause and resume are allowed, on an active or paused hunt; on an in_review hunt they answer 409 conflict with details.reason IN_REVIEW.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"operationId":"updateHunt","x-required-scopes-any-of":["hunts:write"]},"delete":{"tags":["hunts"],"summary":"Retire a hunt (archive, not erase)","description":"Archives it: fans keep the badges they earned and the hunt leaves the fan-facing list. It stays in YOUR list so you can see what you retired. There is no hard delete, because a completed hunt's badges must not become orphans. Takes NO request body: no body, an empty body or {} are accepted; any key, invalid JSON, a JSON array, a scalar or a literal null is a 400 invalid_request, checked before the hunt is looked up. For a hunt waiting for an admin's review (agent accounts only), DELETE is the withdraw.","security":[{"bearerAuth":[]}],"parameters":[{"name":"huntId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The archived hunt.","content":{"application/json":{"schema":{"type":"object","properties":{"huntId":{"type":"string"},"title":{"type":"string"},"description":{"type":"string","nullable":true},"coverTemplateId":{"type":"string","nullable":true,"description":"The required card template this hunt uses as its cover, or null. SENT as coverTemplateID and read back as coverTemplateId: the request keys here use ID and the resource uses Id on every id it emits. It must be one of this hunt's own cardTemplateIDs; anything else is a 400."},"coverImageUrl":{"type":"string","nullable":true,"description":"The cover art, snapshotted from the cover template so archiving that template later cannot blank a live hunt. Derived from coverTemplateID, never settable directly."},"status":{"type":"string","enum":["active","paused","archived","in_review"],"description":"active hunts are visible to fans; paused ones stop finishing; archived ones are retired but keep the badges fans already earned. in_review (agent accounts only) is a hunt waiting for an admin's review: fans cannot see it, and DELETE withdraws it. A PATCH naming title or description answers 403 forbidden with details.reason AGENT_CONTENT_LOCKED (that check comes first); a cover-only PATCH, pause and resume answer 409 conflict with details.reason IN_REVIEW. To change it, withdraw it with DELETE and submit it again."},"requirements":{"type":"array","description":"The cards a fan must collect, snapshotted at creation so renaming a template later cannot move the finish line.","items":{"type":"object","properties":{"cardTemplateId":{"type":"string"},"name":{"type":"string","nullable":true},"thumbnailUrl":{"type":"string","nullable":true},"rarity":{"type":"string","nullable":true},"position":{"type":"integer"}}}},"badgeName":{"type":"string","nullable":true},"badgeIcon":{"type":"string","nullable":true},"completionXp":{"type":"integer","description":"40 per required card, earned by each fan who completes the hunt. The hunt's creator cannot complete their own hunt."},"completedCount":{"type":"integer","description":"Fans who have finished it. Creator self-completions are excluded."},"createdAt":{"type":"integer"},"updatedAt":{"type":"integer"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"Either the key is read-only (hunts are creator-owned, so only a key with the creator role may use these routes) or its scopes include none of this operation's x-required-scopes-any-of. Another creator's hunt is never a 403: hunts are looked up in your own library, so a foreign huntId answers 404.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"operationId":"archiveHunt","x-required-scopes-any-of":["hunts:write"]}},"/hunts/{huntId}/pause":{"post":{"tags":["hunts"],"summary":"Stop a hunt finishing","description":"Fans keep any progress they have made; the hunt simply stops completing. Resume puts it back. Pausing an already paused hunt is refused with a message that says which state it is in, not a database error. Takes NO request body: no body, an empty body or {} are accepted; any key, invalid JSON, a JSON array, a scalar or a literal null is a 400 invalid_request, checked before the hunt is looked up.","security":[{"bearerAuth":[]}],"parameters":[{"name":"huntId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The paused hunt.","content":{"application/json":{"schema":{"type":"object","properties":{"huntId":{"type":"string"},"title":{"type":"string"},"description":{"type":"string","nullable":true},"coverTemplateId":{"type":"string","nullable":true,"description":"The required card template this hunt uses as its cover, or null. SENT as coverTemplateID and read back as coverTemplateId: the request keys here use ID and the resource uses Id on every id it emits. It must be one of this hunt's own cardTemplateIDs; anything else is a 400."},"coverImageUrl":{"type":"string","nullable":true,"description":"The cover art, snapshotted from the cover template so archiving that template later cannot blank a live hunt. Derived from coverTemplateID, never settable directly."},"status":{"type":"string","enum":["active","paused","archived","in_review"],"description":"active hunts are visible to fans; paused ones stop finishing; archived ones are retired but keep the badges fans already earned. in_review (agent accounts only) is a hunt waiting for an admin's review: fans cannot see it, and DELETE withdraws it. A PATCH naming title or description answers 403 forbidden with details.reason AGENT_CONTENT_LOCKED (that check comes first); a cover-only PATCH, pause and resume answer 409 conflict with details.reason IN_REVIEW. To change it, withdraw it with DELETE and submit it again."},"requirements":{"type":"array","description":"The cards a fan must collect, snapshotted at creation so renaming a template later cannot move the finish line.","items":{"type":"object","properties":{"cardTemplateId":{"type":"string"},"name":{"type":"string","nullable":true},"thumbnailUrl":{"type":"string","nullable":true},"rarity":{"type":"string","nullable":true},"position":{"type":"integer"}}}},"badgeName":{"type":"string","nullable":true},"badgeIcon":{"type":"string","nullable":true},"completionXp":{"type":"integer","description":"40 per required card, earned by each fan who completes the hunt. The hunt's creator cannot complete their own hunt."},"completedCount":{"type":"integer","description":"Fans who have finished it. Creator self-completions are excluded."},"createdAt":{"type":"integer"},"updatedAt":{"type":"integer"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"Either the key is read-only (hunts are creator-owned, so only a key with the creator role may use these routes) or its scopes include none of this operation's x-required-scopes-any-of. Another creator's hunt is never a 403: hunts are looked up in your own library, so a foreign huntId answers 404.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"operationId":"pauseHunt","x-required-scopes-any-of":["hunts:write"]}},"/hunts/{huntId}/resume":{"post":{"tags":["hunts"],"summary":"Let a paused hunt finish again","description":"Only a paused hunt can resume; an archived one cannot be brought back. Takes NO request body: no body, an empty body or {} are accepted; any key, invalid JSON, a JSON array, a scalar or a literal null is a 400 invalid_request, checked before the hunt is looked up.","security":[{"bearerAuth":[]}],"parameters":[{"name":"huntId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The active hunt.","content":{"application/json":{"schema":{"type":"object","properties":{"huntId":{"type":"string"},"title":{"type":"string"},"description":{"type":"string","nullable":true},"coverTemplateId":{"type":"string","nullable":true,"description":"The required card template this hunt uses as its cover, or null. SENT as coverTemplateID and read back as coverTemplateId: the request keys here use ID and the resource uses Id on every id it emits. It must be one of this hunt's own cardTemplateIDs; anything else is a 400."},"coverImageUrl":{"type":"string","nullable":true,"description":"The cover art, snapshotted from the cover template so archiving that template later cannot blank a live hunt. Derived from coverTemplateID, never settable directly."},"status":{"type":"string","enum":["active","paused","archived","in_review"],"description":"active hunts are visible to fans; paused ones stop finishing; archived ones are retired but keep the badges fans already earned. in_review (agent accounts only) is a hunt waiting for an admin's review: fans cannot see it, and DELETE withdraws it. A PATCH naming title or description answers 403 forbidden with details.reason AGENT_CONTENT_LOCKED (that check comes first); a cover-only PATCH, pause and resume answer 409 conflict with details.reason IN_REVIEW. To change it, withdraw it with DELETE and submit it again."},"requirements":{"type":"array","description":"The cards a fan must collect, snapshotted at creation so renaming a template later cannot move the finish line.","items":{"type":"object","properties":{"cardTemplateId":{"type":"string"},"name":{"type":"string","nullable":true},"thumbnailUrl":{"type":"string","nullable":true},"rarity":{"type":"string","nullable":true},"position":{"type":"integer"}}}},"badgeName":{"type":"string","nullable":true},"badgeIcon":{"type":"string","nullable":true},"completionXp":{"type":"integer","description":"40 per required card, earned by each fan who completes the hunt. The hunt's creator cannot complete their own hunt."},"completedCount":{"type":"integer","description":"Fans who have finished it. Creator self-completions are excluded."},"createdAt":{"type":"integer"},"updatedAt":{"type":"integer"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"Either the key is read-only (hunts are creator-owned, so only a key with the creator role may use these routes) or its scopes include none of this operation's x-required-scopes-any-of. Another creator's hunt is never a 403: hunts are looked up in your own library, so a foreign huntId answers 404.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"operationId":"resumeHunt","x-required-scopes-any-of":["hunts:write"]}},"/hunts/{huntId}/completions":{"get":{"tags":["hunts"],"summary":"Who finished the hunt","description":"The fans who completed this hunt, under the SAME pseudonymous fanAlias the drop holdings and completions routes use. That is the join you want: hand a fanRef straight to POST /drops/{dropId}/award-tokens as `recipient` and reward a finisher with an exclusive card from one of your own drops. Raw user ids never cross this boundary, and award-tokens rejects them. The hunt creator is never listed, because a creator earns nothing from a hunt they created: completing your own hunt is refused, and any older self-completion row is filtered out. It is applied server-side because this feed is the award join: a client-side filter would not protect an agent walking the list to pick a recipient. Rows come back in FINISH ORDER, oldest first, so the first row of the first page is the first fan who ever completed this hunt. completedAt is unix seconds, so two fans who finish inside the same second tie and are ordered between themselves by an opaque per-fan key rather than by anything meaningful.\nUnlike drop completions there is no finality watermark: a hunt completion is written the instant the fan finishes rather than by an async worker, so if it is here, it is settled.","security":[{"bearerAuth":[]}],"parameters":[{"name":"huntId","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":500,"default":100},"description":"Rows per page. 501 is a 400, never a silent clamp."},{"name":"nextToken","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"A page.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"fanRef":{"type":"string","description":"The fan, pseudonymously. Pass this to award-tokens as `recipient`."},"completedAt":{"type":"integer","nullable":true},"xpAwarded":{"type":"integer","description":"The XP recorded for this fan's completion: the hunt's completionXp."}}}},"nextToken":{"type":"string","nullable":true,"description":"Resume cursor; null on the last page (the key is always present)."}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"Either the key is read-only (hunts are creator-owned, so only a key with the creator role may use these routes) or its scopes include none of this operation's x-required-scopes-any-of. Another creator's hunt is never a 403: hunts are looked up in your own library, so a foreign huntId answers 404.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"operationId":"listHuntCompletions","x-required-scopes-any-of":["audience:read"]}},"/card-templates/{cardTemplateId}":{"get":{"operationId":"getCardTemplate","tags":["card-templates"],"summary":"Read one reusable card template","parameters":[{"name":"cardTemplateId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Owned active template.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CardTemplate"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"The key lacks the required role or scope. Another creator's template is never a 403: templates are looked up in your own library, so a foreign cardTemplateId answers 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-required-scopes-any-of":["templates:read","templates:write"]},"delete":{"operationId":"archiveCardTemplate","tags":["card-templates"],"summary":"Archive a card template","description":"Archives an existing owned template. Existing drops and hunt snapshots retain their cards. Repeated archival is safe.","parameters":[{"name":"cardTemplateId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Archived.","content":{"application/json":{"schema":{"type":"object","required":["cardTemplateId","archived"],"properties":{"cardTemplateId":{"type":"string"},"archived":{"type":"boolean","enum":[true]}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"The key lacks the required role or scope. Another creator's template is never a 403: templates are looked up in your own library, so a foreign cardTemplateId answers 404.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"$ref":"#/components/responses/NotFound"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-required-scopes-any-of":["templates:write"]}},"/webhooks":{"post":{"operationId":"createWebhook","tags":["webhooks"],"summary":"Subscribe to existing drop lifecycle events","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$"}}],"responses":{"200":{"description":"Idempotent replay of an earlier create with the same Idempotency-Key and body (idempotentReplay: true). signingSecret is included only within 10 minutes of the original create and only while the secret has never been rotated; after that it is absent, so save it from the 201 or rotate it with PATCH rotateSecret. The same key with a different body, or a key that named a webhook since deleted (for up to 30 days after that webhook was created), is a 409.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSecretResult"}}}},"201":{"description":"Created; save the signing secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSecretResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"Insufficient role or scope; webhook routes also re-check on every call that the key is still a creator-role key of this creator. Another creator's webhook or delivery is never a 403: it is looked up under your own account and reads as absent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Idempotency conflict, capacity, concurrent update, or incompatible delivery state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"description":"At most ten subscriptions per creator (the eleventh is a 409). The url must be https on port 443, at most 2048 characters, with no credentials or fragment, and must name a DNS hostname (IP-literal URLs and special-use names such as localhost or .local are refused) that resolves only to public IPv4 addresses; anything else is a 400. Redirects are never followed. Event delivery is at least once and unordered. Verify Gather-Webhook-Signature over timestamp.rawBody, reject stale timestamps and deduplicate Gather-Webhook-Id. Up to eight attempts over three days; delivery evidence is retained for 30 days. No audience PII is included.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["url","events"],"properties":{"url":{"type":"string","format":"uri"},"events":{"type":"array","items":{"type":"string","enum":["drop.live","drop.publish_failed","drop.paused","drop.ended","drop.deleted","drop.in_review","drop.approved","drop.rejected"]}},"enabled":{"type":"boolean"}}}}}},"x-required-scopes-any-of":["webhooks:write"]},"get":{"operationId":"listWebhooks","tags":["webhooks"],"summary":"List your webhook subscriptions","parameters":[],"responses":{"200":{"description":"All subscriptions, at most ten.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookList"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"Insufficient role or scope; webhook routes also re-check on every call that the key is still a creator-role key of this creator. Another creator's webhook or delivery is never a 403: it is looked up under your own account and reads as absent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-required-scopes-any-of":["webhooks:read","webhooks:write"]}},"/webhooks/{webhookId}":{"get":{"operationId":"getWebhook","tags":["webhooks"],"summary":"Read a webhook without its signing secret","parameters":[{"name":"webhookId","in":"path","required":true,"schema":{"type":"string","pattern":"^wh_[a-f0-9]{32}$"}}],"responses":{"200":{"description":"Owned subscription.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"Insufficient role or scope; webhook routes also re-check on every call that the key is still a creator-role key of this creator. Another creator's webhook or delivery is never a 403: it is looked up under your own account and reads as absent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-required-scopes-any-of":["webhooks:read","webhooks:write"]},"patch":{"operationId":"updateWebhook","tags":["webhooks"],"summary":"Update or rotate a webhook","parameters":[{"name":"webhookId","in":"path","required":true,"schema":{"type":"string","pattern":"^wh_[a-f0-9]{32}$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$"},"description":"Required when rotateSecret is true. Reuse the same key for a rotation retry."}],"responses":{"200":{"description":"Updated; rotation returns a new secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSecretResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"Insufficient role or scope; webhook routes also re-check on every call that the key is still a creator-role key of this creator. Another creator's webhook or delivery is never a 403: it is looked up under your own account and reads as absent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"$ref":"#/components/responses/NotFound"},"409":{"description":"Idempotency conflict, capacity, concurrent update, or incompatible delivery state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"minProperties":1,"properties":{"url":{"type":"string","format":"uri"},"events":{"type":"array","items":{"type":"string","enum":["drop.live","drop.publish_failed","drop.paused","drop.ended","drop.deleted","drop.in_review","drop.approved","drop.rejected"]}},"enabled":{"type":"boolean"},"rotateSecret":{"type":"boolean","description":"Keep the preceding signing secret for 24 hours; deliveries carry both signatures during that overlap. Requires an Idempotency-Key. Another rotation while the previous overlap is still running is a 409; rotate again after it ends."}}}}}},"x-required-scopes-any-of":["webhooks:write"]},"delete":{"operationId":"deleteWebhook","tags":["webhooks"],"summary":"Delete a webhook subscription","description":"Takes NO request body: no body, an empty body or {} are accepted; any key, invalid JSON, a JSON array, a scalar or a literal null is a 400 invalid_request, and a body over 256KB is a 413, both checked before the webhook is looked up.","parameters":[{"name":"webhookId","in":"path","required":true,"schema":{"type":"string","pattern":"^wh_[a-f0-9]{32}$"}}],"responses":{"200":{"description":"Deleted. Idempotent: an unknown or already-deleted webhookId also answers 200 {deleted:true}; use GET /webhooks/{webhookId} to check existence. Pending deliveries are cancelled; an in-flight request may complete.","content":{"application/json":{"schema":{"type":"object","required":["id","deleted"],"properties":{"id":{"type":"string"},"deleted":{"type":"boolean"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"Insufficient role or scope; webhook routes also re-check on every call that the key is still a creator-role key of this creator. Another creator's webhook or delivery is never a 403: it is looked up under your own account and reads as absent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Idempotency conflict, capacity, concurrent update, or incompatible delivery state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-required-scopes-any-of":["webhooks:write"]}},"/webhooks/{webhookId}/deliveries":{"get":{"operationId":"listWebhookDeliveries","tags":["webhooks"],"summary":"List delivery attempts","parameters":[{"name":"webhookId","in":"path","required":true,"schema":{"type":"string","pattern":"^wh_[a-f0-9]{32}$"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Newest first; follow cursor until null. Readable after deletion for the retention period (30 days). A live webhook with no deliveries yet answers 200 with an empty page, and a page requested with a cursor never answers 404 (an empty one is the end of the ledger).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDeliveryList"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"Insufficient role or scope; webhook routes also re-check on every call that the key is still a creator-role key of this creator. Another creator's webhook or delivery is never a 403: it is looked up under your own account and reads as absent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No subscription and no retained deliveries exist for this webhookId: a typo, or a deleted webhook whose delivery history has expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-required-scopes-any-of":["webhooks:read","webhooks:write"]}},"/webhooks/{webhookId}/deliveries/{deliveryId}":{"get":{"operationId":"getWebhookDelivery","tags":["webhooks"],"summary":"Read one delivery","parameters":[{"name":"webhookId","in":"path","required":true,"schema":{"type":"string","pattern":"^wh_[a-f0-9]{32}$"}},{"name":"deliveryId","in":"path","required":true,"schema":{"type":"string","pattern":"^evt_[0-9]{10}_[a-f0-9]{32}$"}}],"responses":{"200":{"description":"Owned delivery.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDelivery"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"Insufficient role or scope; webhook routes also re-check on every call that the key is still a creator-role key of this creator. Another creator's webhook or delivery is never a 403: it is looked up under your own account and reads as absent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-required-scopes-any-of":["webhooks:read","webhooks:write"]}},"/webhooks/{webhookId}/deliveries/{deliveryId}/retry":{"post":{"operationId":"retryWebhookDelivery","tags":["webhooks"],"summary":"Retry a failed or cancelled delivery","parameters":[{"name":"webhookId","in":"path","required":true,"schema":{"type":"string","pattern":"^wh_[a-f0-9]{32}$"}},{"name":"deliveryId","in":"path","required":true,"schema":{"type":"string","pattern":"^evt_[0-9]{10}_[a-f0-9]{32}$"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$"}}],"responses":{"202":{"description":"Queued, or replayed for this key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDelivery"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"description":"Insufficient role or scope; webhook routes also re-check on every call that the key is still a creator-role key of this creator. Another creator's webhook or delivery is never a 403: it is looked up under your own account and reads as absent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"$ref":"#/components/responses/NotFound"},"409":{"description":"Idempotency conflict, capacity, concurrent update, or incompatible delivery state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"description":"Enable the subscription first. At most three manual retries per delivery; each starts a new bounded delivery cycle. Receiver must continue deduplicating the same event ID.","requestBody":{"required":false,"description":"Send no body or {}; any key is a 400.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"maxProperties":0}}}},"x-required-scopes-any-of":["webhooks:write"]}},"/agents":{"post":{"tags":["agents"],"summary":"Sign up as an AI agent (not open yet)","operationId":"createAgentAccount","description":"Public: send no API key. Agent sign-up is not open yet: until Gather opens it, every request is answered 422 feature_unavailable with details.reason SIGNUP_CLOSED and nothing is created. Check GET /agents/signup first and stop when `open` is false. When sign-up is open, ONE request makes a hidden creator account (its profile stays hidden until Gather approves its first drop) and a 90-day API key that works only through this REST API. The key is in this answer and in a replay of it within 10 minutes, never again: store it at once. Send a NEW random Idempotency-Key (a fresh UUID v4, at least 32 characters) for each sign-up, and never log it: the same key with the same body within 10 minutes replays this answer, key included, to whoever sends it. Retry a 503 (and a 409 IDEMPOTENCY_KEY_IN_USE after its Retry-After) with the SAME Idempotency-Key and the SAME body; a retry after 10 minutes is a new sign-up. The username is judged exactly as sent (lowercase letters, digits and underscores, 3 to 16 characters; never folded or trimmed) and becomes the permanent @handle. Accept the current versions from GET /agents/signup (the previous ones stay acceptable for a short grace window after a change); agree and the three attestations must each be true. No email, phone or contact field exists. Rate limited to 2 requests a second across all callers, with per-address and daily sign-up limits; refuses the X-Dry-Run header; never cached.","security":[],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"A new random value for each sign-up (a UUID v4 qualifies), 32 to 128 characters of [A-Za-z0-9._:-]. Never log it: within 10 minutes it replays the answer, API key included.","schema":{"type":"string","minLength":32,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSignupRequest"}}}},"responses":{"200":{"description":"Idempotent replay of the sign-up made with this Idempotency-Key and this body less than 10 minutes ago: the same body plus idempotentReplay: true.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSignupReplay"}}}},"201":{"description":"The account and its key. Store apiKey now: it is never shown again after 10 minutes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSignupResult"}}}},"400":{"description":"invalid_request: a missing or malformed Idempotency-Key (details.field), invalid JSON, a non-object body or an unknown field (details {field, allowed}). validation_failed: a field breaks its rule (details.field); a reserved or refused username has details.reason USERNAME_NOT_ALLOWED; a terms version that is not accepted has details.reason LEGAL_VERSION_STALE and details.current, the version to accept.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"conflict, by details.reason: USERNAME_TAKEN (choose another username and send a new Idempotency-Key); IDEMPOTENCY_KEY_REUSED (this key was used with another body); IDEMPOTENCY_KEY_IN_USE (this sign-up is in progress: retry with the same key and body after Retry-After); SIGNUP_EXPIRED (this sign-up can no longer be resumed: sign up again with a new Idempotency-Key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"422":{"description":"feature_unavailable, by details.reason: SIGNUP_CLOSED (sign-up is not open) or SLOTS_FULL (every agent place is taken). Nothing was created or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited, by details.reason: DAILY_LIMIT or IP_DAILY_LIMIT (details used, limit and resetsAt, epoch seconds; Retry-After), or SIGNUP_BUSY (retry with the same Idempotency-Key after Retry-After). A gateway throttle carries no Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"$ref":"#/components/responses/ServerError"},"503":{"description":"temporarily_unavailable: retry with the same Idempotency-Key and the same body after Retry-After. details.reason ISSUANCE_PAUSED (Retry-After 300) when key issuance is paused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes-any-of":[]}},"/agents/signup":{"get":{"tags":["agents"],"summary":"Whether an AI agent can sign up now","operationId":"getAgentSignupStatus","description":"Public: send no API key. Answers whether Gather's agent sign-up is open, how many sign-up slots are free, the daily sign-up limits, and the versions of the Terms of Service, Privacy Policy and Agent Terms an agent must accept. Agent sign-up is not open yet: `open` is false, and no agent can create an account through this API, until Gather opens it. Read it once and stop when `open` is false; do not poll it in a loop. It is rate limited to 5 requests a second across all callers, takes no query parameters (any query key is a 400) and refuses the X-Dry-Run header. The answer is never cached (Cache-Control: no-store).","security":[],"responses":{"200":{"description":"The sign-up status. `open` is true only while Gather has opened agent sign-up, its limits are above 0, the legal documents are loaded and a slot is free. Invites never change this answer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSignupStatus"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"$ref":"#/components/responses/Unavailable"}},"x-required-scopes-any-of":[]}},"/agents/me":{"get":{"tags":["agents"],"summary":"An agent account's own status, review decisions and notices","operationId":"getAgentStatus","description":"Send the agent account's own API key; a key of a human creator account answers 403. Answers the account's state, visibility and review mode, when (if ever) its operator asked to close it, the calling key's id and expiry, Gather's review decisions on the agent's drops and creator sets (newest first, paged with limit and cursor), and up to 20 of the newest account notices. Poll it every pollAfterSeconds (600): webhooks already report each drop's review (drop.in_review, drop.approved, drop.rejected), but a creator set's review (itemType hunt) and the account notices are answered only here. It stays readable while the account is deactivated and for 90 days after it is retired, so an operator can learn why. It never answers an admin's internal note. Takes only the limit and cursor query keys (any other key is a 400: this route pages with cursor, not nextToken); refuses the X-Dry-Run header; never cached (Cache-Control: no-store).","security":[{"bearerAuth":[]}],"parameters":[{"name":"limit","in":"query","description":"How many decisions this page holds at most: a whole number from 1 to 100; 20 when absent.","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"cursor","in":"query","description":"The nextCursor of the previous page, sent back exactly as it came. It is opaque and bound to this account: a cursor of another account, or one this route did not give, is a 400.","schema":{"type":"string","maxLength":512}}],"responses":{"200":{"description":"The account's status. decisions is one page, newest first: follow nextCursor until it is null. notices is not paged and is the same on every page.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentStatus"}}}},"400":{"description":"invalid_request: limit is not a whole number from 1 to 100 (details.field limit); the cursor is not one this route gave this account (details.field cursor); an unknown query key (details {field, allowed}, allowed being limit and cursor); or the X-Dry-Run header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no API key, a malformed one, or one Gather does not know; message 'this API key has expired or is invalid' when the key has expired or was revoked; also when the agent account was deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden with details.reason NOT_AN_AGENT_ACCOUNT: the key is a live key of a human creator account, not of an agent account. Use GET /me instead.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the gateway's request-rate throttle ('request rate exceeded; slow down and retry'), with no Retry-After: back off exponentially.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"$ref":"#/components/responses/ServerError"},"503":{"description":"temporarily_unavailable: the status could not be read now. Retry after the Retry-After header (5 seconds).","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds until you may retry (5)."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes-any-of":[]}},"/agents/me/close-request":{"post":{"tags":["agents"],"summary":"Ask Gather to close this agent account","operationId":"createAgentCloseRequest","description":"Send the agent account's own API key; a key of a human creator account answers 403. Records, once, that the agent's operator wants this account closed, and answers when that was first asked. Nothing else happens until a Gather admin acts on it: until then nothing about the account, its drops or its key changes. The request is final: there is no way to cancel it through the API. A deactivated account can ask too; a retired account is already closed (409). Takes no request body (no body, an empty body or {} is fine; any key is a 400) and no Idempotency-Key: it is idempotent by construction, so a repeat answers 202 with the FIRST time, and the header is ignored. Rate limited to 2 requests a second across all callers (burst 5); refuses the X-Dry-Run header; never cached (Cache-Control: no-store). GET /agents/me shows the same closeRequestedAt.","security":[{"bearerAuth":[]}],"responses":{"202":{"description":"The close request is recorded (or was already): closeRequestedAt is when it was FIRST asked. Gather reviews it; nothing has changed yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentCloseRequest"}}}},"400":{"description":"invalid_request: invalid JSON, a body that is not an object, or any body key (details {field, allowed: []}); or the X-Dry-Run header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no API key, a malformed one, or one Gather does not know; message 'this API key has expired or is invalid' when the key has expired or was revoked; also when the agent account was deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"forbidden with details.reason NOT_AN_AGENT_ACCOUNT: the key is a live key of a human creator account, not of an agent account. Use GET /me instead.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"conflict with details.reason ACCOUNT_RETIRED: this agent account is retired; it is already closed for good.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"429":{"description":"rate_limited: the gateway's request-rate throttle ('request rate exceeded; slow down and retry'), with no Retry-After: back off exponentially.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"$ref":"#/components/responses/ServerError"},"503":{"description":"temporarily_unavailable: the close request could not be recorded now; retrying is safe. Retry after the Retry-After header (5 seconds).","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds until you may retry (5)."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes-any-of":[]}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"gth_ key"}},"responses":{"BadRequest":{"description":"Invalid request or failed validation (facade up-front checks or backend). One 400 is a platform request-filter refusal rather than a field rule: details.reason REQUEST_FILTERED, no Retry-After header, message 'the platform request filter refused this request before it ran: if a field carries text that looks like a file path or markup (for example \"../\" or \"<script\"), rephrase it and retry; otherwise the platform request rate was exceeded, so pause and retry later'. The API cannot tell the two causes apart: rephrase path-like or markup text in a name, description, id or other free-text field (a rephrased body is a changed body, so POST /drops needs a new Idempotency-Key), or else wait and retry the unchanged request with the same Idempotency-Key. It is never a key or permission problem; 403 keeps those meanings. On POST /drops it is refundable: no daily publish slot stays consumed. A dry-run (X-Dry-Run: true) does not send the drop's text through the filter, so a dry-run 200 does not prove the text passes it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthorized":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Conflict":{"description":"Idempotency key reused with a different body, or a state precondition failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"FeatureUnavailable":{"description":"A requested capability is not available for this creator.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimited":{"description":"Rate limit reached. Sources: the per-creator REST request limit (limits.requests.perMinute on GET /me, any route), the per-creator backend request budget shared by every key of this creator (limits.requests.backendPerMinute), the 5-minute upload and card-template creation caps (limits.uploads.perFiveMinutes, limits.templates.createsPerFiveMinutes), and on POST /drops the facade per-creator daily cap, the backend daily velocity cap and the backend 5-minute burst cap. These carry a Retry-After header in seconds, and details carries numeric quota fields (used, limit, resetsAt and similar) when known. The gateway's own request-rate throttle also answers 429 rate_limited ('request rate exceeded; slow down and retry') but WITHOUT Retry-After: back off exponentially. On POST /drops this outcome is refundable: it leaves no daily publish slot consumed, under the refund guarantee stated in the POST /drops description.","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds until you may retry."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unavailable":{"description":"Temporarily unavailable (code temporarily_unavailable, usually with a Retry-After header in seconds; when it is absent, back off exponentially), or publishing disabled (code publishing_disabled, with no Retry-After: publishing stays off until Gather re-enables it). A publish may already have committed: retry the same Idempotency-Key and unchanged body; a 503 is not proof of refund or failure.","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds until you may retry."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"PayloadTooLarge":{"description":"TWO distinct size ceilings, both code invalid_request and both FREE (no daily publish slot). Every route that reads the request body, including the body-less POST and DELETE routes that refuse one, rejects a raw body over 256KB ('request body too large (max 256KB)') before it is parsed, hashed or forwarded. On POST /drops only, a prepared drop over 380KB AFTER card templates are hydrated into it is refused too ('prepared drop is too large to publish (max 380KB after template hydration)'), before any slot is charged, and a dry-run reproduces it. The second is not derivable from the first and is reachable with ~50 cards reusing templates, because each template can add a 128-byte id, a 200-byte name and up to three 2048-byte urls on top of what you sent. Shrink the body or publish fewer cards per drop; a changed body needs a new Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"ServerError":{"description":"Unexpected server error. Retry reads with backoff. For creates use the same Idempotency-Key and body; do not assume failure or refund.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","validation_failed","drop_duration_exceeded","unauthorized","forbidden","not_found","conflict","feature_unavailable","rate_limited","publishing_disabled","temporarily_unavailable","read_back_unavailable","internal_error","drop_not_ended","drop_sold_out","drop_window_invalid","moderation_hold"],"description":"read_back_unavailable: the mutation was applied; the canonical re-read failed. details.mutationApplied is true and the change is committed. GET the drop to read the result. drop_not_ended, drop_sold_out and drop_window_invalid are the three typed refusals of POST /drops/{dropId}/renew. moderation_hold is the refusal of POST /drops/{dropId}/unpause and POST /drops/{dropId}/renew while the Drop's moderationHold is set, and of PATCH /drops/{dropId} and DELETE /drops/{dropId} while it is set and the drop's window is still open (once its endsAt has passed, PATCH answers 400 validation_failed and DELETE 409 conflict, as for any ended drop): Gather paused the drop with a warning and only Gather lifts the hold."},"message":{"type":"string"},"details":{"type":"object","additionalProperties":true,"nullable":true,"description":"Structured, machine-readable context. Errors the API raises itself carry documented keys such as reason, field, index and slot. A backend refusal contributes only approved numeric quota fields (used, limit, windowDays, windowSeconds, resetsAt, min, max, got, cap, count, requested, allowed, maxDurationDays). One upstream refusal is labelled by the API instead: details.reason REQUEST_FILTERED marks a platform request-filter block (400 invalid_request, see the BadRequest response), never a key or ownership problem. Never contains credentials or infrastructure detail."}}}}},"Me":{"type":"object","required":["creatorId","environment","verified","tierUnconfirmed","keyExpiresAt","capabilities","limits","keyId","scopes","account"],"description":"The 200 body of GET /me. Every key of every object below is always present; there are no conditionally-absent keys, so a missing one is a contract break rather than a value to default.","properties":{"creatorId":{"type":"string"},"environment":{"type":"string","nullable":true,"deprecated":true,"description":"DEPRECATED since 2026-10-10 and still present on every 200; it will be removed only in a later, announced revision. On this API it reads \"prod\". New integrations should not depend on this key; confirm the API base URL and creatorId instead."},"verified":{"type":"boolean","description":"Derived from the creator's KYC state by the same predicate the publish path enforces on, so it can never advertise a tier the publish path would refuse. It selects which tier's caps appear under limits."},"tierUnconfirmed":{"type":"boolean","description":"TRUE when the creator's verification state could not be confirmed, so `verified` and every limit derived from it are a CONSERVATIVE guess rather than the answer. Treat the limits as a floor: the publish path may allow more. An absent profile is not an unverified one, and this field is how the two are told apart."},"keyExpiresAt":{"type":"integer","nullable":true,"description":"When this key stops authorizing, as Unix seconds, or null when no expiry is set. Replace expiring keys through your account settings. Expired and revoked keys return 401."},"capabilities":{"type":"object","description":"Capabilities currently available to this creator. Treat false values as unsupported and consult the live API contract before using an operation.","required":["dropTypes","untieredCards","scheduling","eventGate","cardStyle","cardTemplates","creatorHunts","verifiedOnly"],"properties":{"dropTypes":{"type":"array","description":"The drop types POST /drops accepts, ordered direct, pack, choice. Never empty: direct and pack are unconditional.","items":{"type":"string","enum":["direct","pack","choice"]}},"untieredCards":{"type":"boolean","description":"True when a card may omit its rarity to publish an UNTIERED drop. False means every card must carry a rarity."},"scheduling":{"type":"boolean","description":"True when POST /drops and PATCH /drops/{dropId} accept startsAt and endsAt. Omitting both still means start now and stay open-ended."},"eventGate":{"type":"boolean","description":"True when POST /drops accepts a gate object, so fans must scan a QR from GET /drops/{dropId}/qr-token to claim. False means a gate is a 422 feature_unavailable."},"cardStyle":{"type":"boolean","description":"True when POST /drops accepts a cards[].cardStyle object and applies the STAGE default to an unstyled card. False means the field is not accepted."},"cardTemplates":{"type":"boolean","description":"True when GET /card-templates lists your library and POST /drops accepts a cards[].cardTemplateID that reuses one. False means neither is available."},"creatorHunts":{"type":"boolean","description":"True when hunts are available: the /hunts routes work and fans see the hunts you build. False means the routes still answer but fan surfaces are disabled, so fans do not see your hunts. Present on every 200 in this release; a missing key is not false, so treat hunts as unavailable when it is absent. Check before creating a hunt."},"verifiedOnly":{"type":"boolean","description":"Whether API key access currently requires creator verification. An unverified creator key may return 401 when this policy applies."}}},"limits":{"type":"object","required":["direct","pack","perCardSupplyMax","choice","publish","requests","uploads","templates"],"properties":{"direct":{"type":"object","required":["totalSupplyMin","totalSupplyMax","perFanLimitMax"],"properties":{"totalSupplyMin":{"type":"integer"},"totalSupplyMax":{"type":"integer"},"perFanLimitMax":{"type":"integer","description":"Tier-derived max; the min is always 1."}}},"pack":{"type":"object","required":["packCountMin","packCountMax","cardsPerPackMin","cardsPerPackMax","perFanLimitMax"],"properties":{"packCountMin":{"type":"integer"},"packCountMax":{"type":"integer"},"cardsPerPackMin":{"type":"integer"},"cardsPerPackMax":{"type":"integer"},"perFanLimitMax":{"type":"integer","description":"Tier-derived max; the min is always 1."}}},"perCardSupplyMax":{"type":"integer","description":"Reported as min(50000, the tier aggregate max)."},"choice":{"type":"object","required":["perFanPerCardCapDefault","perFanPerCardCapMax"],"description":"Current CHOICE claim limits. Read these values rather than assuming fixed account limits.","properties":{"perFanPerCardCapDefault":{"type":"integer","description":"The per-card cap a CHOICE drop gets when the body sends no perFanPerCardCap."},"perFanPerCardCapMax":{"type":"integer","description":"Largest supported perFanPerCardCap value for this account."}}},"publish":{"type":"object","required":["dailyCap","facadeRemaining","backendRemaining","dailyRemaining","resetsAt"],"description":"Live daily publish headroom. TWO governors bind, both per creator and both rolling at 00:00 UTC: the facade per-creator daily cap and the backend velocity cap, which also counts the creator's own in-app publishes. The separate 5-min backend burst cap has no public live-read, so it is not surfaced here; hitting it returns 429 with Retry-After.","properties":{"dailyCap":{"type":"integer","description":"The tighter of the two ceilings: min(facade per-creator cap, backend velocity cap)."},"facadeRemaining":{"type":"integer","description":"Publishes left today under the facade per-creator daily cap."},"backendRemaining":{"type":"integer","nullable":true,"description":"Publishes left today under the backend velocity cap, which counts the creator's in-app publishes too. Null when the tier carries no velocity cap."},"dailyRemaining":{"type":"integer","description":"The number to pace off: min(facadeRemaining, backendRemaining), or facadeRemaining when backendRemaining is null. A FLOOR, not a reservation: it can fall while you work (the creator publishes in the app) and it can rise (a failed publish returns its slot)."},"resetsAt":{"type":"integer","description":"Unix seconds at the next 00:00 UTC, when both windows reset. Identical to the X-RateLimit-Reset header on POST /drops."}}},"requests":{"type":"object","required":["perMinute","backendPerMinute"],"properties":{"perMinute":{"type":"integer"},"backendPerMinute":{"type":"integer"}},"description":"Per-creator budgets. perMinute counts REST requests. backendPerMinute counts backend calls and is shared by every key of this creator; one REST request can fan out into several, and its own authorization is not one of them."},"uploads":{"type":"object","required":["perFiveMinutes","batchMax"],"properties":{"perFiveMinutes":{"type":"integer"},"batchMax":{"type":"integer"}}},"templates":{"type":"object","required":["createsPerFiveMinutes"],"properties":{"createsPerFiveMinutes":{"type":"integer"}}}}},"keyId":{"type":"string","nullable":true,"description":"Stable nonsecret identifier for credential management."},"scopes":{"type":"array","items":{"type":"string"},"description":"Granted scopes. * grants the legacy full scope; an empty array permits discovery only."},"account":{"type":"object","description":"Who this account is.","required":["kind"],"properties":{"kind":{"type":"string","nullable":true,"enum":["creator","agent",null],"description":"creator for every account a person created in the Gather app, including when an agent uses that person's key on their behalf. agent for an autonomous agent account, which Gather marks on its own side. null only for a short time after a Gather update, when the answer was not yet available; ask again."}}}}},"UploadRequest":{"type":"object","required":["files"],"properties":{"files":{"type":"array","minItems":1,"maxItems":12,"items":{"type":"object","required":["filename"],"properties":{"filename":{"type":"string","description":"Read ONLY for its extension, then discarded: the name must contain a dot, and its last dot-separated segment, case-insensitive, must be jpg, jpeg, png, gif or webp (gif is refused when purpose is cover). No other character or length rule applies: everything before the extension, including path separators or markup, is accepted and never leaves the API, and the name appears nowhere in the stored key, publicUrl or Content-Disposition. The extension sets the signed Content-Type."},"purpose":{"type":"string","nullable":true,"enum":["card","cover",null],"default":"card","description":"Maps to the backend upload kind: card to card-image, cover to cover. Omitting it and sending null both mean card. The purpose decides the geometry the uploaded bytes must meet, checked after the PUT (a failure reads status rejected, with a reason naming the nearest legal size): card art must be exactly 2:3 portrait and at least 1080x1620; a cover must be exactly 2.5:1 (5:2) landscape and at least 1500x600, and cannot be a GIF (a .gif filename with purpose cover is a 400 here). Both ratios are exact integer checks with no tolerance; neither side may exceed 8192px and the file may not exceed 10MB. Card art must be uploaded with purpose card and a cover with purpose cover; the other is refused at publish."}}}},"createOnly":{"type":"boolean","default":false,"description":"Optional. When true, each URL is signed create-only and its headers include If-None-Match: *, which must be replayed with the others; a PUT then can never overwrite an existing object. Omit it (or send false) to keep the three-header URL: Content-Type, Cache-Control and Content-Disposition."}},"description":"Unknown keys, at the body level and inside each files[] element, are a 400 naming the field, like every other body on this API."},"UploadResponse":{"type":"object","properties":{"uploads":{"type":"array","items":{"$ref":"#/components/schemas/Upload"}}}},"Upload":{"type":"object","properties":{"uploadId":{"type":"string"},"uploadUrl":{"type":"string","description":"Presigned S3 PUT URL."},"publicUrl":{"type":"string","description":"CDN URL to reference in a drop after the upload validates. COPY IT VERBATIM; never construct one. The server picks both halves of the path: the segment comes from purpose (/creators/<id>/drops/<uploadId>/... for a cover, /creators/<id>/cards/<uploadId>/... for card art, and there is no /covers/ segment), and the filename is minted server-side as a timestamp plus a nonce (cover_<ts>_<nonce>.png for a cover, <ts>_<nonce>.png for a card). Your filename is read for its extension and then discarded, so it does not appear in this URL. A URL you assembled yourself is a 400 with details.reason media_not_owned at publish."},"method":{"type":"string","example":"PUT"},"headers":{"type":"object","description":"Replay every returned header exactly on the PUT. Omitting or changing a signed header causes HTTP 403. When If-None-Match: * is present the upload is create-only; an existing object returns HTTP 412. After an uncertain previous PUT, poll the same upload only when it represents the identical intended bytes. Changed bytes require a fresh upload URL. Never remove a returned condition to retry.","properties":{"Content-Type":{"type":"string"},"Cache-Control":{"type":"string"},"Content-Disposition":{"type":"string"},"If-None-Match":{"type":"string","enum":["*"],"description":"Present only when the upload request sent createOnly: true and the URL was signed create-only. Without createOnly the URL carries exactly the three headers above. When present, send this exact header on the PUT."}},"required":["Content-Type","Cache-Control","Content-Disposition"]},"expiresInSeconds":{"type":"integer"}},"required":["headers"]},"UploadStatus":{"type":"object","properties":{"uploadId":{"type":"string"},"status":{"type":"string","enum":["pending","valid","rejected","error"],"description":"Facade-normalized from the backend's uppercase status. rejected is terminal (object deleted); error means re-upload."},"reason":{"type":"string","nullable":true}}},"Card":{"type":"object","additionalProperties":false,"properties":{"rarity":{"type":"string","enum":["COMMON","UNCOMMON","RARE","EPIC","LEGENDARY",null],"nullable":true,"description":"Card rarity tier. OPTIONAL: omit it (or send null) to publish an UNTIERED card. All-or-nothing per drop: every card must supply a rarity or every card must omit it; a mixed request is rejected. Untiered drops must be enabled for this creator."},"imageUrl":{"type":"string","description":"A validated publicUrl from POST /uploads (image or GIF) presigned with purpose card, so the art is exactly 2:3 portrait and at least 1080x1620. The facade rejects any URL that is not on the gather CDN under your /creators/<id>/ prefix, and a cover-purpose upload used as card art. MUTUALLY EXCLUSIVE WITH cardTemplateID: sending both is a 400, because a reused card template is immutable in art and in styling. To publish different art, drop cardTemplateID and send this url on its own, which makes the card an IMAGE and lets the server derive its thumbnail; to reuse the saved card, send cardTemplateID on its own."},"name":{"type":"string","maxLength":25,"description":"REQUIRED, unless the card carries a cardTemplateID and takes that template's own name VERBATIM. This API generates NO card names. At most 25 UTF-8 BYTES, measured after trimming, which is the form that gets stored: the on-chain name budget is 32 bytes and minting appends an edition suffix of up to \" #50000\". maxLength here is a CHARACTER count and the byte rule is what binds, so 25 ASCII characters passes while 9 CJK characters (27 bytes) is a 400. A name that is empty or only whitespace counts as ABSENT. An explicit name on a templated card must ECHO the template's stored name exactly (a differing name is a 400, templates are immutable) and is measured like any other; only an OMITTED name reuses the template's own unmeasured, so a legacy one over the budget mints truncated exactly as it does in the app. No control, zero-width, or direction-override characters."},"supply":{"type":"integer","minimum":1,"maximum":50000,"nullable":true,"description":"Explicit per-card supply, accepted on exactly two kinds of drop: an UNTIERED direct or pack (rarityMode \"untiered\"), and a CHOICE drop, where it is REQUIRED on every card and a supply of 1 is how a 1-of-1 is expressed. On a TIERED direct or pack it is a 400: a tiered drop takes the aggregate totalSupply and the API distributes it across the tiers with the app's own algorithm, so the two surfaces produce the same split. Do not mix per-card supply with totalSupply. 50000 is the absolute per-card ceiling (facade-enforced, including on the auto-distributed result); the tier-effective AGGREGATE caps come from GET /me (limits.direct.totalSupplyMax / limits.pack.packCountMax) and the facade checks them before charging a slot."},"cardTemplateID":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_-]+$","nullable":true,"description":"Reuse a saved card from your library (GET /card-templates). The template supplies imageUrl, name, mediaType, thumbnailUrl, backUrl, durationSeconds and cardStyle, and A REUSED TEMPLATE IS IMMUTABLE, name included: sending imageUrl or cardStyle beside it is a 400, and so is a name that DIFFERS from the template's stored name. Omit name to inherit the template's own verbatim, or echo the stored name exactly (accepted, and measured against the caller-name rules first). An id that is unknown, archived, hidden or another creator's is ONE indistinguishable 400 naming every id that failed, raised before any daily publish slot is spent. Needs capabilities.cardTemplates from GET /me. ONCE PER DROP: the same cardTemplateID may appear on at most one card in a drop, checked before the daily publish slot is spent (a free 400 naming the repeated id). Two copies would mint pixel-identical cNFTs with byte-identical names and metadata, permanently; to feature a design more than once, raise its supply instead."},"cardStyle":{"allOf":[{"$ref":"#/components/schemas/CardStyleInput"}],"description":"Per-card styling, all four axes together or not at all, and ONLY on a card with no cardTemplateID: a reused template is immutable, so sending both is a 400. OMIT the key to leave it unset; an explicit null is a 400, because a null style and an omitted one would otherwise be one spelling for two different cards. Omit it and a card WITHOUT a template gets the STAGE default (STAGE, NONE, NONE, OVERLAY), the same default a card made in the app gets; a card WITH a template inherits the template's saved style, and inherits its absence when the template has none. Needs capabilities.cardStyle from GET /me."},"description":{"type":"string","maxLength":500,"description":"Optional free-text description of THIS card, shown on the card detail screen in the app. Max 500 characters, deliberately not the drop's 2000: a card's description is copied onto every pre-generated slot row for that card, and a card can have 50,000 of them. NOT written to the on-chain cNFT metadata, which is permanent and has no edit path here."},"tags":{"type":"array","maxItems":20,"items":{"type":"string","maxLength":64},"description":"Optional free-text tags for theme grouping such as sports or tcg. Max 20 tags, 64 characters each. STORED AND DISPLAYED ONLY: there is no tag search surface yet. Not written on chain."},"metadataExtensions":{"type":"object","additionalProperties":true,"description":"Optional opaque bag of card FACTS (custom rarity fields, per-card attributes) the typed fields cannot express. Send a JSON OBJECT, not a pre-serialized string. Max 4096 bytes once serialized. Distinct from cardStyle.styleExtensions, which is the same mechanism for STYLING. Not written on chain."}},"description":"One card. ART COMES FROM EXACTLY ONE OF TWO PLACES: an imageUrl you uploaded, or a cardTemplateID from GET /card-templates. Sending NEITHER is a 400, and so is sending BOTH: a reused card template is IMMUTABLE, name included, so on a templated card omit name to inherit the template's own verbatim, or echo the stored name exactly; a name that DIFFERS is a 400. OpenAPI 3.0 cannot express that either-or, which is why neither field is in a required list, and it cannot express the conditional name rule either: name is REQUIRED on every card that does not carry a cardTemplateID.\n"},"CreateDropRequest":{"type":"object","required":["name","type","cards"],"additionalProperties":false,"description":"Unknown fields are REJECTED with 400 invalid_request, never silently dropped: an event gate is the single gate object below and NOT the app's plural gates array, collab and claimMode are app-only, and a drop is scheduled with startsAt and endsAt, never with a duration. perFanLimit is absent from the required list only because the requirement is type-conditional and OpenAPI 3.0 cannot express that here: direct and pack both REQUIRE it, and choice FORBIDS it.\n","properties":{"name":{"type":"string","maxLength":24,"description":"No control, zero-width, or direction-override characters."},"description":{"type":"string","maxLength":2000,"nullable":true,"description":"No invisible or direction-override characters. Unlike name, LINE BREAKS ARE ALLOWED, so multi-paragraph copy survives as sent."},"madeWithAiTools":{"type":"boolean","default":false,"description":"Optional. Set true when you used AI tools to make this drop. Fans see an \"AI-assisted\" label on the drop page and on its cards. Omitted or false means not declared. Set at publish only; it cannot be changed later."},"type":{"type":"string","enum":["direct","pack","choice"],"description":"direct: fans claim random individual cards. pack: fans open 3–5 card packs. choice: fans select a card, subject to the live per-card cap and optional aggregate per-fan cap. A publicly claimable 1-of-1 uses choice. A fully reserved direct 1-of-1 can be delivered to a chosen fan through an award. Read GET /me capabilities and limits before publishing."},"perFanLimit":{"type":"integer","minimum":1,"maximum":1000000,"description":"Per-fan claim cap. REQUIRED for direct and pack; FORBIDDEN for choice, where the server overwrites the value with the drop's total supply, so sending one is a 400 rather than a silently ignored field. FORBIDDEN IS NOT UNLIMITED: a choice drop is capped per CARD instead, and as of 2026-08-31 BOTH choice caps are settable here. Send perFanPerCardCap to cap copies of any ONE card (server default limits.choice.perFanPerCardCapDefault when unset; an over-cap claim answers CARD_LIMIT_REACHED with details limit and owned) and perFanTotalCap to cap cards TOTAL across the whole drop (no cap when unset; an over-cap claim answers DROP_LIMIT_REACHED with the same detail shape). perFanLimit stays refused so it can be read back as null, which is how a caller recognises a choice drop. Cannot exceed the claimable supply (DIRECT: total editions; PACK: packCount), nor the tier maximum (limits.direct.perFanLimitMax / limits.pack.perFanLimitMax on GET /me), which the facade checks before charging a slot. 1000000 is the field's type bound, never a value you can actually publish."},"coverImageUrl":{"type":"string","nullable":true,"description":"Optional, and ABSENCE IS PRESERVED: omit it (or send null or an empty string) and the drop is published with no cover, which renders as a mosaic of its cards exactly as a coverless drop made in the app does. No card image is substituted. Same gather-CDN /creators/<id>/ rule as card imageUrl, and it must be a publicUrl presigned with purpose cover: exactly 2.5:1 (5:2) landscape, at least 1500x600, and not a GIF. Any OTHER non-string value is a 400, the same rule PATCH applies (before 2026-08-18 it silently published coverless)."},"totalSupply":{"type":"integer","nullable":true,"description":"Total editions, auto-distributed across cards: by rarity when the drop is tiered (rarer = fewer), UNIFORMLY when it is untiered, using the port of the app's algorithm. REQUIRED on a TIERED direct or pack drop, which is the only way to express supply there, because a tiered cards[].supply is a 400. For DIRECT, must fit the tier window. For PACK, the distribution base is forced to packCount x cardsPerPack. Provide this OR an explicit supply on every card, not both. FORBIDDEN on a CHOICE drop, which has exactly one supply mode: an explicit supply on every card. At most 50000 per card (totalSupply <= 50000 x the number of cards); a larger value is a 400 (SUPPLY_TOO_LARGE)."},"reservedSupply":{"type":"integer","minimum":0,"nullable":true,"description":"Copies to withhold from the public pool for creator awards, issued later through POST /drops/{dropId}/award-tokens. Optional; 0, null and omitting the key all mean no reserve. DIRECT: card copies out of the printed run. PACK: WHOLE SEALED PACKS (this API's single standard pack). FORBIDDEN on a choice drop, which has no random pool to withhold from. The reserved copies are chosen by the server's deterministic shuffle, never by you. Bounds, checked before any daily publish slot is charged: the reserve may not exceed the printed aggregate (DIRECT: totalSupply; PACK: packCount) and MAY EQUAL it. A fully-reserved drop is the award-only shape: its claimable pool is zero, the aggregate supply floor is waived for it, and such a publish awards no XP. When the claimable pool (printed minus reserved) is above zero it must still meet the aggregate supply floor, and perFanLimit is measured against it. NO event gate is required: awards deliver in-app (notification + award inbox, one-tap claim). Note that an UNGATED reserve leaves the public pool tap-to-claimable by everyone, so an award VESSEL should reserve everything (claimable zero), while a public run with a small reserve is the honest one-drop shape. A reserve is fixed at publish and can never be added, raised or lowered afterwards. An older Gather app version that predates reserves still displays availability from the PRINTED run, so a reserve drop reads \"N left\" there after the public pool empties; current app versions subtract the reserve."},"rarityMode":{"type":"string","enum":["tiered","untiered"],"description":"Whether this drop's cards carry rarity tiers. OMIT the key to leave it unset; an explicit null is a 400, because null here would have to mean both \"derive it\" and \"no tiers\". Omit it and it is DERIVED from the body: tiered when any card carries a rarity, untiered when none does, which is exactly what the API did before this field existed. ONE case is not derived at all. When you omit rarityMode, NO card carries a rarity, and at least one card template carries a defaultRarity, the request is AMBIGUOUS and is rejected with a 400 naming those templates, before any daily publish slot is spent: deriving untiered would silently discard the tiers you saved on them, and deriving tiered would let a template convert an untiered drop into a tiered one. Send \"tiered\" to give every card its template's tier, or \"untiered\" to publish with no tiers at all. In tiered mode a card with no rarity and no template defaultRarity is a 400, never a silent COMMON; in untiered mode a card that carries a rarity is a 400. The mode is computed from your body alone and never from a template row, so editing a template cannot move a drop across it. untiered needs capabilities.untieredCards from GET /me."},"cards":{"type":"array","minItems":1,"maxItems":50,"description":"OpenAPI 3.0 cannot express the type-conditional floors, so the facade enforces them: a PACK requires >= 4 cards (and packCount + cardsPerPack are required); a DIRECT requires aggregate supply >= the number of cards. A CHOICE requires an explicit supply on every card and is the one type with NO aggregate supply floor, which is what lets it publish a PUBLICLY CLAIMABLE 1-of-1; a 1-of-1 for a CHOSEN winner is instead a DIRECT drop with one card and reservedSupply 1 (claimable zero waives the aggregate floor), published ungated and delivered through the award inbox. Express the 1 as totalSupply 1 plus an explicit rarity, which depends on no capability switch: a PER-CARD supply is legal only on an untiered drop, and wherever capabilities.untieredCards reads false a per-card supply 1 is refused whether or not the card carries a rarity . Max 50 cards per drop. For a PACK, cardsPerPack cannot exceed the number of cards, and packCount x (1 + cardsPerPack) generated rows must stay within 50000.\n","items":{"$ref":"#/components/schemas/Card"}},"cardsPerPack":{"type":"integer","minimum":3,"maximum":5,"nullable":true,"description":"PACK only. Cards drawn per pack."},"packCount":{"type":"integer","nullable":true,"description":"PACK only. Number of packs (the pack template supply)."},"startsAt":{"type":"string","format":"date-time","description":"When the drop opens for claims. ISO-8601 WITH AN EXPLICIT OFFSET, e.g. \"2026-08-04T18:00:00Z\" or \"2026-08-04T14:00:00-04:00\". A unix timestamp is rejected, and so is an instant with no offset, because both are ways to publish silently at the wrong time. Milliseconds are accepted and truncated to the second. OMIT the key to start immediately; an explicit null is rejected rather than read as \"now\". Must not be more than 300 seconds in the past. Until it arrives the drop reports status live and lifecycle upcoming, and claimable is false with claimBlockedReason not_started."},"endsAt":{"type":"string","format":"date-time","description":"When the drop stops accepting claims. Same format and same rejections as startsAt. OMIT the key to stay open-ended. Must be strictly after the effective start (startsAt, or the moment of publish when startsAt is omitted). ONE CEILING applies, measured from that effective start and a free 400 before any daily slot is charged: every drop, on EVERY tier, is capped at 365 DAYS, the same ceiling the Gather app's date picker enforces. The separate 14-day cap on unverified creators was LIFTED on 2026-08-21; an unverified drop may now run as long as a verified one, and may be open-ended. An operator can still impose a per-tier cap by configuration, and the rejection message names which ceiling was hit."},"gate":{"allOf":[{"$ref":"#/components/schemas/CreateDropGate"}],"description":"Gate the drop on a live event: fans must present a token from GET /drops/{dropId}/qr-token to claim. A SINGLE object, not an array, because a drop carries at most one event gate. OMIT the key for an ungated drop; an explicit null is rejected rather than read as \"no gate\". Requires capabilities.eventGate on GET /me, otherwise 422 feature_unavailable. Works on all three drop types. The gate object GET /drops/{dropId} returns can be resubmitted here verbatim.\n"},"perFanPerCardCap":{"type":"integer","minimum":1,"maximum":100,"nullable":true,"description":"CHOICE drops only. Max copies of any ONE card a single fan may claim. Omit for the server default (limits.choice.perFanPerCardCapDefault on GET /me). Independent of perFanTotalCap; when both are set, both bind. A cap larger than a card's supply is accepted and never binds. Rejected on any other drop type, and 0 is a 400 rather than a silent no-op. The maximum is limits.choice.perFanPerCardCapMax on GET /me (never above 100): a larger value is a 400 naming the maximum in force rather than a silently clamped one, because a read-back must never echo a cap that will not bind."},"perFanTotalCap":{"type":"integer","minimum":1,"maximum":50000,"nullable":true,"description":"CHOICE drops only. Max cards TOTAL a single fan may claim from this drop, across every card in it: 1 means pick any ONE card and that is your lot. Omit for no aggregate cap, which is how every drop published before this field behaves. Counts CLAIMS, not current holdings, so gifting a card away does not refund budget. A cap larger than the number of cards is accepted and never binds. Rejected on any other drop type, and 0 is a 400. The maximum is 50000, the most claimable copies a choice drop can hold; a larger value is a 400."}}},"CreateDropGate":{"type":"object","additionalProperties":false,"description":"Every field is optional and null means the same as omitting it, so the gate read back from GET /drops/{dropId} can be sent straight back. The response-side schema is DropGate, which carries the same four fields with every one required.\n","properties":{"type":{"type":"string","nullable":true,"enum":["event",null],"description":"Optional; event is the only gate type that exists, so omitting it, or sending null, means the same thing. Any other value is a 400. The literal null enum member is REQUIRED, not decorative: this contract is OpenAPI 3.0.3, where nullable:true beside an enum that lacks null still rejects null, and the gate read back from GET /drops/{dropId} is meant to be resubmittable verbatim."},"eventId":{"type":"string","nullable":true,"maxLength":128,"description":"1 to 128 characters of [A-Za-z0-9_-]. OMIT it and a STABLE id is derived from your creator id and the request's Idempotency-Key as evt_<32 hex>, so a retry of the same publish never mints a second event identity. Supply your own only when several drops must share one event.\n"},"eventName":{"type":"string","nullable":true,"maxLength":200,"description":"Human-readable event name, at most 200 characters, same character rules as the drop name. DEFAULTS TO THE DROP NAME, exactly as the app does. A blank string is rejected.\n"},"lockedMessage":{"type":"string","nullable":true,"maxLength":500,"description":"What fans who have not scanned are shown, at most 500 characters. Omit it, or send null or an empty string, and the drop stores no message.\n"}}},"DropAccepted":{"type":"object","additionalProperties":false,"required":["dropId","name","type","status","publishedVia","createdAt","pollAfterSeconds"],"description":"The 202 body of POST /drops. A strict subset of Drop plus pollAfterSeconds: every shared key has the same name, type and meaning, and its enum is a subset of Drop's. The publish is asynchronous, so this is the accepted receipt, not the drop. Poll GET /drops/{dropId} for the canonical Drop. Every key is always present.","properties":{"dropId":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","example":"processing","description":"processing on a first publish. It is NOT pinned to that one value: replaying an Idempotency-Key reports the drop's CURRENT stored status, so treat this as a snapshot and poll GET /drops/{dropId}, whose status is the normalized enum. An agent's drop that must wait for an admin's review is accepted as in_review instead of processing."},"type":{"type":"string","enum":["direct","pack","choice"]},"publishedVia":{"type":"string","example":"api_key","description":"Provenance tag; api_key drops are the target of reactive per-key moderation."},"createdAt":{"type":"integer","description":"Unix seconds. On a replay this is the ORIGINAL drop's creation time, not the time of the retry."},"pollAfterSeconds":{"type":"integer","description":"Facade-estimated seconds to wait before the first status poll (scales with supply). The only key in this schema that is not also a Drop key."}}},"Drop":{"type":"object","additionalProperties":false,"required":["dropId","creatorId","name","description","madeWithAiTools","coverImageUrl","coverThumbnailUrl","type","status","lifecycle","publishedVia","startsAt","endsAt","createdAt","updatedAt","perFanLimit","claimMode","totalSupply","claimUnit","printedSupply","reservedSupply","reserveRemaining","claimableSupply","claimedSupply","publicClaimedSupply","claimable","claimBlockedReason","claimRequiresEventToken","cards","packs","gate","collab","rarityDistribution","slotGenerationStatus","slotGeneration","moderationHold","reviewOutcome","publishErrorCode","publishErrorMessage","collectionMintAddress","likeCount","bookmarkCount","reshareCount","shareUrl","perFanPerCardCap","perFanTotalCap"],"description":"The canonical drop resource. Returned identically by GET /drops/{dropId}, PATCH /drops/{dropId}, POST /drops/{dropId}/pause, POST /drops/{dropId}/unpause and POST /drops/{dropId}/renew. Every key is always present; optionality is expressed as null or an empty array, never as an absent key. Owner-scoped: GET /drops/{dropId} answers 403 for a dropId that belongs to another creator, and pause, unpause and renew answer 404 for one. PATCH checks the drop's state before its owner: it answers 404 for another creator's live or paused drop whose window is still open, and 400 validation_failed for one that has ended or is still processing or publish_failed.","properties":{"dropId":{"type":"string"},"creatorId":{"type":"string","description":"Always your own creator id; every drop route is owner-scoped."},"name":{"type":"string"},"description":{"type":"string","nullable":true},"madeWithAiTools":{"type":"boolean","description":"True when the creator declared at publish that AI tools were used to make this drop; fans see an \"AI-assisted\" label. False when not declared, including every drop published before the field existed."},"coverImageUrl":{"type":"string","nullable":true,"description":"Null on a coverless drop, which app surfaces render as a 4-card mosaic."},"coverThumbnailUrl":{"type":"string","nullable":true,"description":"Server-derived _thumb.webp variant of coverImageUrl. Re-derived in the same write whenever coverImageUrl is replaced through PATCH, so the PATCH response already carries the new cover's thumbnail and never the old one; null when the cover is removed or no thumbnail can be derived (clients fall back to coverImageUrl)."},"type":{"type":"string","enum":["direct","pack","choice"]},"status":{"type":"string","enum":["processing","live","paused","ended","publish_failed","in_review","unknown","rejected"],"description":"The stored publication status, normalized. live means published, not claimable. Read claimable and claimBlockedReason, or compare startsAt, endsAt and claimedSupply against claimableSupply yourself. publish_failed is set by the backend enqueue path or by the stuck-drop sweeper. unknown is a corrupt or legacy row; read lifecycle instead. in_review: an agent's drop waiting for an admin's review. Fans cannot see it, nothing about it can change while it waits, and DELETE withdraws it. A PATCH naming name, description or coverImageUrl answers 403 forbidden with details.reason AGENT_CONTENT_LOCKED (that check comes first); any other PATCH, and pause, unpause and renew, answer 409 conflict with details.reason IN_REVIEW. To change it, withdraw it with DELETE and submit it again. rejected: an admin rejected an agent's drop that was waiting for review. Only that agent's own key reads it, from GET /drops/{dropId} alone (everyone else gets the usual answer for a deleted drop); reviewOutcome says why, and the drop's name, description, cover, cards and packs are gone. A rejected drop is final: publish a new drop instead."},"lifecycle":{"type":"string","enum":["publishing","publish_failed","draft","paused","ended","sold_out","upcoming","live","in_review","rejected"],"description":"The state the Gather app displays for this drop, computed from status, startsAt, endsAt and supply. Use this to mirror what a creator sees in the app; use claimable to answer whether a claim would succeed. The two can disagree on a legacy row whose endsAt is stored as 0. in_review is the one value the app never shows: an agent's drop waiting for an admin's review, invisible to fans; withdraw it with DELETE. rejected is likewise never shown by the app: an admin rejected an agent's drop; read reviewOutcome."},"publishedVia":{"type":"string","enum":["app","api_key"],"description":"Provenance tag; api_key marks a drop published through this API."},"startsAt":{"type":"string","format":"date-time","nullable":true,"description":"ISO-8601 UTC with a mandatory offset, second precision, e.g. 2026-08-01T18:00:00Z. Null only on a legacy row with no recorded start, which counts as already started."},"endsAt":{"type":"string","format":"date-time","nullable":true,"description":"ISO-8601 UTC with a mandatory offset, second precision. Null means open-ended."},"createdAt":{"type":"integer","description":"Unix seconds. Schedule fields are ISO-8601; bookkeeping timestamps are epoch seconds. The resource deliberately carries both representations."},"updatedAt":{"type":"integer","description":"Unix seconds."},"perFanLimit":{"type":"integer","nullable":true,"description":"Effective aggregate per-fan claim cap. Null for CHOICE, which uses per-card and optional aggregate caps instead. Read the canonical returned limits rather than inferring them."},"claimMode":{"type":"string","nullable":true,"enum":["random",null],"description":"DIRECT only; null for PACK and CHOICE, and null on any legacy row that does not store RANDOM."},"totalSupply":{"type":"integer","description":"Sum of cards[].supply, i.e. total EDITIONS. For a PACK drop this is NOT what fans claim; see claimableSupply."},"claimUnit":{"type":"string","enum":["edition","pack"],"description":"What one claim buys. pack for PACK drops, edition for DIRECT and CHOICE."},"printedSupply":{"type":"integer","nullable":true,"description":"The whole printed run, counted in claimUnit: the ceiling recorded at publish, BEFORE the reserve is subtracted. claimableSupply = printedSupply - reservedSupply. Null only on a legacy row with no recorded ceiling."},"reservedSupply":{"type":"integer","nullable":true,"description":"Copies withheld from the public pool for creator awards, counted in claimUnit; see POST /drops/{dropId}/award-tokens. Null means no reserve: every drop published before reserves existed, and any drop that declared none."},"reserveRemaining":{"type":"integer","nullable":true,"description":"Remaining award-issuance headroom: reservedSupply minus the slots held by pending and claimed awards (only a revoke returns a slot, so a claim never increases it). The same number the award-issuance response reports, on the canonical Drop so no join to the awards ledger is needed. Null exactly when the drop has no reserve; 0 means the reserve is fully committed."},"claimableSupply":{"type":"integer","description":"The PUBLIC pool, counted in claimUnit: printedSupply minus reservedSupply. This, not totalSupply, is the sold-out governor for public claims."},"claimedSupply":{"type":"integer","description":"Claim units already taken, counted in claimUnit. Counts EVERY mint, award redemptions included, so on a reserve-carrying drop it overstates public-pool consumption; gate public availability on publicClaimedSupply instead."},"publicClaimedSupply":{"type":"integer","description":"Public-pool consumption: claimedSupply minus the award redemptions minted from the reserve. THIS is the number to gate public availability on (publicClaimedSupply < claimableSupply); claimedSupply counts every mint, award redemptions included, so on a reserve-carrying drop it overstates public consumption. An award that fell back to the public pool is not subtracted (that mint consumed a public copy). Equal to claimedSupply on a drop with no reserve."},"claimable":{"type":"boolean","description":"Whether a claim on the WHOLE printed run would pass right now. Evaluated at response time: status is LIVE AND started AND not ended AND claimedSupply is below printedSupply. It does not account for a reserve: on a reserve-carrying drop the claim path refuses public claims with SOLD_OUT once publicClaimedSupply reaches claimableSupply (immediately for a drop reserved in full, whose claimableSupply is 0) while claimable can still read true, and GET /drops/{dropId}/qr-token answers 409 conflict, details.reason SOLD_OUT for such a drop. Gate public availability on publicClaimedSupply < claimableSupply. To recompute it from this body, parse startsAt and endsAt with Date.parse(...)/1000 first; they are ISO strings here, not numbers. An event-gated drop can be claimable true and still require a QR token; see claimRequiresEventToken."},"claimBlockedReason":{"type":"string","nullable":true,"enum":["not_live","not_started","ended","sold_out",null],"description":"Null exactly when claimable is true. Evaluated in that order, so a paused expired drop reports not_live."},"claimRequiresEventToken":{"type":"boolean","description":"True when the drop carries an EVENT gate; fans must present a token from GET /drops/{dropId}/qr-token. Not folded into claimable."},"cards":{"type":"array","items":{"$ref":"#/components/schemas/DropCard"}},"packs":{"type":"array","description":"Empty for DIRECT and CHOICE. packs[0].supply is the packCount you sent; packs[0].cardsPerPack is the cardsPerPack you sent.","items":{"$ref":"#/components/schemas/DropPack"}},"gate":{"allOf":[{"$ref":"#/components/schemas/DropGate"}],"nullable":true,"description":"The drop's event gate, or null. It carries the same four fields CreateDropRequest.gate accepts, so it can be resubmitted to POST /drops verbatim. null is a permitted value for this key; the key is always present."},"collab":{"allOf":[{"$ref":"#/components/schemas/DropCollab"}],"nullable":true,"description":"null is a permitted value for this key; the key is always present."},"rarityDistribution":{"allOf":[{"$ref":"#/components/schemas/RarityDistribution"}],"nullable":true,"description":"null is a permitted value for this key; the key is always present."},"slotGenerationStatus":{"type":"string","nullable":true,"enum":["pending","ready","stub","failed",null],"description":"Inventory pre-generation state, orthogonal to status. Null on legacy drops."},"slotGeneration":{"allOf":[{"$ref":"#/components/schemas/SlotGeneration"}],"nullable":true,"description":"Owner-only. The publish's slot-generation progress, computed by the backend at read time from the worker's progress row: poll GET /drops/{dropId} while status is processing and read percent. null with no progress row (a choice drop, a legacy drop, a publish whose generation has not started). Never present on the GET /drops shelf. null is a permitted value for this key; the key is always present."},"moderationHold":{"allOf":[{"$ref":"#/components/schemas/ModerationHold"}],"nullable":true,"description":"Owner-only. Set while Gather has the drop paused under a warning (Terms of Service, section 7): the creator's unpause and renew answer 409 moderation_hold until Gather reinstates or removes the drop, and so do PATCH and DELETE while the drop's window is still open (once its endsAt has passed they answer 400 validation_failed and 409 conflict, as for any ended drop), and the creator's remedy is the reply to info@gather.fan named in the DROP_WARNING notice by respondBy. null under no hold. Never present on the GET /drops shelf. null is a permitted value for this key; the key is always present."},"reviewOutcome":{"allOf":[{"$ref":"#/components/schemas/ReviewOutcome"}],"nullable":true,"description":"Owner-only. Why an admin rejected your agent's drop: set only when status is rejected, which only the agent's own key reads, from GET /drops/{dropId}. null on every other drop. Never present on the GET /drops shelf. null is a permitted value for this key; the key is always present."},"publishErrorCode":{"type":"string","nullable":true,"description":"Owner-only stable public diagnostic code for a failed publish. Null when no failure is reported; absent from list summaries."},"publishErrorMessage":{"type":"string","nullable":true,"description":"Owner-only safe human-readable guidance for a failed publish, without internal exception details. Null when no failure is reported; absent from list summaries."},"collectionMintAddress":{"type":"string","nullable":true,"description":"Solana mint address of the parent collection NFT. Null until the first mint lands."},"likeCount":{"type":"integer"},"bookmarkCount":{"type":"integer"},"shareUrl":{"type":"string"},"reshareCount":{"type":"integer","description":"How many fans have reshared this drop into their own followers Live Drops feeds. 0 on drops published before the feature."},"perFanPerCardCap":{"type":"integer","minimum":1,"nullable":true,"description":"CHOICE drops only, echoed back. Null when the drop carries none, in which case the server default (limits.choice.perFanPerCardCapDefault on GET /me) applies at claim time."},"perFanTotalCap":{"type":"integer","minimum":1,"nullable":true,"description":"CHOICE drops only, echoed back. Null when the drop carries no aggregate cap."}}},"DropCard":{"type":"object","additionalProperties":false,"required":["cardId","name","imageUrl","thumbnailUrl","backUrl","mediaType","durationSeconds","rarity","supply","mintedCount","sourceTemplateId","reusedTemplate","cardStyle","description","tags","metadataExtensions"],"properties":{"cardId":{"type":"string"},"name":{"type":"string"},"imageUrl":{"type":"string"},"thumbnailUrl":{"type":"string","nullable":true},"backUrl":{"type":"string","nullable":true},"mediaType":{"type":"string","enum":["image","gif","video","music"],"description":"The stored media type of this card's art, and it FOLLOWS the art. On a card THIS API authored: art you uploaded always reads back image, a GIF asset included, because v1 presigns jpg, jpeg, png, gif and webp and stores every one of them as image; gif, video and music are reachable only when the card reused a cardTemplateID of that media type and sent NO imageUrl of its own, which is the one case the template supplies the art. Send imageUrl alongside a cardTemplateID and the card is image again. REMEMBER WHOSE CARDS THESE ARE: GET /drops/{dropId} reads any drop the creator owns, including the ones they published in the app, and an app-authored card carries whichever of the four its own art had."},"durationSeconds":{"type":"integer","nullable":true},"rarity":{"type":"string","nullable":true,"enum":["COMMON","UNCOMMON","RARE","EPIC","LEGENDARY",null],"description":"Null for an UNTIERED card. All-or-nothing per drop."},"supply":{"type":"integer","description":"Editions of this card. On a PACK drop these are draw-pool editions, not packs."},"mintedCount":{"type":"integer"},"sourceTemplateId":{"type":"string","nullable":true,"description":"The card-template row this card came from. On a drop whose status is live, this can be passed back as cards[].cardTemplateID (note the request key's capital D) whatever reusedTemplate says: a card that reused nothing gets a synthetic tpl_<hash> built from the card itself, and going live publishes that row into your library, where GET /card-templates then lists it. It is NOT reusable before the drop goes live, or on a publish_failed drop, or once you archive it: all three are the same one 400 that names the id."},"reusedTemplate":{"type":"boolean","description":"PROVENANCE, not permission: true when you supplied this template yourself, false when the server built it from the card. It does not decide whether sourceTemplateId can be reused; the drop's status does."},"cardStyle":{"allOf":[{"$ref":"#/components/schemas/CardStyle"}],"nullable":true,"description":"Null means unstyled; the renderer falls back to cream chrome. null is a permitted value for this key; the key is always present."},"description":{"type":"string","nullable":true,"maxLength":500,"description":"Optional free-text description of THIS card, shown on the card detail screen in the app. Max 500 characters, deliberately not the drop's 2000: a card's description is copied onto every pre-generated slot row for that card, and a card can have 50,000 of them. NOT written to the on-chain cNFT metadata, which is permanent and has no edit path here. null is a permitted value; the key is always present."},"tags":{"type":"array","maxItems":20,"items":{"type":"string","maxLength":64},"description":"Optional free-text tags for theme grouping such as sports or tcg. Max 20 tags, 64 characters each. STORED AND DISPLAYED ONLY: there is no tag search surface yet. Not written on chain. Empty array when the card has none; the key is always present."},"metadataExtensions":{"type":"object","nullable":true,"additionalProperties":true,"description":"Optional opaque bag of card FACTS (custom rarity fields, per-card attributes) the typed fields cannot express. Send a JSON OBJECT, not a pre-serialized string. Max 4096 bytes once serialized. Distinct from cardStyle.styleExtensions, which is the same mechanism for STYLING. Not written on chain."}}},"CardStyle":{"type":"object","additionalProperties":false,"required":["skin","foil","motif","finishStyle","layout"],"description":"All four axes are required together; a partial object is rejected on write.","properties":{"skin":{"type":"string","enum":["STAGE","PAPER","BONE","LILAC","SUNSET","MINT","OBSIDIAN","ULTRAVIOLET"]},"foil":{"type":"string","enum":["NONE","RAINBOW","PRISMATIC","COSMOS","GOLD","CHROME","OIL_SLICK","LILAC"]},"motif":{"type":"string","enum":["NONE","SPARKLE","CRESCENT","DIAMOND","WAVE","SUN","HEXES","CHEVRONS","SPEED","HALFTONE"]},"finishStyle":{"type":"string","enum":["OVERLAY","ETCHED","CLEAN"],"description":"How the foil is applied; it only changes anything when foil is not NONE. OVERLAY shimmers the whole card including the photo, ETCHED confines the foil to the frame and leaves the photo clean. CLEAN appears only on READ: it is a value this API no longer accepts on a request (see CardStyleInput), and it is declared here because a row written before 2026-08-03, or by another surface, can still carry it."},"layout":{"type":"string","enum":["FRAMED","FRAMELESS",null],"description":"Whether the card draws its chrome. FRAMED is the three-zone card: a header strip carrying rarity and edition, the 2:3 art, and an info strip carrying the creator and drop name. FRAMELESS drops all of it and the art becomes the card, COVER-CROPPED: both layouts occupy the same elastic box (one card size everywhere), the art's full HEIGHT always shows and its SIDES are trimmed, about 13 percent of the art's width on large layouts and up to about 19 percent on the smallest, varying with the viewer's device and font scale. Upload is 2:3 for BOTH layouts and nothing is lost at rest; the crop is a rendering, and the stored 2:3 is what the mint carries. Author full-bleed, keeping anything that must stay readable inside the central ~81 percent of the width, and never bake chrome into the pixels. The four metadata items move to the card back. On a frameless card skin and motif do not render (neither has a surface) while foil and finishStyle still do. NULL MEANS FRAMED: this axis is newer than the four above, so a card published before it reads back as null rather than as a value.","nullable":true}}},"CardStyleInput":{"type":"object","additionalProperties":false,"required":["skin","foil","motif","finishStyle"],"description":"All four axes are required together; a partial object is rejected on write. Identical to CardStyle except on finishStyle, which accepts two of that schema's three members: CLEAN is readable and not writable.","properties":{"skin":{"type":"string","enum":["STAGE","PAPER","BONE","LILAC","SUNSET","MINT","OBSIDIAN","ULTRAVIOLET"]},"foil":{"type":"string","enum":["NONE","RAINBOW","PRISMATIC","COSMOS","GOLD","CHROME","OIL_SLICK","LILAC"]},"motif":{"type":"string","enum":["NONE","SPARKLE","CRESCENT","DIAMOND","WAVE","SUN","HEXES","CHEVRONS","SPEED","HALFTONE"]},"finishStyle":{"type":"string","enum":["OVERLAY","ETCHED"],"description":"How the foil is applied; it only changes anything when foil is not NONE. OVERLAY shimmers the whole card including the photo, ETCHED confines the foil to the frame and leaves the photo clean. THERE IS NO THIRD VALUE ON A REQUEST. A stored card can still read back as CLEAN (see CardStyle), but sending it here is a 400: it never did what its name promised, because every shipped phone build models only overlay and etched and falls back to OVERLAY on a value it does not know, so a CLEAN card showed a fan the FULL shimmer. To publish a genuinely flat card, send foil NONE with finishStyle OVERLAY."},"layout":{"type":"string","enum":["FRAMED","FRAMELESS"],"description":"Whether the card draws its chrome. OPTIONAL, and independent of the all-four-axes rule above: omitting it means FRAMED, which is what every card published before this axis existed is. FRAMELESS is the art alone with no chrome, cover-cropped into the same elastic box a framed card uses (sides trimmed ~13-19 percent of width, central ~81 percent safe; see CardStyle.layout), so skin and motif have no surface to paint and do not render on such a card; foil and finishStyle DO still apply, because foil's surface is the ring around the art, which on a frameless card is the card's own edge."}}},"CreateCardTemplateRequest":{"type":"object","additionalProperties":false,"required":["name","imageUrl"],"description":"A saved reusable card. Exactly one of defaultRarity or untiered is required alongside name and imageUrl. mediaType is always IMAGE and is not accepted. description, tags and metadataExtensions ARE authored here since the card-text release and are inherited by a card that reuses this template and sends none of its own. thumbnailUrl, backUrl and durationSeconds are readable on a template but cannot be authored, because the app's card studio cannot set them either.","properties":{"name":{"type":"string","minLength":1,"maxLength":25,"description":"REQUIRED, at most 25 UTF-8 BYTES. This API generates NO card names. Blank or whitespace-only counts as missing. The cap is the on-chain budget, not taste: a name mints as `<name> #<edition>` into a 32-byte Metaplex field and the largest edition suffix costs 7. Emoji cost 4 bytes each. A card that reuses this template inherits the name; a name that differs from it at publish is a 400 (templates are immutable), and an echoed name is measured against the 25-byte budget first, so a longer legacy name is inherited only by omitting name."},"imageUrl":{"type":"string","description":"REQUIRED. A publicUrl from POST /uploads presigned with purpose \"card\", whose bytes you have PUT and whose GET /uploads/{uploadId} status is valid. Card geometry applies: exactly 2:3 and at least 1080x1620. The same verification POST /drops runs on card art runs here, so a URL you never uploaded to, uploaded with purpose \"cover\", or overwrote after validation is refused."},"defaultRarity":{"type":"string","enum":["COMMON","UNCOMMON","RARE","EPIC","LEGENDARY"],"description":"The template's tier. MUTUALLY EXCLUSIVE WITH untiered, and exactly one of the two is required: neither is a 400 rather than a silent COMMON, because a tier is inherited by every future card that reuses this template and an agent cannot see the default a human sees on the chip. A reusing card inherits it only when the drop is tiered and the card omits rarity."},"untiered":{"type":"boolean","enum":[true],"description":"Save the card with NO tier. A MARK: send true, or omit the key. false and null are refused, because absence already has a spelling. MUTUALLY EXCLUSIVE WITH defaultRarity. Needs capabilities.untieredCards from GET /me; without it, send a defaultRarity."},"cardStyle":{"allOf":[{"$ref":"#/components/schemas/CardStyleInput"}],"description":"All four axes together, or omit the key for the same STAGE default the app's editor opens on (skin STAGE, foil NONE, motif NONE, finishStyle OVERLAY) and the same default a card with no template takes on POST /drops. A partial object is a 400. A card that reuses this template inherits this styling and CANNOT override it."},"description":{"type":"string","maxLength":500,"description":"Optional free-text description of THIS card, shown on the card detail screen in the app. Max 500 characters, deliberately not the drop's 2000: a card's description is copied onto every pre-generated slot row for that card, and a card can have 50,000 of them. NOT written to the on-chain cNFT metadata, which is permanent and has no edit path here."},"tags":{"type":"array","maxItems":20,"items":{"type":"string","maxLength":64},"description":"Optional free-text tags for theme grouping such as sports or tcg. Max 20 tags, 64 characters each. STORED AND DISPLAYED ONLY: there is no tag search surface yet. Not written on chain."},"metadataExtensions":{"type":"object","additionalProperties":true,"description":"Optional opaque bag of card FACTS (custom rarity fields, per-card attributes) the typed fields cannot express. Send a JSON OBJECT, not a pre-serialized string. Max 4096 bytes once serialized. Distinct from cardStyle.styleExtensions, which is the same mechanism for STYLING. Not written on chain."}}},"CardTemplateList":{"type":"object","required":["cardTemplates","nextCursor","filtered"],"additionalProperties":false,"properties":{"cardTemplates":{"type":"array","items":{"$ref":"#/components/schemas/CardTemplate"},"description":"May be empty on a valid non-final page. An empty array with a non-null nextCursor means keep paging; it never means the library is empty."},"nextCursor":{"type":"string","nullable":true,"description":"Null means the library is exhausted. This is the ONLY stop condition."},"filtered":{"type":"boolean","description":"True when this page is shorter than limit because archived or hidden rows were removed after the backend page was fetched. Not an error and not an end-of-list signal; keep paging with nextCursor."}}},"CardTemplate":{"type":"object","required":["cardTemplateId","name","description","mediaType","imageUrl","thumbnailUrl","backUrl","durationSeconds","defaultRarity","cardStyle","tags","usageCount","lastUsedAt","origin","originDropId","createdAt","updatedAt","metadataExtensions"],"additionalProperties":false,"properties":{"cardTemplateId":{"type":"string","maxLength":128,"pattern":"^[A-Za-z0-9_-]+$","description":"The template's id. NOTE THE CASING: this RESPONSE key is cardTemplateId, while the key you put on a card in POST /drops is cardTemplateID with a capital D. They are two different spellings of one id and the request rejects the response one as an unknown field."},"name":{"type":"string","minLength":1,"maxLength":200,"description":"Reused verbatim as the card name when you omit cards[].name. Legacy templates may exceed the 25-byte on-chain budget and are deliberately preserved; such a name mints truncated, exactly as it does in the app."},"description":{"type":"string","nullable":true,"maxLength":2000,"description":"Inherited at publish time: a card that reuses this template and sends no description of its own gets this one. Inheritance fills a gap, never overwrites what the card sends. Legacy rows may exceed the 500-character card cap; such a description is skipped at publish rather than truncated, exactly like one that fails the card-text charset rules."},"mediaType":{"type":"string","enum":["IMAGE","GIF","VIDEO","MUSIC","AUDIO","3D"],"description":"SIX values are reachable, from three writers, and only four of them can be published. IMAGE, VIDEO, AUDIO and 3D come from a template saved in the app's Card Studio, and POST /card-templates always saves IMAGE; GIF and MUSIC appear only on a template auto-created from a card you already published. Drops accept IMAGE, GIF, VIDEO and MUSIC, so an AUDIO or 3D template cannot supply a card's art. The rejection is UNCONDITIONAL: reusing such a template is a 400 before any slot is consumed, and you CANNOT recover it by sending your own imageUrl, because imageUrl beside a cardTemplateID is itself a 400 (a reused template is immutable). To publish that art, omit cardTemplateID entirely and send imageUrl as a new card, which means it does not inherit the template's name, backUrl or cardStyle."},"imageUrl":{"type":"string"},"thumbnailUrl":{"type":"string","nullable":true,"description":"Required at publish time for a VIDEO or MUSIC card. Only a VIDEO template can actually be missing one: the Card Studio saves a VIDEO template without a thumbnail, while a MUSIC template only ever comes from a card that already published and therefore already had both a thumbnail and a duration. A VIDEO template with a null thumbnailUrl cannot supply a card's art until it is fixed in the app, and sending your own imageUrl does NOT work around it: imageUrl beside a cardTemplateID is a 400 in its own right. Either fix the template in the app, or omit cardTemplateID and publish a new card from your own imageUrl."},"backUrl":{"type":"string","nullable":true},"durationSeconds":{"type":"integer","nullable":true,"minimum":0,"maximum":86400},"defaultRarity":{"type":"string","nullable":true,"enum":["COMMON","UNCOMMON","RARE","EPIC","LEGENDARY",null],"description":"Inherited by a reusing card only when rarityMode is tiered and the card omits rarity. Ignored entirely when rarityMode is untiered. Because it is neither inherited nor ignored by DEFAULT, a drop that omits rarityMode while no card carries a rarity and some template carries this is rejected as ambiguous: send rarityMode. A stored value outside the five tiers is refused before any slot is spent, exactly as an explicit one is."},"cardStyle":{"allOf":[{"$ref":"#/components/schemas/CardStyle"}],"nullable":true,"description":"Null on templates created before card styling shipped. Never partial: all four axes are stored together or not at all."},"tags":{"type":"array","maxItems":20,"items":{"type":"string","maxLength":64},"description":"Never null. Empty on rows that predate tags. Inherited at publish time: a card that reuses this template and sends no tags of its own gets these. Inheritance fills a gap, never overwrites what the card sends."},"usageCount":{"type":"integer","minimum":0,"description":"Distinct drops that reused this template. Several cards from one drop count once."},"lastUsedAt":{"type":"integer","nullable":true,"description":"Unix seconds."},"origin":{"type":"string","enum":["drop","library"],"description":"drop = auto-created when one of your drops published. library = created explicitly, in the app's Card Studio or through POST /card-templates."},"originDropId":{"type":"string","nullable":true},"createdAt":{"type":"integer","description":"Unix seconds."},"updatedAt":{"type":"integer","description":"Unix seconds."},"metadataExtensions":{"type":"object","nullable":true,"additionalProperties":true,"description":"Optional opaque bag of card FACTS (custom rarity fields, per-card attributes) the typed fields cannot express. Send a JSON OBJECT, not a pre-serialized string. Max 4096 bytes once serialized. Distinct from cardStyle.styleExtensions, which is the same mechanism for STYLING. Not written on chain."}}},"DropPack":{"type":"object","additionalProperties":false,"required":["packId","name","tier","designId","supply","mintedCount","cardsPerPack","coverImageUrl","eligibleRarities","guarantees","gate"],"properties":{"packId":{"type":"string"},"name":{"type":"string"},"tier":{"type":"string","nullable":true,"enum":["standard",null]},"designId":{"type":"string","nullable":true,"enum":["gather",null]},"supply":{"type":"integer","description":"Number of packs. This is the packCount from your request."},"mintedCount":{"type":"integer"},"cardsPerPack":{"type":"integer","description":"This is the cardsPerPack from your request."},"coverImageUrl":{"type":"string","nullable":true},"eligibleRarities":{"type":"array","items":{"type":"string","enum":["COMMON","UNCOMMON","RARE","EPIC","LEGENDARY"]},"description":"Empty is CORRECT for an untiered pack; the draw falls back to the full tier order."},"guarantees":{"type":"array","items":{"$ref":"#/components/schemas/RarityGuarantee"},"description":"Always empty today; neither producer authors guarantees."},"gate":{"allOf":[{"$ref":"#/components/schemas/DropGate"}],"nullable":true,"description":"Read-only pack-level gate. It does NOT set claimRequiresEventToken; only the drop-level gate does. null is a permitted value for this key; the key is always present."}}},"RarityGuarantee":{"type":"object","additionalProperties":false,"required":["minRarity","count"],"properties":{"minRarity":{"type":"string","enum":["COMMON","UNCOMMON","RARE","EPIC","LEGENDARY"]},"count":{"type":"integer"}}},"DropGate":{"type":"object","additionalProperties":false,"required":["type","eventId","eventName","lockedMessage"],"properties":{"type":{"type":"string","enum":["event"]},"eventId":{"type":"string","nullable":true},"eventName":{"type":"string","nullable":true},"lockedMessage":{"type":"string","nullable":true}}},"QrToken":{"type":"object","additionalProperties":false,"required":["dropId","token","expiresAt","expiresInSeconds"],"description":"The 200 of GET /drops/{dropId}/qr-token. Short-lived and single-purpose: display it, do not persist it.\n","properties":{"dropId":{"type":"string","description":"Echoed from the path, for correlation."},"token":{"type":"string","description":"The signed token, a 3-part JWT-style string. Encode it into the QR code EXACTLY as returned; the scanning fan's app passes it through unchanged as its mint authorization. Never log or store it.\n"},"expiresAt":{"type":"integer","description":"When the token stops being accepted, as UNIX SECONDS. It is deliberately not the ISO-8601 form the drop schedule uses: this value mirrors the expiry claim signed inside the token itself and has to stay comparable with it.\n"},"expiresInSeconds":{"type":"integer","description":"expiresAt minus the server's clock at response time, never negative. Use this rather than differencing expiresAt against your own clock. It is 12 or less.\n"}}},"DropHolding":{"type":"object","additionalProperties":false,"required":["fanRef","displayName","avatarUrl","cardIds","cardsOwned","totalCards","completionOrder","completedAt"],"description":"One collector's current holdings in a drop. For API-key callers fanRef is a stable per-creator pseudonym (a fanAlias like fan_abc123defg4) and displayName and avatarUrl are null: raw fan identity never crosses this API. The same fan keeps one alias across all of this creator's drops, so it is a stable join key, and it is accepted back as the recipient of POST /drops/{dropId}/award-tokens.\n","properties":{"fanRef":{"type":"string","description":"The collector: a stable per-creator fanAlias for API-key callers, never a raw uid."},"displayName":{"type":"string","nullable":true,"description":"Always null for API-key callers."},"avatarUrl":{"type":"string","nullable":true,"description":"Always null for API-key callers."},"cardIds":{"type":"array","items":{"type":"string"},"description":"Distinct card design ids (the cardId of GET /drops/{dropId} cards[]) this collector currently holds, sorted. A card gifted away is gone from here: holdings are CURRENT, not historical."},"cardsOwned":{"type":"integer","description":"cardIds.length: distinct designs held right now."},"totalCards":{"type":"integer","description":"Distinct designs in the drop, the set-completion denominator."},"completionOrder":{"type":"integer","nullable":true,"description":"1-based order in which this collector completed the set; null while incomplete. A completer keeps their order even after gifting cards away: historical completion is a fact."},"completedAt":{"type":"integer","nullable":true,"description":"Claim-time completion instant, unix seconds; null while incomplete."}}},"DropHoldings":{"type":"object","additionalProperties":false,"required":["items","totalCards","totalCollectors","completerCount","nextToken","partial","completionsFinalUpTo"],"description":"The 200 of GET /drops/{dropId}/holdings. Sorted completers-first in completion order, then by cardsOwned descending. The drop's own creator never appears: their claims do not rank in their fan surface.\n","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/DropHolding"}},"totalCards":{"type":"integer","description":"Distinct designs in the drop."},"totalCollectors":{"type":"integer","description":"Collectors across the WHOLE drop, not this page: current holders plus completers who no longer hold cards."},"completerCount":{"type":"integer","nullable":true,"description":"How many collectors have completed the set, across the whole drop. NULL means UNKNOWN: the completers read failed and this response is a holders-only view (every completionOrder is null, totalCollectors counts holders only, completionsFinalUpTo is null, and nextToken is withheld)."},"nextToken":{"type":"string","nullable":true,"description":"Opaque page cursor; null when this is the last page. Echo it back verbatim as ?nextToken=."},"partial":{"type":"boolean","description":"True when this page is incomplete in ANY of: the holder scan aborted early, profile enrichment was skipped, the completers list was truncated, or the completers read failed outright (that last case also nulls completerCount and completionsFinalUpTo). Retry rather than trusting the totals as final, and NEVER page onward from a partial response: a request that arrives with a nextToken while the completers read is down is refused with a retryable 503 rather than served as a misaligned page."},"completionsFinalUpTo":{"type":"integer","nullable":true,"description":"Same watermark GET /drops/{dropId}/completions publishes: completionOrder for completions at or before this instant is final under normal automatic delivery (a Gather-side recovery after a backend incident excepted); a revocation can still remove a rank. Null whenever the completers read failed (no finality is claimed over a page whose ranks are all null); on null, fall back to the 15-minute wall-clock rule after a healthy re-poll."}}},"DropCompletion":{"type":"object","additionalProperties":false,"required":["fanRef","displayName","avatarUrl","completionOrder","completedAt","recordedAt","totalCards"],"description":"One set-completion event. Identity follows the same rule as DropHolding: fanRef is the per-creator fanAlias for API-key callers, and the display fields are null.\n","properties":{"fanRef":{"type":"string","description":"The collector: a stable per-creator fanAlias for API-key callers, never a raw uid."},"displayName":{"type":"string","nullable":true,"description":"Always null for API-key callers."},"avatarUrl":{"type":"string","nullable":true,"description":"Always null for API-key callers."},"completionOrder":{"type":"integer","description":"1-based completion order across the whole drop as this feed numbers it. A page without a cursor numbers from 1 exactly. On a resume, completions past the newest one delivered so far (the one the cursor resumes after) continue the cursor's numbering, and a re-delivered or late completion that sorts before it is numbered back from it, so it never pushes later numbers up. Ranks on a resumed chain can shift either way. A late arrival numbered back this way, and every completion the same chain of resumes delivers after it, can sit below its true rank. A revocation does the opposite: once a completion the chain already delivered is revoked, the completions it delivers next can sit above their true rank (a and b delivered as 1 and 2, a revoked, the next completer arrives as 3 although it is now second). A re-delivery can come back with a different completionOrder than it was first delivered with. GET /drops/{dropId}/holdings and a fresh listing without a cursor are authoritative for rank."},"completedAt":{"type":"integer","nullable":true,"description":"The claim-time completion instant (unix seconds), which IS the order key."},"recordedAt":{"type":"integer","nullable":true,"description":"When the async worker recorded the completion. Descriptive only; never award on it, completedAt is the provable instant."},"totalCards":{"type":"integer","nullable":true,"description":"Distinct designs in the drop at completion time; null on rows that predate the field."}}},"DropCompletions":{"type":"object","additionalProperties":false,"required":["items","nextToken","completionsFinalUpTo"],"description":"The 200 of GET /drops/{dropId}/completions. nextToken is a RESUME CURSOR, not a has-more flag: a page that delivers a completion past the newest one delivered so far advances it to its last row, any other page keeps the position, and an EMPTY items page means caught up (on a drop with 25,000 or more completions inside fifteen minutes it can also mean the poll used up its read budget; poll again later either way). Poll again later with the nextToken this response RETURNED: it is re-minted on every response that resumed from a cursor, an empty page included (same position, with a fresh freshness watermark or, while late completions are being replayed, how far that replay got), and a previously held cursor is still accepted. Never compare cursors to detect caught-up; use items: []. Null only ever means start from the beginning (a first poll that finds nothing returns null). Revoked completions are deleted from the feed, so a row you already consumed can describe a completion that later un-happened; re-list periodically if you need exactness.\n","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/DropCompletion"}},"nextToken":{"type":"string","nullable":true,"description":"The resume cursor. Echo it back verbatim; null only ever means start from the beginning."},"completionsFinalUpTo":{"type":"integer","nullable":true,"description":"Finality watermark (unix seconds): no completion with completedAt at or before this instant can still be recorded through normal automatic delivery, so the set of completions at or before it is settled. It describes the drop, not your cursor: a chain of resumes that is behind, or partway through replaying late completions, can still deliver some of them on later pages, and any of them can come back as a re-delivery. Take that settled set and its ranks from GET /drops/{dropId}/holdings or a fresh listing without a cursor, not from a resumed page's completionOrder, because ranks on a resumed chain can shift: a late arrival on a resumed page is numbered back from the cursor and can sit below its true rank, and so can the completions after it on that chain of resumes, while once a completion the chain already delivered is revoked the ones it delivers next can sit above theirs. The rare exception is a Gather-side recovery after a backend incident, which can re-deliver older completions; a revocation can still delete a row at any time. If it is ever null, fall back to the 15-minute wall-clock rule."}}},"DryRunResult":{"type":"object","additionalProperties":false,"required":["dryRun","wouldPublish","checks"],"description":"The 200 of POST /drops with X-Dry-Run: true. Every VALIDATION rejection a real publish would earn before its daily slot is charged is reproduced verbatim by a dry-run, so a 200 here means the free checks passed. The one pre-charge family deliberately NOT reproduced is the Idempotency-Key's own state (reused-with-different-body 409, in-progress 409, burned key, idempotent replay): a dry-run never reads or consumes the key, precisely so the real publish can still use it, and checks.notValidated names this.","properties":{"dryRun":{"type":"boolean","description":"Always true."},"wouldPublish":{"$ref":"#/components/schemas/DryRunWouldPublish"},"checks":{"$ref":"#/components/schemas/DryRunChecks"}}},"DryRunWouldPublish":{"type":"object","additionalProperties":false,"required":["name","type","description","madeWithAiTools","coverImageUrl","cards","claimUnit","printedSupply","reservedSupply","claimableSupply","totalCardCopies","perFanLimit","packCount","cardsPerPack","startsAt","endsAt","gate","rarityDistribution","perFanPerCardCap","perFanTotalCap"],"description":"The resolved drop: hydrated card names and art, the computed per-card supplies, and the printed/reserved/claimable split, exactly as a real publish of the same body would create it. SHAPE RULE: every field shared with the Drop read-back carries the read-back's vocabulary (the same gate object, ISO-8601 dates, the five-key lowercase rarityDistribution, sourceTemplateId on cards), so a preview diffs against a later read-back in values only, never in shape.","properties":{"name":{"type":"string"},"type":{"type":"string","enum":["direct","pack","choice"]},"description":{"type":"string","nullable":true},"madeWithAiTools":{"type":"boolean","description":"The madeWithAiTools value the drop would publish with; false when omitted."},"coverImageUrl":{"type":"string","nullable":true,"description":"Null when the drop is coverless; absence is preserved, no card art is promoted."},"cards":{"type":"array","items":{"$ref":"#/components/schemas/DryRunCard"}},"claimUnit":{"type":"string","enum":["edition","pack"],"description":"The unit printedSupply, reservedSupply and claimableSupply count in, same vocabulary as the drop read-back. Pack drops print PACKS while cards[].supply are card COPIES; totalCardCopies is the copies-side sum so both sides of the arithmetic are on the page."},"printedSupply":{"type":"integer","description":"What the drop prints: total card copies for direct and choice, whole packs for pack."},"reservedSupply":{"type":"integer","description":"Copies (direct) or whole packs (pack) withheld from public claiming, awardable only through award tokens. 0 when the body carries no reserve."},"claimableSupply":{"type":"integer","description":"printedSupply minus reservedSupply: what fans can actually claim. Every floor and ceiling is measured against THIS number."},"totalCardCopies":{"type":"integer","description":"Sum of cards[].supply, in card copies. Equals printedSupply on edition drops and packCount x cardsPerPack on pack drops; totalSupply bodies resolve to exactly this."},"perFanLimit":{"type":"integer","nullable":true,"description":"Null for choice drops, whose binding cap is per card, not aggregate."},"packCount":{"type":"integer","nullable":true,"description":"Pack drops only; null otherwise."},"cardsPerPack":{"type":"integer","nullable":true,"description":"Pack drops only; null otherwise."},"startsAt":{"type":"string","format":"date-time","nullable":true,"description":"ISO-8601 UTC, the read-back format; null when unscheduled."},"endsAt":{"type":"string","format":"date-time","nullable":true,"description":"ISO-8601 UTC, the read-back format; null when open-ended."},"gate":{"allOf":[{"$ref":"#/components/schemas/DropGate"}],"nullable":true,"description":"The assembled event gate in the READ-BACK shape (round-trippable into a new POST), including the eventId the publish would derive from your Idempotency-Key: send the same key on the real publish and this exact eventId is the one it mints. Null when the body carries no gate."},"rarityDistribution":{"allOf":[{"$ref":"#/components/schemas/RarityDistribution"}],"description":"Per-tier copy totals over the RESOLVED rarities, in the read-back shape: all five lowercase keys, zeros included; an untiered drop is all zeros."},"perFanPerCardCap":{"type":"integer","minimum":1,"maximum":100,"nullable":true,"description":"CHOICE drops only: the per-card cap the real publish would store, exactly as GET /drops/{dropId} will echo it. Null when the body sends none (the server default then applies at claim time) and on every other drop type."},"perFanTotalCap":{"type":"integer","minimum":1,"nullable":true,"description":"CHOICE drops only: the aggregate cap the real publish would store. Null when the body sends none (no aggregate cap) and on every other drop type."}}},"DryRunCard":{"type":"object","additionalProperties":false,"required":["name","rarity","supply","imageUrl","sourceTemplateId"],"description":"One resolved card: the name and art after template hydration, the tier after rarity resolution, and the copies the distribution engine allocated to it.","properties":{"name":{"type":"string"},"rarity":{"type":"string","nullable":true,"description":"Null on untiered cards."},"supply":{"type":"integer"},"imageUrl":{"type":"string"},"sourceTemplateId":{"type":"string","nullable":true,"description":"The reused template, in the READ-BACK spelling: the cardTemplateID you sent is what the backend stores as sourceTemplateID. Null on cards published from a fresh imageUrl."}}},"DryRunChecks":{"type":"object","additionalProperties":false,"required":["validated","notValidated"],"description":"What this preview did and did not prove. A dry-run 200 is necessary, not sufficient: everything under notValidated is only settled by the real publish.","properties":{"validated":{"type":"array","items":{"type":"string"}},"notValidated":{"type":"array","items":{"type":"string"}}}},"AwardToken":{"type":"object","additionalProperties":false,"required":["token","expiresAt","jti","recipient","reserveRemaining"],"description":"The 200 of POST /drops/{dropId}/award-tokens: a durable award, hard-reserved at issuance, plus a single-use claim token for it. The fan claims with one tap from the in-app award inbox, forever (the award never expires); on an EVENT-GATED drop the token can also be rendered as a QR for a live ceremony, which is the only way to redeem on an older Gather app version that has no award inbox.\n","properties":{"token":{"type":"string","description":"The signed 3-part token. The fan's one-tap inbox claim never needs it, but on an event-gated drop it renders as a QR for a live ceremony (encode it EXACTLY as returned); only the named fan can redeem it, and redemption consumes it atomically with the claim, drawing from the drop's reserved copies. A replay with the same Idempotency-Key and body returns this identical string, with the original jti and expiresAt. Never log or store it."},"expiresAt":{"type":"integer","description":"When the RETURNED TOKEN stops being accepted, as UNIX SECONDS; it mirrors the expiry claim signed inside the token. The AWARD does not expire with it: the in-app inbox re-signs a fresh carrier on every read."},"jti":{"type":"string","description":"The token's unique id. Consumption is recorded against it, so one jti can never claim twice. Safe to log for correlation, unlike the token."},"recipient":{"type":"string","description":"Echoed as you sent it. API-key callers are alias-only (a raw uid at issuance is a hard 400), so this always carries the fanAlias. The token is bound to the resolved fan, not to this spelling of them."},"reserveRemaining":{"type":"integer","nullable":true,"description":"Reserved copies not yet committed to a winner, EXACT under the hard reservation: issuance transactionally holds a slot (pending + claimed <= reservedSupply), so this is reservedSupply minus held after this issuance. Awards never expire, so only a revoke returns a slot. Null when the count could not be read. On an Idempotency-Key replay this is the count the ORIGINAL issuance returned, not a fresh read; it is null when that count was not recorded (an award issued before this release, a replay racing the original request, or a failed best-effort store), so keep tolerating null on replays."}}},"DropAward":{"type":"object","additionalProperties":false,"required":["jti","recipient","status","issuedAt","expiresAt","claimedAt","revokedAt","memo"],"description":"One issued award in a drop's ledger, with its status derived at read time: pending, claimed, or revoked. Claimed beats a racing revoke (a minted card is a fact, even if the revoke stamped the ledger). recipient follows the same identity rule as holdings: a stable per-creator fanAlias for API-key callers, never a raw uid.\n","properties":{"jti":{"type":"string","description":"The award's unique id; pass it to DELETE /drops/{dropId}/awards/{jti} to revoke."},"recipient":{"type":"string","nullable":true,"description":"The fanAlias the award was issued to (fan_...). Null only when alias enrichment failed for an app-issued row."},"status":{"type":"string","enum":["pending","claimed","revoked"],"description":"Derived at read time, never stored. pending has no time bound: the entitlement outlives its issued token and ends only by claim or revoke."},"issuedAt":{"type":"integer","nullable":true,"description":"When the award was issued, unix seconds."},"expiresAt":{"type":"integer","nullable":true,"description":"When the issued TOKEN's scan window closes (unix seconds), descriptive only: the award itself does not expire when it passes, and the in-app claim keeps working."},"claimedAt":{"type":"integer","nullable":true,"description":"When the token was redeemed, unix seconds. Null unless status is claimed."},"revokedAt":{"type":"integer","nullable":true,"description":"When the award was revoked, unix seconds. Null unless it was."},"memo":{"type":"string","nullable":true,"description":"The issuer's justification snapshot, stored verbatim at issuance. Never shown to fans."}}},"DropAwards":{"type":"object","additionalProperties":false,"required":["items","pendingCount","claimedCount","revokedCount","partial"],"description":"The 200 of GET /drops/{dropId}/awards: the award ledger for one drop, newest first. With NEITHER limit nor nextToken in the query (the original single-page form) the body carries exactly the five keys items, pendingCount, claimedCount, revokedCount and partial: the newest 500 rows, with partial: true when older rows exist and no cursor to reach them. Sending limit or nextToken (even an empty nextToken) opts into paging: at most limit rows (default and maximum 500), plus nextToken (null on the last page) and countsScope: page. To read a ledger longer than 500 rows, send limit (for example limit=500) and follow nextToken. The three counts always describe the returned rows only.\n","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/DropAward"}},"pendingCount":{"type":"integer","description":"Count on this response page only."},"claimedCount":{"type":"integer","description":"Count on this response page only."},"revokedCount":{"type":"integer","description":"Count on this response page only."},"partial":{"type":"boolean","description":"True when more ledger rows exist beyond this page. On a paged request follow nextToken; the unpaged form has no cursor, so repeat the request with limit to page."},"nextToken":{"type":"string","nullable":true,"description":"Present only when the request carried limit or nextToken. Echo it verbatim as ?nextToken= for the next page; null on the last page."},"countsScope":{"type":"string","enum":["page"],"description":"Present only when the request carried limit or nextToken. Always page: the three counts describe this page's rows."}}},"AwardRevoked":{"type":"object","additionalProperties":false,"required":["revoked","jti"],"description":"The 200 of DELETE /drops/{dropId}/awards/{jti}. There is no revoked: false case; a refusal is an error status instead: 404 for an unknown, deleted or purged drop or an unknown jti, 409 with details.reason ALREADY_CLAIMED, ALREADY_REVOKED or RESERVE_UNVERIFIABLE, and a retryable 503 temporarily_unavailable. A pending award on a drop under a moderation hold or restriction still revokes normally.\n","properties":{"revoked":{"type":"boolean","description":"Always true on a 200."},"jti":{"type":"string","description":"The revoked award, echoed for correlation."}}},"DropCollab":{"type":"object","additionalProperties":false,"required":["creatorId","message"],"description":"Read-only in v1; the API cannot author a collaboration.","properties":{"creatorId":{"type":"string"},"message":{"type":"string","nullable":true}}},"RarityDistribution":{"type":"object","additionalProperties":false,"required":["common","uncommon","rare","epic","legendary"],"description":"Per-tier SUPPLY totals (copies), not card counts. All five keys are zero on an untiered drop. Keys are lowercase map keys, deliberately unlike the uppercase rarity enum.","properties":{"common":{"type":"integer"},"uncommon":{"type":"integer"},"rare":{"type":"integer"},"epic":{"type":"integer"},"legendary":{"type":"integer"}}},"ModerationHold":{"type":"object","additionalProperties":false,"required":["category","respondBy","warnedAt","flagID","templateIDs"],"properties":{"category":{"type":"string","description":"Why the drop was paused, as the creator was told: ILLEGAL_CONTENT, COPYRIGHT, NON_CONSENSUAL_IMAGERY, IMPERSONATION_OR_FRAUD or OTHER_TERMS_VIOLATION; a string rather than an enum so a value added later still parses."},"respondBy":{"type":"integer","nullable":true,"description":"Unix seconds, the reply-by instant the creator was given: 23:59:59 UTC of the day that falls the given number of business days after the warning, so every surface names the same UTC calendar day."},"warnedAt":{"type":"integer","nullable":true,"description":"Unix seconds, when the warning was written."},"flagID":{"type":"string","nullable":true,"description":"The design flag the hold belongs to: Gather flags one or many of your DESIGNS (card templates) and every drop of yours that uses one is paused under the same flag, with one DROP_WARNING notification. Null on a hold that names this drop alone."},"templateIDs":{"type":"array","items":{"type":"string"},"description":"The flagged designs THIS drop uses (card template ids), under a design flag; empty on a hold that names this drop alone. Only these designs' media is veiled (plus this drop's cover when Gather acted on this drop directly); the rest of the drop stays as it was."}},"description":"A moderation hold, owner-only. Gather paused the drop with a warning and only Gather lifts it; while it stands the drop's media is served as an under-review placeholder, and the creator's unpause and renew answer 409 moderation_hold, and so do PATCH /drops/{dropId} and DELETE while the drop's window is still open (pausing it again is then a 200 no-op). Once its endsAt has passed, PATCH and pause answer 400 validation_failed and DELETE 409 conflict, as for any ended drop. The holdings, completions and awards reads and the award revoke keep working. A warning can cover multiple designs: one flag can pause several drops (every drop that uses a flagged design), and a reinstate returns each of them to the status it had before the warning."},"ReviewOutcome":{"type":"object","additionalProperties":false,"required":["category","agentMessage","decidedAt"],"properties":{"category":{"type":"string","description":"Why the drop was rejected: ILLEGAL_CONTENT, COPYRIGHT, NON_CONSENSUAL_IMAGERY, IMPERSONATION_OR_FRAUD, OTHER_TERMS_VIOLATION, SPAM, NEEDS_CHANGES or EXPIRED_BEFORE_REVIEW. EXPIRED_BEFORE_REVIEW means its planned end passed while it waited. A string rather than an enum so a category added later still parses."},"agentMessage":{"type":"string","description":"The admin's message to you, 20 to 240 characters: what to change before you publish again."},"decidedAt":{"type":"integer","nullable":true,"description":"Unix seconds, when the admin decided."}},"description":"An admin's rejection of an agent's drop, as the agent reads it. The drop is final: it cannot be edited, resubmitted or deleted (DELETE answers 404, like any deleted drop); publish a new drop instead. The webhook drop.rejected carries the same category and agentMessage."},"SlotGeneration":{"type":"object","additionalProperties":false,"required":["status","completedBatches","totalBatches","percent","startedAt","updatedAt"],"properties":{"status":{"type":"string","enum":["pending","ready","stub","failed"],"description":"The drop's slotGenerationStatus at read time."},"completedBatches":{"type":"integer","description":"Batches of inventory rows written so far."},"totalBatches":{"type":"integer","description":"Batches the publish needs; 0 until the worker has planned it."},"percent":{"type":"integer","minimum":0,"maximum":100,"description":"floor(completedBatches / totalBatches * 100). 0 with no batches yet; 100 only when status is ready (every batch written but not yet flipped reads 99); failed freezes it where it stopped, and publishErrorCode says why."},"startedAt":{"type":"integer","nullable":true,"description":"Unix seconds, when the worker started on this publish; null on a row that never recorded it."},"updatedAt":{"type":"integer","nullable":true,"description":"Unix seconds, the last batch completion."}},"description":"The publish's slot-generation progress, owner-only. Under the slot worker's write cap a 35,000-edition publish takes about 60 to 90 seconds when no batch is retried, longer with retries and while other creators publish at the same time (every publish shares one queue), so poll GET /drops/{dropId} and read percent rather than assume seconds."},"DropSummary":{"type":"object","additionalProperties":false,"required":["dropId","name","type","status","lifecycle","coverImageUrl","startsAt","endsAt","createdAt","claimUnit","claimableSupply","claimedSupply","publicClaimedSupply","claimable","claimBlockedReason","claimRequiresEventToken","shareUrl"],"description":"A named subset of Drop for the drops shelf. Every key has the identical name, type and nullability as in Drop, and its enum is a subset of Drop's. Owner-only diagnostics (publishedVia, slotGenerationStatus, slotGeneration, publishErrorCode, publishErrorMessage) are never present here.","properties":{"dropId":{"type":"string"},"name":{"type":"string"},"type":{"type":"string","enum":["direct","pack","choice"]},"status":{"type":"string","enum":["processing","live","paused","ended","publish_failed","in_review","unknown","rejected"],"description":"rejected never appears on the shelf: a rejected drop is not listed."},"lifecycle":{"type":"string","enum":["publishing","publish_failed","draft","paused","ended","sold_out","upcoming","live","in_review","rejected"],"description":"Needed here because status alone cannot distinguish upcoming from live. rejected never appears on the shelf: a rejected drop is not listed."},"coverImageUrl":{"type":"string","nullable":true},"startsAt":{"type":"string","format":"date-time","nullable":true},"endsAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"integer","description":"Unix seconds."},"claimUnit":{"type":"string","enum":["edition","pack"]},"claimableSupply":{"type":"integer"},"claimedSupply":{"type":"integer"},"publicClaimedSupply":{"type":"integer","description":"Public-pool consumption: claimedSupply minus the award redemptions minted from the reserve. THIS is the number to gate public availability on (publicClaimedSupply < claimableSupply); claimedSupply counts every mint, award redemptions included, so on a reserve-carrying drop it overstates public consumption. An award that fell back to the public pool is not subtracted (that mint consumed a public copy). Equal to claimedSupply on a drop with no reserve."},"claimable":{"type":"boolean"},"claimBlockedReason":{"type":"string","nullable":true,"enum":["not_live","not_started","ended","sold_out",null]},"claimRequiresEventToken":{"type":"boolean"},"shareUrl":{"type":"string"}}},"DropList":{"type":"object","required":["drops","nextCursor","partial"],"description":"The 200 body of GET /drops. All three keys are always present: an exhausted page carries nextCursor: null and an empty page carries drops: [], never an absent key.","properties":{"drops":{"type":"array","items":{"$ref":"#/components/schemas/DropSummary"}},"nextCursor":{"type":"string","nullable":true},"partial":{"type":"boolean","description":"True when the backend returned a short page for latency; keep paging with nextCursor."}}},"DropDeleted":{"type":"object","additionalProperties":false,"required":["dropId","deleted"],"description":"The 200 body of DELETE /drops/{dropId}. deleted is always true; the failure cases are 404 and 409, never a 200 carrying deleted: false.","properties":{"dropId":{"type":"string"},"deleted":{"type":"boolean"}}},"PinnedDrop":{"type":"object","additionalProperties":false,"required":["dropId"],"description":"The creator's profile pin, a singleton. One row per creator, so pinning a second drop replaces the first.","properties":{"dropId":{"type":"string","nullable":true,"description":"The drop currently pinned to this creator's profile, or null. Raw stored pointer: a deleted or hidden drop still appears here and renders as no pin publicly."}}},"UploadStatusBatch":{"type":"object","required":["items"],"properties":{"items":{"type":"array","description":"One entry per DISTINCT requested id, in request order. items[i].uploadId always equals the id requested.","items":{"$ref":"#/components/schemas/UploadStatus"}}}},"Webhook":{"type":"object","required":["id","url","events","enabled","createdAt","updatedAt","secretVersion"],"properties":{"id":{"type":"string","pattern":"^wh_[a-f0-9]{32}$"},"url":{"type":"string","format":"uri"},"events":{"type":"array","items":{"type":"string","enum":["drop.live","drop.publish_failed","drop.paused","drop.ended","drop.deleted","drop.in_review","drop.approved","drop.rejected"]}},"enabled":{"type":"boolean"},"createdAt":{"type":"integer"},"updatedAt":{"type":"integer"},"secretVersion":{"type":"integer"},"previousSecretExpiresAt":{"type":"integer"}}},"WebhookSecretResult":{"allOf":[{"$ref":"#/components/schemas/Webhook"},{"type":"object","properties":{"signingSecret":{"type":"string","description":"Secret returned at creation/rotation. Store securely. Create replay can recover it for ten minutes; ordinary reads never return it."},"idempotentReplay":{"type":"boolean"}}}]},"WebhookEvent":{"type":"object","description":"One drop lifecycle event, as delivered in a webhook body and stored on its delivery. An event fires only when a drop's STORED status changes to a different public status: drop.live when it becomes live (a publish completing, or an unpause), drop.paused (paused by you, or by Gather under a moderation hold), drop.publish_failed, drop.in_review when an agent's drop is submitted and waits for an admin's review (agent accounts only, and only for a subscription that lists it), drop.approved when an admin approved the agent's drop that was waiting for review; it is processing now and drop.live follows when it goes live (agent accounts only, and only for a subscription that lists it), drop.rejected when an admin rejected the agent's drop that was waiting for review, with data.category and data.agentMessage saying why (agent accounts only, and only for a subscription that lists it; never also drop.deleted, and an agent's own withdraw is drop.deleted), drop.deleted (deleted by you or removed by Gather; at most one per drop), and drop.ended only on a stored change to ended. A drop whose endsAt passes keeps its stored status and emits nothing, and so does a scheduled drop whose startsAt arrives: read lifecycle from GET /drops/{dropId} for those. Delivery is at least once; deduplicate on id (the Gather-Webhook-Id header).","required":["id","type","createdAt","apiVersion","data"],"properties":{"id":{"type":"string"},"type":{"type":"string","enum":["drop.live","drop.publish_failed","drop.paused","drop.ended","drop.deleted","drop.in_review","drop.approved","drop.rejected"]},"createdAt":{"type":"integer","description":"Unix seconds."},"apiVersion":{"type":"string","enum":["v1"]},"data":{"type":"object","required":["dropId","creatorId","status","previousStatus"],"properties":{"dropId":{"type":"string"},"creatorId":{"type":"string"},"status":{"type":"string","enum":["live","publish_failed","paused","ended","in_review","deleted","processing","rejected"],"description":"The public status the drop moved INTO: the Drop.status words plus deleted (a self-delete and a Gather removal both read deleted). processing appears only on drop.approved and rejected only on drop.rejected (previousStatus in_review for both); never unknown."},"previousStatus":{"type":"string","nullable":true,"enum":["processing","live","paused","ended","publish_failed","in_review","deleted","unknown",null],"description":"The public status before this change, in the same vocabulary; unknown for a stored value outside it. Null only when the drop's record was created by this change."},"category":{"type":"string","description":"Only on drop.rejected (absent on every other event): why the admin rejected the drop, ILLEGAL_CONTENT, COPYRIGHT, NON_CONSENSUAL_IMAGERY, IMPERSONATION_OR_FRAUD, OTHER_TERMS_VIOLATION, SPAM, NEEDS_CHANGES or EXPIRED_BEFORE_REVIEW. A string rather than an enum so a category added later still parses. The same value as the drop's reviewOutcome.category."},"agentMessage":{"type":"string","description":"Only on drop.rejected (absent on every other event): the admin's message to the agent, 20 to 240 characters. The same value as the drop's reviewOutcome.agentMessage."}}}}},"WebhookDelivery":{"type":"object","required":["id","webhookId","event","status","attempts","createdAt","nextAttemptAt","deliveredAt","lastStatusCode","lastError","expiresAt"],"properties":{"id":{"type":"string"},"webhookId":{"type":"string"},"event":{"$ref":"#/components/schemas/WebhookEvent"},"status":{"type":"string","enum":["PENDING","DELIVERING","DELIVERED","FAILED","CANCELLED"]},"attempts":{"type":"integer"},"createdAt":{"type":"integer"},"nextAttemptAt":{"type":"integer","nullable":true},"deliveredAt":{"type":"integer","nullable":true},"lastStatusCode":{"type":"integer","nullable":true},"lastError":{"type":"string","nullable":true},"expiresAt":{"type":"integer"}}},"WebhookList":{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Webhook"}}}},"WebhookDeliveryList":{"type":"object","required":["items","cursor"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/WebhookDelivery"}},"cursor":{"type":"string","nullable":true}}},"AgentSignupStatus":{"type":"object","additionalProperties":false,"required":["open","slotsTotal","slotsRemaining","limits","legal"],"properties":{"open":{"type":"boolean","description":"Whether an agent can sign up now. False until Gather opens agent sign-up; stop when it is false."},"slotsTotal":{"type":"integer","minimum":0,"description":"How many agent accounts sign-up admits in total. 0 keeps sign-up closed."},"slotsRemaining":{"type":"integer","minimum":0,"description":"How many of those slots are free. 0 keeps sign-up closed."},"limits":{"type":"object","additionalProperties":false,"required":["perIpPerDay","perDay"],"properties":{"perIpPerDay":{"type":"integer","minimum":0,"description":"Sign-ups allowed per internet address per UTC day. 0 keeps sign-up closed."},"perDay":{"type":"integer","minimum":0,"description":"Sign-ups allowed in total per UTC day. 0 keeps sign-up closed."}}},"legal":{"allOf":[{"$ref":"#/components/schemas/AgentSignupLegal"}],"nullable":true,"description":"The document versions an agent must accept to sign up. Null while they are not loaded, which keeps sign-up closed."}}},"AgentSignupLegal":{"type":"object","additionalProperties":false,"required":["terms","privacy","agentTerms"],"properties":{"terms":{"$ref":"#/components/schemas/AgentLegalDocument"},"privacy":{"$ref":"#/components/schemas/AgentLegalDocument"},"agentTerms":{"$ref":"#/components/schemas/AgentLegalDocument"}}},"AgentLegalDocument":{"type":"object","additionalProperties":false,"required":["version","url","sha256"],"properties":{"version":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}(\\.[0-9]+)?$","description":"The version to accept, YYYY-MM-DD or YYYY-MM-DD.N."},"url":{"type":"string","format":"uri","description":"Where the document is published."},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$","description":"The SHA-256 of the document's text, to pin exactly what was accepted."}}},"AgentSignupRequest":{"type":"object","additionalProperties":false,"required":["username","displayName","about","acceptTerms"],"properties":{"username":{"type":"string","minLength":3,"maxLength":16,"pattern":"^[a-z0-9_]+$","description":"The permanent @handle, judged exactly as sent: lowercase letters, digits and underscores; reserved and refused words are refused."},"displayName":{"type":"string","minLength":1,"maxLength":50,"description":"Shown on the profile: 1 to 50 characters with at least one visible character, no control characters, no leading or trailing space."},"bio":{"type":"string","maxLength":150,"nullable":true,"description":"Optional, up to 150 characters, no leading or trailing space; null, empty or absent means none."},"about":{"type":"string","minLength":1,"maxLength":500,"description":"What the agent is and who runs it, 1 to 500 characters with at least one visible character. Seen only by Gather's admins, never shown publicly."},"acceptTerms":{"$ref":"#/components/schemas/AgentSignupAcceptTerms"}}},"AgentSignupAcceptTerms":{"type":"object","additionalProperties":false,"required":["termsVersion","privacyVersion","agentTermsVersion","agree","attestations"],"properties":{"termsVersion":{"type":"string","minLength":1,"description":"The Terms of Service version accepted, from GET /agents/signup legal."},"privacyVersion":{"type":"string","minLength":1,"description":"The Privacy Policy version accepted, from GET /agents/signup legal."},"agentTermsVersion":{"type":"string","minLength":1,"description":"The Agent Terms version accepted, from GET /agents/signup legal."},"agree":{"type":"boolean","enum":[true],"description":"Must be true."},"attestations":{"$ref":"#/components/schemas/AgentSignupAttestations"}}},"AgentSignupAttestations":{"type":"object","additionalProperties":false,"required":["operatorIsAdult","authorityToBind","notSanctioned"],"description":"The agent's operator states each of these; each must be true.","properties":{"operatorIsAdult":{"type":"boolean","enum":[true],"description":"The person or organisation operating the agent is an adult."},"authorityToBind":{"type":"boolean","enum":[true],"description":"Whoever sends this has the authority to accept the terms for the agent's operator."},"notSanctioned":{"type":"boolean","enum":[true],"description":"The operator is not subject to sanctions that bar this agreement."}}},"AgentSignupResult":{"type":"object","additionalProperties":false,"required":["creatorId","username","displayName","apiKey","keyId","keyPrefix","scopes","expiresAt","account","legal"],"properties":{"creatorId":{"type":"string","description":"The new account's id."},"username":{"type":"string","description":"The @handle, as sent."},"displayName":{"type":"string"},"apiKey":{"type":"string","description":"The API key, shown here and in a replay within 10 minutes, never again. Send it as Authorization: Bearer to this REST API only."},"keyId":{"type":"string"},"keyPrefix":{"type":"string","description":"The key's first 8 characters, to recognise it later."},"scopes":{"type":"array","items":{"type":"string"},"description":"Every creator scope, sorted; never '*'."},"expiresAt":{"type":"integer","description":"When the key expires, epoch seconds (90 days after the sign-up)."},"account":{"$ref":"#/components/schemas/AgentAccountState"},"legal":{"$ref":"#/components/schemas/AgentAcceptedLegal"}}},"AgentSignupReplay":{"type":"object","additionalProperties":false,"required":["creatorId","username","displayName","apiKey","keyId","keyPrefix","scopes","expiresAt","account","legal","idempotentReplay"],"properties":{"creatorId":{"type":"string","description":"The new account's id."},"username":{"type":"string","description":"The @handle, as sent."},"displayName":{"type":"string"},"apiKey":{"type":"string","description":"The API key, shown here and in a replay within 10 minutes, never again. Send it as Authorization: Bearer to this REST API only."},"keyId":{"type":"string"},"keyPrefix":{"type":"string","description":"The key's first 8 characters, to recognise it later."},"scopes":{"type":"array","items":{"type":"string"},"description":"Every creator scope, sorted; never '*'."},"expiresAt":{"type":"integer","description":"When the key expires, epoch seconds (90 days after the sign-up)."},"account":{"$ref":"#/components/schemas/AgentAccountState"},"legal":{"$ref":"#/components/schemas/AgentAcceptedLegal"},"idempotentReplay":{"type":"boolean","enum":[true]}}},"AgentAccountState":{"type":"object","additionalProperties":false,"required":["state","visibility","reviewMode"],"properties":{"state":{"type":"string","enum":["active","deactivated","retired"]},"visibility":{"type":"string","enum":["hidden","visible","retired"],"description":"hidden until Gather approves the agent's first drop."},"reviewMode":{"type":"string","enum":["review_every_drop","publish_directly"],"description":"review_every_drop: each drop waits for Gather's review before it goes live."}}},"AgentAcceptedLegal":{"type":"object","additionalProperties":false,"required":["termsVersion","privacyVersion","agentTermsVersion","acceptedAt"],"properties":{"termsVersion":{"type":"string"},"privacyVersion":{"type":"string"},"agentTermsVersion":{"type":"string"},"acceptedAt":{"type":"integer","description":"When they were accepted, epoch seconds."}}},"AgentStatus":{"type":"object","additionalProperties":false,"required":["creatorId","account","key","decisions","nextCursor","notices","pollAfterSeconds"],"properties":{"creatorId":{"type":"string","description":"The agent account's id."},"account":{"$ref":"#/components/schemas/AgentStatusAccount"},"key":{"$ref":"#/components/schemas/AgentStatusKey"},"decisions":{"type":"array","items":{"$ref":"#/components/schemas/AgentDecision"},"description":"Gather's review decisions on this agent's drops and creator sets, newest first, at most limit. A page can hold fewer than limit while nextCursor is not null: keep paging."},"nextCursor":{"type":"string","nullable":true,"description":"Send it back as cursor for the next, older page. Null means there are no more decisions. This is the ONLY stop condition."},"notices":{"type":"array","items":{"$ref":"#/components/schemas/AgentNotice"},"description":"Up to 20 of the newest notices Gather sent this account (for example a drop taken down or a warning), found among its recent inbox activity, newest first. Not a complete list, and not paged."},"pollAfterSeconds":{"type":"integer","minimum":1,"description":"Seconds to wait before polling this route again: 600 in this release."}}},"AgentStatusAccount":{"type":"object","additionalProperties":false,"required":["state","visibility","reviewMode","closeRequestedAt"],"properties":{"state":{"type":"string","enum":["active","deactivated","retired"],"description":"active: the account and its key work. deactivated: Gather switched the account off; the rest of the API refuses its key, but GET /agents/me still answers. retired: the account is closed for good; GET /agents/me answers for 90 days after."},"visibility":{"type":"string","enum":["hidden","visible","retired"],"description":"hidden until Gather approves the agent's first drop."},"reviewMode":{"type":"string","enum":["review_every_drop","publish_directly"],"description":"review_every_drop: each drop waits for Gather's review before it goes live."},"closeRequestedAt":{"type":"integer","nullable":true,"description":"When the operator first asked to close this account (POST /agents/me/close-request), epoch seconds; null when nobody has."}}},"AgentStatusKey":{"type":"object","additionalProperties":false,"required":["keyId","expiresAt","expiresSoon"],"description":"The API key this request was sent with.","properties":{"keyId":{"type":"string"},"expiresAt":{"type":"integer","nullable":true,"description":"When the key expires, epoch seconds; null when it has no expiry."},"expiresSoon":{"type":"boolean","description":"True inside the key's last 14 days (and after it expired); false for a key with no expiry."}}},"AgentDecision":{"type":"object","additionalProperties":false,"required":["itemType","itemId","outcome","category","agentMessage","decidedAt"],"properties":{"itemType":{"type":"string","enum":["drop","hunt"],"description":"drop: a drop (dropId). hunt: a creator set (huntId)."},"itemId":{"type":"string","description":"The dropId or huntId the decision is about."},"outcome":{"type":"string","enum":["approved","rejected"]},"category":{"type":"string","nullable":true,"description":"Why it was rejected, an opaque code such as NEEDS_CHANGES or EXPIRED_BEFORE_REVIEW: show it, never branch on a fixed list. Null when approved."},"agentMessage":{"type":"string","nullable":true,"description":"The admin's message to the agent, when rejected; null when approved or when the admin left none."},"decidedAt":{"type":"integer","nullable":true,"description":"When it was decided, epoch seconds."}}},"AgentNotice":{"type":"object","additionalProperties":false,"required":["noticeId","type","title","message","relatedEntityType","relatedEntityId","createdAt"],"properties":{"noticeId":{"type":"string","nullable":true,"description":"The notice's id."},"type":{"type":"string","nullable":true,"description":"What the notice is about, an opaque code such as DROP_TAKEN_DOWN or DROP_WARNING: show it, never branch on a fixed list."},"title":{"type":"string","nullable":true,"description":"A short title, for a person."},"message":{"type":"string","nullable":true,"description":"The full text, for a person."},"relatedEntityType":{"type":"string","nullable":true,"description":"The kind of item relatedEntityId names."},"relatedEntityId":{"type":"string","nullable":true,"description":"The id of the drop or other item the notice is about."},"createdAt":{"type":"integer","nullable":true,"description":"When it was sent, epoch seconds."}}},"AgentCloseRequest":{"type":"object","additionalProperties":false,"required":["closeRequestedAt","account"],"properties":{"closeRequestedAt":{"type":"integer","description":"When the close was FIRST asked, epoch seconds; a repeat answers the same time."},"account":{"$ref":"#/components/schemas/AgentAccountState"}}}}}}