[{"data":1,"prerenderedAt":476},["ShallowReactive",2],{"docs-nav-all":3,"developer-nav-en":114,"developer-doc-en-/developers/rest/first-request":142,"developer-related-en":460},[4,9,13,17,21,25,29,32,36,40,44,47,51,55,58,61,64,68,72,76,79,82,85,88,91,94,98,102,106,110],{"path":5,"title":6,"section":7,"order":8},"/docs/analytics/content","Разбор контента","analytics",2,{"path":10,"title":11,"section":7,"order":12},"/docs/analytics/metrics","Шпаргалка метрик: как читать цифры",3,{"path":14,"title":15,"section":7,"order":16},"/docs/analytics/notifications","Уведомления",5,{"path":18,"title":19,"section":7,"order":20},"/docs/analytics/overview","Аналитика: обзор",1,{"path":22,"title":23,"section":7,"order":24},"/docs/analytics/refresh","Обновление аккаунтов",4,{"path":26,"title":27,"section":28,"order":8},"/docs/assistant/effective-prompts","Как писать запросы ассистенту","assistant",{"path":30,"title":31,"section":28,"order":20},"/docs/assistant/overview","AI-ассистент",{"path":33,"title":34,"section":35,"order":20},"/docs/automations/funnels","Воронки в Instagram","automations",{"path":37,"title":38,"section":39,"order":20},"/docs/collaboration/team","Команда и пространства","collaboration",{"path":41,"title":42,"section":43,"order":8},"/docs/creators/account-setup","Создание аккаунтов","creators",{"path":45,"title":46,"section":43,"order":12},"/docs/creators/formats","Форматы контента",{"path":48,"title":49,"section":43,"order":50},"/docs/creators/getting-started","Как стартовать",0,{"path":52,"title":53,"section":43,"order":54},"/docs/creators/payouts","Выплаты",6,{"path":56,"title":57,"section":43,"order":20},"/docs/creators/platform-guide","Как пользоваться платформой",{"path":59,"title":60,"section":43,"order":16},"/docs/creators/posting-rules","Правила работы",{"path":62,"title":63,"section":43,"order":24},"/docs/creators/publishing","Как выкладывать ролики",{"path":65,"title":66,"section":43,"order":67},"/docs/creators/termination","Пауза и завершение работы",7,{"path":69,"title":70,"section":71,"order":20},"/docs/getting-started/dashboard","Главная","getting-started",{"path":73,"title":74,"section":75,"order":24},"/docs/guides/agency","Я веду клиентов","guides",{"path":77,"title":78,"section":75,"order":12},"/docs/guides/beat-competitors","Я бренд, продвигаю продукт",{"path":80,"title":81,"section":75,"order":16},"/docs/guides/catch-trends","Ловлю тренды раньше",{"path":83,"title":84,"section":75,"order":50},"/docs/guides/getting-started","С чего начать",{"path":86,"title":87,"section":75,"order":8},"/docs/guides/track-results","Уже снимаю, хочу расти",{"path":89,"title":90,"section":75,"order":20},"/docs/guides/what-to-film","Хочу понять, что залетит",{"path":92,"title":93,"section":71,"order":50},"/docs","Что такое Viralmaxing",{"path":95,"title":96,"section":97,"order":20},"/docs/reference/energy","Энергия и лимиты","reference",{"path":99,"title":100,"section":101,"order":50},"/docs/research/collections","Подборки","collections",{"path":103,"title":104,"section":105,"order":50},"/docs/research/idea-search","Поиск идей","idea-search",{"path":107,"title":108,"section":109,"order":20},"/docs/scenarios/plan","План и сценарии","scenarios",{"path":111,"title":112,"section":113,"order":50},"/docs/settings/accounts","Подключение аккаунтов","settings",[115,119,123,126,129,132,136,139],{"path":116,"title":117,"section":118,"order":50},"/developers","Developer documentation","start",{"path":120,"title":121,"section":122,"order":20},"/developers/mcp/quick-start","MCP quick start","mcp",{"path":124,"title":125,"section":122,"order":24},"/developers/mcp/skills","Viralmaxing skills for agents",{"path":127,"title":128,"section":122,"order":12},"/developers/mcp/troubleshooting","MCP troubleshooting",{"path":130,"title":131,"section":122,"order":8},"/developers/mcp/verification","Verify the connection",{"path":133,"title":134,"section":135,"order":8},"/developers/rest/authentication","REST API authentication","rest",{"path":137,"title":138,"section":135,"order":12},"/developers/rest/first-request","Your first REST request",{"path":140,"title":141,"section":135,"order":20},"/developers/rest/quick-start","REST API quick start",{"id":143,"title":138,"appRoutes":144,"body":145,"description":450,"extension":451,"icon":452,"locale":453,"meta":454,"navigation":304,"order":12,"path":137,"related":455,"section":135,"seo":456,"seoTitle":457,"stem":458,"updatedDate":457,"__hash__":459},"developerDocsEn/developers/rest/first-request.md",[],{"type":146,"value":147,"toc":445},"minimark",[148,152,156,161,223,227,385,389,423,431,441],[149,150,138],"h1",{"id":151},"your-first-rest-request",[153,154,155],"p",{},"Start with a read. It verifies authentication without changing workspace data.",[157,158,160],"h2",{"id":159},"curl","cURL",[162,163,168],"pre",{"className":164,"code":165,"language":166,"meta":167,"style":167},"language-bash shiki shiki-themes github-light github-dark","curl --request GET \\\n  --url https://api.viralmaxing.com/api/analytics/accounts/ \\\n  --header \"X-API-Key: $VIRALMAXING_API_KEY\" \\\n  --header \"Accept: application/json\"\n","bash","",[169,170,171,189,199,216],"code",{"__ignoreMap":167},[172,173,175,178,182,186],"span",{"class":174,"line":20},"line",[172,176,159],{"class":177},"sScJk",[172,179,181],{"class":180},"sj4cs"," --request",[172,183,185],{"class":184},"sZZnC"," GET",[172,187,188],{"class":180}," \\\n",[172,190,191,194,197],{"class":174,"line":8},[172,192,193],{"class":180},"  --url",[172,195,196],{"class":184}," https://api.viralmaxing.com/api/analytics/accounts/",[172,198,188],{"class":180},[172,200,201,204,207,211,214],{"class":174,"line":12},[172,202,203],{"class":180},"  --header",[172,205,206],{"class":184}," \"X-API-Key: ",[172,208,210],{"class":209},"sVt8B","$VIRALMAXING_API_KEY",[172,212,213],{"class":184},"\"",[172,215,188],{"class":180},[172,217,218,220],{"class":174,"line":24},[172,219,203],{"class":180},[172,221,222],{"class":184}," \"Accept: application/json\"\n",[157,224,226],{"id":225},"server-side-javascript","Server-side JavaScript",[162,228,232],{"className":229,"code":230,"language":231,"meta":167,"style":167},"language-js shiki shiki-themes github-light github-dark","const response = await fetch('https://api.viralmaxing.com/api/analytics/accounts/', {\n  headers: {\n    Accept: 'application/json',\n    'X-API-Key': process.env.VIRALMAXING_API_KEY,\n  },\n});\n\nif (!response.ok) {\n  throw new Error(`Viralmaxing API returned ${response.status}`);\n}\n\nconst accounts = await response.json();\n","js",[169,233,234,261,266,277,290,295,300,306,321,353,359,364],{"__ignoreMap":167},[172,235,236,240,243,246,249,252,255,258],{"class":174,"line":20},[172,237,239],{"class":238},"szBVR","const",[172,241,242],{"class":180}," response",[172,244,245],{"class":238}," =",[172,247,248],{"class":238}," await",[172,250,251],{"class":177}," fetch",[172,253,254],{"class":209},"(",[172,256,257],{"class":184},"'https://api.viralmaxing.com/api/analytics/accounts/'",[172,259,260],{"class":209},", {\n",[172,262,263],{"class":174,"line":8},[172,264,265],{"class":209},"  headers: {\n",[172,267,268,271,274],{"class":174,"line":12},[172,269,270],{"class":209},"    Accept: ",[172,272,273],{"class":184},"'application/json'",[172,275,276],{"class":209},",\n",[172,278,279,282,285,288],{"class":174,"line":24},[172,280,281],{"class":184},"    'X-API-Key'",[172,283,284],{"class":209},": process.env.",[172,286,287],{"class":180},"VIRALMAXING_API_KEY",[172,289,276],{"class":209},[172,291,292],{"class":174,"line":16},[172,293,294],{"class":209},"  },\n",[172,296,297],{"class":174,"line":54},[172,298,299],{"class":209},"});\n",[172,301,302],{"class":174,"line":67},[172,303,305],{"emptyLinePlaceholder":304},true,"\n",[172,307,309,312,315,318],{"class":174,"line":308},8,[172,310,311],{"class":238},"if",[172,313,314],{"class":209}," (",[172,316,317],{"class":238},"!",[172,319,320],{"class":209},"response.ok) {\n",[172,322,324,327,330,333,335,338,341,344,347,350],{"class":174,"line":323},9,[172,325,326],{"class":238},"  throw",[172,328,329],{"class":238}," new",[172,331,332],{"class":177}," Error",[172,334,254],{"class":209},[172,336,337],{"class":184},"`Viralmaxing API returned ${",[172,339,340],{"class":209},"response",[172,342,343],{"class":184},".",[172,345,346],{"class":209},"status",[172,348,349],{"class":184},"}`",[172,351,352],{"class":209},");\n",[172,354,356],{"class":174,"line":355},10,[172,357,358],{"class":209},"}\n",[172,360,362],{"class":174,"line":361},11,[172,363,305],{"emptyLinePlaceholder":304},[172,365,367,369,372,374,376,379,382],{"class":174,"line":366},12,[172,368,239],{"class":238},[172,370,371],{"class":180}," accounts",[172,373,245],{"class":238},[172,375,248],{"class":238},[172,377,378],{"class":209}," response.",[172,380,381],{"class":177},"json",[172,383,384],{"class":209},"();\n",[157,386,388],{"id":387},"interpret-the-response","Interpret the response",[390,391,392,399,405,411,417],"ul",{},[393,394,395,398],"li",{},[169,396,397],{},"200"," means the request succeeded;",[393,400,401,404],{},[169,402,403],{},"400"," points to invalid parameters or a business constraint;",[393,406,407,410],{},[169,408,409],{},"401"," requires a valid key;",[393,412,413,416],{},[169,414,415],{},"403"," points to an insufficient workspace role;",[393,418,419,422],{},[169,420,421],{},"429"," requires a delay before retrying.",[153,424,425,426,428,429,343],{},"Do not retry an unchanged request after ",[169,427,403],{},". Read the error body and correct the parameters. Use increasing backoff for ",[169,430,421],{},[153,432,433,434,343],{},"All available paths and response schemas are in ",[435,436,440],"a",{"href":437,"rel":438},"https://docs.viralmaxing.com",[439],"nofollow","API Reference",[442,443,444],"style",{},"html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}",{"title":167,"searchDepth":8,"depth":8,"links":446},[447,448,449],{"id":159,"depth":8,"text":160},{"id":225,"depth":8,"text":226},{"id":387,"depth":8,"text":388},"Verify a key with cURL or server-side JavaScript and handle common API responses.","md","lucide:send","en",{},[140,133],{"title":138,"description":450},null,"developers/rest/first-request","7_iyRGhmKc3OGL8pqPov6nhRJ6fXTxR_CCfvszNkp78",[461,463,465,467,469,471,473,474],{"path":116,"title":117,"description":462},"Connect Viralmaxing to AI agents through MCP or to applications through the REST API.",{"path":120,"title":121,"description":464},"Add the Viralmaxing MCP server, sign in through the browser, and give the agent its first safe request.",{"path":124,"title":125,"description":466},"Five ready-made skills and the connector in one command: npx skills add Viralmaxing/skill.",{"path":127,"title":128,"description":468},"Checks for missing tools, repeated sign-in, incorrect workspace data, and authorization errors.",{"path":130,"title":131,"description":470},"Check the tool list, current workspace, and data access without running a paid operation.",{"path":133,"title":134,"description":472},"How to send, store, rotate, and revoke an API key without exposing it.",{"path":137,"title":138,"description":450},{"path":140,"title":141,"description":475},"Create an API key, store it in an environment variable, and make the first request.",1789902493137]