{"openapi":"3.1.0","info":{"title":"wtsp.dev","version":"1.0.0","summary":"WhatsApp data for AI agents, paid per request.","description":"Send a phone number, learn whether it is on WhatsApp, or get its WhatsApp profile, business details, profile photo or carrier. Search WhatsApp's channel directory, read a country's top channels, and get any channel's details and posts. Each request can pay for itself, in USDC on Base with x402 or in stablecoins on Tempo with MPP, with no sign-up; or it can carry a prepaid API key. The prices are the same every way. Big volumes? Write to hello@wtsp.dev for up to 70% off the list price.","x-guidance":"Every lookup is a GET with query parameters: ?phone=<number with its country code> for a number, ?channel=<channel link> for a channel. Pay with any x402 client (npx @wtsp/cli, @x402/fetch, AgentCash), any MPP client (npx mppx), or send a prepaid key as Authorization: Bearer wtsp_…. Only answers are charged; malformed requests and failed lookups are free. With a key, POST /v1/bulk runs one lookup on up to 100 numbers at once. Full guide: https://wtsp.dev/llms.txt","contact":{"url":"https://wtsp.dev","email":"hello@wtsp.dev"}},"servers":[{"url":"https://wtsp.dev"}],"x-agentcash-guidance":{"llmsTxtUrl":"https://wtsp.dev/llms.txt"},"tags":[{"name":"WhatsApp","description":"Lookups answered by WhatsApp itself."},{"name":"Phone","description":"Carrier, line type and location of any number."},{"name":"Channels","description":"WhatsApp's channel directory, and any channel's details and posts."},{"name":"Bulk","description":"Any lookup on a list of numbers, paid from an API key."},{"name":"Credits","description":"Prepaid credit for API-key access."}],"paths":{"/v1/exists":{"get":{"operationId":"exists","summary":"WhatsApp check","description":"Whether a number has a WhatsApp account, and nothing else: the cheapest way to clean a list before paying for profiles. /v1/profile gives the same answer plus the account's details. Query: phone, e.g. 14155550123. Every answer is charged, “not on WhatsApp” included; a lookup WhatsApp does not answer is free.","tags":["WhatsApp"],"security":[{},{"apiKey":[]}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.003"},"protocols":[{"x402":{}},{"mpp":{"method":"tempo","intent":"charge","currency":"USD"}}],"offers":[{"intent":"charge","method":"tempo","amount":"3000","currency":"0x20c0000000000000000000006a37DA5C996874BE"},{"intent":"charge","method":"tempo","amount":"3000","currency":"0x20C000000000000000000000b9537d11c60E8b50"}]},"parameters":[{"name":"phone","in":"query","required":true,"description":"Phone number with its country code, e.g. +14155550123. The + is optional; spaces, dashes and a leading 00 are fine.","schema":{"type":"string","example":"14155550123"}}],"responses":{"200":{"description":"The answer, “not on WhatsApp” and “no such channel” included. With an API key, the wtsp-credits-remaining header gives the credit left.","content":{"application/json":{"schema":{"type":"object","properties":{"phone":{"type":"string","description":"The number looked up, in E.164."},"hasWhatsApp":{"type":"boolean","description":"Whether the number is a registered WhatsApp account. `false` is a definitive answer, not a failure."}},"required":["phone","hasWhatsApp"]},"example":{"phone":"+14155550123","hasWhatsApp":true}}}},"400":{"description":"A malformed number, channel link or parameter, rejected before any payment is asked for. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The API key sent does not exist. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required, or the payment sent was invalid. x402 v2 requirements are in the PAYMENT-REQUIRED header, the MPP challenge in WWW-Authenticate; with an API key, the credit ran out. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"WhatsApp did not answer. The payment is cancelled, never settled. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/profile":{"get":{"operationId":"profile","summary":"WhatsApp profile","description":"Whether a number is on WhatsApp and, if so: personal or business account, about text, country, linked devices and whether it runs on the Cloud API. Businesses add their public profile: name, description, categories, email, websites, address, coordinates, hours, join date and Facebook page. No photo or username; /v1/profile/full adds them. Query: phone, e.g. 14155550123. Every answer is charged, “not on WhatsApp” included; a lookup WhatsApp does not answer is free.","tags":["WhatsApp"],"security":[{},{"apiKey":[]}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.006"},"protocols":[{"x402":{}},{"mpp":{"method":"tempo","intent":"charge","currency":"USD"}}],"offers":[{"intent":"charge","method":"tempo","amount":"6000","currency":"0x20c0000000000000000000006a37DA5C996874BE"},{"intent":"charge","method":"tempo","amount":"6000","currency":"0x20C000000000000000000000b9537d11c60E8b50"}]},"parameters":[{"name":"phone","in":"query","required":true,"description":"Phone number with its country code, e.g. +14155550123. The + is optional; spaces, dashes and a leading 00 are fine.","schema":{"type":"string","example":"14155550123"}}],"responses":{"200":{"description":"The answer, “not on WhatsApp” and “no such channel” included. With an API key, the wtsp-credits-remaining header gives the credit left.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"phone":{"type":"string","description":"The number looked up, in E.164."},"hasWhatsApp":{"type":"boolean","const":true,"description":"The number is a registered WhatsApp account."},"accountType":{"type":"string","enum":["business","personal"],"description":"`business` when WhatsApp published a business profile."},"identity":{"type":"object","properties":{"countryCode":{"description":"Country WhatsApp reports for the account (ISO 3166-1 alpha-2), not one guessed from the prefix.","type":["string","null"]},"lid":{"description":"WhatsApp's internal account id. Numbers that share one account share it.","type":["string","null"]}},"required":["countryCode","lid"]},"profile":{"type":"object","properties":{"about":{"description":"The \"about\" (status) text.","type":["string","null"]},"aboutRestricted":{"type":"boolean","description":"True when an about text exists but privacy settings hide it, so `about` is empty."}},"required":["about","aboutRestricted"]},"devices":{"description":"Absent on the rare occasion WhatsApp sends no device list.","type":"object","properties":{"count":{"type":"number","description":"Linked devices including the phone itself, so 1 means phone only."},"hosted":{"type":"boolean","description":"Served by the WhatsApp Business Platform (Cloud API) rather than a phone: a strong real-business signal."}},"required":["count","hosted"]},"business":{"anyOf":[{"type":"object","properties":{"displayName":{"description":"Public business name. Personal accounts publish no name at all.","type":["string","null"]},"description":{"type":["string","null"]},"categories":{"type":"array","items":{"type":"string"},"description":"Every category the business picked; often more than one."},"email":{"type":["string","null"]},"websites":{"type":"array","items":{"type":"string"}},"address":{"type":["string","null"]},"latitude":{"type":["number","null"]},"longitude":{"type":["number","null"]},"timezone":{"description":"IANA zone the opening hours are in.","type":["string","null"]},"hours":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string","description":"Day of week, e.g. `mon`."},"mode":{"type":"string","description":"`specific_hours`, `open_24h` or `appointment_only` (times are null then)."},"openTime":{"description":"Opening time, HH:MM.","type":["string","null"]},"closeTime":{"description":"Closing time, HH:MM.","type":["string","null"]}},"required":["day","mode","openTime","closeTime"]},"description":"Opening hours per day."},"memberSince":{"description":"When the business joined, as WhatsApp words it: \"Joined in January, 2026\".","type":["string","null"]},"memberSinceTs":{"description":"The same moment as a unix timestamp (seconds).","type":["number","null"]},"businessType":{"description":"`smb` for a small business, or an enterprise tier.","type":["string","null"]},"verifiedLevel":{"description":"Meta verification tier.","type":["string","null"]},"cartEnabled":{"type":"boolean","description":"Whether the account sells through a WhatsApp cart."},"commerceExperience":{"type":["string","null"]},"automatedType":{"description":"Set when WhatsApp flags the account as automated (a bot).","type":["string","null"]},"linkedFacebookPage":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"likes":{"type":["number","null"]}},"required":["id","name","likes"]},{"type":"null"}],"description":"Linked Facebook page and its follower count."}},"required":["displayName","description","categories","email","websites","address","latitude","longitude","timezone","hours","memberSince","memberSinceTs","businessType","verifiedLevel","cartEnabled","commerceExperience","automatedType","linkedFacebookPage"]},{"type":"null"}],"description":"Business profile; null for personal accounts."}},"required":["phone","hasWhatsApp","accountType","identity","profile","business"]},{"type":"object","properties":{"phone":{"type":"string","description":"The number looked up, in E.164."},"hasWhatsApp":{"type":"boolean","const":false,"description":"The number is not on WhatsApp: a definitive answer, not a failure."}},"required":["phone","hasWhatsApp"]}]},"example":{"phone":"+14155550123","hasWhatsApp":true,"accountType":"business","identity":{"countryCode":"US","lid":"258166877098174@lid"},"profile":{"about":"Fresh groceries, delivered daily 🍋","aboutRestricted":false},"devices":{"count":2,"hosted":false},"business":{"displayName":"Fresh Market SF","description":"Neighbourhood grocery with same-day delivery across San Francisco.","categories":["Grocery Store","Food delivery"],"email":"hello@freshmarket.example","websites":["https://freshmarket.example"],"address":"123 Market St, San Francisco, CA 94103","latitude":37.7749,"longitude":-122.4194,"timezone":"America/Los_Angeles","hours":[{"day":"mon","mode":"specific_hours","openTime":"08:00","closeTime":"20:00"},{"day":"sat","mode":"specific_hours","openTime":"09:00","closeTime":"18:00"},{"day":"sun","mode":"appointment_only","openTime":null,"closeTime":null}],"memberSince":"Joined in March, 2021","memberSinceTs":1615420800,"businessType":"smb","verifiedLevel":"unknown","cartEnabled":true,"commerceExperience":"none","automatedType":"unknown","linkedFacebookPage":{"id":"100064523310987","name":"Fresh Market SF","likes":1840}}}}}},"400":{"description":"A malformed number, channel link or parameter, rejected before any payment is asked for. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The API key sent does not exist. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required, or the payment sent was invalid. x402 v2 requirements are in the PAYMENT-REQUIRED header, the MPP challenge in WWW-Authenticate; with an API key, the credit ran out. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"WhatsApp did not answer. The payment is cancelled, never settled. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/profile/full":{"get":{"operationId":"profileFull","summary":"WhatsApp profile + photo","description":"Everything /v1/profile returns, plus the profile photo as a permanent URL and a content hash (an unchanged hash means an unchanged photo), and the account's WhatsApp username (@handle). The URL is null when the account has no photo or hides it, and the username is null when it has none. Query: phone, e.g. 14155550123. Every answer is charged, “not on WhatsApp” included; a lookup WhatsApp does not answer is free.","tags":["WhatsApp"],"security":[{},{"apiKey":[]}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.01"},"protocols":[{"x402":{}},{"mpp":{"method":"tempo","intent":"charge","currency":"USD"}}],"offers":[{"intent":"charge","method":"tempo","amount":"10000","currency":"0x20c0000000000000000000006a37DA5C996874BE"},{"intent":"charge","method":"tempo","amount":"10000","currency":"0x20C000000000000000000000b9537d11c60E8b50"}]},"parameters":[{"name":"phone","in":"query","required":true,"description":"Phone number with its country code, e.g. +14155550123. The + is optional; spaces, dashes and a leading 00 are fine.","schema":{"type":"string","example":"14155550123"}}],"responses":{"200":{"description":"The answer, “not on WhatsApp” and “no such channel” included. With an API key, the wtsp-credits-remaining header gives the credit left.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"phone":{"type":"string","description":"The number looked up, in E.164."},"hasWhatsApp":{"type":"boolean","const":true,"description":"The number is a registered WhatsApp account."},"accountType":{"type":"string","enum":["business","personal"],"description":"`business` when WhatsApp published a business profile."},"username":{"description":"The account's WhatsApp username (@handle) without the @, or null when it has none. Absent on the occasional lookup where it isn't known.","type":["string","null"]},"identity":{"type":"object","properties":{"countryCode":{"description":"Country WhatsApp reports for the account (ISO 3166-1 alpha-2), not one guessed from the prefix.","type":["string","null"]},"lid":{"description":"WhatsApp's internal account id. Numbers that share one account share it.","type":["string","null"]}},"required":["countryCode","lid"]},"profile":{"type":"object","properties":{"about":{"description":"The \"about\" (status) text.","type":["string","null"]},"aboutRestricted":{"type":"boolean","description":"True when an about text exists but privacy settings hide it, so `about` is empty."},"picUrl":{"description":"Permanent URL of the profile photo; null when there is none or privacy settings hide it.","type":["string","null"]},"picHash":{"description":"Content hash of the photo. Unchanged hash, unchanged photo.","type":["string","null"]}},"required":["about","aboutRestricted","picUrl","picHash"]},"devices":{"description":"Absent on the rare occasion WhatsApp sends no device list.","type":"object","properties":{"count":{"type":"number","description":"Linked devices including the phone itself, so 1 means phone only."},"hosted":{"type":"boolean","description":"Served by the WhatsApp Business Platform (Cloud API) rather than a phone: a strong real-business signal."}},"required":["count","hosted"]},"business":{"anyOf":[{"type":"object","properties":{"displayName":{"description":"Public business name. Personal accounts publish no name at all.","type":["string","null"]},"description":{"type":["string","null"]},"categories":{"type":"array","items":{"type":"string"},"description":"Every category the business picked; often more than one."},"email":{"type":["string","null"]},"websites":{"type":"array","items":{"type":"string"}},"address":{"type":["string","null"]},"latitude":{"type":["number","null"]},"longitude":{"type":["number","null"]},"timezone":{"description":"IANA zone the opening hours are in.","type":["string","null"]},"hours":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string","description":"Day of week, e.g. `mon`."},"mode":{"type":"string","description":"`specific_hours`, `open_24h` or `appointment_only` (times are null then)."},"openTime":{"description":"Opening time, HH:MM.","type":["string","null"]},"closeTime":{"description":"Closing time, HH:MM.","type":["string","null"]}},"required":["day","mode","openTime","closeTime"]},"description":"Opening hours per day."},"memberSince":{"description":"When the business joined, as WhatsApp words it: \"Joined in January, 2026\".","type":["string","null"]},"memberSinceTs":{"description":"The same moment as a unix timestamp (seconds).","type":["number","null"]},"businessType":{"description":"`smb` for a small business, or an enterprise tier.","type":["string","null"]},"verifiedLevel":{"description":"Meta verification tier.","type":["string","null"]},"cartEnabled":{"type":"boolean","description":"Whether the account sells through a WhatsApp cart."},"commerceExperience":{"type":["string","null"]},"automatedType":{"description":"Set when WhatsApp flags the account as automated (a bot).","type":["string","null"]},"linkedFacebookPage":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"likes":{"type":["number","null"]}},"required":["id","name","likes"]},{"type":"null"}],"description":"Linked Facebook page and its follower count."}},"required":["displayName","description","categories","email","websites","address","latitude","longitude","timezone","hours","memberSince","memberSinceTs","businessType","verifiedLevel","cartEnabled","commerceExperience","automatedType","linkedFacebookPage"]},{"type":"null"}],"description":"Business profile; null for personal accounts."}},"required":["phone","hasWhatsApp","accountType","identity","profile","business"]},{"type":"object","properties":{"phone":{"type":"string","description":"The number looked up, in E.164."},"hasWhatsApp":{"type":"boolean","const":false,"description":"The number is not on WhatsApp: a definitive answer, not a failure."}},"required":["phone","hasWhatsApp"]}]},"example":{"phone":"+14155550123","hasWhatsApp":true,"accountType":"business","username":"freshmarketsf","identity":{"countryCode":"US","lid":"258166877098174@lid"},"profile":{"about":"Fresh groceries, delivered daily 🍋","aboutRestricted":false,"picUrl":"https://cdn.wtsp.dev/profile-pictures/5f2c9a4e-8d1b-4c3e-9a7f-2b6d0e8c1f43.jpg?v=tkphavoFaBWOiNjZo_B5L-uG8Bw4BjhRDNPgDs-1vp4","picHash":"tkphavoFaBWOiNjZo/B5L+uG8Bw4BjhRDNPgDs+1vp4="},"devices":{"count":2,"hosted":false},"business":{"displayName":"Fresh Market SF","description":"Neighbourhood grocery with same-day delivery across San Francisco.","categories":["Grocery Store","Food delivery"],"email":"hello@freshmarket.example","websites":["https://freshmarket.example"],"address":"123 Market St, San Francisco, CA 94103","latitude":37.7749,"longitude":-122.4194,"timezone":"America/Los_Angeles","hours":[{"day":"mon","mode":"specific_hours","openTime":"08:00","closeTime":"20:00"},{"day":"sat","mode":"specific_hours","openTime":"09:00","closeTime":"18:00"},{"day":"sun","mode":"appointment_only","openTime":null,"closeTime":null}],"memberSince":"Joined in March, 2021","memberSinceTs":1615420800,"businessType":"smb","verifiedLevel":"unknown","cartEnabled":true,"commerceExperience":"none","automatedType":"unknown","linkedFacebookPage":{"id":"100064523310987","name":"Fresh Market SF","likes":1840}}}}}},"400":{"description":"A malformed number, channel link or parameter, rejected before any payment is asked for. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The API key sent does not exist. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required, or the payment sent was invalid. x402 v2 requirements are in the PAYMENT-REQUIRED header, the MPP challenge in WWW-Authenticate; with an API key, the credit ran out. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"WhatsApp did not answer. The payment is cancelled, never settled. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/carrier":{"get":{"operationId":"carrier","summary":"Carrier lookup","description":"The carrier and line type of any number (mobile, fixed line or VoIP), plus its country, region, time zones and national and international formats. Works whether or not the number is on WhatsApp. Ported numbers report their original carrier. Query: phone, e.g. 447400123456. Only charged when a carrier is on record; numbers without one (the US and Canada among them) get a free 404.","tags":["Phone"],"security":[{},{"apiKey":[]}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002"},"protocols":[{"x402":{}},{"mpp":{"method":"tempo","intent":"charge","currency":"USD"}}],"offers":[{"intent":"charge","method":"tempo","amount":"2000","currency":"0x20c0000000000000000000006a37DA5C996874BE"},{"intent":"charge","method":"tempo","amount":"2000","currency":"0x20C000000000000000000000b9537d11c60E8b50"}]},"parameters":[{"name":"phone","in":"query","required":true,"description":"Phone number with its country code, e.g. +14155550123. The + is optional; spaces, dashes and a leading 00 are fine.","schema":{"type":"string","example":"447400123456"}}],"responses":{"200":{"description":"The answer, “not on WhatsApp” and “no such channel” included. With an API key, the wtsp-credits-remaining header gives the credit left.","content":{"application/json":{"schema":{"type":"object","properties":{"phone":{"type":"string","description":"The number looked up, in E.164."},"carrier":{"type":"string","description":"The number's carrier. For a ported number, its original carrier."},"lineType":{"type":"string","description":"`mobile`, `fixed line`, `fixed line or mobile`, `voip`, `toll free`…"},"isMobile":{"description":"Null where a country hands mobiles and landlines out of one shared range.","type":["boolean","null"]},"country":{"type":"string","description":"ISO 3166-1 alpha-2 country of the number."},"countryName":{"type":"string"},"flag":{"type":"string"},"countryCallingCode":{"type":"string"},"location":{"description":"Town or region the number was issued in, where published.","type":["string","null"]},"timezones":{"type":"array","items":{"type":"string"}},"international":{"type":"string","description":"The number in international format."},"national":{"type":"string","description":"The number as dialled inside its country."}},"required":["phone","carrier","lineType","isMobile","country","countryName","flag","countryCallingCode","location","timezones","international","national"]},"example":{"phone":"+447400123456","carrier":"Three","lineType":"mobile","isMobile":true,"country":"GB","countryName":"United Kingdom","flag":"🇬🇧","countryCallingCode":"+44","location":null,"timezones":["Europe/London"],"international":"+44 7400 123456","national":"07400 123456"}}}},"400":{"description":"A malformed number, channel link or parameter, rejected before any payment is asked for. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The API key sent does not exist. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required, or the payment sent was invalid. x402 v2 requirements are in the PAYMENT-REQUIRED header, the MPP challenge in WWW-Authenticate; with an API key, the credit ran out. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Carrier lookup only: no carrier on record for the number. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/channels/search":{"get":{"operationId":"channelSearch","summary":"Channel search","description":"Searches WhatsApp's channel directory the way its Channels tab does, and returns every match it gives, best first (45 to 60 for a common word): each channel's id, link code, name, description, exact follower count, green tick, creation date and picture. Query: q, e.g. football; category (optional). Every answer is charged, an empty result or “no such channel” included; a request WhatsApp does not answer is free.","tags":["Channels"],"security":[{},{"apiKey":[]}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.01"},"protocols":[{"x402":{}},{"mpp":{"method":"tempo","intent":"charge","currency":"USD"}}],"offers":[{"intent":"charge","method":"tempo","amount":"10000","currency":"0x20c0000000000000000000006a37DA5C996874BE"},{"intent":"charge","method":"tempo","amount":"10000","currency":"0x20C000000000000000000000b9537d11c60E8b50"}]},"parameters":[{"name":"q","in":"query","required":true,"description":"What to search for, as typed in WhatsApp's channel search: a name, a topic, a brand.","schema":{"type":"string","example":"football"}},{"name":"category","in":"query","required":false,"description":"Only channels in this category: `business`, `entertainment`, `lifestyle`, `news`, `organizations`, `people`, `sports`. One at a time.","schema":{"type":"string","enum":["business","entertainment","lifestyle","news","organizations","people","sports"]}}],"responses":{"200":{"description":"The answer, “not on WhatsApp” and “no such channel” included. With an API key, the wtsp-credits-remaining header gives the credit left.","content":{"application/json":{"schema":{"type":"object","properties":{"channels":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The channel's address on WhatsApp, `<digits>@newsletter`. It stays the same when its name or link changes."},"invite":{"description":"The code in its link: `https://whatsapp.com/channel/<invite>`.","type":["string","null"]},"handle":{"description":"Its username, or null.","type":["string","null"]},"name":{"type":["string","null"]},"description":{"description":"As the channel wrote it.","type":["string","null"]},"followers":{"description":"The exact follower count.","type":["number","null"]},"verified":{"type":"boolean","description":"Whether it has WhatsApp's green tick."},"createdAt":{"description":"When it was created, ISO 8601.","type":["string","null"]},"picture":{"description":"Its picture. WhatsApp's own signed link, which expires within days: download what you keep.","type":["string","null"]}},"required":["id","invite","handle","name","description","followers","verified","createdAt","picture"]},"description":"In WhatsApp's own order: best match first for a search, its ranking for a list."}},"required":["channels"]},"example":{"channels":[{"id":"120363421468257352@newsletter","invite":"0029Vb6tXGL90x2oSNph2y19","handle":null,"name":"Matchday Football","description":"Scores, transfers and highlights from every league, every day ⚽","followers":1482907,"verified":true,"createdAt":"2024-02-18T09:12:44.000Z","picture":"https://pps.whatsapp.net/m1/v/t24/AQN95N4DAkX_lpUAe9-IAUmr6bn-j2KMBUeOPVPNEflRM9PV2LIVeLotHAl9rlGnVrlPMDRbX?stp=dst-jpg_s192x192&oe=6AFADC18"},{"id":"120363302218843175@newsletter","invite":"0029VaeWKs9I7BeMxk4QOV2s","handle":"transferwatch","name":"Transfer Watch","description":"Confirmed deals and rumours, the minute they land.","followers":386114,"verified":false,"createdAt":"2024-05-30T17:40:02.000Z","picture":"https://pps.whatsapp.net/m1/v/t24/AQN95N4DAkX_lpUAe9-IAUmr6bn-j2KMBUeOPVPNEflRM9PV2LIVeLotHAl9rlGnVrlPMDRbX?stp=dst-jpg_s192x192&oe=6AFADC18"}]}}}},"400":{"description":"A malformed number, channel link or parameter, rejected before any payment is asked for. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The API key sent does not exist. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required, or the payment sent was invalid. x402 v2 requirements are in the PAYMENT-REQUIRED header, the MPP challenge in WWW-Authenticate; with an API key, the credit ran out. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"WhatsApp did not answer. The payment is cancelled, never settled. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/channels/top":{"get":{"operationId":"channelTop","summary":"Top channels","description":"One of the channel lists WhatsApp keeps per country (trending, popular, new, featured or recommended), whole, in its order: up to 500 channels (about 250 for recommended), with the same details as a search. Query: country, e.g. US; view (optional), e.g. trending; category (optional). Every answer is charged, an empty result or “no such channel” included; a request WhatsApp does not answer is free.","tags":["Channels"],"security":[{},{"apiKey":[]}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.03"},"protocols":[{"x402":{}},{"mpp":{"method":"tempo","intent":"charge","currency":"USD"}}],"offers":[{"intent":"charge","method":"tempo","amount":"30000","currency":"0x20c0000000000000000000006a37DA5C996874BE"},{"intent":"charge","method":"tempo","amount":"30000","currency":"0x20C000000000000000000000b9537d11c60E8b50"}]},"parameters":[{"name":"country","in":"query","required":true,"description":"Whose list to read, as a two-letter country code (ISO 3166-1 alpha-2), e.g. US. WhatsApp keeps no worldwide list.","schema":{"type":"string","example":"US"}},{"name":"view","in":"query","required":false,"description":"Which list: `recommended`, `trending`, `popular`, `new`, `featured`. Defaults to `recommended`.","schema":{"type":"string","enum":["recommended","trending","popular","new","featured"],"example":"trending"}},{"name":"category","in":"query","required":false,"description":"Only channels in this category: `business`, `entertainment`, `lifestyle`, `news`, `organizations`, `people`, `sports`. One at a time.","schema":{"type":"string","enum":["business","entertainment","lifestyle","news","organizations","people","sports"]}}],"responses":{"200":{"description":"The answer, “not on WhatsApp” and “no such channel” included. With an API key, the wtsp-credits-remaining header gives the credit left.","content":{"application/json":{"schema":{"type":"object","properties":{"channels":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The channel's address on WhatsApp, `<digits>@newsletter`. It stays the same when its name or link changes."},"invite":{"description":"The code in its link: `https://whatsapp.com/channel/<invite>`.","type":["string","null"]},"handle":{"description":"Its username, or null.","type":["string","null"]},"name":{"type":["string","null"]},"description":{"description":"As the channel wrote it.","type":["string","null"]},"followers":{"description":"The exact follower count.","type":["number","null"]},"verified":{"type":"boolean","description":"Whether it has WhatsApp's green tick."},"createdAt":{"description":"When it was created, ISO 8601.","type":["string","null"]},"picture":{"description":"Its picture. WhatsApp's own signed link, which expires within days: download what you keep.","type":["string","null"]}},"required":["id","invite","handle","name","description","followers","verified","createdAt","picture"]},"description":"In WhatsApp's own order: best match first for a search, its ranking for a list."}},"required":["channels"]},"example":{"channels":[{"id":"120363421468257352@newsletter","invite":"0029Vb6tXGL90x2oSNph2y19","handle":null,"name":"Matchday Football","description":"Scores, transfers and highlights from every league, every day ⚽","followers":1482907,"verified":true,"createdAt":"2024-02-18T09:12:44.000Z","picture":"https://pps.whatsapp.net/m1/v/t24/AQN95N4DAkX_lpUAe9-IAUmr6bn-j2KMBUeOPVPNEflRM9PV2LIVeLotHAl9rlGnVrlPMDRbX?stp=dst-jpg_s192x192&oe=6AFADC18"},{"id":"120363302218843175@newsletter","invite":"0029VaeWKs9I7BeMxk4QOV2s","handle":"transferwatch","name":"Transfer Watch","description":"Confirmed deals and rumours, the minute they land.","followers":386114,"verified":false,"createdAt":"2024-05-30T17:40:02.000Z","picture":"https://pps.whatsapp.net/m1/v/t24/AQN95N4DAkX_lpUAe9-IAUmr6bn-j2KMBUeOPVPNEflRM9PV2LIVeLotHAl9rlGnVrlPMDRbX?stp=dst-jpg_s192x192&oe=6AFADC18"}]}}}},"400":{"description":"A malformed number, channel link or parameter, rejected before any payment is asked for. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The API key sent does not exist. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required, or the payment sent was invalid. x402 v2 requirements are in the PAYMENT-REQUIRED header, the MPP challenge in WWW-Authenticate; with an API key, the credit ran out. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"WhatsApp did not answer. The payment is cancelled, never settled. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/channels/info":{"get":{"operationId":"channelInfo","summary":"Channel details","description":"A channel's details from its link, link code or id: name, description, exact follower count, green tick, creation date, picture, and whether it is active or suspended. A channel WhatsApp doesn't have comes back as null. Query: channel, e.g. 0029Va4K0PZ5a245NkngBA2M. Every answer is charged, an empty result or “no such channel” included; a request WhatsApp does not answer is free.","tags":["Channels"],"security":[{},{"apiKey":[]}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.004"},"protocols":[{"x402":{}},{"mpp":{"method":"tempo","intent":"charge","currency":"USD"}}],"offers":[{"intent":"charge","method":"tempo","amount":"4000","currency":"0x20c0000000000000000000006a37DA5C996874BE"},{"intent":"charge","method":"tempo","amount":"4000","currency":"0x20C000000000000000000000b9537d11c60E8b50"}]},"parameters":[{"name":"channel","in":"query","required":true,"description":"The channel: its link (https://whatsapp.com/channel/…), the code at the end of the link, or its id (<digits>@newsletter).","schema":{"type":"string","example":"0029Va4K0PZ5a245NkngBA2M"}}],"responses":{"200":{"description":"The answer, “not on WhatsApp” and “no such channel” included. With an API key, the wtsp-credits-remaining header gives the credit left.","content":{"application/json":{"schema":{"type":"object","properties":{"channel":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"The channel's address on WhatsApp, `<digits>@newsletter`. It stays the same when its name or link changes."},"invite":{"description":"The code in its link: `https://whatsapp.com/channel/<invite>`.","type":["string","null"]},"handle":{"description":"Its username, or null.","type":["string","null"]},"name":{"type":["string","null"]},"description":{"description":"As the channel wrote it.","type":["string","null"]},"followers":{"description":"The exact follower count.","type":["number","null"]},"verified":{"type":"boolean","description":"Whether it has WhatsApp's green tick."},"createdAt":{"description":"When it was created, ISO 8601.","type":["string","null"]},"picture":{"description":"Its picture. WhatsApp's own signed link, which expires within days: download what you keep.","type":["string","null"]},"state":{"type":"string","description":"`active`, `suspended` or `geosuspended`."}},"required":["id","invite","handle","name","description","followers","verified","createdAt","picture","state"]},{"type":"null"}],"description":"Null when WhatsApp has no such channel: a definitive answer, not a failure."}},"required":["channel"]},"example":{"channel":{"id":"120363144038483540@newsletter","invite":"0029Va4K0PZ5a245NkngBA2M","handle":null,"name":"WhatsApp","description":"WhatsApp’s official channel. Follow for our latest feature launches, updates, exclusive drops and more.","followers":233827056,"verified":true,"createdAt":"2023-07-07T16:21:35.000Z","picture":"https://pps.whatsapp.net/m1/v/t24/AQN95N4DAkX_lpUAe9-IAUmr6bn-j2KMBUeOPVPNEflRM9PV2LIVeLotHAl9rlGnVrlPMDRbX?stp=dst-jpg_s192x192&oe=6AFADC18","state":"active"}}}}},"400":{"description":"A malformed number, channel link or parameter, rejected before any payment is asked for. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The API key sent does not exist. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required, or the payment sent was invalid. x402 v2 requirements are in the PAYMENT-REQUIRED header, the MPP challenge in WWW-Authenticate; with an API key, the credit ran out. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"WhatsApp did not answer. The payment is cancelled, never settled. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/channels/posts":{"get":{"operationId":"channelPosts","summary":"Channel posts","description":"A channel's posts, newest first, up to 300 a request and back 30 days (all WhatsApp keeps): text, media links, link previews, poll votes, reaction counts and forwards. Send a page's before back for the posts before it. Query: channel, e.g. 0029Va4K0PZ5a245NkngBA2M; count (optional); before (optional). Every answer is charged, an empty result or “no such channel” included; a request WhatsApp does not answer is free.","tags":["Channels"],"security":[{},{"apiKey":[]}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.01"},"protocols":[{"x402":{}},{"mpp":{"method":"tempo","intent":"charge","currency":"USD"}}],"offers":[{"intent":"charge","method":"tempo","amount":"10000","currency":"0x20c0000000000000000000006a37DA5C996874BE"},{"intent":"charge","method":"tempo","amount":"10000","currency":"0x20C000000000000000000000b9537d11c60E8b50"}]},"parameters":[{"name":"channel","in":"query","required":true,"description":"The channel: its link (https://whatsapp.com/channel/…), the code at the end of the link, or its id (<digits>@newsletter).","schema":{"type":"string","example":"0029Va4K0PZ5a245NkngBA2M"}},{"name":"count","in":"query","required":false,"description":"How many posts, from 1 to 300 (the default).","schema":{"type":"integer"}},{"name":"before","in":"query","required":false,"description":"The `before` of an earlier page, for the posts before it. Leave it out for the latest posts.","schema":{"type":"integer"}}],"responses":{"200":{"description":"The answer, “not on WhatsApp” and “no such channel” included. With an API key, the wtsp-credits-remaining header gives the credit left.","content":{"application/json":{"schema":{"type":"object","properties":{"channel":{"description":"The channel's id, or null when WhatsApp has no such channel (and no posts).","type":["string","null"]},"posts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number","description":"Its number in the channel, rising with time. `https://whatsapp.com/channel/<invite>/<id>` opens it."},"postedAt":{"type":"string","description":"ISO 8601."},"editedAt":{"description":"ISO 8601; null unless the post was edited.","type":["string","null"]},"type":{"type":"string","enum":["text","image","video","gif","audio","voice","videoNote","document","sticker","poll","other"],"description":"What the post is."},"text":{"description":"The text, a media post's caption, or a poll's question.","type":["string","null"]},"media":{"anyOf":[{"type":"object","properties":{"url":{"type":"string","description":"The plain file, no key needed. WhatsApp's own signed link, which expires within days: download what you keep."},"mimetype":{"type":["string","null"]},"bytes":{"type":["number","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]},"seconds":{"description":"Length of a video or audio.","type":["number","null"]},"fileName":{"description":"A document's file name.","type":["string","null"]}},"required":["url","mimetype","bytes","width","height","seconds","fileName"]},{"type":"null"}]},"linkPreview":{"anyOf":[{"type":"object","properties":{"url":{"type":["string","null"]},"title":{"type":["string","null"]},"description":{"type":["string","null"]}},"required":["url","title","description"]},{"type":"null"}],"description":"The card under a shared link."},"poll":{"anyOf":[{"type":"object","properties":{"options":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"votes":{"type":["number","null"]}},"required":["name","votes"]}}},"required":["options"]},{"type":"null"}],"description":"A poll's options and their votes."},"reactionCount":{"type":"number","description":"Every reaction on the post."},"reactions":{"type":"array","items":{"type":"object","properties":{"emoji":{"type":"string"},"count":{"type":"number"}},"required":["emoji","count"]},"description":"The 20 most used reactions, most used first."},"forwards":{"description":"How many times it was forwarded.","type":["number","null"]}},"required":["id","postedAt","editedAt","type","text","media","linkPreview","poll","reactionCount","reactions","forwards"]},"description":"Newest first. Posts the channel deleted are left out, so a page can hold fewer than asked for."},"before":{"description":"Send it back as `before` for the posts before these; null when there are no older ones. WhatsApp keeps 30 days.","type":["number","null"]}},"required":["channel","posts","before"]},"example":{"channel":"120363144038483540@newsletter","posts":[{"id":801,"postedAt":"2026-11-12T21:58:41.000Z","editedAt":null,"type":"image","text":"*What We’re Channeling: Latin Pop* Big hooks, bigger energy, and choruses you play five times in a row.","media":{"url":"https://mmg.whatsapp.net/m1/v/t24/AQMN9nbOMn8pcmJwYklDm9UfET3mYYYp_8MWgq309F47l8WjLFiISmDFtq5KSa2C7P87L?oe=6B1D9FFE","mimetype":"image/jpeg","bytes":109901,"width":1600,"height":675,"seconds":null,"fileName":null},"linkPreview":null,"poll":null,"reactionCount":12753,"reactions":[{"emoji":"👍","count":3885},{"emoji":"❤️","count":1725},{"emoji":"🙏","count":774}],"forwards":1322}],"before":801}}}},"400":{"description":"A malformed number, channel link or parameter, rejected before any payment is asked for. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The API key sent does not exist. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required, or the payment sent was invalid. x402 v2 requirements are in the PAYMENT-REQUIRED header, the MPP challenge in WWW-Authenticate; with an API key, the credit ran out. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"WhatsApp did not answer. The payment is cancelled, never settled. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/bulk":{"post":{"operationId":"bulk","summary":"Bulk lookup","description":"Runs one lookup (exists, profile, profileFull or carrier) on up to 100 numbers and answers each one, in the order sent, with the same JSON the single lookup returns. Same prices. API keys only: an x402 or MPP payment covers one number. Each distinct number answered is charged once at its lookup's price. Typos, lookups WhatsApp did not answer and numbers without a carrier are free. The full price is held when the request starts; the unused part goes straight back on the key.","tags":["Bulk"],"security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lookup":{"type":"string","enum":["exists","profile","profileFull","carrier"],"description":"Which lookup to run on every number: `exists`, `profile`, `profileFull` or `carrier`."},"phones":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string"},"description":"1 to 100 numbers with their country codes, written any way a single lookup accepts."}},"required":["lookup","phones"]},"example":{"lookup":"exists","phones":["+14155550123","+44 7400 123456","+1415"]}}}},"responses":{"200":{"description":"One result per number, in the order sent. The wtsp-credits-remaining header gives the credit left.","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"input":{"type":"string","description":"The number as you sent it."},"answer":{"description":"What the single lookup (GET /v1/exists, /v1/profile, /v1/profile/full or /v1/carrier) returns for this number.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"error":{"description":"Why this number has no answer: `invalid_phone`, `lookup_failed` or `no_carrier`. Not charged.","type":"object","properties":{"code":{"type":"string","description":"Stable machine-readable code, e.g. `invalid_phone`, `payment_required`, `lookup_failed`."},"message":{"type":"string","description":"What went wrong and what to do, in plain words."}},"required":["code","message"]}},"required":["input"]},"description":"One entry per number sent, in the order sent, with either `answer` or `error`."},"charged":{"type":"string","description":"USD taken off the key for this request: one price per distinct number answered."},"balance":{"type":"string","description":"Credit left on the key afterwards, in USD."}},"required":["results","charged","balance"]},"example":{"results":[{"input":"+14155550123","answer":{"phone":"+14155550123","hasWhatsApp":true}},{"input":"+44 7400 123456","answer":{"phone":"+447400123456","hasWhatsApp":false}},{"input":"+1415","error":{"code":"invalid_phone","message":"Wrong number of digits for its country. Include the country code, like +14155550123."}}],"charged":"0.006","balance":"9.98"}}}},"400":{"description":"Not JSON, an unknown lookup, or not 1 to 100 phones. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or unknown API key. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The key holds less than the full price of the numbers sent. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"WhatsApp did not answer at all. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/credits":{"post":{"operationId":"buyCredits","summary":"Buy API credit","description":"Buy prepaid credit in whole USDC, paid with x402. Without an Authorization header a new API key is issued and returned once; with one, that key is topped up. The payment settles before any credit is written.","tags":["Credits"],"security":[{},{"apiKey":[]}],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"1","max":"5000"},"protocols":[{"x402":{}}]},"parameters":[{"name":"amount","in":"query","required":true,"description":"Whole USDC to pay, from 1 to 5000. Every full 50 adds 2% bonus credit, up to 30%.","schema":{"type":"integer","minimum":1,"maximum":5000,"example":10}}],"responses":{"200":{"description":"Credit added.","content":{"application/json":{"schema":{"type":"object","properties":{"key":{"description":"The new API key, shown this once. Null when an existing key was topped up.","type":["string","null"]},"keyPrefix":{"type":"string","description":"The key's first characters, to tell keys apart."},"added":{"type":"string","description":"Credit added by this purchase, in USD, bonus included."},"balance":{"type":"string","description":"Credit on the key afterwards, in USD."}},"required":["key","keyPrefix","added","balance"]},"example":{"key":"wtsp_7Kq2xLmN4pR8sT1vW6yZ0aB3cD5eF9gH","keyPrefix":"wtsp_7Kq2xLm","added":"10","balance":"10"}}}},"400":{"description":"Amount outside 1 to 5000 whole USDC. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The key to top up does not exist. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required. x402 v2 requirements are in the PAYMENT-REQUIRED header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"operationId":"creditBalance","summary":"API key balance","description":"The credit left on an API key, and when it was last used. Free.","tags":["Credits"],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Balance.","content":{"application/json":{"schema":{"type":"object","properties":{"keyPrefix":{"type":"string"},"balance":{"type":"string","description":"Credit left, in USD."},"createdAt":{"type":"string"},"lastUsedAt":{"type":["string","null"]}},"required":["keyPrefix","balance","createdAt","lastUsedAt"]},"example":{"keyPrefix":"wtsp_7Kq2xLm","balance":"9.986","createdAt":"2026-10-02T14:05:11.000Z","lastUsedAt":"2026-10-09T18:24:03.000Z"}}}},"401":{"description":"Missing or unknown API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"A prepaid wtsp.dev API key (wtsp_…), bought with POST /v1/credits or at https://wtsp.dev/pricing#keys."}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"Stable machine-readable code, e.g. `invalid_phone`, `payment_required`, `lookup_failed`."},"message":{"type":"string","description":"What went wrong and what to do, in plain words."}},"required":["code","message"]}},"required":["error"]}}}}