{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/pt/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Início rápido","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"início-rápido","__idx":0},"children":["Início rápido"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Comece a usar a API MoreLogin em 5 minutos."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"automação-do-navegador-api-local","__idx":1},"children":["Automação do navegador (API local)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Cenário:"]}," Crie um perfil de navegador, inicie-o, conecte-se via Puppeteer para executar um script e, em seguida, interrompa-o."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"pré-requisitos","__idx":2},"children":["Pré-requisitos"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Aplicativo de desktop MoreLogin ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["v2.15.0+"]}," instalado e em execução localmente."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Marionetista instalado (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["npm i puppeteer-core"]},")."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"etapa-1-crie-um-perfil-de-navegador","__idx":3},"children":["Etapa 1: crie um perfil de navegador"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -X POST \"http://127.0.0.1:40000/api/env/create/quick\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"browserTypeId\": 1,\n    \"operatorSystemId\": 1,\n    \"quantity\": 1\n  }'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["Salve o ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["envId"]}," da resposta (por exemplo, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["1993244721490239488"]},")."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"etapa-2-inicie-o-perfil-e-obtenha-a-porta-de-depuração","__idx":4},"children":["Etapa 2: inicie o perfil e obtenha a porta de depuração"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -X POST \"http://127.0.0.1:40000/api/env/start\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"envId\": \"1993244721490239488\"}'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["A resposta incluirá ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["debugPort"]}," (por exemplo, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["12345"]},")."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"etapa-3-conectar-o-puppeteer-nodejs","__idx":5},"children":["Etapa 3: conectar o Puppeteer (Node.js)"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"javascript","header":{"controls":{"copy":{}}},"source":"const puppeteer = require('puppeteer-core');\n\n(async () => {\n  const browser = await puppeteer.connect({\n    browserURL: 'http://127.0.0.1:12345'\n  });\n  const page = await browser.newPage();\n  await page.goto('https://www.morelogin.com');\n  console.log(await page.title());\n  await browser.disconnect();\n})();\n","lang":"javascript"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"etapa-4-interromper-o-perfil","__idx":6},"children":["Etapa 4: interromper o perfil"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -X POST \"http://127.0.0.1:40000/api/env/close\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"envId\": \"1993244721490239488\"}'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"gerenciamento-de-telefone-em-nuvem-api-aberta","__idx":7},"children":["Gerenciamento de telefone em nuvem (API aberta)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Cenário:"]}," crie rapidamente um telefone na nuvem, inicie-o, instale um aplicativo e acione uma programação de RPA."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"pré-requisitos-1","__idx":8},"children":["Pré-requisitos"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ID da API e chave da API no painel MoreLogin."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"etapa-1-obtenha-o-token-de-acesso","__idx":9},"children":["Etapa 1: Obtenha o token de acesso"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -X POST \"https://api.morelogin.com/oauth2/token\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"client_id\": \"YOUR_API_ID\",\n    \"client_secret\": \"YOUR_API_KEY\",\n    \"grant_type\": \"client_credentials\"\n  }'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["Salve o ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["access_token"]}," da resposta."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"etapa-2-criação-rápida-e-início-do-telefone-na-nuvem","__idx":10},"children":["Etapa 2: criação rápida e início do telefone na nuvem"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -X POST \"https://api.morelogin.com/cloudphone/newMachine\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer YOUR_ACCESS_TOKEN\" \\\n  -d '{\n    \"androidVersion\": 10,\n    \"duration\": 30,\n    \"unit\": 1\n  }'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["Salve o ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}," (Cloud Phone ID) da resposta."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"etapa-3-instale-um-aplicativo","__idx":11},"children":["Etapa 3: instale um aplicativo"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Supondo que você já tenha um ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["appVersionId"]}," da biblioteca do aplicativo:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -X POST \"https://api.morelogin.com/cloudphone/app/install\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer YOUR_ACCESS_TOKEN\" \\\n  -d '{\n    \"id\": 1673823102599682,  # Your Cloud Phone ID\n    \"appVersionId\": \"1672940217990530\"\n  }'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"etapa-4-execute-uma-programação-rpa","__idx":12},"children":["Etapa 4: execute uma programação RPA"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Execute um script de automação pré-configurado em seu novo telefone na nuvem:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -X POST \"https://api.morelogin.com/cloudphone/rpa/onceTask/save\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer YOUR_ACCESS_TOKEN\" \\\n  -d '{\n    \"cloudPhoneId\": 1673823102599682,\n    \"scheduleName\": \"Daily Login Task\",\n    \"templateId\": 987654321\n  }'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"o-que-vem-a-seguir","__idx":13},"children":["O que vem a seguir?"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Objetivo"},"children":["Objetivo"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Vá para"},"children":["Vá para"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Referência completa da API do perfil do navegador"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt/api-reference/browser/local-api"},"children":["API do navegador"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Referência completa da API Cloud Phone"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt/api-reference/cloud-phone/open-api"},"children":["API Cloud Phone"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Conecte-se via ADB"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pt/api-reference/cloud-phone/adb"},"children":["Guia de conexão ADB"]}]}]}]}]}]}]},"headings":[{"value":"Início rápido","id":"início-rápido","depth":1},{"value":"Automação do navegador (API local)","id":"automação-do-navegador-api-local","depth":2},{"value":"Pré-requisitos","id":"pré-requisitos","depth":3},{"value":"Etapa 1: crie um perfil de navegador","id":"etapa-1-crie-um-perfil-de-navegador","depth":3},{"value":"Etapa 2: inicie o perfil e obtenha a porta de depuração","id":"etapa-2-inicie-o-perfil-e-obtenha-a-porta-de-depuração","depth":3},{"value":"Etapa 3: conectar o Puppeteer (Node.js)","id":"etapa-3-conectar-o-puppeteer-nodejs","depth":3},{"value":"Etapa 4: interromper o perfil","id":"etapa-4-interromper-o-perfil","depth":3},{"value":"Gerenciamento de telefone em nuvem (API aberta)","id":"gerenciamento-de-telefone-em-nuvem-api-aberta","depth":2},{"value":"Pré-requisitos","id":"pré-requisitos-1","depth":3},{"value":"Etapa 1: Obtenha o token de acesso","id":"etapa-1-obtenha-o-token-de-acesso","depth":3},{"value":"Etapa 2: criação rápida e início do telefone na nuvem","id":"etapa-2-criação-rápida-e-início-do-telefone-na-nuvem","depth":3},{"value":"Etapa 3: instale um aplicativo","id":"etapa-3-instale-um-aplicativo","depth":3},{"value":"Etapa 4: execute uma programação RPA","id":"etapa-4-execute-uma-programação-rpa","depth":3},{"value":"O que vem a seguir?","id":"o-que-vem-a-seguir","depth":2}],"frontmatter":{"seo":{"title":"Início rápido"}},"lastModified":"2026-06-10T11:47:34.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/pt/api-reference/getting-started/quickstart","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}