List magic links
Returns your chat and modal links with their traffic, newest first unless you pass sortBy and sortOrder. Narrow the list with types, channels, messagingApps, chatRoutingIds and search: different filters all apply.
Links of the other types are not listed yet: read one with GET /v1/magic-links/{magicLinkId}. Traffic refreshes hourly, so a new link reads zero traffic at first.
ApiKeyAuthx-api-key<token>Your Knock API key. Ask your Knock account team for one: a key with the Enrichment API role to enrich and route leads and find warm intros, the Viewer role to read chats, meetings, routing rules, FAQs, analytics, magic links, meeting routing rules, marketing cards and members, the Admin, Editor or AI Manager role to change FAQs, the Admin, Editor or Partner Contributor role to create marketing cards and wrap chat links, or the Admin role to set the working hours of your members.
limit?integerPage size.
1 <= value <= 10020offset?integerNumber of links to skip.
0 <= value0search?stringOnly links whose name contains this text, ignoring case.
length <= 200types?array<>Only links of these types. Without it, chat and modal links are both listed. Comma-separated or repeat the parameter; matches any of the values.
Show 2 valuesHide values
chatmodalchannels?array<>Only links shared on one of these channels. Comma-separated or repeat the parameter; matches any of the values.
Show 45 valuesHide values
websiteoffline_eventvirtual_eventemaillinkedinfacebookgoogle_adstiktokinstagramtwitterthreadsreddityoutubevimeomediumdocsproductdiscordslackslack_communitywhatsapptelegramg2capterratrustpilotproduct_huntcrunchbasemerchandiseqr_codeaws_marketplaceazure_marketplacegoogle_cloud_marketplaceatlassian_marketplacesalesforce_appexchangehubspot_marketplaceslack_app_directorymicrosoft_appsourcegithub_marketplacegitlab_marketplacesnowflake_marketplacehashicorp_marketplacewebflow_marketplaceother_marketplacemarketing_cardothermessagingApps?array<>Only links that open one of these messaging apps. Comma-separated or repeat the parameter; matches any of the values.
Show 4 valuesHide values
slackwhatsapplinkedintelegramchatRoutingIds?array<>Only links whose chatRoutingId is one of these, from GET /v1/chat-routing-rules. Up to 50. Comma-separated or repeat the parameter; matches any of the values.
sortBy?enum<string>What to sort the links by.
"createdAt"Show 5 valuesHide values
createdAtnameclickschatsopportunitiessortOrder?enum<string>The direction of sortBy: DESC (default) or ASC.
"DESC"Show 2 valuesHide values
ASCDESCA page of magic links.
application/json- response
A page of magic links.
total*integerNumber of items that match the query, across all pages.
limit*integerPage size of this page.
offset*integerNumber of items skipped before this page.
items*array<>Magic links, in the order asked for.
curl -X GET 'https://app.knock-ai.com/v1/magic-links' \ -H 'x-api-key: <YOUR_API_KEY>'{ "total": 1, "limit": 50, "offset": 0, "items": [ { "magicLinkId": "aB3dE9", "name": "Webinar", "type": "chat", "channel": "website", "messagingApps": [ "slack" ], "chatRoutingId": "3c5e7a9b-1d2f-4a6b-8c0d-2e4f6a8b0c1d", "url": "https://start-chat.com/slack/yourcompany/aB3dE9", "traffic": { "clicks": 120, "chats": 14, "opportunities": 3 }, "hasTraffic": true, "createdAt": "2026-11-02T12:00:00.000Z" } ]}