{"id":1034,"date":"2026-10-26T16:13:12","date_gmt":"2026-10-26T16:13:12","guid":{"rendered":"https:\/\/phonefarm.tech\/?st-import=44dce4483b09f3b35ecd39657baa121a"},"modified":"2026-10-27T10:16:16","modified_gmt":"2026-10-27T10:16:16","slug":"api-autojs-create-execute-task","status":"publish","type":"post","link":"https:\/\/phonefarm.tech\/es\/api-autojs-create-execute-task\/","title":{"rendered":"autojsCreate: Execute Automation Task"},"content":{"rendered":"<p>Execute an external automation script on specified devices.<\/p>\n<h2>Request Example<\/h2>\n<pre><code class=\\\"language-json\\\">{\n  \\\"action\\\": \\\"autojsCreate\\\",\n  \\\"devices\\\": \\\"all\\\",\n  \\\"data\\\": [\n    {\n      \\\"path\\\": \\\"D:\\\\code\\\\script\\\\daily_checkin.js\\\",\n      \\\"count\\\": 1,\n      \\\"startTimes\\\": [],\n      \\\"taskInterval\\\": [1000, 3000],\n      \\\"deviceInterval\\\": 500\n    }\n  ]\n}<\/code><\/pre>\n<h2>Response Example<\/h2>\n<pre><code class=\\\"language-json\\\">{\n  \\\"code\\\": 10000,\n  \\\"message\\\": \\\"SUCCESS\\\",\n  \\\"data\\\": null\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Execute an external automation script on specified devices. Request Example { \\&#8221;action\\&#8221;: \\&#8221;autojsCreate\\&#8221;, \\&#8221;devices\\&#8221;: \\&#8221;all\\&#8221;, \\&#8221;data\\&#8221;: [ { \\&#8221;path\\&#8221;: \\&#8221;D:\\\\code\\\\script\\\\daily_checkin.js\\&#8221;, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":3789,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[55],"tags":[120,116,119],"class_list":["post-1034","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-task-automation","tag-autojs","tag-automation","tag-run"],"_links":{"self":[{"href":"https:\/\/phonefarm.tech\/es\/wp-json\/wp\/v2\/posts\/1034","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/phonefarm.tech\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/phonefarm.tech\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/phonefarm.tech\/es\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/phonefarm.tech\/es\/wp-json\/wp\/v2\/comments?post=1034"}],"version-history":[{"count":2,"href":"https:\/\/phonefarm.tech\/es\/wp-json\/wp\/v2\/posts\/1034\/revisions"}],"predecessor-version":[{"id":3900,"href":"https:\/\/phonefarm.tech\/es\/wp-json\/wp\/v2\/posts\/1034\/revisions\/3900"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/phonefarm.tech\/es\/wp-json\/wp\/v2\/media\/3789"}],"wp:attachment":[{"href":"https:\/\/phonefarm.tech\/es\/wp-json\/wp\/v2\/media?parent=1034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phonefarm.tech\/es\/wp-json\/wp\/v2\/categories?post=1034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phonefarm.tech\/es\/wp-json\/wp\/v2\/tags?post=1034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}