Skip to content
KnockDevelopers
Magic links

List magic links

Chat with a Developer
GET
/v1/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.

Authorization

ApiKeyAuth
headerx-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.

Query Parameters

limit?integer

Page size.

Range1 <= value <= 100
Default20
offset?integer

Number of links to skip.

Range0 <= value
Default0
search?string

Only links whose name contains this text, ignoring case.

Lengthlength <= 200
types?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
chatmodal
channels?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_cardother
messagingApps?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
slackwhatsapplinkedintelegram
chatRoutingIds?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.

Default"createdAt"
Show 5 valuesHide values
createdAtnameclickschatsopportunities
sortOrder?enum<string>

The direction of sortBy: DESC (default) or ASC.

Default"DESC"
Show 2 valuesHide values
ASCDESC

Response Body

A page of magic links.

application/json
  1. response

A page of magic links.

total*integer

Number of items that match the query, across all pages.

limit*integer

Page size of this page.

offset*integer

Number of items skipped before this page.

items*array<>

Magic links, in the order asked for.

Example Request
curl -X GET 'https://app.knock-ai.com/v1/magic-links' \  -H 'x-api-key: <YOUR_API_KEY>'
Example Response
{  "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"    }  ]}