Read an automation
curl --request GET \
--url https://api.motion.so/api/motion/automations/{automation_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.motion.so/api/motion/automations/{automation_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.motion.so/api/motion/automations/{automation_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.motion.so/api/motion/automations/{automation_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.motion.so/api/motion/automations/{automation_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.motion.so/api/motion/automations/{automation_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.motion.so/api/motion/automations/{automation_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"automation": {
"id": "auto_01j9x4m8n9p0q1r2s3t4u5v6",
"name": "Daily product update",
"enabled": true,
"prompt": "Create a 15-second 16:9 animated update summarizing the latest release notes.",
"trigger": {
"type": "schedule_recurring",
"platform": "schedule",
"label": "Every 24 hours",
"source": "Schedule",
"interval_minutes": 1440
},
"created_at": "2026-11-18T14:00:00Z",
"updated_at": "2026-11-19T14:02:18Z",
"next_run_at": "2026-11-20T14:00:00Z",
"runs": [
{
"id": "run_01j9x5q2k7w8m4n3p6r9s1t2",
"status": "completed",
"motion_agent_chat_id": "4f20dcdd-f63b-4898-97d6-2e05c0d37c78",
"queued_at": "2026-11-19T14:00:00Z",
"started_at": "2026-11-19T14:00:03Z",
"completed_at": "2026-11-19T14:02:18Z",
"attempt": 1,
"result_summary": "Created the daily product update video.",
"error": null
}
],
"memory": {
"remember_processed_items": true,
"include_previous_runs": 5,
"compact_after_runs": 20
},
"max_concurrent_runs": 1,
"max_runs_per_hour": 4
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Automations
Read an automation
Read an automation and its recent runs.
GET
/
automations
/
{automation_id}
Read an automation
curl --request GET \
--url https://api.motion.so/api/motion/automations/{automation_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.motion.so/api/motion/automations/{automation_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.motion.so/api/motion/automations/{automation_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.motion.so/api/motion/automations/{automation_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.motion.so/api/motion/automations/{automation_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.motion.so/api/motion/automations/{automation_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.motion.so/api/motion/automations/{automation_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"automation": {
"id": "auto_01j9x4m8n9p0q1r2s3t4u5v6",
"name": "Daily product update",
"enabled": true,
"prompt": "Create a 15-second 16:9 animated update summarizing the latest release notes.",
"trigger": {
"type": "schedule_recurring",
"platform": "schedule",
"label": "Every 24 hours",
"source": "Schedule",
"interval_minutes": 1440
},
"created_at": "2026-11-18T14:00:00Z",
"updated_at": "2026-11-19T14:02:18Z",
"next_run_at": "2026-11-20T14:00:00Z",
"runs": [
{
"id": "run_01j9x5q2k7w8m4n3p6r9s1t2",
"status": "completed",
"motion_agent_chat_id": "4f20dcdd-f63b-4898-97d6-2e05c0d37c78",
"queued_at": "2026-11-19T14:00:00Z",
"started_at": "2026-11-19T14:00:03Z",
"completed_at": "2026-11-19T14:02:18Z",
"attempt": 1,
"result_summary": "Created the daily product update video.",
"error": null
}
],
"memory": {
"remember_processed_items": true,
"include_previous_runs": 5,
"compact_after_runs": 20
},
"max_concurrent_runs": 1,
"max_runs_per_hour": 4
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Authorizations
MotionApiKeyMotionOAuth
Headers
Path Parameters
Was this page helpful?