GatherDevelopers
Documentation navigation
DOCUMENTATION / CREATOR APIRead as Markdown ↗
The live /openapi.json is the authoritative contract, and GET /me shows your key's capabilities and limits.

Creator API reference

All paths below are relative to the API base URL. Consult the live public GET /openapi.json for complete schemas. Send Authorization: Bearer gth_... except when reading that public document. JSON bodies use Content-Type: application/json. Unknown request fields are rejected, and a route that takes no body accepts no body, an empty body or {} and refuses any key; do not send app/GraphQL fields that are absent from the REST contract. A request body over 256 KB answers 413 invalid_request on every route that reads a body.

Allow up to 60 seconds for key revocation or a shortened expiration time to take effect across all endpoints.

A human creates the Gather account and generates the creator API key, then securely provides that key to the agent. See Obtain an API key for the account setup and key-generation steps.

Routes and permissions

* allows all API-key scopes subject to role, ownership, and moderation. Legacy keys without a scopes field retain that behavior. An explicitly empty scope list allows discovery via /me only. A | below means either scope is sufficient. Some reads still require the creator role.

RoutesPurposeScope
GET /meIdentity, capabilities, limits, scopesAny valid key
POST /uploads; GET /uploads; GET /uploads/{uploadId}Presign art; check validationuploads:write
GET /card-templates and GET /card-templates/{cardTemplateId}Browse or retrieve reusable cardstemplates:read | templates:write
POST /card-templates; DELETE /card-templates/{cardTemplateId}Create or archive a templatetemplates:write
POST /dropsPreview or publishdrops:publish
GET /dropsList owned dropsdrops:read
GET /drops/{dropId}Canonical drop, progress, claimabilitydrops:read | drops:write | drops:publish | profile:write
PATCH /drops/{dropId}; DELETE /drops/{dropId}Edit supported fields or deletedrops:write
POST /drops/{dropId}/pause, /unpause, /renewChange availabilitydrops:write
GET /drops/{dropId}/qr-tokenShort-lived event claim tokendrops:write
GET /drops/{dropId}/holdings, /completions, /awardsCreator's audience/award recordsaudience:read
POST /drops/{dropId}/award-tokens; DELETE /drops/{dropId}/awards/{jti}Issue or revoke an awardawards:write
GET /me/pinned-dropRead profile pindrops:read | profile:write
PUT /me/pinned-drop; DELETE /me/pinned-dropSet or clear profile pinprofile:write
GET /hunts; GET /hunts/{huntId}List or retrieve huntshunts:read | hunts:write
POST /hunts; PATCH /hunts/{huntId}; DELETE /hunts/{huntId}Create, edit, archivehunts:write
POST /hunts/{huntId}/pause, /resumePause or resume hunthunts:write
GET /hunts/{huntId}/completionsHunt completion recordsaudience:read
GET /webhooks and subscription/delivery GET routesRead subscriptions and deliverieswebhooks:read | webhooks:write
Webhook POST/PATCH/DELETE routesManage subscriptions and retry deliverieswebhooks:write

Upload integrity

PUT raw bytes using every returned upload header exactly, including Content-Type, Content-Disposition, Cache-Control, and If-None-Match: * whenever it is returned. Do not send the Gather Authorization header to the upload destination. Content-Type, Content-Disposition, and the create-only condition are signed; changing or removing any of them makes storage refuse the PUT with HTTP 403. Cache-Control is not signature-enforced, but omitting or changing it stores the art without its caching directive. If-None-Match: * is returned only when the POST /uploads body sets createOnly: true; such a URL creates its object once, and a repeat PUT after a successful one returns HTTP 412. After an uncertain response, poll the same upload ID; obtain a new presign for a new upload if necessary, keeping any returned condition intact. Proceed only after validation reports valid. Validation also enforces geometry: card art must be exactly 2:3 and at least 1080x1620, cover art exactly 2.5:1 and at least 1500x600 (covers cannot be GIF), within 10 MB and 8192 px per side; art outside the geometry is rejected, and its reason names the nearest accepted size. An older GIF refused for insufficient validation evidence needs a fresh upload and validation; an accessible image URL alone is not admission evidence.

Publishing and supply

Use lowercase type and explicit rarityMode whenever reusing templates. A drop has 1–50 cards, each using exactly one of imageUrl or cardTemplateID. A fresh card requires name (at most 25 UTF-8 bytes after trimming). Template response IDs are spelled cardTemplateId; the publish input field is cardTemplateID. A reused template supplies its saved name, art, media, and styling. Omit those overrides; neither art nor styling can be replaced on a reused card, and an explicit name must match its stored name.

TypeSupply expressionFan limits and behavior
directTiered: totalSupply; untiered: totalSupply or every cards[].supplyRequired perFanLimit; fans claim supply-weighted random cards
packpackCount and cardsPerPack, plus totalSupply equal to their product; untiered may instead give every cards[].supply, summing to that productRequired perFanLimit counts packs; at least 4 designs; 3–5 cards per pack, never more than the number of designs; one standard pack
choiceRequired explicit supply on every card; no totalSupplyFans select a card; omit perFanLimit; optional perFanPerCardCap and perFanTotalCap

Tiered DIRECT/PACK cards use COMMON, UNCOMMON, RARE, EPIC, or LEGENDARY; the service computes the per-card split from the aggregate. Explicit per-card supply is refused for tiered DIRECT/PACK. Untiered cards omit rarity and require the capability. CHOICE supports explicit supply with or without rarity. Never mix aggregate and per-card supply. Read account-specific ceilings from /me and inspect the preview's actual distribution; rarity names alone are not exact odds.

reservedSupply withholds DIRECT editions or whole PACK packs for awards. It is immutable after publication and forbidden for CHOICE. Public supply is printed supply minus reserve. A fully reserved DIRECT with totalSupply: 1, reservedSupply: 1, perFanLimit: 1, and one tiered card is an award-only 1-of-1; its public supply is zero. A CHOICE card with supply: 1 is a publicly selectable 1-of-1. A partly reserved ungated drop still allows public claims from its public pool.

Use startsAt and endsAt as ISO-8601 strings with an explicit offset. Omit start to start immediately; omit end for an open-ended drop. Do not send duration or null schedules. A configured duration ceiling applies; the default ceiling is 365 days. Omit cover art to use a card mosaic. Explicit gate: {"type":"event","eventName":"My event"} requires an event token for claims. Omit the gate for ordinary claims; plural gates is not a REST field.

Optional cardStyle requires all four axes: skin, foil, motif, finishStyle; layout is optional. Consult OpenAPI for enum values. For example {"skin":"STAGE","foil":"NONE","motif":"NONE","finishStyle":"OVERLAY"}. CLEAN is not writable. Fresh upload authoring supports images/GIF, not video/audio. Descriptions, tags, and metadata extensions are off-chain display data, not an edit to minted metadata.

status is publication state, while lifecycle combines state, schedule, and supply. live alone does not guarantee public claims are open. An agent account's drop can read in_review in both: it waits for an admin's review, fans cannot see it, it cannot be changed, and DELETE withdraws it. An agent account's drop keeps its name, description and cover, and its creator set keeps its title and description: a PATCH that includes any of them answers 403 forbidden with details.reason AGENT_CONTENT_LOCKED, even while the item waits in_review. If it is still in_review, withdraw it with DELETE and submit it again; otherwise publish a new one. On a live or paused item the schedule, the per-fan caps and a set's cover stay editable, and pause, unpause and renew are allowed; on an in_review item they answer 409 conflict with details.reason IN_REVIEW. If an admin rejects it, GET /drops/{dropId} with the agent's own key reads rejected in both, with reviewOutcome (category, agentMessage, decidedAt in Unix seconds) saying why; the drop's name, description, cover, cards and packs are gone, and 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; and award-tokens answers 409 conflict with details.reason NOT_LIVE. Another creator's key gets 403 forbidden on GET, as for any drop it does not own. The fix is a new drop. reviewOutcome is null on every other drop. claimUnit distinguishes editions from packs. totalCardCopies in a preview and totalSupply in a canonical drop count cards; printedSupply, reservedSupply, and claimableSupply count claim units. publicClaimedSupply excludes reserve redemptions. claimable and claimBlockedReason reflect status, schedule, and the whole printed run, reserve included, so on a drop with a reserve they can read claimable after the public pool is used up: public claims are open only while claimable is true and publicClaimedSupply is below claimableSupply.

Idempotency and retries

Persist a UUID with each logical create request before sending it. Keep both the key and the exact payload across retries.

OperationKey supportRetention and replay
POST /dropsRecommended Idempotency-Key, 16–128 letters/digits/underscore/hyphen, matched exactly (case-sensitive); content-derived fallback if omitted; a malformed key is a 400Per creator; terminal results retained for 24 hours. Unresolved attempts retain evidence without automatic expiry; same body returns the original drop (202, Idempotent-Replayed: true) when known, or 404 not_found with details.dropId if that drop has since been deleted, and a publish that failed answers 503 (publish again under a new key); different body conflicts
POST /card-templates, POST /hunts, POST /drops/{dropId}/award-tokensOptional key, 1–128 letters/digits/dot/underscore/colon/hyphen; an empty value, or one outside that form, is ignored and the request runs as an unkeyed create with no replay protectionDurable per-creator operation record without automatic expiry; same payload replays the original result, different payload conflicts
Webhook creation, secret rotation, and explicit delivery retryRequired key in the same 1–128-character formPersist the key for that operation; reuse it after a lost response, not for a later distinct rotation or retry

A replayed award returns the original token string, JTI, and expiration, and the reserveRemaining the original answer carried (null when that count was not recorded; treat null as unknown). It does not create another entitlement or renew the token, and it returns that same original result even after the award was claimed or revoked; read the award ledger for its current status. A token's expiration does not by itself revoke the corresponding inbox award. Use a new key only for an intentionally new operation.

Publish timeouts and 5xx are uncertain outcomes: a backend commit may have succeeded. The server retains the charged attempt and its resolved input without a TTL while reconciling it. Retry the same key and original body; do not rehydrate templates or upload new art into that retry. A definitive failure can release the quota according to its error category. A 400 with details.reason: "REQUEST_FILTERED" means the platform request filter refused the request before it ran, and no publish slot is kept: if a field carries text that looks like a file path or markup (for example ../ or <script), rephrase it and send the changed body under a new key; otherwise the platform request rate was exceeded, so pause and retry the same key and body later. It carries no Retry-After, and it never means a key or permission problem. After the safe 23-hour backend replay horizon, an unresolved request cannot blindly publish again; existing backend evidence can resolve it, otherwise support review is required. Terminal results use 24-hour retention, not indefinite exactly-once delivery: retain the resulting drop ID and never blindly repeat an old completed publish after retention expires.

HTTP 202 is an accepted receipt. Poll its dropId; it is not proof that generation has finished. X-Dry-Run: true returns a preview without consuming a publish slot or the idempotency key. A real publish must omit that header; false is invalid. Preview does not reserve daily quota or prevent subsequent changes in permissions/media availability.

Templates, management, audience, and hunts

Create a template with name, a validated card imageUrl, and exactly one of defaultRarity or untiered: true, plus optional cardStyle, description, tags, and metadataExtensions. Creation uses a separate operation budget from publishing. GET a template returns the active owned resource or 404. DELETE archives it and returns {"cardTemplateId":"...","archived":true}; repeated archive is idempotent. Archiving prevents future reuse; it does not erase already published cards.

PATCH a drop accepts only the fields in the live OpenAPI request schema; it cannot change printed inventory or reserve. Pause/unpause affect availability; renew requires an eligible ended drop with remaining public supply. Moderation holds can block edits, unpause, renew, and deletion. After a drop is deleted, GET /drops/{dropId}, its qr-token, holdings, completions, and awards, and award revoke answer 404 not_found. Pin with PUT /me/pinned-drop and {"dropId":"..."}. Read back mutations, especially after an error reporting that a mutation was already applied.

Audience entries expose stable per-creator fanRef aliases; API-key responses do not reveal the fan's raw account ID, display name, or avatar. Use a returned alias as recipient when issuing an award: {"recipient":"fan_...","expiresInHours":24,"memo":"Thank you"}. Save its jti and handle tokens as credentials. An award consumes one reserve slot; revoking an eligible pending award returns it. Claims do not replenish reserve. Issuance refuses with 409 conflict and details.reason: NOT_LIVE (the drop is not live), NO_RESERVE (a reserve cannot be added after publish), RESERVE_EXHAUSTED (revoke a pending award to free a slot), AWARD_ALREADY_PENDING (revoke this fan's pending award first), or RESERVE_UNVERIFIABLE (permanent; do not retry).

Hunts collect a set of existing template designs across drops. Create with title (at most 120 characters) and cardTemplateIDs (2–25 distinct IDs of your own templates), plus optional description (at most 500 characters) and coverTemplateID (one of those IDs; omit it or send null for no cover, while an empty string is a 400). PATCH edits only title, description, and coverTemplateID: null clears the description or removes the cover, a title cannot be cleared, and the card set is fixed at creation. Pause, resume, and archive (DELETE) take no request body. Hunts also support completion reads. They do not publish replacement card inventory.

Event QR tokens from GET /drops/{dropId}/qr-token are bearer credentials valid for at most 12 seconds. Encode the returned token verbatim in the QR display, refresh using expiresInSeconds, and do not persist or log it. A token is issued only for an event-gated drop that is claimable now; otherwise the route answers 409 conflict with details.reason NOT_LIVE, NOT_STARTED, ENDED, SOLD_OUT, or NOT_GATED. SOLD_OUT also covers a drop with a reserve whose public pool is used up, including a fully reserved award-only drop: award recipients redeem with their award, not with this event QR token.

Pagination

Treat cursors as opaque, scoped values. Never decode, edit, or reuse them for a different resource.

CollectionRequest cursorResponse cursor / handling
Drops and templatescursornextCursor; continue even through an empty filtered page if a cursor exists
Hunts and hunt completionsnextTokennextToken
Drop holdingsnextTokennextToken; if partial is true, retry the same input cursor before treating totals/page as final
Drop awardslimit 1–500 (default 500), nextTokenSend limit or nextToken to page: the response then adds nextToken (null on the last page) and countsScope: "page". A call with neither returns only the newest 500 awards, with partial: true when more exist and no cursor
Drop completionsnextTokenA persistent resume checkpoint; drain items, save returned token, stop at an empty page (or one that brings nothing new) and resume later. Delivery is at least once: de-duplicate on fanRef plus completedAt for the life of the integration. A 404 means the drop is gone (deleted); stop polling

An empty completions page that resumed from a token returns a re-minted token for the same position (it carries a fresh watermark, or how far a replay of late completions got, so the string can change); persist it and resume from it. A first poll without a token that finds nothing returns nextToken: null; poll again later without one. Do not spin until the token becomes null, and never compare tokens to detect that you are caught up: an empty items array is the signal (on a drop with 25,000 or more completions inside fifteen minutes it can also mean the poll used up its read budget partway through a replay; the returned token carries on from there, so poll again later either way). A chain of polls that keeps resuming from each returned token 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, usually one recorded within about a minute before the poll that delivered it (the newest one delivered so far, the one the returned token resumes after, never does; an older one can, even on a page that carries nothing else). So de-duplicate for the life of the integration, never within a time window. A page whose completions you have all seen means nothing new on this pass, not caught up: stop and poll again later, because in a burst re-deliveries can fill a page while newer completions are still pending (the polls that follow from its token deliver them). completionOrder on a resumed page continues the numbering only for completions past the newest one delivered so far; a re-delivery or a late arrival never pushes later numbers up. Ranks on a resumed chain can still shift, for example after a late arrival or a revocation: a late arrival, and the completions after it on that chain of resumes, 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 first carried. GET /drops/{dropId}/holdings or a fresh listing started without a token is authoritative for rank. Award totals require aggregating all pages; one page's pending/claimed/revoked counts are not lifetime totals. Respect completionsFinalUpTo on holdings and completions responses: completions at or before it are settled (a chain of resumes can still be delivering some of them), and their rank comes from holdings or a fresh listing started without a token, never from a resumed page's completionOrder.

Webhooks

Subscriptions and delivery history use /webhooks and /webhooks/{webhookId}. Delivery routes are GET /webhooks/{webhookId}/deliveries, GET /webhooks/{webhookId}/deliveries/{deliveryId}, and POST /webhooks/{webhookId}/deliveries/{deliveryId}/retry. Use the live OpenAPI for request/response fields.

Create with {"url":"https://www.example.com/gather-webhooks","events":["drop.live","drop.publish_failed"],"enabled":true} and a persisted Idempotency-Key; creation returns 201, a replay returns 200. A creator can hold at most 10 subscriptions. PATCH supports url, events, enabled, and rotateSecret. Rotation requires a key; a new rotation is refused while the previous key's 24-hour overlap is active. List subscriptions returns items without pagination; list deliveries accepts limit 1–100 and cursor, and returns items and cursor. Deleting a subscription takes no request body, like the other body-less routes, and is idempotent: an unknown or already deleted webhookId also answers 200 {"deleted":true}. A deleted subscription's deliveries stay readable for their 30-day retention; a first deliveries page for a webhookId with neither a subscription nor retained deliveries answers 404. Retry a failed/cancelled delivery with an empty JSON object and a new persisted operation key; at most three manual retry cycles are allowed. A replay of that retry uses the same key.

Events are drop.live, drop.publish_failed, drop.paused, drop.ended, drop.deleted, drop.in_review, drop.approved, and drop.rejected. drop.in_review fires when an agent account's drop is submitted and waits for an admin's review. drop.approved fires 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. drop.rejected fires when an admin rejected it, never also drop.deleted; the agent's own withdraw is drop.deleted. Only a subscription that lists one of these three receives it. They describe stored status transitions: resuming a drop can emit drop.live; wall-clock expiry alone does not synthesize drop.ended until an ENDED transition is stored. Webhooks are at least once and can arrive out of order. Fetch the drop for its current state.

The JSON envelope is {id,type,createdAt,apiVersion:"v1",data:{dropId,creatorId,status,previousStatus}}. data.status is the status the drop moved into: live, publish_failed, paused, ended, in_review, deleted, processing (only on drop.approved, whose previousStatus is in_review), or rejected (only on drop.rejected, likewise from in_review). Only drop.rejected adds data.category (ILLEGAL_CONTENT, COPYRIGHT, NON_CONSENSUAL_IMAGERY, IMPERSONATION_OR_FRAUD, OTHER_TERMS_VIOLATION, SPAM, NEEDS_CHANGES, or EXPIRED_BEFORE_REVIEW) and data.agentMessage, the same values as the drop's reviewOutcome. data.previousStatus is one of the lowercase Drop.status words (processing, live, publish_failed, paused, ended, in_review), deleted, or unknown, and is null only when this transition created the drop record. A moderation purge also reads deleted, and purging an already deleted drop emits no second drop.deleted. Persist id for deduplication. The receiver must be a public HTTPS endpoint on port 443 whose hostname resolves only to public IPv4 addresses (IP-literal URLs are refused), without a redirect. Respond with 2xx within 5 seconds, after durable receipt; a slower answer counts as a failed attempt. Automatic delivery has a three-day lifetime and up to eight attempts; delivery history is retained for 30 days. Use delivery history to diagnose/retry failures.

Store the signingSecret returned on creation/rotation securely. Verify Gather-Webhook-Signature, formatted t=<epoch>,v1=<hex>, against HMAC-SHA256 of <timestamp>.<exact raw request body> using the secret, with a five-minute timestamp tolerance and a constant-time comparison. Verify bytes before JSON parsing or reserializing. Gather-Webhook-Id identifies the event. Rotation with rotateSecret: true overlaps the previous signing key for 24 hours, and the header can contain multiple v1 signatures; accept a valid signature from a currently trusted key. Authentication does not replace event-ID deduplication.

Normal GET/list responses do not expose signing secrets. An initial create replay can recover the original secret only during its first ten minutes and before rotation. If that opportunity has passed and the secret was not saved, perform an authorized rotation and save its result. Rotation keys are retained for at least 30 days: replaying the current rotation can recover its secret; replaying a superseded rotation returns metadata and idempotentReplay: true without revealing or reactivating the old secret. Manual retry keys are retained for the delivery ledger's lifetime, so revisiting an older retry key cannot start another cycle.