{"openapi":"3.1.0","info":{"title":"Beklio Link Developer API","version":"1.0.0"},"servers":[{"url":"https://api.beklio.com"}],"paths":{"/api/v1/links/trash":{"get":{"operationId":"listTrash","summary":"List recoverable deleted links, Bio profiles, boards and pins. Filter by type; paginate with cursor and limit (max 100). Entries expire after 30 days. Requires scope links:read.","x-required-scopes":["links:read"],"x-mcp-tool-name":"link_list_trash","security":[{"bearerAuth":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":2048}},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"integer","minimum":1,"maximum":100}},{"name":"type","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","enum":["LINK","TREE","BOARD","PIN"]}}],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"},"resourceType":{"type":"string","enum":["LINK","TREE","BOARD","PIN"]},"resourceId":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"domainId":{"anyOf":[{"type":"string"},{"type":"null"}]},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"parentId":{"anyOf":[{"type":"string"},{"type":"null"}]},"parentTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"type":"string"},"purgeAt":{"type":"string"}},"required":["id","resourceType","resourceId","title","domainId","slug","parentId","deletedAt","purgeAt"],"additionalProperties":false}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}}}},"/api/v1/links/trash/{id}/restore":{"post":{"operationId":"restoreTrash","summary":"Restore one trash operation with its original addresses and QR. Checks current quota, domain access and public-board gates. Expired entries return 410; a trashed parent or source requires restoration first (409). Requires scope links:write. Requires idempotencyKey; reuse the same key to retry safely.","x-required-scopes":["links:write"],"x-mcp-tool-name":"link_restore_trash","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Required by MCP tools; recommended for HTTP retry safety."}}],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"},"resourceType":{"type":"string","enum":["LINK","TREE","BOARD","PIN"]},"resourceId":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},"required":["id","resourceType","resourceId"],"additionalProperties":false},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"409":{"description":"Restore the deleted parent/source first, or free Board pin capacity.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"410":{"description":"TRASH_EXPIRED: the 30-day recovery deadline has passed.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"422":{"description":"Automatic content policy detected a prohibited destination: LINK_CONTENT_PROHIBITED. No short link is created.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"503":{"description":"Policy storage is unavailable: LINK_CONTENT_CHECK_UNAVAILABLE.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}}}},"/api/v1/links/trash/{id}":{"delete":{"operationId":"purgeTrash","summary":"Permanently erase one trash operation and its dependent contents. Purging a board or pin preserves source links shared elsewhere. This cannot be undone. Requires scope links:delete. Irreversible: confirm with the user before calling. Requires idempotencyKey; reuse the same key to retry safely.","x-required-scopes":["links:delete"],"x-mcp-tool-name":"link_purge_trash","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Required by MCP tools; recommended for HTTP retry safety."}}],"responses":{"204":{"description":"Resource deleted"},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}}}},"/api/v1/links":{"get":{"operationId":"listLinks","summary":"List the user's short links, newest first. Filter with domainId, kind (DIRECT, TREE, TREE_ITEM, BOARD, BOARD_ITEM), folderId, ids or platforms. Paginate with limit (max 100) and cursor or page; meta carries total, hasNext and nextCursor. Set includeRoutes to 'all' to embed route graphs. Requires scope links:read.","x-required-scopes":["links:read"],"x-mcp-tool-name":"link_list_links","security":[{"bearerAuth":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":2048}},{"name":"page","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"integer","minimum":1,"maximum":100}},{"name":"kind","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","enum":["DIRECT","TREE","TREE_ITEM","BOARD","BOARD_ITEM"]}},{"name":"folderId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1}},{"name":"domainId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1}},{"name":"ids","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"name":"routeIds","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"name":"platforms","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"name":"includeRoutes","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","const":"all"}}],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"domainId":{"type":"string"},"kind":{"type":"string","enum":["DIRECT","TREE","TREE_ITEM","BOARD","BOARD_ITEM"]},"routingMode":{"type":"string","enum":["SIMPLE","ADVANCED"]},"publicationMode":{"type":"string","enum":["DIRECT","PAGE"]},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"routes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"additionalProperties":{}}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id"],"additionalProperties":{}}},{"type":"object","properties":{"links":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"domainId":{"type":"string"},"kind":{"type":"string","enum":["DIRECT","TREE","TREE_ITEM","BOARD","BOARD_ITEM"]},"routingMode":{"type":"string","enum":["SIMPLE","ADVANCED"]},"publicationMode":{"type":"string","enum":["DIRECT","PAGE"]},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"routes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"additionalProperties":{}}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id"],"additionalProperties":{}}},"total":{"type":"number"}},"required":["links"],"additionalProperties":{}}]},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}}},"post":{"operationId":"createLink","summary":"Create a short link. Provide domainId and either a destination url or a routes array. Optional: slug (3-64 letters, digits or hyphens; check it first with checkSlugAvailability), title, description, folderId, routingMode (SIMPLE or ADVANCED). Pornography and all gambling/betting destinations are automatically checked and prohibited. Ordinary destinations need no administrator approval. A detected prohibited destination returns 422 without creating a short link. Returns the created link. Requires scope links:write. Requires idempotencyKey; reuse the same key to retry safely.","x-required-scopes":["links:write"],"x-mcp-tool-name":"link_create_link","security":[{"bearerAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Required by MCP tools; recommended for HTTP retry safety."}}],"responses":{"201":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"domainId":{"type":"string"},"kind":{"type":"string","enum":["DIRECT","TREE","TREE_ITEM","BOARD","BOARD_ITEM"]},"routingMode":{"type":"string","enum":["SIMPLE","ADVANCED"]},"publicationMode":{"type":"string","enum":["DIRECT","PAGE"]},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"routes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"additionalProperties":{}}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id"],"additionalProperties":{}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"422":{"description":"Automatic content policy detected a prohibited destination: LINK_CONTENT_PROHIBITED. No short link is created.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"503":{"description":"Policy storage is unavailable: LINK_CONTENT_CHECK_UNAVAILABLE.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string","format":"uri"},"domainId":{"type":"string","minLength":1},"slug":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9-]{3,64}$"},{"type":"null"}]},"kind":{"type":"string","enum":["DIRECT","TREE","TREE_ITEM","BOARD","BOARD_ITEM"]},"routingMode":{"type":"string","enum":["SIMPLE","ADVANCED"]},"autoAppRedirectEnabled":{"type":"boolean"},"publicationMode":{"type":"string","enum":["DIRECT","PAGE"]},"confirmDirectTransition":{"type":"boolean"},"routes":{"minItems":1,"type":"array","items":{"type":"object","properties":{"clientRouteId":{"type":"string","minLength":1},"platform":{"type":"string","enum":["GLOBAL","DEVICE","BROWSER","OS","GEO","LANGUAGE"]},"actionType":{"type":"string","enum":["URL","SMS","WHATSAPP","EMAIL","EVENT","EMBED","NOTE","PROMPT","SKILL","WORKFLOW","SNIPPET","TEMPLATE","DOCUMENT","IMAGE","TOOL","AGENT","MCP","PLUGIN"]},"actionConfig":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}},"targeting":{"type":"object","properties":{"schedule":{"anyOf":[{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","const":"weekly"},"days":{"minItems":1,"maxItems":7,"type":"array","items":{"type":"integer","minimum":1,"maximum":7}},"allDay":{"type":"boolean"},"intervals":{"maxItems":48,"type":"array","items":{"type":"object","properties":{"start":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"}},"required":["start","end"]}}},"required":["mode","days","allDay","intervals"]},{"type":"object","properties":{"mode":{"type":"string","const":"dates"},"startDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"endDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"allDay":{"type":"boolean"},"intervals":{"maxItems":48,"type":"array","items":{"type":"object","properties":{"start":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"}},"required":["start","end"]}}},"required":["mode","startDate","endDate","allDay","intervals"]}]},{"type":"null"}]}},"additionalProperties":{"$ref":"#/$defs/__schema1"}},"deviceProfileIds":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1}},"targetItemIds":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1}},"isGlobalFallback":{"type":"boolean"},"isActive":{"type":"boolean"},"priority":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"conditions":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["COUNTRY","DEVICE_PROFILE","OS","USER_AGENT","LANGUAGE","REFERRER_DOMAIN"]},"operator":{"type":"string","enum":["IN","NOT_IN","EQUALS","REGEX"]},"valueKey":{"type":"string","minLength":1},"valueJson":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}},"required":["type","valueKey"],"additionalProperties":false}},"features":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["PASSWORD","EXPIRATION_DATE","LIMIT","UTM","REDIRECT_DELAY"]},"enabled":{"type":"boolean"},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}},"required":["type"],"additionalProperties":false}}},"additionalProperties":false}},"routeFeatures":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["PASSWORD","EXPIRATION_DATE","LIMIT","UTM","REDIRECT_DELAY"]},"enabled":{"type":"boolean"},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}},"scope":{"type":"string"},"routeIds":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1}}},"required":["type"],"additionalProperties":false}},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"treeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"boardId":{"anyOf":[{"type":"string"},{"type":"null"}]},"folderId":{"anyOf":[{"type":"string"},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"options":{"type":"object","properties":{"routingTimezone":{"type":"string"}},"additionalProperties":{"$ref":"#/$defs/__schema2"}},"seoConfig":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}},"features":{"type":"object","properties":{"alias":{"type":"string","pattern":"^[A-Za-z0-9-]{3,64}$"}},"additionalProperties":false},"seo":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"imageUrl":{"type":"string"},"indexable":{"type":"boolean"}},"additionalProperties":false},"qr":{"type":"object","properties":{"isQrCreated":{"type":"boolean"},"payload":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}},"additionalProperties":false}},"required":["domainId"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]},"__schema1":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema1"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema1"}}]},"__schema2":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema2"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema2"}}]}}}}}}}},"/api/v1/links/{id}":{"get":{"operationId":"getLink","summary":"Get one link by id with its routes and totals (totalEvents, totalVisitors). Requires scope links:read.","x-required-scopes":["links:read"],"x-mcp-tool-name":"link_get_link","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}}],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"domainId":{"type":"string"},"kind":{"type":"string","enum":["DIRECT","TREE","TREE_ITEM","BOARD","BOARD_ITEM"]},"routingMode":{"type":"string","enum":["SIMPLE","ADVANCED"]},"publicationMode":{"type":"string","enum":["DIRECT","PAGE"]},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"routes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"additionalProperties":{}}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id"],"additionalProperties":{}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}}},"patch":{"operationId":"updateLink","summary":"Partially update a link (title, description, slug, routes, folderId, qr, seo). Send only the fields that change. Requires scope links:write. Requires idempotencyKey; reuse the same key to retry safely.","x-required-scopes":["links:write"],"x-mcp-tool-name":"link_update_link","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Required by MCP tools; recommended for HTTP retry safety."}}],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"domainId":{"type":"string"},"kind":{"type":"string","enum":["DIRECT","TREE","TREE_ITEM","BOARD","BOARD_ITEM"]},"routingMode":{"type":"string","enum":["SIMPLE","ADVANCED"]},"publicationMode":{"type":"string","enum":["DIRECT","PAGE"]},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"routes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"additionalProperties":{}}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id"],"additionalProperties":{}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"422":{"description":"Automatic content policy detected a prohibited destination: LINK_CONTENT_PROHIBITED. No short link is created.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"503":{"description":"Policy storage is unavailable: LINK_CONTENT_CHECK_UNAVAILABLE.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string","format":"uri"},"domainId":{"type":"string","minLength":1},"slug":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9-]{3,64}$"},{"type":"null"}]},"kind":{"type":"string","enum":["DIRECT","TREE","TREE_ITEM","BOARD","BOARD_ITEM"]},"routingMode":{"type":"string","enum":["SIMPLE","ADVANCED"]},"autoAppRedirectEnabled":{"type":"boolean"},"publicationMode":{"type":"string","enum":["DIRECT","PAGE"]},"confirmDirectTransition":{"type":"boolean"},"routes":{"minItems":1,"type":"array","items":{"type":"object","properties":{"clientRouteId":{"type":"string","minLength":1},"platform":{"type":"string","enum":["GLOBAL","DEVICE","BROWSER","OS","GEO","LANGUAGE"]},"actionType":{"type":"string","enum":["URL","SMS","WHATSAPP","EMAIL","EVENT","EMBED","NOTE","PROMPT","SKILL","WORKFLOW","SNIPPET","TEMPLATE","DOCUMENT","IMAGE","TOOL","AGENT","MCP","PLUGIN"]},"actionConfig":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}},"targeting":{"type":"object","properties":{"schedule":{"anyOf":[{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","const":"weekly"},"days":{"minItems":1,"maxItems":7,"type":"array","items":{"type":"integer","minimum":1,"maximum":7}},"allDay":{"type":"boolean"},"intervals":{"maxItems":48,"type":"array","items":{"type":"object","properties":{"start":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"}},"required":["start","end"]}}},"required":["mode","days","allDay","intervals"]},{"type":"object","properties":{"mode":{"type":"string","const":"dates"},"startDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"endDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"allDay":{"type":"boolean"},"intervals":{"maxItems":48,"type":"array","items":{"type":"object","properties":{"start":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"}},"required":["start","end"]}}},"required":["mode","startDate","endDate","allDay","intervals"]}]},{"type":"null"}]}},"additionalProperties":{"$ref":"#/$defs/__schema1"}},"deviceProfileIds":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1}},"targetItemIds":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1}},"isGlobalFallback":{"type":"boolean"},"isActive":{"type":"boolean"},"priority":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"conditions":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["COUNTRY","DEVICE_PROFILE","OS","USER_AGENT","LANGUAGE","REFERRER_DOMAIN"]},"operator":{"type":"string","enum":["IN","NOT_IN","EQUALS","REGEX"]},"valueKey":{"type":"string","minLength":1},"valueJson":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}},"required":["type","valueKey"],"additionalProperties":false}},"features":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["PASSWORD","EXPIRATION_DATE","LIMIT","UTM","REDIRECT_DELAY"]},"enabled":{"type":"boolean"},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}},"required":["type"],"additionalProperties":false}}},"additionalProperties":false}},"routeFeatures":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["PASSWORD","EXPIRATION_DATE","LIMIT","UTM","REDIRECT_DELAY"]},"enabled":{"type":"boolean"},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}},"scope":{"type":"string"},"routeIds":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1}}},"required":["type"],"additionalProperties":false}},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"treeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"boardId":{"anyOf":[{"type":"string"},{"type":"null"}]},"folderId":{"anyOf":[{"type":"string"},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"options":{"type":"object","properties":{"routingTimezone":{"type":"string"}},"additionalProperties":{"$ref":"#/$defs/__schema2"}},"seoConfig":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}},"features":{"type":"object","properties":{"alias":{"type":"string","pattern":"^[A-Za-z0-9-]{3,64}$"}},"additionalProperties":false},"seo":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"imageUrl":{"type":"string"},"indexable":{"type":"boolean"}},"additionalProperties":false},"qr":{"type":"object","properties":{"isQrCreated":{"type":"boolean"},"payload":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}},"additionalProperties":false}},"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]},"__schema1":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema1"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema1"}}]},"__schema2":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema2"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema2"}}]}}}}}}},"delete":{"operationId":"deleteLink","summary":"Move a link to trash for 30 days, immediately disabling its address. Routes, QR and analytics identities are preserved. The short address remains reserved; use listTrash and restoreTrash to undo. Requires scope links:delete. Recoverable for 30 days; confirm with the user before calling. HTTP 204 includes X-Trash-Id and X-Trash-Purge-At response headers. Requires idempotencyKey; reuse the same key to retry safely.","x-required-scopes":["links:delete"],"x-mcp-tool-name":"link_delete_link","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Required by MCP tools; recommended for HTTP retry safety."}}],"responses":{"204":{"description":"Resource deleted","headers":{"X-Trash-Id":{"description":"Trash operation ID for recovery","schema":{"type":"string"}},"X-Trash-Purge-At":{"description":"Recovery deadline, 30 days after deletion","schema":{"type":"string","format":"date-time"}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}}}},"/api/v1/links/trees":{"get":{"operationId":"listTrees","summary":"List the user's link-in-bio trees (profile pages). Requires scope links:read.","x-required-scopes":["links:read"],"x-mcp-tool-name":"link_list_trees","security":[{"bearerAuth":[]}],"parameters":[],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}}},"post":{"operationId":"createTree","summary":"Create a link-in-bio tree. username is required (3-64 letters, digits or hyphens); optional title, bio, image and appearance. Requires scope links:write. Requires idempotencyKey; reuse the same key to retry safely.","x-required-scopes":["links:write"],"x-mcp-tool-name":"link_create_tree","security":[{"bearerAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Required by MCP tools; recommended for HTTP retry safety."}}],"responses":{"201":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"422":{"description":"Automatic content policy detected a prohibited destination: LINK_CONTENT_PROHIBITED. No short link is created.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"503":{"description":"Policy storage is unavailable: LINK_CONTENT_CHECK_UNAVAILABLE.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"username":{"type":"string","pattern":"^@?[A-Za-z0-9-]{3,64}$"},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"bio":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"appearance":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}},"required":["username"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}}}}},"/api/v1/links/trees/{id}":{"get":{"operationId":"getTree","summary":"Get one link-in-bio tree by id. Requires scope links:read.","x-required-scopes":["links:read"],"x-mcp-tool-name":"link_get_tree","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}}],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}}},"patch":{"operationId":"updateTree","summary":"Partially update a link-in-bio tree. Send only the fields that change. Requires scope links:write. Requires idempotencyKey; reuse the same key to retry safely.","x-required-scopes":["links:write"],"x-mcp-tool-name":"link_update_tree","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Required by MCP tools; recommended for HTTP retry safety."}}],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"422":{"description":"Automatic content policy detected a prohibited destination: LINK_CONTENT_PROHIBITED. No short link is created.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"503":{"description":"Policy storage is unavailable: LINK_CONTENT_CHECK_UNAVAILABLE.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"username":{"type":"string","pattern":"^@?[A-Za-z0-9-]{3,64}$"},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"bio":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"appearance":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}},"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}}}},"delete":{"operationId":"deleteTree","summary":"Move a Bio profile and its active links to trash together for 30 days. Previously trashed children remain separate. Requires scope links:delete. Recoverable for 30 days; confirm with the user before calling. HTTP 204 includes X-Trash-Id and X-Trash-Purge-At response headers. Requires idempotencyKey; reuse the same key to retry safely.","x-required-scopes":["links:delete"],"x-mcp-tool-name":"link_delete_tree","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Required by MCP tools; recommended for HTTP retry safety."}}],"responses":{"204":{"description":"Resource deleted","headers":{"X-Trash-Id":{"description":"Trash operation ID for recovery","schema":{"type":"string"}},"X-Trash-Purge-At":{"description":"Recovery deadline, 30 days after deletion","schema":{"type":"string","format":"date-time"}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}}}},"/api/v1/links/boards":{"get":{"operationId":"listBoards","summary":"List the user's boards (shared link collections), newest first. Paginate with limit (max 100) and cursor; meta carries hasNext and nextCursor. Requires scope links:read.","x-required-scopes":["links:read"],"x-mcp-tool-name":"link_list_boards","security":[{"bearerAuth":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":2048}},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"moderationStatus":{"type":"string","enum":["CLEAN","UNDER_REVIEW","BLOCKED"],"readOnly":true},"moderationReason":{"anyOf":[{"type":"string"},{"type":"null"}],"readOnly":true},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"readOnly":true},"discoverable":{"type":"boolean","readOnly":true},"publicPublishEnabled":{"type":"boolean","readOnly":true}},"required":["id"],"additionalProperties":{}}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}}},"post":{"operationId":"createBoard","summary":"Create a board. title and slug are required (slug: 3-64 letters, digits or hyphens). Optional: domainId, description, visibility (PRIVATE, UNLISTED or PUBLIC; default PRIVATE), layout, appearance. visibility PUBLIC lists the board in Discover and needs a paid plan. It returns 403 PLAN_FEATURE_REQUIRED on the free plan, 403 BOARD_PUBLIC_DISABLED while public publishing is switched off, 403 BOARD_MODERATED while the board is under review or blocked, and 422 BOARD_PUBLISH_REQUIREMENTS with details.reasons (TITLE_MISSING, PINS_TOO_FEW: at least 3 pins, PIN_BLOCKED_HOST, PIN_FLAGGED) when the board is not ready. The read-only discoverable flag stays false until every pin passed the safety scan; publishedAt is set each time the board enters PUBLIC (a repeated PUBLIC write keeps it; leaving PUBLIC clears it, so a board switched back to PUBLIC moves to the top of Discover). Requires scope links:write. Requires idempotencyKey; reuse the same key to retry safely.","x-required-scopes":["links:write"],"x-mcp-tool-name":"link_create_board","security":[{"bearerAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Required by MCP tools; recommended for HTTP retry safety."}}],"responses":{"201":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"moderationStatus":{"type":"string","enum":["CLEAN","UNDER_REVIEW","BLOCKED"],"readOnly":true},"moderationReason":{"anyOf":[{"type":"string"},{"type":"null"}],"readOnly":true},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"readOnly":true},"discoverable":{"type":"boolean","readOnly":true},"publicPublishEnabled":{"type":"boolean","readOnly":true}},"required":["id"],"additionalProperties":{}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"422":{"description":"Automatic content policy detected a prohibited destination: LINK_CONTENT_PROHIBITED. No short link is created.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"503":{"description":"Policy storage is unavailable: LINK_CONTENT_CHECK_UNAVAILABLE.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"slug":{"type":"string","minLength":1},"domainId":{"type":"string","minLength":1},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"visibility":{"type":"string","enum":["PRIVATE","UNLISTED","PUBLIC"]},"layout":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}]},"appearance":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}},"required":["title","slug"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}}}}},"/api/v1/links/boards/{id}":{"get":{"operationId":"getBoard","summary":"Get one board by id. Requires scope links:read.","x-required-scopes":["links:read"],"x-mcp-tool-name":"link_get_board","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}}],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"moderationStatus":{"type":"string","enum":["CLEAN","UNDER_REVIEW","BLOCKED"],"readOnly":true},"moderationReason":{"anyOf":[{"type":"string"},{"type":"null"}],"readOnly":true},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"readOnly":true},"discoverable":{"type":"boolean","readOnly":true},"publicPublishEnabled":{"type":"boolean","readOnly":true}},"required":["id"],"additionalProperties":{}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}}},"patch":{"operationId":"updateBoard","summary":"Partially update a board (title, slug, domainId, description, coverImage, visibility, layout, appearance). Send only the fields that change. visibility PUBLIC lists the board in Discover and needs a paid plan. It returns 403 PLAN_FEATURE_REQUIRED on the free plan, 403 BOARD_PUBLIC_DISABLED while public publishing is switched off, 403 BOARD_MODERATED while the board is under review or blocked, and 422 BOARD_PUBLISH_REQUIREMENTS with details.reasons (TITLE_MISSING, PINS_TOO_FEW: at least 3 pins, PIN_BLOCKED_HOST, PIN_FLAGGED) when the board is not ready. The read-only discoverable flag stays false until every pin passed the safety scan; publishedAt is set each time the board enters PUBLIC (a repeated PUBLIC write keeps it; leaving PUBLIC clears it, so a board switched back to PUBLIC moves to the top of Discover). Requires scope links:write. Requires idempotencyKey; reuse the same key to retry safely.","x-required-scopes":["links:write"],"x-mcp-tool-name":"link_update_board","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Required by MCP tools; recommended for HTTP retry safety."}}],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"moderationStatus":{"type":"string","enum":["CLEAN","UNDER_REVIEW","BLOCKED"],"readOnly":true},"moderationReason":{"anyOf":[{"type":"string"},{"type":"null"}],"readOnly":true},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"readOnly":true},"discoverable":{"type":"boolean","readOnly":true},"publicPublishEnabled":{"type":"boolean","readOnly":true}},"required":["id"],"additionalProperties":{}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"422":{"description":"Automatic content policy detected a prohibited destination: LINK_CONTENT_PROHIBITED. No short link is created.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"503":{"description":"Policy storage is unavailable: LINK_CONTENT_CHECK_UNAVAILABLE.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"slug":{"type":"string","minLength":1},"domainId":{"type":"string","minLength":1},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"visibility":{"type":"string","enum":["PRIVATE","UNLISTED","PUBLIC"]},"layout":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}]},"appearance":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}},{"type":"null"}]},"coverImage":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}]}},"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}}}},"delete":{"operationId":"deleteBoard","summary":"Move a board, its folders and pins to trash for 30 days. Direct source links and board items used by other active boards remain active. Recoverable shared content is preserved through permanent cleanup. Requires scope links:delete. Recoverable for 30 days; confirm with the user before calling. HTTP 204 includes X-Trash-Id and X-Trash-Purge-At response headers. Requires idempotencyKey; reuse the same key to retry safely.","x-required-scopes":["links:delete"],"x-mcp-tool-name":"link_delete_board","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Required by MCP tools; recommended for HTTP retry safety."}}],"responses":{"204":{"description":"Resource deleted","headers":{"X-Trash-Id":{"description":"Trash operation ID for recovery","schema":{"type":"string"}},"X-Trash-Purge-At":{"description":"Recovery deadline, 30 days after deletion","schema":{"type":"string","format":"date-time"}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}}}},"/api/v1/links/boards/{id}/pins":{"get":{"operationId":"listBoardPins","summary":"List a board's pins in display order, each with its link summary. Filter with folderId (a folder id, or none for pins outside any folder). Paginate with limit (max 100) and cursor; meta carries hasNext and nextCursor. Requires scope links:read.","x-required-scopes":["links:read"],"x-mcp-tool-name":"link_list_board_pins","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":2048}},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"integer","minimum":1,"maximum":100}},{"name":"folderId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1}}],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}}},"post":{"operationId":"createBoardPin","summary":"Add a pin to a board. Send exactly one source: linkId (an existing link you own), url (shortened as a new board item), or actionType with actionConfig (a new content board item). Content actions are NOTE, PROMPT, SKILL, WORKFLOW, SNIPPET, TEMPLATE, DOCUMENT, IMAGE, TOOL, AGENT, MCP and PLUGIN; their required fields are validated by the shared content-action catalog. Optional folderId (a folder of the same board) and note (max 500 characters). When creating a new link, optional domainId picks the domain of the new short link (one of your eligible domains; default: the domain of the board); it is rejected with linkId. A board holds at most 500 pins. Returns 409 with BOARD_PIN_DUPLICATE if the link is already on the board and BOARD_PIN_LIMIT when the board is full. Requires scope links:write. Requires idempotencyKey; reuse the same key to retry safely.","x-required-scopes":["links:write"],"x-mcp-tool-name":"link_create_board_pin","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Required by MCP tools; recommended for HTTP retry safety."}}],"responses":{"201":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"422":{"description":"Automatic content policy detected a prohibited destination: LINK_CONTENT_PROHIBITED. No short link is created.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"503":{"description":"Policy storage is unavailable: LINK_CONTENT_CHECK_UNAVAILABLE.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"linkId":{"type":"string","minLength":1},"url":{"type":"string","minLength":1,"maxLength":2048},"actionType":{"type":"string","enum":["NOTE","PROMPT","SKILL","WORKFLOW","SNIPPET","TEMPLATE","DOCUMENT","IMAGE","TOOL","AGENT","MCP","PLUGIN"]},"actionConfig":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"folderId":{"anyOf":[{"type":"string"},{"type":"null"}]},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"domainId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false}}}}}},"/api/v1/links/pins/{id}":{"patch":{"operationId":"updatePin","summary":"Move or annotate a pin: folderId (null removes it from its folder), sortOrder (integer, 0 or more) and note (null clears it). Send only the fields that change. Requires scope links:write. Requires idempotencyKey; reuse the same key to retry safely.","x-required-scopes":["links:write"],"x-mcp-tool-name":"link_update_pin","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Required by MCP tools; recommended for HTTP retry safety."}}],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"422":{"description":"Automatic content policy detected a prohibited destination: LINK_CONTENT_PROHIBITED. No short link is created.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"503":{"description":"Policy storage is unavailable: LINK_CONTENT_CHECK_UNAVAILABLE.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"folderId":{"anyOf":[{"type":"string"},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":0,"maximum":9007199254740991},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]}},"additionalProperties":false}}}}},"delete":{"operationId":"deletePin","summary":"Move a board pin to trash for 30 days. Normal source links remain active; orphaned board-only content is retained for recovery. Requires scope links:delete. Recoverable for 30 days; confirm with the user before calling. HTTP 204 includes X-Trash-Id and X-Trash-Purge-At response headers. Requires idempotencyKey; reuse the same key to retry safely.","x-required-scopes":["links:delete"],"x-mcp-tool-name":"link_delete_pin","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Required by MCP tools; recommended for HTTP retry safety."}}],"responses":{"204":{"description":"Resource deleted","headers":{"X-Trash-Id":{"description":"Trash operation ID for recovery","schema":{"type":"string"}},"X-Trash-Purge-At":{"description":"Recovery deadline, 30 days after deletion","schema":{"type":"string","format":"date-time"}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}}}},"/api/v1/links/boards/{id}/folders/order":{"patch":{"operationId":"reorderBoardFolders","summary":"Set the order of a board's folders. folderIds must list every folder of the board exactly once, in the new order; returns the folders in that order. Requires scope links:write. Requires idempotencyKey; reuse the same key to retry safely.","x-required-scopes":["links:write"],"x-mcp-tool-name":"link_reorder_board_folders","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Required by MCP tools; recommended for HTTP retry safety."}}],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"422":{"description":"Automatic content policy detected a prohibited destination: LINK_CONTENT_PROHIBITED. No short link is created.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"503":{"description":"Policy storage is unavailable: LINK_CONTENT_CHECK_UNAVAILABLE.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"folderIds":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"string","minLength":1}}},"required":["folderIds"],"additionalProperties":false}}}}}},"/api/v1/links/folders":{"get":{"operationId":"listFolders","summary":"List the user's folders; filter with boardId to see one board's folders. Requires scope links:read.","x-required-scopes":["links:read"],"x-mcp-tool-name":"link_list_folders","security":[{"bearerAuth":[]}],"parameters":[{"name":"boardId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1}}],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}}},"post":{"operationId":"createFolder","summary":"Create a folder to organise links. title is required; optional boardId, description, icon, color. Requires scope links:write. Requires idempotencyKey; reuse the same key to retry safely.","x-required-scopes":["links:write"],"x-mcp-tool-name":"link_create_folder","security":[{"bearerAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Required by MCP tools; recommended for HTTP retry safety."}}],"responses":{"201":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"422":{"description":"Automatic content policy detected a prohibited destination: LINK_CONTENT_PROHIBITED. No short link is created.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"503":{"description":"Policy storage is unavailable: LINK_CONTENT_CHECK_UNAVAILABLE.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","minLength":1},"boardId":{"anyOf":[{"type":"string"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"icon":{"anyOf":[{"type":"string"},{"type":"null"}]},"color":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["title"],"additionalProperties":false}}}}}},"/api/v1/links/folders/{id}":{"get":{"operationId":"getFolder","summary":"Get one folder by id. Requires scope links:read.","x-required-scopes":["links:read"],"x-mcp-tool-name":"link_get_folder","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}}],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}}},"patch":{"operationId":"updateFolder","summary":"Partially update a folder. Send only the fields that change. Requires scope links:write. Requires idempotencyKey; reuse the same key to retry safely.","x-required-scopes":["links:write"],"x-mcp-tool-name":"link_update_folder","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Required by MCP tools; recommended for HTTP retry safety."}}],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"422":{"description":"Automatic content policy detected a prohibited destination: LINK_CONTENT_PROHIBITED. No short link is created.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"503":{"description":"Policy storage is unavailable: LINK_CONTENT_CHECK_UNAVAILABLE.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","minLength":1},"boardId":{"anyOf":[{"type":"string"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"icon":{"anyOf":[{"type":"string"},{"type":"null"}]},"color":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false}}}}},"delete":{"operationId":"deleteFolder","summary":"Permanently delete a folder. Requires scope links:delete. Irreversible: confirm with the user before calling. Requires idempotencyKey; reuse the same key to retry safely.","x-required-scopes":["links:delete"],"x-mcp-tool-name":"link_delete_folder","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Required by MCP tools; recommended for HTTP retry safety."}}],"responses":{"204":{"description":"Resource deleted"},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}}}},"/api/v1/links/{id}/routes":{"get":{"operationId":"listRoutes","summary":"List the routes of a link. A route decides where a visitor goes for a platform (GLOBAL, DEVICE, BROWSER, OS, GEO, LANGUAGE); every link keeps a GLOBAL fallback route. Requires scope links:read.","x-required-scopes":["links:read"],"x-mcp-tool-name":"link_list_routes","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}}],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}}},"post":{"operationId":"createRoute","summary":"Add a route to a link. actionType supports URL, SMS, WHATSAPP, EMAIL, EVENT, EMBED and the content types NOTE, PROMPT, SKILL, WORKFLOW, SNIPPET, TEMPLATE, DOCUMENT, IMAGE, TOOL, AGENT, MCP and PLUGIN and actionConfig holds its fields (for URL: { url }). Optional platform, targeting, priority, conditions and features. targeting.schedule supports weekly days (1 Monday–7 Sunday) or dates, allDay and intervals; scheduled links require options.routingTimezone and an active unscheduled default route. Requires scope links:write. Requires idempotencyKey; reuse the same key to retry safely.","x-required-scopes":["links:write"],"x-mcp-tool-name":"link_create_route","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Required by MCP tools; recommended for HTTP retry safety."}}],"responses":{"201":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"422":{"description":"Automatic content policy detected a prohibited destination: LINK_CONTENT_PROHIBITED. No short link is created.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"503":{"description":"Policy storage is unavailable: LINK_CONTENT_CHECK_UNAVAILABLE.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"clientRouteId":{"type":"string","minLength":1},"platform":{"type":"string","enum":["GLOBAL","DEVICE","BROWSER","OS","GEO","LANGUAGE"]},"actionType":{"type":"string","enum":["URL","SMS","WHATSAPP","EMAIL","EVENT","EMBED","NOTE","PROMPT","SKILL","WORKFLOW","SNIPPET","TEMPLATE","DOCUMENT","IMAGE","TOOL","AGENT","MCP","PLUGIN"]},"actionConfig":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}},"targeting":{"type":"object","properties":{"schedule":{"anyOf":[{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","const":"weekly"},"days":{"minItems":1,"maxItems":7,"type":"array","items":{"type":"integer","minimum":1,"maximum":7}},"allDay":{"type":"boolean"},"intervals":{"maxItems":48,"type":"array","items":{"type":"object","properties":{"start":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"}},"required":["start","end"]}}},"required":["mode","days","allDay","intervals"]},{"type":"object","properties":{"mode":{"type":"string","const":"dates"},"startDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"endDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"allDay":{"type":"boolean"},"intervals":{"maxItems":48,"type":"array","items":{"type":"object","properties":{"start":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"}},"required":["start","end"]}}},"required":["mode","startDate","endDate","allDay","intervals"]}]},{"type":"null"}]}},"additionalProperties":{"$ref":"#/$defs/__schema1"}},"deviceProfileIds":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1}},"targetItemIds":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1}},"isGlobalFallback":{"type":"boolean"},"isActive":{"type":"boolean"},"priority":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"conditions":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["COUNTRY","DEVICE_PROFILE","OS","USER_AGENT","LANGUAGE","REFERRER_DOMAIN"]},"operator":{"type":"string","enum":["IN","NOT_IN","EQUALS","REGEX"]},"valueKey":{"type":"string","minLength":1},"valueJson":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}},"required":["type","valueKey"],"additionalProperties":false}},"features":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["PASSWORD","EXPIRATION_DATE","LIMIT","UTM","REDIRECT_DELAY"]},"enabled":{"type":"boolean"},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}},"required":["type"],"additionalProperties":false}}},"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]},"__schema1":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema1"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema1"}}]}}}}}}}},"/api/v1/links/{id}/routes/{routeId}":{"get":{"operationId":"getRoute","summary":"Get one route of a link by routeId. Requires scope links:read.","x-required-scopes":["links:read"],"x-mcp-tool-name":"link_get_route","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"routeId","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}}],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}}},"patch":{"operationId":"updateRoute","summary":"Partially update a route (action, targeting, priority, active flag). Send only the fields that change. Requires scope links:write. Requires idempotencyKey; reuse the same key to retry safely.","x-required-scopes":["links:write"],"x-mcp-tool-name":"link_update_route","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"routeId","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Required by MCP tools; recommended for HTTP retry safety."}}],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"422":{"description":"Automatic content policy detected a prohibited destination: LINK_CONTENT_PROHIBITED. No short link is created.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"503":{"description":"Policy storage is unavailable: LINK_CONTENT_CHECK_UNAVAILABLE.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"clientRouteId":{"type":"string","minLength":1},"platform":{"type":"string","enum":["GLOBAL","DEVICE","BROWSER","OS","GEO","LANGUAGE"]},"actionType":{"type":"string","enum":["URL","SMS","WHATSAPP","EMAIL","EVENT","EMBED","NOTE","PROMPT","SKILL","WORKFLOW","SNIPPET","TEMPLATE","DOCUMENT","IMAGE","TOOL","AGENT","MCP","PLUGIN"]},"actionConfig":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}},"targeting":{"type":"object","properties":{"schedule":{"anyOf":[{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","const":"weekly"},"days":{"minItems":1,"maxItems":7,"type":"array","items":{"type":"integer","minimum":1,"maximum":7}},"allDay":{"type":"boolean"},"intervals":{"maxItems":48,"type":"array","items":{"type":"object","properties":{"start":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"}},"required":["start","end"]}}},"required":["mode","days","allDay","intervals"]},{"type":"object","properties":{"mode":{"type":"string","const":"dates"},"startDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"endDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"allDay":{"type":"boolean"},"intervals":{"maxItems":48,"type":"array","items":{"type":"object","properties":{"start":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"}},"required":["start","end"]}}},"required":["mode","startDate","endDate","allDay","intervals"]}]},{"type":"null"}]}},"additionalProperties":{"$ref":"#/$defs/__schema1"}},"deviceProfileIds":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1}},"targetItemIds":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1}},"isGlobalFallback":{"type":"boolean"},"isActive":{"type":"boolean"},"priority":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sortOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"conditions":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["COUNTRY","DEVICE_PROFILE","OS","USER_AGENT","LANGUAGE","REFERRER_DOMAIN"]},"operator":{"type":"string","enum":["IN","NOT_IN","EQUALS","REGEX"]},"valueKey":{"type":"string","minLength":1},"valueJson":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}},"required":["type","valueKey"],"additionalProperties":false}},"features":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["PASSWORD","EXPIRATION_DATE","LIMIT","UTM","REDIRECT_DELAY"]},"enabled":{"type":"boolean"},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}},"required":["type"],"additionalProperties":false}}},"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]},"__schema1":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema1"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema1"}}]}}}}}}},"delete":{"operationId":"deleteRoute","summary":"Permanently delete a route from a link. Requires scope links:delete. Irreversible: confirm with the user before calling. Requires idempotencyKey; reuse the same key to retry safely.","x-required-scopes":["links:delete"],"x-mcp-tool-name":"link_delete_route","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"routeId","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Required by MCP tools; recommended for HTTP retry safety."}}],"responses":{"204":{"description":"Resource deleted"},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}}}},"/api/v1/links/{id}/routes/{routeId}/conditions":{"get":{"operationId":"listRouteConditions","summary":"List the conditions of a route. Conditions restrict when it applies (COUNTRY, DEVICE_PROFILE, OS, USER_AGENT, LANGUAGE, REFERRER_DOMAIN). Requires scope links:read.","x-required-scopes":["links:read"],"x-mcp-tool-name":"link_list_route_conditions","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"routeId","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}}],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}}},"post":{"operationId":"createRouteCondition","summary":"Add a condition to a route. type and valueKey are required; operator is IN, NOT_IN, EQUALS or REGEX. Requires scope links:write. Requires idempotencyKey; reuse the same key to retry safely.","x-required-scopes":["links:write"],"x-mcp-tool-name":"link_create_route_condition","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"routeId","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Required by MCP tools; recommended for HTTP retry safety."}}],"responses":{"201":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"422":{"description":"Automatic content policy detected a prohibited destination: LINK_CONTENT_PROHIBITED. No short link is created.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"503":{"description":"Policy storage is unavailable: LINK_CONTENT_CHECK_UNAVAILABLE.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"type":{"type":"string","enum":["COUNTRY","DEVICE_PROFILE","OS","USER_AGENT","LANGUAGE","REFERRER_DOMAIN"]},"operator":{"type":"string","enum":["IN","NOT_IN","EQUALS","REGEX"]},"valueKey":{"type":"string","minLength":1},"valueJson":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}},"required":["type","valueKey"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}}}}},"/api/v1/links/{id}/routes/{routeId}/conditions/{childId}":{"patch":{"operationId":"updateRouteCondition","summary":"Partially update a route condition (childId). Requires scope links:write. Requires idempotencyKey; reuse the same key to retry safely.","x-required-scopes":["links:write"],"x-mcp-tool-name":"link_update_route_condition","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"routeId","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"childId","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Required by MCP tools; recommended for HTTP retry safety."}}],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"422":{"description":"Automatic content policy detected a prohibited destination: LINK_CONTENT_PROHIBITED. No short link is created.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"503":{"description":"Policy storage is unavailable: LINK_CONTENT_CHECK_UNAVAILABLE.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"type":{"type":"string","enum":["COUNTRY","DEVICE_PROFILE","OS","USER_AGENT","LANGUAGE","REFERRER_DOMAIN"]},"operator":{"type":"string","enum":["IN","NOT_IN","EQUALS","REGEX"]},"valueKey":{"type":"string","minLength":1},"valueJson":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}},"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}}}},"delete":{"operationId":"deleteRouteCondition","summary":"Permanently delete a route condition (childId). Requires scope links:delete. Irreversible: confirm with the user before calling. Requires idempotencyKey; reuse the same key to retry safely.","x-required-scopes":["links:delete"],"x-mcp-tool-name":"link_delete_route_condition","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"routeId","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"childId","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Required by MCP tools; recommended for HTTP retry safety."}}],"responses":{"204":{"description":"Resource deleted"},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}}}},"/api/v1/links/{id}/routes/{routeId}/targets":{"get":{"operationId":"listRouteTargets","summary":"List the target items of a route (tree or board items the route points to). Requires scope links:read.","x-required-scopes":["links:read"],"x-mcp-tool-name":"link_list_route_targets","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"routeId","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}}],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"routeId":{"type":"string"},"itemId":{"type":"string"},"required":{"type":"boolean"}},"required":["routeId","itemId"],"additionalProperties":{}}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}}},"post":{"operationId":"createRouteTarget","summary":"Attach a target item to a route. itemId is required; required marks it mandatory. Requires scope links:write. Requires idempotencyKey; reuse the same key to retry safely.","x-required-scopes":["links:write"],"x-mcp-tool-name":"link_create_route_target","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"routeId","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Required by MCP tools; recommended for HTTP retry safety."}}],"responses":{"201":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"routeId":{"type":"string"},"itemId":{"type":"string"},"required":{"type":"boolean"}},"required":["routeId","itemId"],"additionalProperties":{}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"422":{"description":"Automatic content policy detected a prohibited destination: LINK_CONTENT_PROHIBITED. No short link is created.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"503":{"description":"Policy storage is unavailable: LINK_CONTENT_CHECK_UNAVAILABLE.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"itemId":{"type":"string","minLength":1},"required":{"type":"boolean"}},"required":["itemId"],"additionalProperties":false}}}}}},"/api/v1/links/{id}/routes/{routeId}/targets/{childId}":{"patch":{"operationId":"updateRouteTarget","summary":"Update a route target (childId), e.g. its required flag. Requires scope links:write. Requires idempotencyKey; reuse the same key to retry safely.","x-required-scopes":["links:write"],"x-mcp-tool-name":"link_update_route_target","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"routeId","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"childId","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Required by MCP tools; recommended for HTTP retry safety."}}],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"routeId":{"type":"string"},"itemId":{"type":"string"},"required":{"type":"boolean"}},"required":["routeId","itemId"],"additionalProperties":{}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"422":{"description":"Automatic content policy detected a prohibited destination: LINK_CONTENT_PROHIBITED. No short link is created.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"503":{"description":"Policy storage is unavailable: LINK_CONTENT_CHECK_UNAVAILABLE.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"required":{"type":"boolean"}},"additionalProperties":false}}}}},"delete":{"operationId":"deleteRouteTarget","summary":"Permanently detach a target from a route (childId). Requires scope links:delete. Irreversible: confirm with the user before calling. Requires idempotencyKey; reuse the same key to retry safely.","x-required-scopes":["links:delete"],"x-mcp-tool-name":"link_delete_route_target","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"routeId","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"childId","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Required by MCP tools; recommended for HTTP retry safety."}}],"responses":{"204":{"description":"Resource deleted"},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}}}},"/api/v1/links/{id}/routes/{routeId}/features":{"get":{"operationId":"listRouteFeatures","summary":"List the features of a route: PASSWORD, EXPIRATION_DATE, LIMIT, UTM or REDIRECT_DELAY. Requires scope links:read.","x-required-scopes":["links:read"],"x-mcp-tool-name":"link_list_route_features","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"routeId","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}}],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}}},"post":{"operationId":"createRouteFeature","summary":"Enable a feature on a route. type is required; config holds its settings (for example an expiry date or a visit limit). Requires scope links:write. Requires idempotencyKey; reuse the same key to retry safely.","x-required-scopes":["links:write"],"x-mcp-tool-name":"link_create_route_feature","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"routeId","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Required by MCP tools; recommended for HTTP retry safety."}}],"responses":{"201":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"422":{"description":"Automatic content policy detected a prohibited destination: LINK_CONTENT_PROHIBITED. No short link is created.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"503":{"description":"Policy storage is unavailable: LINK_CONTENT_CHECK_UNAVAILABLE.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"type":{"type":"string","enum":["PASSWORD","EXPIRATION_DATE","LIMIT","UTM","REDIRECT_DELAY"]},"enabled":{"type":"boolean"},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}},"required":["type"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}}}}},"/api/v1/links/{id}/routes/{routeId}/features/{childId}":{"patch":{"operationId":"updateRouteFeature","summary":"Partially update a route feature (childId): enabled flag or config. Requires scope links:write. Requires idempotencyKey; reuse the same key to retry safely.","x-required-scopes":["links:write"],"x-mcp-tool-name":"link_update_route_feature","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"routeId","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"childId","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Required by MCP tools; recommended for HTTP retry safety."}}],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"422":{"description":"Automatic content policy detected a prohibited destination: LINK_CONTENT_PROHIBITED. No short link is created.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"503":{"description":"Policy storage is unavailable: LINK_CONTENT_CHECK_UNAVAILABLE.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"type":{"type":"string","enum":["PASSWORD","EXPIRATION_DATE","LIMIT","UTM","REDIRECT_DELAY"]},"enabled":{"type":"boolean"},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}},"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}}}},"delete":{"operationId":"deleteRouteFeature","summary":"Permanently remove a feature from a route (childId). Requires scope links:delete. Irreversible: confirm with the user before calling. Requires idempotencyKey; reuse the same key to retry safely.","x-required-scopes":["links:delete"],"x-mcp-tool-name":"link_delete_route_feature","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"routeId","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"childId","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Required by MCP tools; recommended for HTTP retry safety."}}],"responses":{"204":{"description":"Resource deleted"},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}}}},"/api/v1/links/{id}/qr":{"get":{"operationId":"getQr","summary":"Get a link's QR state: whether a QR exists (isQrCreated) and its payload. Requires scope links:read.","x-required-scopes":["links:read"],"x-mcp-tool-name":"link_get_qr","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}}],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"isQrCreated":{"type":"boolean"},"qrPayload":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}},{"type":"null"}]}},"required":["id","isQrCreated","qrPayload"],"additionalProperties":{}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{},"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}}},"patch":{"operationId":"updateQr","summary":"Set a link's QR payload (design and content options); this also marks the QR as created. Requires scope links:write. Requires idempotencyKey; reuse the same key to retry safely.","x-required-scopes":["links:write"],"x-mcp-tool-name":"link_update_qr","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Required by MCP tools; recommended for HTTP retry safety."}}],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"domainId":{"type":"string"},"kind":{"type":"string","enum":["DIRECT","TREE","TREE_ITEM","BOARD","BOARD_ITEM"]},"routingMode":{"type":"string","enum":["SIMPLE","ADVANCED"]},"publicationMode":{"type":"string","enum":["DIRECT","PAGE"]},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"routes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"additionalProperties":{}}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id"],"additionalProperties":{}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"422":{"description":"Automatic content policy detected a prohibited destination: LINK_CONTENT_PROHIBITED. No short link is created.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"503":{"description":"Policy storage is unavailable: LINK_CONTENT_CHECK_UNAVAILABLE.","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"payload":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}},"required":["payload"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}}}}},"/api/v1/links/{id}/analytics":{"get":{"operationId":"getAnalytics","summary":"Get a link's click analytics for the last days (1-365). Returns visit totals and breakdowns such as country, device and referrer. Requires scope analytics:read.","x-required-scopes":["analytics:read"],"x-mcp-tool-name":"link_get_analytics","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":256,"pattern":"^[A-Za-z0-9_-]+$"}},{"name":"days","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"integer","minimum":1,"maximum":365}}],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"linkId":{"type":"string"},"range":{"type":"object","properties":{"days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"from":{"type":"string"},"to":{"type":"string"}},"required":["days","from","to"],"additionalProperties":false},"totals":{"type":"object","properties":{"events":{"type":"number","minimum":0},"visitors":{"type":"number","minimum":0}},"required":["events","visitors"],"additionalProperties":false},"eventsByType":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"count":{"type":"number","minimum":0}},"required":["type","count"],"additionalProperties":false}},"aiTraffic":{"anyOf":[{"type":"object","properties":{"totals":{"type":"object","properties":{"aiFetch":{"type":"integer","minimum":0,"maximum":9007199254740991},"humanClicks":{"type":"integer","minimum":0,"maximum":9007199254740991},"crawlers":{"type":"integer","minimum":0,"maximum":9007199254740991},"conversionRate":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]}},"required":["aiFetch","humanClicks","crawlers","conversionRate"],"additionalProperties":false},"sources":{"type":"array","items":{"type":"object","properties":{"aiFetch":{"type":"integer","minimum":0,"maximum":9007199254740991},"humanClicks":{"type":"integer","minimum":0,"maximum":9007199254740991},"crawlers":{"type":"integer","minimum":0,"maximum":9007199254740991},"conversionRate":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"source":{"type":"string"}},"required":["aiFetch","humanClicks","crawlers","conversionRate","source"],"additionalProperties":false}},"timeline":{"type":"array","items":{"type":"object","properties":{"aiFetch":{"type":"integer","minimum":0,"maximum":9007199254740991},"humanClicks":{"type":"integer","minimum":0,"maximum":9007199254740991},"crawlers":{"type":"integer","minimum":0,"maximum":9007199254740991},"date":{"type":"string"},"source":{"type":"string"}},"required":["aiFetch","humanClicks","crawlers","date","source"],"additionalProperties":false}},"topLinks":{"type":"array","items":{"type":"object","properties":{"aiFetch":{"type":"integer","minimum":0,"maximum":9007199254740991},"humanClicks":{"type":"integer","minimum":0,"maximum":9007199254740991},"crawlers":{"type":"integer","minimum":0,"maximum":9007199254740991},"conversionRate":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"linkId":{"type":"string"}},"required":["aiFetch","humanClicks","crawlers","conversionRate","linkId"],"additionalProperties":false}}},"required":["totals","sources","timeline","topLinks"],"additionalProperties":false},{"type":"null"}]},"aiTrafficStatus":{"type":"string","enum":["available","unavailable"]}},"required":["linkId","range","totals","eventsByType"],"additionalProperties":{}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}}}},"/api/v1/links/analytics/ai-traffic":{"get":{"operationId":"getAiTraffic","summary":"Get AI traffic for owned links: AI reads, attributed human clicks, crawlers, daily trends and conversion ratio. Optional linkIds and routeIds are comma-separated filters. Zero reads yields a null ratio. Requires scope analytics:read.","x-required-scopes":["analytics:read"],"x-mcp-tool-name":"link_get_ai_traffic","security":[{"bearerAuth":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"integer","minimum":1,"maximum":365}},{"name":"startDate","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","maxLength":64}},{"name":"linkIds","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","maxLength":12900}},{"name":"routeIds","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","maxLength":129000}}],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"totals":{"type":"object","properties":{"aiFetch":{"type":"integer","minimum":0,"maximum":9007199254740991},"humanClicks":{"type":"integer","minimum":0,"maximum":9007199254740991},"crawlers":{"type":"integer","minimum":0,"maximum":9007199254740991},"conversionRate":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]}},"required":["aiFetch","humanClicks","crawlers","conversionRate"],"additionalProperties":false},"sources":{"type":"array","items":{"type":"object","properties":{"aiFetch":{"type":"integer","minimum":0,"maximum":9007199254740991},"humanClicks":{"type":"integer","minimum":0,"maximum":9007199254740991},"crawlers":{"type":"integer","minimum":0,"maximum":9007199254740991},"conversionRate":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"source":{"type":"string"}},"required":["aiFetch","humanClicks","crawlers","conversionRate","source"],"additionalProperties":false}},"timeline":{"type":"array","items":{"type":"object","properties":{"aiFetch":{"type":"integer","minimum":0,"maximum":9007199254740991},"humanClicks":{"type":"integer","minimum":0,"maximum":9007199254740991},"crawlers":{"type":"integer","minimum":0,"maximum":9007199254740991},"date":{"type":"string"},"source":{"type":"string"}},"required":["aiFetch","humanClicks","crawlers","date","source"],"additionalProperties":false}},"topLinks":{"type":"array","items":{"type":"object","properties":{"aiFetch":{"type":"integer","minimum":0,"maximum":9007199254740991},"humanClicks":{"type":"integer","minimum":0,"maximum":9007199254740991},"crawlers":{"type":"integer","minimum":0,"maximum":9007199254740991},"conversionRate":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"linkId":{"type":"string"}},"required":["aiFetch","humanClicks","crawlers","conversionRate","linkId"],"additionalProperties":false}}},"required":["totals","sources","timeline","topLinks"],"additionalProperties":false},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}}}},"/api/v1/links/domains":{"get":{"operationId":"listDomains","summary":"List the domains the user can read, including their short-link domains. Requires scope domains:read.","x-required-scopes":["domains:read"],"x-mcp-tool-name":"link_list_domains","security":[{"bearerAuth":[]}],"parameters":[],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"domains":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"hostname":{"type":"string"},"type":{"type":"string"},"isVerified":{"type":"boolean"},"approvalStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"isPrimary":{"type":"boolean"},"serviceTargets":{"type":"array","items":{"type":"string"}}},"required":["id","hostname","type","isVerified","approvalStatus","isPrimary"],"additionalProperties":{}}},"userDomains":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"hostname":{"type":"string"},"type":{"type":"string"},"isVerified":{"type":"boolean"},"approvalStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"isPrimary":{"type":"boolean"},"serviceTargets":{"type":"array","items":{"type":"string"}}},"required":["id","hostname","type","isVerified","approvalStatus","isPrimary"],"additionalProperties":{}}},"systemDomains":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"hostname":{"type":"string"},"type":{"type":"string"},"isVerified":{"type":"boolean"},"approvalStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"isPrimary":{"type":"boolean"},"serviceTargets":{"type":"array","items":{"type":"string"}}},"required":["id","hostname","type","isVerified","approvalStatus","isPrimary"],"additionalProperties":{}}},"defaultDomain":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"hostname":{"type":"string"},"type":{"type":"string"},"isVerified":{"type":"boolean"},"approvalStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"isPrimary":{"type":"boolean"},"serviceTargets":{"type":"array","items":{"type":"string"}}},"required":["id","hostname","type","isVerified","approvalStatus","isPrimary"],"additionalProperties":{}},{"type":"null"}]}},"required":["domains","userDomains","systemDomains","defaultDomain"],"additionalProperties":false},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}}}},"/api/v1/links/domains/default":{"get":{"operationId":"getDefaultDomain","summary":"Get the user's default short-link domain (null if none is set). Requires scope domains:read.","x-required-scopes":["domains:read"],"x-mcp-tool-name":"link_get_default_domain","security":[{"bearerAuth":[]}],"parameters":[],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"hostname":{"type":"string"},"type":{"type":"string"},"isVerified":{"type":"boolean"},"approvalStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"isPrimary":{"type":"boolean"},"serviceTargets":{"type":"array","items":{"type":"string"}}},"required":["id","hostname","type","isVerified","approvalStatus","isPrimary"],"additionalProperties":{}},{"type":"null"}]},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}}}},"/api/v1/links/domains/eligible":{"get":{"operationId":"listEligibleDomains","summary":"List the domains the user may create links on right now (active and within plan limits). Requires scope domains:read.","x-required-scopes":["domains:read"],"x-mcp-tool-name":"link_list_eligible_domains","security":[{"bearerAuth":[]}],"parameters":[],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"domains":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"hostname":{"type":"string"},"type":{"type":"string"},"isVerified":{"type":"boolean"},"approvalStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"isPrimary":{"type":"boolean"},"serviceTargets":{"type":"array","items":{"type":"string"}}},"required":["id","hostname","type","isVerified","approvalStatus","isPrimary"],"additionalProperties":{}}},"userDomains":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"hostname":{"type":"string"},"type":{"type":"string"},"isVerified":{"type":"boolean"},"approvalStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"isPrimary":{"type":"boolean"},"serviceTargets":{"type":"array","items":{"type":"string"}}},"required":["id","hostname","type","isVerified","approvalStatus","isPrimary"],"additionalProperties":{}}},"systemDomains":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"hostname":{"type":"string"},"type":{"type":"string"},"isVerified":{"type":"boolean"},"approvalStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"isPrimary":{"type":"boolean"},"serviceTargets":{"type":"array","items":{"type":"string"}}},"required":["id","hostname","type","isVerified","approvalStatus","isPrimary"],"additionalProperties":{}}},"defaultDomain":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"hostname":{"type":"string"},"type":{"type":"string"},"isVerified":{"type":"boolean"},"approvalStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"isPrimary":{"type":"boolean"},"serviceTargets":{"type":"array","items":{"type":"string"}}},"required":["id","hostname","type","isVerified","approvalStatus","isPrimary"],"additionalProperties":{}},{"type":"null"}]}},"required":["domains","userDomains","systemDomains","defaultDomain"],"additionalProperties":false},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}}}},"/api/v1/links/platform-catalog":{"get":{"operationId":"getPlatformCatalog","summary":"List the platform catalog (device profiles, browsers, operating systems) usable in route targeting and conditions. Requires scope links:read.","x-required-scopes":["links:read"],"x-mcp-tool-name":"link_get_platform_catalog","security":[{"bearerAuth":[]}],"parameters":[],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"key":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}}}},"required":["id","key","items"],"additionalProperties":{}}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}}}},"/api/v1/links/links/slug-availability":{"get":{"operationId":"checkSlugAvailability","summary":"Check whether a slug is free. slug is required; pass domainId to check on one domain and excludeLinkId when renaming an existing link. Call this before createLink with a custom slug. Requires scope links:read.","x-required-scopes":["links:read"],"x-mcp-tool-name":"link_check_slug_availability","security":[{"bearerAuth":[]}],"parameters":[{"name":"slug","in":"query","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1}},{"name":"domainId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1}},{"name":"excludeLinkId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1}},{"name":"excludeTreeId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1}}],"responses":{"200":{"description":"Successful canonical response","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"object","properties":{"available":{"type":"boolean"},"reason":{"type":"string"}},"required":["available"],"additionalProperties":{}},"meta":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":1,"maximum":100},"hasNext":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":{}}},"required":["data"],"additionalProperties":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"statusCode":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"type":"string"}},"required":["error","statusCode","requestId"],"additionalProperties":{}}}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"bk_live_* developer API key or delegated product API token"}}}}