The Instant Messaging API provides access to data from messaging platforms like Telegram and Discord, including chat messages, user profiles, channel information, and server details.
GET /api/v2/im/search 
Search through the IM messages database using various filters.
Name Type Required Description qstring Yes Search query string gtestring No Date filter (≥). Formats: Unix timestamp, YYYY-MM-DD, or YYYY-MM-DDThh:mm:ss ltestring No Date filter (≤). Formats: Unix timestamp, YYYY-MM-DD, or YYYY-MM-DDThh:mm:ss pageinteger No Page number for pagination page_sizeinteger No Results per page (default: 10) platformstring No Filter by messaging platform usernamestring No Filter by username 
 
   curl   " https://api.vysion.ai/api/v2/im/search?q=malware "   \ 
   --header   ' Accept: application/json '   \ 
   --header   ' x-api-key: YOUR_API_KEY ' 
  from  vysion  import  client 
c  =  client. Client ( api_key = API_KEY ) 
     gte = " 2024-05-16T10:57:58.632466 " , 
     lte = " 2024-05-16T23:00:00 " 
      
         "userId" :  " 1234567891011121314 " , 
         "channelId" :  " 1234567891011121314 " , 
         "messageId" :  " 1234567891011121314_1234567891011121314 " , 
         "message" :  " Message hit " , 
             "probability" :  0.857141655897461 
             "probability" :  0.14285741760106124 
         "detectionDate" :  " 2025-01-01T00:00:00.000000 " , 
         "serverId" :  " 1234567891011121314 " , 
         "serverTitle" :  " Discord server " , 
GET /api/v2/im/search/profiles 
Search through the IM profiles database using various filters.
Name Type Required Description qstring yes Search query string gtestring No Date filter (≥). Formats: Unix timestamp, YYYY-MM-DD, or YYYY-MM-DDThh:mm:ss ltestring No Date filter (≤). Formats: Unix timestamp, YYYY-MM-DD, or YYYY-MM-DDThh:mm:ss pageinteger No Page number for pagination page_sizeinteger No Results per page (default: 10) platformstring No Filter by messaging platform 
 
   curl   " https://api.vysion.ai/api/v2/im/search/profiles?q=shadow "   \ 
   --header   ' Accept: application/json '   \ 
   --header   ' x-api-key: YOUR_API_KEY ' 
  from  vysion  import  client 
c  =  client. Client ( api_key = API_KEY ) 
result  =  c. search_im_profiles ( 
     gte = " 2024-09-01T00:00.00 " , 
     lte = " 2024-09-02T00:00:00 " 
      
         "detectionDate" :  " 2025-09-01T08:41:10.802Z " , 
           " https://profilePhoto.com/profile_photo " 
             "value" :  " shadow@email.com " 
             "value" :  " pastebin.com/abc1234 " 
             "value" :  " live:shadow.trader88 " 
             "value" :  " t.me/crypto_shadow " 
             "value" :  " bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq " 
             "value" :  " 13kcBHst4jMvJFWzTUfTQrjS5pQf3WTVpc6ZPnSz3gQiTMrQ " 
             "value" :  " 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 " 
             "value" :  " 44AFFq5kSiGBoZ4NMDwYtN18obc8AemS33DBLWs3H7otXft3XjrpDtQGv7SqSsaBYBb98uNbr2VBBEt7f2wfn3RVGQBEP3A " 
             "value" :  " rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh " 
             "value" :  " t1XatQGQjjZepGNUNE34NBYUOWxUGB4ub1c " 
GET /api/v2/im/search/channels 
Search through the IM channels database using various filters.
Name Type Required Description qstring yes Search query string gtestring No Date filter (≥). Formats: Unix timestamp, YYYY-MM-DD, or YYYY-MM-DDThh:mm:ss ltestring No Date filter (≤). Formats: Unix timestamp, YYYY-MM-DD, or YYYY-MM-DDThh:mm:ss pageinteger No Page number for pagination page_sizeinteger No Results per page (default: 10) platformstring No Filter by messaging platform 
 
   curl   " https://api.vysion.ai/api/v2/im/search/channels?q=fastleaks "   \ 
   --header   ' Accept: application/json '   \ 
   --header   ' x-api-key: YOUR_API_KEY ' 
  from  vysion  import  client 
c  =  client. Client ( api_key = API_KEY ) 
result  =  c. search_im_channels ( 
      
         "channelId" :  11111122222233333 , 
         "detectionDate" :  " 2025-09-01T09:10:04.377Z " , 
         "creationDate" :  " 2025-09-01T09:10:04.377Z " , 
           " https://cdn.discordapp.com/icons/1094527631829504050/a_8f5e9c7d3f6bd4f2e0fe81c9d6f24c9a.jpg " 
         "serverId" :  4444445555555666666 , 
GET /api/v2/im/{platform}/chat/{channelId} 
Get messages from a group given a channel ID. Supports both Telegram channels and Discord channels.
Name Type Required Description platformstring Yes Platform name (Telegram or Discord) channelIdstring Yes Channel identifier gtestring No Start date (Unix timestamp, YYYY-MM-DD, or YYYY-MM-DDThh:mm:ss) ltestring No End date (Unix timestamp, YYYY-MM-DD, or YYYY-MM-DDThh:mm:ss) 
 
   curl   " https://api.vysion.ai/api/v2/im/Telegram/chat/-1002018436281 "   \ 
   --header   ' Accept: application/json '   \ 
   --header   ' x-api-key: YOUR_API_KEY ' 
  from  vysion  import  client 
c  =  client. Client ( api_key = API_KEY ) 
     gte = " 2024-05-16T10:57:58.632466 " , 
     lte = " 2024-05-16T23:00:00 " 
      
         "channelId" :  -1002018436281 , 
         "messageId" :  " -1002018436281_85 " , 
         "message" :  " Hello everyone! " , 
         "channelTitle" :  " Crypto News " , 
         "sha1sum" :  " a1b2c3d4e5f6... " , 
         "sha256sum" :  " 1a2b3c4d5e6f... " , 
         "detectionDate" :  " 2024-05-16T15:30:22Z " 
GET /api/v2/im/{platform}/profile/{userId} 
Get information from a user on the specified platform.
Name Type Required Description platformstring Yes Platform name (Telegram or Discord) userIdstring Yes User identifier 
 
   curl   " https://api.vysion.ai/api/v2/im/Telegram/profile/1595126601 "   \ 
   --header   ' Accept: application/json '   \ 
   --header   ' x-api-key: YOUR_API_KEY ' 
  from  vysion  import  client 
c  =  client. Client ( api_key = API_KEY ) 
result  =  c. get_im_profile ( " Telegram " ,   " 1595116601 " ) 
      
         "usernames" : [ " user123 " ,  " oldusername " ], 
         "detectionDate" :  " 2024-05-16T15:30:22Z " , 
         "profilePhoto" : [ " https://example.com/photo.jpg " ] 
GET /api/v2/im/{platform}/message/{messageId} 
Get detailed information of a specific message.
Name Type Required Description platformstring Yes Platform name (Telegram or Discord) messageIdstring Yes Message identifier 
 
   curl   " https://api.vysion.ai/api/v2/im/Telegram/message/-1012018336281_85 "   \ 
   --header   ' Accept: application/json '   \ 
   --header   ' x-api-key: YOUR_API_KEY ' 
  from  vysion  import  client 
c  =  client. Client ( api_key = API_KEY ) 
result  =  c. get_im_message ( " Telegram " ,   " -1002018336281_85 " ) 
      
         "channelId" :  -1002018436281 , 
         "messageId" :  " -1012018336281_85 " , 
         "message" :  " Check out this crypto wallet: bc1q... " , 
         "channelTitle" :  " Crypto Discussion " , 
         "sha1sum" :  " a1b2c3d4e5f6... " , 
         "sha256sum" :  " 1a2b3c4d5e6f... " , 
         "detectionDate" :  " 2024-05-16T15:30:22Z " 
GET /api/v2/im/{platform}/channel/{channelId} 
Get detailed information of a specific channel (Telegram) or channel (Discord).
Name Type Required Description platformstring Yes Platform name (Telegram or Discord) channelIdstring Yes Channel identifier 
 
   curl   " https://api.vysion.ai/api/v2/im/Telegram/channel/-1012018336281 "   \ 
   --header   ' Accept: application/json '   \ 
   --header   ' x-api-key: YOUR_API_KEY ' 
  from  vysion  import  client 
c  =  client. Client ( api_key = API_KEY ) 
result  =  c. get_im_channel ( " Telegram " ,   " -1012018336281 " ) 
      
         "channelId" :  -1012018336281 , 
         "channelTitles" : [ " Crypto News " ,  " Crypto Updates " ], 
         "detectionDate" :  " 2024-05-16T15:30:22Z " , 
         "creationDate" :  " 2023-01-15T10:00:00Z " , 
         "channelPhoto" : [ " https://example.com/channel_photo.jpg " ] 
GET /api/v2/im/{platform}/server/{serverId} 
Get detailed information of a specific Discord server.
Name Type Required Description platformstring Yes Platform name (typically discord) serverIdstring Yes Server identifier 
 
   curl   " https://api.vysion.ai/api/v2/im/discord/server/1031841869195395175 "   \ 
   --header   ' Accept: application/json '   \ 
   --header   ' x-api-key: YOUR_API_KEY ' 
  from  vysion  import  client 
c  =  client. Client ( api_key = API_KEY ) 
result  =  c. get_im_server ( " discord " ,   " 1031841869195395175 " ) 
      
         "serverId" :  1031841869195395175 , 
         "serverTitles" : [ " Gaming Community " ,  " Game Hub " ], 
         "detectionDate" :  " 2024-05-16T15:30:22Z " , 
         "creationDate" :  " 2023-03-10T14:20:00Z " , 
         "serverPhoto" : [ " https://example.com/server_icon.jpg " ] 
GET /api/v2/im/email/{email} 
Get information about profiles that contain a specific email address found in instant messaging platforms.
Name Type Required Description emailstring Yes Email address to search for pageinteger No Page number for pagination page_sizeinteger No Number of results per page gtestring No Start date (Unix timestamp, YYYY-MM-DD, or YYYY-MM-DDThh:mm:ss) ltestring No End date (Unix timestamp, YYYY-MM-DD, or YYYY-MM-DDThh:mm:ss) 
 
   curl   " https://api.vysion.ai/api/v2/im/email/help@coinbase.com "   \ 
   --header   ' Accept: application/json '   \ 
   --header   ' x-api-key: YOUR_API_KEY ' 
  from  vysion  import  client 
c  =  client. Client ( api_key = API_KEY ) 
result  =  c. im_find_email ( " help@coinbase.com " ) 
      
         "usernames" : [ " support_user " ], 
         "firstName" : [ " Support " ], 
         "detectionDate" :  " 2024-09-07T07:36:35.343648 " , 
             "value" :  " help@coinbase.com " 
             "value" :  " no-reply@coinbase.com " 
             "value" :  " t.me/supportuser " 
GET /api/v2/im/wallet/{chain}/{address} 
Get information about profiles that contain a specific cryptocurrency wallet address found in instant messaging platforms.
Name Type Required Description chainstring Yes Blockchain name (e.g., BTC, ETH, XMR) addressstring Yes Wallet address to search for pageinteger No Page number for pagination page_sizeinteger No Number of results per page gtestring No Start date (Unix timestamp, YYYY-MM-DD, or YYYY-MM-DDThh:mm:ss) ltestring No End date (Unix timestamp, YYYY-MM-DD, or YYYY-MM-DDThh:mm:ss) 
 
   curl   " https://api.vysion.ai/api/v2/im/wallet/BTC/bc1q026rl6hjkdywnsrtva26mq2w0avs9k850ew2d6 "   \ 
   --header   ' Accept: application/json '   \ 
   --header   ' x-api-key: YOUR_API_KEY ' 
  from  vysion  import  client 
c  =  client. Client ( api_key = API_KEY ) 
result  =  c. im_find_wallet ( " BTC " ,   " bc1q026rl6hjkdywnsrtva26mq2w0avs9k850ew2d6 " ) 
      
         "usernames" : [ " crypto_trader " ], 
         "detectionDate" :  " 2024-09-07T07:36:35.343648 " , 
             "value" :  " bc1qpdq8q5wxtxkkdzjy83gc8e94lcke7pecur2f6w " 
             "value" :  " bc1q026rl6hjkdywnsrtva26mq2w0avs9k850ew2d6 " 
Field Type Description userIdinteger/string User identifier usernamestring Username on the platform channelIdinteger/string Channel identifier messageIdstring Unique message identifier messagestring Message content channelTitlestring Channel or group name languagesarray Detected languages with confidence scores sha1sumstring SHA1 hash of the message content sha256sumstring SHA256 hash of the message content mediastring Media type if message contains media detectionDatestring When the message was detected (ISO 8601) serverIdstring Discord server ID (Discord only) serverTitlestring Discord server title (Discord only) platformstring Platform name 
Field Type Description userIdinteger User identifier usernamesarray List of known usernames firstNamearray List of known first names lastNamearray List of known last names detectionDatestring When the profile was detected (ISO 8601) profilePhotoarray List of profile photo URLs platformstring Platform name emailarray Associated email addresses telegramarray Associated Telegram handles whatsapparray Associated WhatsApp numbers bitcoin_addressarray Associated Bitcoin addresses ethereum_addressarray Associated Ethereum addresses monero_addressarray Associated Monero addresses ripple_addressarray Associated Ripple addresses zcash_addressarray Associated Zcash addresses polkadot_addressarray Associated Polkadot addresses 
Field Type Description channelId/serverIdinteger Channel or server identifier channelTitles/serverTitlesarray List of known titles/names detectionDatestring When detected (ISO 8601) creationDatestring When created (ISO 8601) channelPhoto/serverPhotoarray List of photo/icon URLs 
Platform Description Supported Features TelegramTelegram messaging platform Channels, groups, users, messages DiscordDiscord chat platform Servers, channels, users, messages 
IM endpoints may return these error codes:
Status Error Code Description 401 Unauthorized Invalid or missing API key 404 Not Found Resource not found 422 Unprocessable Entity Invalid parameters 429 Too Many Requests Rate limit exceeded 500 Internal Server Error Server error