{"info":{"_postman_id":"2ff7ea69-7965-45df-9d31-81de63229440","name":"2FASMS API","description":"<html><head></head><body><p>2FASMS REST API. Docs: <a href=\"https://2fasms.com/app/en/api-docs\">https://2fasms.com/app/en/api-docs</a></p>\n<p>Set the collection variable <code>api_key</code> to your 2FASMS API key (account settings).</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"59423970","collectionId":"2ff7ea69-7965-45df-9d31-81de63229440","publishedId":"2sBYHXRJZs","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-11-03T12:18:21.000Z"},"item":[{"name":"balance","id":"676be46d-2fda-47e7-b9ad-229e20ae0bba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer "}],"url":"https://api.2fasms.com/order/api/get_balance","description":"<p>Get your balance. Errors: 400 Missing API key, 401 Invalid API key.</p>\n","urlObject":{"protocol":"https","path":["order","api","get_balance"],"host":["api","2fasms","com"],"query":[],"variable":[]}},"response":[{"id":"b3c5f1dc-d7d7-4416-9bc5-308160185169","name":"200","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer "}],"url":"https://api.2fasms.com/order/api/get_balance"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"balance\": 25.50,\n  \"user_id\": 123\n}"}],"_postman_id":"676be46d-2fda-47e7-b9ad-229e20ae0bba"},{"name":"services","id":"1516d4b9-325c-4480-81a3-b12dc17e0fd1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.2fasms.com/order/api/services?country=france","description":"<p>List services (all, or per country). No auth needed. Errors: 404 Country not found, 503 No data available.</p>\n","urlObject":{"protocol":"https","path":["order","api","services"],"host":["api","2fasms","com"],"query":[{"description":{"content":"<p>Optional country slug, e.g. france</p>\n","type":"text/plain"},"key":"country","value":"france"}],"variable":[]}},"response":[{"id":"0a5cbd1c-02b7-43d1-bddd-08b44d78cf20","name":"200","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.2fasms.com/order/api/services?country=france","protocol":"https","host":["api","2fasms","com"],"path":["order","api","services"],"query":[{"key":"country","value":"france"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"country\": \"france\",\n  \"services\": [\n    {\n      \"name\": \"whatsapp\",\n      \"providers\": [\"provider_5\", \"provider_7\", \"provider_9\"],\n      \"min_price\": 15.20,\n      \"max_price\": 33.50\n    }\n  ],\n  \"total\": 89,\n  \"from_cache\": true\n}"}],"_postman_id":"1516d4b9-325c-4480-81a3-b12dc17e0fd1"},{"name":"achat de numero (get_number)","id":"17029531-2a24-4f84-9fed-102efb10535a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer "},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"country\": \"france\",\n  \"service\": \"whatsapp\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.2fasms.com/order/api/get_number","description":"<p>Buy an activation number. country and service are slugs. Errors: 400 Invalid parameters, 406 Insufficient funds, 500 Service/country unavailable.</p>\n","urlObject":{"protocol":"https","path":["order","api","get_number"],"host":["api","2fasms","com"],"query":[],"variable":[]}},"response":[{"id":"0c7d88a7-b6c4-470f-9ecc-8b24165b8dab","name":"200","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer "},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"country\": \"france\",\n  \"service\": \"whatsapp\"\n}"},"url":"https://api.2fasms.com/order/api/get_number"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"orderId\": 12345,\n  \"number\": \"+33123456789\",\n  \"status\": \"ok\"\n}"}],"_postman_id":"17029531-2a24-4f84-9fed-102efb10535a"},{"name":"lecture du SMS (check_order)","id":"9407a913-4a86-4467-be43-7bcf465ee366","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer "},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"orderId\": 12345\n}","options":{"raw":{"language":"json"}}},"url":"https://api.2fasms.com/order/api/check_order","description":"<p>Poll the SMS code. orderId is the value returned by get_number. Errors: 400 Missing parameters, 404 Order not found.</p>\n","urlObject":{"protocol":"https","path":["order","api","check_order"],"host":["api","2fasms","com"],"query":[],"variable":[]}},"response":[{"id":"dfc523f0-e5b5-4e05-a7b2-5a3f9e7d80a4","name":"200","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer "},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"orderId\": 12345\n}"},"url":"https://api.2fasms.com/order/api/check_order"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"success\",\n  \"data\": [{ \"orderId\": 12345, \"sms\": \"123456\" }]\n}"}],"_postman_id":"9407a913-4a86-4467-be43-7bcf465ee366"}],"variable":[{"key":"api_key","value":""}]}