Every API here is available over the APIs.io API and to AI agents over MCP.
{"openapi":"3.1.0","info":{"title":"Zebra API","version":"1","description":"Public REST API for Zebra. Use bearer API keys to manage spaces, links, collections, and short domains."},"servers":[{"url":"https://app.zeblink.io","description":"API host"}],"externalDocs":{"url":"https://zeblink.io/docs","description":"Browsable Zebra API reference"},"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","bearerFormat":"zeb_<ulid>","description":"API keys act as their owning user. A key can be limited to selected spaces and to per-resource read/write scopes; its effective authority is always the intersection of the key's scope and the owner's own role in the target space. Provision via the dashboard; pass as `Authorization: Bearer zeb_…`. Keys require a plan with API access; without one, every call returns 402 `API_ACCESS_REQUIRED`."}},"schemas":{"ApiError":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"Machine-readable error code. Stable across versions; safe to switch on.","example":"UNAUTHORIZED"},"message":{"type":"string","description":"Human-readable explanation. Subject to change.","example":"Missing or invalid API key."},"details":{"type":"object","additionalProperties":{},"description":"Optional structured context — field paths, retry-after seconds, etc."}},"required":["code","message"]}},"required":["error"]},"CreateLinkInput":{"type":"object","properties":{"targetUrl":{"type":"string","maxLength":2048,"format":"uri","description":"The destination URL the short link redirects to."},"path":{"type":"string","maxLength":128,"description":"Custom short-link path. Omit to auto-allocate one, which is the default and the right choice for most links. When set, it is an address rather than a summary: the bare word someone could repeat from memory and type without looking, such as `heineken` or `launch`. What the link is for belongs in `title`, not here. The maximum length is a storage bound, not a target, and short paths are worth more than descriptive ones."},"candidates":{"type":"array","items":{"type":"string","minLength":1,"maxLength":128},"minItems":1,"maxItems":3,"description":"Ranked alternatives to `path` — up to 3 names, best first (set `path` or `candidates`, never both). The first that is valid and free becomes the link's path, decided in the same transaction as the create; `choice` in the response says which won (1 = first). When every candidate is taken or invalid, the create fails with each name's reason. Same naming rules as `path`: bare address words, not summaries."},"namespace":{"type":"string","maxLength":128,"description":"Namespace prefix for auto-allocated paths (e.g. `promo` yields `promo/x7k…`). Ignored when `path` is set."},"title":{"type":"string","maxLength":200,"description":"Display title for dashboards and lists."},"description":{"type":["string","null"],"maxLength":2000,"description":"User-authored description (distinct from the scraped page metadata). `null` clears it."},"metadata":{"type":"object","properties":{"siteName":{"type":"string","maxLength":300},"title":{"type":"string","maxLength":500},"description":{"type":"string","maxLength":2000}},"additionalProperties":false,"description":"Scraped page metadata (site name, page title, page description) to store with the link. Normally left out — Zebra fetches it from the destination in the background shortly after creation. Supply it only to override; a supplied value is never overwritten by the background fetch."},"fallback":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["target_root"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["url"]},"url":{"type":"string","minLength":1,"maxLength":2048}},"required":["type","url"],"additionalProperties":false}],"description":"Where a visitor goes while the link is off. Omit to inherit the domain default, then the system default. `target_root` redirects to the destination's root domain; `url` to an explicit URL."},"activatesAt":{"type":["string","null"],"format":"date-time","description":"When the link goes live (ISO 8601 timestamp or epoch ms). Before this instant the link is off and visitors get its fallback (or the countdown page). `null` clears it; omit to leave unchanged."},"deactivatesAt":{"type":["string","null"],"format":"date-time","description":"When the link turns off (ISO 8601 timestamp or epoch ms). After this instant visitors get the link's fallback. Must be after `activatesAt` when both are set. `null` clears it; omit to leave unchanged."},"scheduleTimezone":{"type":["string","null"],"maxLength":64,"description":"IANA timezone (e.g. `Europe/Copenhagen`) used only to display the schedule in the picker. The instants above are absolute and decide liveness on their own."},"showCountdownPage":{"type":["boolean","null"],"description":"Show visitors a countdown page (HTTP 200) instead of the fallback while the link is not yet live. Requires `activatesAt`."},"domain":{"type":"string","minLength":1,"maxLength":253,"description":"Short domain to create the link on: a hostname or `dom_…` id from `GET …/domains`. Omit to use the space's default domain."},"collection":{"type":"string","minLength":1,"maxLength":200,"description":"Collection to add the link to: a `col_…` id or exact collection name (duplicate names require the id)."}},"required":["targetUrl"],"additionalProperties":false},"LinkFilter":{"type":"object","properties":{"query":{"type":"string","maxLength":200,"description":"Free text matched against each link's short path, title, and destination URL."},"status":{"type":"string","enum":["active","inactive"],"description":"active = live right now; inactive = off (manually or by schedule). Schedule-aware."},"created":{"type":"string","enum":["1h","24h","7d","30d"],"description":"Creation-time window: within the last 1h, 24h, 7d, or 30d."},"edited":{"type":"string","enum":["1h","24h","7d","30d"],"description":"Last-edit window (1h|24h|7d|30d). Creation counts as the initial edit."},"createdVia":{"type":"string","enum":["web","import","chat","api","mcp"],"description":"How the link was created: web, import, chat, api, or mcp."},"hasCollection":{"type":"boolean","description":"true = in at least one collection; false = uncollected."},"schedule":{"type":"string","enum":["upcoming","completed"],"description":"upcoming = has an activation/deactivation still to fire; completed = schedule fully in the past. Unscheduled links match neither."},"attribution":{"type":"string","enum":["utm","signals","any"],"description":"Which attribution the link CARRIES: utm = a utm_* param on its destination URL; signals = a QR code carries signals; any = carries either (spoken to a user as \"Either\")."},"targetHost":{"type":"array","items":{"type":"string","minLength":1},"maxItems":20,"description":"Where the link POINTS, its destination host (e.g. cnn.com), as hostnames. A leading `www.` is ignored on both sides, so cnn.com matches www.cnn.com — pass the bare host, never both spellings. User-facing word: \"destination\" (never say \"target host\" to a user)."},"shortDomain":{"type":"array","items":{"type":"string","minLength":1},"maxItems":20,"description":"The link's OWN domain (its short-link host, e.g. zbrah.link) as hostnames. User-facing word: \"domain\" / \"short domain\"."},"clicks":{"type":"object","properties":{"op":{"type":"string","enum":["greaterThan","lessThan"]},"value":{"type":"integer","minimum":0}},"required":["op","value"],"additionalProperties":false,"description":"Total-click threshold: {op: greaterThan|lessThan, value: <whole number>}, e.g. {op: greaterThan, value: 100} for more than 100 clicks."},"uniqueClicks":{"type":"object","properties":{"op":{"type":"string","enum":["greaterThan","lessThan"]},"value":{"type":"integer","minimum":0}},"required":["op","value"],"additionalProperties":false,"description":"Unique-visitor (distinct) threshold, same shape as clicks."},"clicked":{"type":"string","enum":["1h","24h","7d","30d"],"description":"Last-click recency window (1h|24h|7d|30d). Links never clicked match nothing."},"negate":{"type":"array","items":{"type":"string","enum":["query","status","created","edited","schedule","createdVia","hasCollection","attribution","clicks","uniqueClicks","clicked","shortDomain","targetHost"]},"description":"Filter names to INVERT, each still AND-combined. e.g. status:'active' + negate:['status'] means 'not active'; clicked:'30d' + negate:['clicked'] means 'not clicked in the last 30 days'."}},"additionalProperties":false,"description":"Link filter. All fields optional; dimensions AND-combine, arrays OR within a dimension. `shortDomain` is the link's own domain (say \"domain\"); `targetHost` is where it points (say \"destination\"). `negate` inverts the named structured dimensions."},"QueryAnalyticsInput":{"type":"object","properties":{"groupBy":{"type":"string","enum":["country","region","city","browser","os","deviceType","referrerDomain","fromQr","shortDomain","isBot","botType","botName","day","link"],"description":"Break the result down by this dimension (one row per value); omit for a single total. `day` is a per-day time series."},"measure":{"type":"string","enum":["clicks","uniqueClicks"],"description":"What to count: total clicks (default) or unique visitors."},"range":{"type":"string","enum":["15m","1h","1d","7d","30d","all","custom"],"description":"Time window: all (all-time, the default), 7d, 30d, 1d (last 24h), 1h, 15m, or custom (then set from/to). Use a rolling window like 7d for 'this week' / 30d for 'last 30 days'."},"from":{"type":"string","description":"Custom window start as an ISO date or date-time. Only with range=custom."},"to":{"type":"string","description":"Custom window end as an ISO date or date-time. Only with range=custom."},"limit":{"type":"integer","minimum":1,"maximum":1000,"description":"Max breakdown rows (group-by only; default 100)."},"query":{"type":"string","maxLength":200,"description":"Free text matched against each link's short path, title, and destination URL."},"status":{"type":"string","enum":["active","inactive"],"description":"active = live right now; inactive = off (manually or by schedule). Schedule-aware."},"created":{"type":"string","enum":["1h","24h","7d","30d"],"description":"Creation-time window: within the last 1h, 24h, 7d, or 30d."},"edited":{"type":"string","enum":["1h","24h","7d","30d"],"description":"Last-edit window (1h|24h|7d|30d). Creation counts as the initial edit."},"createdVia":{"type":"string","enum":["web","import","chat","api","mcp"],"description":"How the link was created: web, import, chat, api, or mcp."},"hasCollection":{"type":"boolean","description":"true = in at least one collection; false = uncollected."},"schedule":{"type":"string","enum":["upcoming","completed"],"description":"upcoming = has an activation/deactivation still to fire; completed = schedule fully in the past. Unscheduled links match neither."},"attribution":{"type":"string","enum":["utm","signals","any"],"description":"Which attribution the link CARRIES: utm = a utm_* param on its destination URL; signals = a QR code carries signals; any = carries either (spoken to a user as \"Either\")."},"targetHost":{"type":"array","items":{"type":"string","minLength":1},"maxItems":20,"description":"Where the link POINTS, its destination host (e.g. cnn.com), as hostnames. A leading `www.` is ignored on both sides, so cnn.com matches www.cnn.com — pass the bare host, never both spellings. User-facing word: \"destination\" (never say \"target host\" to a user)."},"collectionId":{"type":"string","pattern":"^col_[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$","description":"Scope to one specific collection (analytics-only). Mutually exclusive with the object-attribute filters and with linkId."},"linkId":{"type":"string","pattern":"^lnk_[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$","description":"Scope to one specific link by its id (analytics-only) — the click counterpart to opening that link's dashboard. Mutually exclusive with the object-attribute filters and with collectionId. Click dimensions (country, browser, …) still apply on top."},"negate":{"type":"array","items":{"type":"string","enum":["status","created","edited","createdVia","hasCollection","schedule","attribution","targetHost"]},"description":"Object-scope dimensions to invert, e.g. [\"status\"] for clicks from links that are NOT active. Free text is not negatable."},"country":{"type":"array","items":{"type":"string","minLength":1},"maxItems":60,"description":"ISO country codes of the click (e.g. US, GB)."},"continents":{"type":"array","items":{"type":"string","enum":["europe","africa","asia","north-america","south-america","oceania","antarctica"]},"maxItems":7,"description":"Named continent groupings; expand to their countries."},"region":{"type":"array","items":{"type":"string","minLength":1},"maxItems":50,"description":"Region / state of the click."},"city":{"type":"array","items":{"type":"string","minLength":1},"maxItems":50,"description":"City of the click."},"browser":{"type":"array","items":{"type":"string","minLength":1},"maxItems":30,"description":"Browser name (e.g. Chrome, Safari)."},"os":{"type":"array","items":{"type":"string","minLength":1},"maxItems":30,"description":"Operating system (e.g. iOS, Windows)."},"deviceType":{"type":"array","items":{"type":"string","minLength":1},"maxItems":10,"description":"Device type (e.g. mobile, desktop, tablet)."},"referrerDomain":{"type":"array","items":{"type":"string","minLength":1},"maxItems":50,"description":"Referring domain of the click."},"shortDomain":{"type":"array","items":{"type":"string","minLength":1},"maxItems":20,"description":"The link's own short-domain host(s) the click came through, as hostnames."},"fromQr":{"type":"boolean","description":"true = QR scans only; false = ordinary (non-QR) clicks only."},"isBot":{"type":"boolean","description":"true = automated traffic only; false = humans only."},"botType":{"type":"array","items":{"type":"string","minLength":1},"maxItems":15,"description":"Traffic class (ai_assistant, crawler, fetcher, …)."},"botName":{"type":"array","items":{"type":"string","minLength":1},"maxItems":30,"description":"Bot product name (e.g. \"GPTBot\")."},"timeZone":{"type":"string","minLength":1,"maxLength":64,"description":"IANA time zone (e.g. `Europe/Copenhagen`) for `day` bucketing and custom `from`/`to` bounds. Default: UTC."}},"additionalProperties":false,"description":"Analytics query, two halves. Object SCOPE — WHICH links to count clicks for — uses the same vocabulary as link search: `status`, `created`, `edited`, `createdVia`, `hasCollection`, `schedule`, `attribution`, `targetHost`, `query`, plus the identity scopes `linkId` / `collectionId` (one link OR one collection OR attributes, never combined) and `negate` (invert named scope dims). Click MEASUREMENT — `country`/`continents`/`region`/`city`, `browser`/`os`/`deviceType`, `referrerDomain`, `fromQr`, bot dims — filters the clicks. `groupBy` returns a breakdown (one row per value), `measure` counts clicks or uniqueClicks, `range` sets the window (`day` buckets and custom `from`/`to` resolve in `timeZone`, default UTC). All fields optional; an empty body is whole-space all-time totals."},"UpdateLinkInput":{"type":"object","properties":{"targetUrl":{"type":"string","maxLength":2048,"format":"uri","description":"New destination URL."},"title":{"type":["string","null"],"maxLength":200,"description":"Display title. `null` clears it."},"description":{"type":["string","null"],"maxLength":2000,"description":"User-authored description (distinct from the scraped page metadata). `null` clears it."},"isActive":{"type":"boolean","description":"Master on/off switch. A link is live only while `isActive` is true AND inside its schedule window (if one is set)."},"path":{"type":"string","maxLength":128,"description":"Move the link to a new short path. The old short URL stops resolving immediately — anything already shared or printed with it breaks."},"metadata":{"type":"object","properties":{"siteName":{"type":"string","maxLength":300},"title":{"type":"string","maxLength":500},"description":{"type":"string","maxLength":2000}},"additionalProperties":false,"description":"Scraped page metadata (site name, page title, page description) to store with the link. Replaces the stored value; the background fetch never overwrites what you set."},"fallback":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["target_root"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["url"]},"url":{"type":"string","minLength":1,"maxLength":2048}},"required":["type","url"],"additionalProperties":false},{"type":"null"}],"description":"Where a visitor goes while the link is off. `null` restores inheritance (domain default, then system default)."},"activatesAt":{"type":["string","null"],"format":"date-time","description":"When the link goes live (ISO 8601 timestamp or epoch ms). Before this instant the link is off and visitors get its fallback (or the countdown page). `null` clears it; omit to leave unchanged."},"deactivatesAt":{"type":["string","null"],"format":"date-time","description":"When the link turns off (ISO 8601 timestamp or epoch ms). After this instant visitors get the link's fallback. Must be after `activatesAt` when both are set. `null` clears it; omit to leave unchanged."},"scheduleTimezone":{"type":["string","null"],"maxLength":64,"description":"IANA timezone (e.g. `Europe/Copenhagen`) used only to display the schedule in the picker. The instants above are absolute and decide liveness on their own."},"showCountdownPage":{"type":["boolean","null"],"description":"Show visitors a countdown page (HTTP 200) instead of the fallback while the link is not yet live. Requires `activatesAt`."}},"additionalProperties":false},"BulkCreateLinksInput":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"targetUrl":{"type":"string","maxLength":2048,"format":"uri","description":"The destination URL the short link redirects to."},"path":{"type":"string","maxLength":128,"description":"Custom short-link path. Omit to auto-allocate one, which is the default and the right choice for most links. When set, it is an address rather than a summary: the bare word someone could repeat from memory and type without looking, such as `heineken` or `launch`. What the link is for belongs in `title`, not here. The maximum length is a storage bound, not a target, and short paths are worth more than descriptive ones."},"candidates":{"type":"array","items":{"type":"string","minLength":1,"maxLength":128},"minItems":1,"maxItems":3,"description":"Ranked alternatives to `path` — up to 3 names, best first (set `path` or `candidates`, never both). The first that is valid and free becomes the link's path, decided in the same transaction as the create; `choice` in the response says which won (1 = first). When every candidate is taken or invalid, the create fails with each name's reason. Same naming rules as `path`: bare address words, not summaries."},"namespace":{"type":"string","maxLength":128,"description":"Namespace prefix for auto-allocated paths (e.g. `promo` yields `promo/x7k…`). Ignored when `path` is set."},"title":{"type":"string","maxLength":200,"description":"Display title for dashboards and lists."},"metadata":{"type":"object","properties":{"siteName":{"type":"string","maxLength":300},"title":{"type":"string","maxLength":500},"description":{"type":"string","maxLength":2000}},"additionalProperties":false,"description":"Scraped page metadata (site name, page title, page description) to store with the link. Normally left out — Zebra fetches it from the destination in the background shortly after creation. Supply it only to override; a supplied value is never overwritten by the background fetch."},"fallback":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["target_root"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["url"]},"url":{"type":"string","minLength":1,"maxLength":2048}},"required":["type","url"],"additionalProperties":false}],"description":"Where a visitor goes while the link is off. Omit to inherit the domain default, then the system default. `target_root` redirects to the destination's root domain; `url` to an explicit URL."},"domain":{"type":"string","minLength":1,"maxLength":253,"description":"Short domain to create the link on: a hostname or `dom_…` id from `GET …/domains`. Omit to use the space's default domain."}},"required":["targetUrl"],"additionalProperties":false},"minItems":1,"maxItems":250},"collection":{"type":"string","minLength":1,"maxLength":200}},"required":["items"],"additionalProperties":false},"BulkUpdateLinksInput":{"type":"object","properties":{"updates":{"type":"array","items":{"type":"object","properties":{"targetUrl":{"type":"string","maxLength":2048,"format":"uri","description":"New destination URL."},"title":{"type":["string","null"],"maxLength":200,"description":"Display title. `null` clears it."},"description":{"type":["string","null"],"maxLength":2000,"description":"User-authored description (distinct from the scraped page metadata). `null` clears it."},"isActive":{"type":"boolean","description":"Master on/off switch. A link is live only while `isActive` is true AND inside its schedule window (if one is set)."},"path":{"type":"string","maxLength":128,"description":"Move the link to a new short path. The old short URL stops resolving immediately — anything already shared or printed with it breaks."},"metadata":{"type":"object","properties":{"siteName":{"type":"string","maxLength":300},"title":{"type":"string","maxLength":500},"description":{"type":"string","maxLength":2000}},"additionalProperties":false,"description":"Scraped page metadata (site name, page title, page description) to store with the link. Replaces the stored value; the background fetch never overwrites what you set."},"fallback":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["target_root"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["url"]},"url":{"type":"string","minLength":1,"maxLength":2048}},"required":["type","url"],"additionalProperties":false},{"type":"null"}],"description":"Where a visitor goes while the link is off. `null` restores inheritance (domain default, then system default)."},"activatesAt":{"type":["string","null"],"format":"date-time","description":"When the link goes live (ISO 8601 timestamp or epoch ms). Before this instant the link is off and visitors get its fallback (or the countdown page). `null` clears it; omit to leave unchanged."},"deactivatesAt":{"type":["string","null"],"format":"date-time","description":"When the link turns off (ISO 8601 timestamp or epoch ms). After this instant visitors get the link's fallback. Must be after `activatesAt` when both are set. `null` clears it; omit to leave unchanged."},"scheduleTimezone":{"type":["string","null"],"maxLength":64,"description":"IANA timezone (e.g. `Europe/Copenhagen`) used only to display the schedule in the picker. The instants above are absolute and decide liveness on their own."},"showCountdownPage":{"type":["boolean","null"],"description":"Show visitors a countdown page (HTTP 200) instead of the fallback while the link is not yet live. Requires `activatesAt`."},"linkId":{"type":"string","pattern":"^lnk_[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$"}},"required":["linkId"],"additionalProperties":false},"minItems":1,"maxItems":500}},"required":["updates"],"additionalProperties":false},"BulkDeleteLinksInput":{"type":"object","properties":{"linkIds":{"type":"array","items":{"type":"string","pattern":"^lnk_[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$"},"minItems":1,"maxItems":500}},"required":["linkIds"],"additionalProperties":false},"CreateQrVariantInput":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"style":{"type":["object","null"],"properties":{"backgroundShape":{"type":"string","enum":["square","circle"]},"dotType":{"type":"string","enum":["dot","random-dot","rounded","extra-rounded","vertical-line","horizontal-line","square","small-square","diamond","wave","hexagon","circuit","zebra-horizontal","zebra-vertical","blocks-horizontal","blocks-vertical","blobs","soft"]},"cornerSquareType":{"type":"string","enum":["dot","square","extra-rounded","classy","inpoint","outpoint","center-circle"]},"cornerDotType":{"type":"string","enum":["dot","square","extra-rounded","classy","inpoint","outpoint","diamond","hexagon","star","heart"]},"dotsColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"cornerSquareColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"cornerDotColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"backgroundColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"dotsGradient":{"type":"object","properties":{"type":{"type":"string","enum":["linear","radial"]},"rotation":{"type":"number","minimum":0,"maximum":360},"from":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"to":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"midpoint":{"type":"number","exclusiveMinimum":0,"exclusiveMaximum":1}},"required":["type","from","to"],"additionalProperties":false},"cornerSquareGradient":{"type":"object","properties":{"type":{"type":"string","enum":["linear","radial"]},"rotation":{"type":"number","minimum":0,"maximum":360},"from":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"to":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"midpoint":{"type":"number","exclusiveMinimum":0,"exclusiveMaximum":1}},"required":["type","from","to"],"additionalProperties":false},"cornerDotGradient":{"type":"object","properties":{"type":{"type":"string","enum":["linear","radial"]},"rotation":{"type":"number","minimum":0,"maximum":360},"from":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"to":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"midpoint":{"type":"number","exclusiveMinimum":0,"exclusiveMaximum":1}},"required":["type","from","to"],"additionalProperties":false},"backgroundGradient":{"type":"object","properties":{"type":{"type":"string","enum":["linear","radial"]},"rotation":{"type":"number","minimum":0,"maximum":360},"from":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"to":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"midpoint":{"type":"number","exclusiveMinimum":0,"exclusiveMaximum":1}},"required":["type","from","to"],"additionalProperties":false},"branding":{"type":"object","properties":{"mode":{"type":"string","enum":["favicon","upload"]},"size":{"type":"string","enum":["small","large"]},"imageRef":{"type":"string","maxLength":2048,"format":"uri"},"mat":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"string","enum":["none"]}],"description":"Backing behind the mark: a hex color, or \"none\" so the code's background shows through. Omitted = #ffffff."}},"required":["mode","size"],"additionalProperties":false},"errorCorrectionLevel":{"type":"string","enum":["M","Q","H"]}},"additionalProperties":false},"signals":{"type":"object","additionalProperties":{"type":"string","minLength":1,"maxLength":120}}},"required":["name"],"additionalProperties":false},"UpdateQrVariantInput":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"style":{"type":["object","null"],"properties":{"backgroundShape":{"type":"string","enum":["square","circle"]},"dotType":{"type":"string","enum":["dot","random-dot","rounded","extra-rounded","vertical-line","horizontal-line","square","small-square","diamond","wave","hexagon","circuit","zebra-horizontal","zebra-vertical","blocks-horizontal","blocks-vertical","blobs","soft"]},"cornerSquareType":{"type":"string","enum":["dot","square","extra-rounded","classy","inpoint","outpoint","center-circle"]},"cornerDotType":{"type":"string","enum":["dot","square","extra-rounded","classy","inpoint","outpoint","diamond","hexagon","star","heart"]},"dotsColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"cornerSquareColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"cornerDotColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"backgroundColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"dotsGradient":{"type":"object","properties":{"type":{"type":"string","enum":["linear","radial"]},"rotation":{"type":"number","minimum":0,"maximum":360},"from":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"to":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"midpoint":{"type":"number","exclusiveMinimum":0,"exclusiveMaximum":1}},"required":["type","from","to"],"additionalProperties":false},"cornerSquareGradient":{"type":"object","properties":{"type":{"type":"string","enum":["linear","radial"]},"rotation":{"type":"number","minimum":0,"maximum":360},"from":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"to":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"midpoint":{"type":"number","exclusiveMinimum":0,"exclusiveMaximum":1}},"required":["type","from","to"],"additionalProperties":false},"cornerDotGradient":{"type":"object","properties":{"type":{"type":"string","enum":["linear","radial"]},"rotation":{"type":"number","minimum":0,"maximum":360},"from":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"to":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"midpoint":{"type":"number","exclusiveMinimum":0,"exclusiveMaximum":1}},"required":["type","from","to"],"additionalProperties":false},"backgroundGradient":{"type":"object","properties":{"type":{"type":"string","enum":["linear","radial"]},"rotation":{"type":"number","minimum":0,"maximum":360},"from":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"to":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"midpoint":{"type":"number","exclusiveMinimum":0,"exclusiveMaximum":1}},"required":["type","from","to"],"additionalProperties":false},"branding":{"type":"object","properties":{"mode":{"type":"string","enum":["favicon","upload"]},"size":{"type":"string","enum":["small","large"]},"imageRef":{"type":"string","maxLength":2048,"format":"uri"},"mat":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"string","enum":["none"]}],"description":"Backing behind the mark: a hex color, or \"none\" so the code's background shows through. Omitted = #ffffff."}},"required":["mode","size"],"additionalProperties":false},"errorCorrectionLevel":{"type":"string","enum":["M","Q","H"]}},"additionalProperties":false},"signals":{"type":"object","additionalProperties":{"type":"string","minLength":1,"maxLength":120}},"archived":{"type":"boolean"}},"additionalProperties":false},"QrExportInput":{"type":"object","properties":{"variant":{"type":"string","pattern":"^qrv_[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$"}},"additionalProperties":false},"CreateCollectionInput":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["smart"]},"name":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":2000},"filter":{"type":"object","properties":{"query":{"type":"string","maxLength":200,"description":"Free text matched against each link's short path, title, and destination URL."},"status":{"type":"string","enum":["active","inactive"],"description":"active = live right now; inactive = off (manually or by schedule). Schedule-aware."},"created":{"type":"string","enum":["1h","24h","7d","30d"],"description":"Creation-time window: within the last 1h, 24h, 7d, or 30d."},"edited":{"type":"string","enum":["1h","24h","7d","30d"],"description":"Last-edit window (1h|24h|7d|30d). Creation counts as the initial edit."},"createdVia":{"type":"string","enum":["web","import","chat","api","mcp"],"description":"How the link was created: web, import, chat, api, or mcp."},"hasCollection":{"type":"boolean","description":"true = in at least one collection; false = uncollected."},"schedule":{"type":"string","enum":["upcoming","completed"],"description":"upcoming = has an activation/deactivation still to fire; completed = schedule fully in the past. Unscheduled links match neither."},"attribution":{"type":"string","enum":["utm","signals","any"],"description":"Which attribution the link CARRIES: utm = a utm_* param on its destination URL; signals = a QR code carries signals; any = carries either (spoken to a user as \"Either\")."},"targetHost":{"type":"array","items":{"type":"string","minLength":1},"maxItems":20,"description":"Where the link POINTS, its destination host (e.g. cnn.com), as hostnames. A leading `www.` is ignored on both sides, so cnn.com matches www.cnn.com — pass the bare host, never both spellings. Us
# --- truncated at 32 KB (190 KB total) ---
# Full source: https://artifacts.apis.io/zeblink-io/openapi/_original/zeblink-io-v1-openapi.json