Create a followup
curl --request POST \
--url https://api.motion.so/api/motion/sessions/{job_id}/followups \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "Make the opening headline larger and tighten pacing to 12 seconds."
}
'import requests
url = "https://api.motion.so/api/motion/sessions/{job_id}/followups"
payload = { "prompt": "Make the opening headline larger and tighten pacing to 12 seconds." }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({prompt: 'Make the opening headline larger and tighten pacing to 12 seconds.'})
};
fetch('https://api.motion.so/api/motion/sessions/{job_id}/followups', 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/sessions/{job_id}/followups",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'prompt' => 'Make the opening headline larger and tighten pacing to 12 seconds.'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.motion.so/api/motion/sessions/{job_id}/followups"
payload := strings.NewReader("{\n \"prompt\": \"Make the opening headline larger and tighten pacing to 12 seconds.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.motion.so/api/motion/sessions/{job_id}/followups")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"Make the opening headline larger and tighten pacing to 12 seconds.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.motion.so/api/motion/sessions/{job_id}/followups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"prompt\": \"Make the opening headline larger and tighten pacing to 12 seconds.\"\n}"
response = http.request(request)
puts response.read_body{
"job_id": "4f20dcdd-f63b-4898-97d6-2e05c0d37c78",
"status": "queued",
"status_url": "https://api.motion.so/api/motion/sessions/4f20dcdd-f63b-4898-97d6-2e05c0d37c78",
"chat_url": "https://motion.so/agent?chat=4f20dcdd-f63b-4898-97d6-2e05c0d37c78",
"engine": "gva",
"effort": "standard",
"template": null
}{
"error": "<string>",
"detail": "<string>",
"message": "<string>",
"error_description": "<string>",
"required_scope": "<string>",
"details": [
{
"code": "<string>",
"path": [
"<string>"
],
"message": "<string>"
}
],
"issues": [
{}
]
}{
"error": "<string>",
"detail": "<string>",
"message": "<string>",
"error_description": "<string>",
"required_scope": "<string>",
"details": [
{
"code": "<string>",
"path": [
"<string>"
],
"message": "<string>"
}
],
"issues": [
{}
]
}{
"error": "insufficient_credits",
"message": "Add credits before resuming this job.",
"status": "awaiting_user_input"
}{
"error": "engine_access_required",
"message": "Your account does not have access to this engine. Use list_engines or GET /engines to see available engines."
}{
"error": "<string>",
"detail": "<string>",
"message": "<string>",
"error_description": "<string>",
"required_scope": "<string>",
"details": [
{
"code": "<string>",
"path": [
"<string>"
],
"message": "<string>"
}
],
"issues": [
{}
]
}{
"error": "followup_requires_completed_job",
"message": "<string>",
"status": "<string>"
}Deprecated (/sessions)
Create a followup
deprecated
Deprecated: use /projects//messages for new integrations. This route remains callable with its existing single-video arguments and response contract. No removal date is scheduled.
POST
/
sessions
/
{job_id}
/
followups
Create a followup
curl --request POST \
--url https://api.motion.so/api/motion/sessions/{job_id}/followups \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "Make the opening headline larger and tighten pacing to 12 seconds."
}
'import requests
url = "https://api.motion.so/api/motion/sessions/{job_id}/followups"
payload = { "prompt": "Make the opening headline larger and tighten pacing to 12 seconds." }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({prompt: 'Make the opening headline larger and tighten pacing to 12 seconds.'})
};
fetch('https://api.motion.so/api/motion/sessions/{job_id}/followups', 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/sessions/{job_id}/followups",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'prompt' => 'Make the opening headline larger and tighten pacing to 12 seconds.'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.motion.so/api/motion/sessions/{job_id}/followups"
payload := strings.NewReader("{\n \"prompt\": \"Make the opening headline larger and tighten pacing to 12 seconds.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.motion.so/api/motion/sessions/{job_id}/followups")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"Make the opening headline larger and tighten pacing to 12 seconds.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.motion.so/api/motion/sessions/{job_id}/followups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"prompt\": \"Make the opening headline larger and tighten pacing to 12 seconds.\"\n}"
response = http.request(request)
puts response.read_body{
"job_id": "4f20dcdd-f63b-4898-97d6-2e05c0d37c78",
"status": "queued",
"status_url": "https://api.motion.so/api/motion/sessions/4f20dcdd-f63b-4898-97d6-2e05c0d37c78",
"chat_url": "https://motion.so/agent?chat=4f20dcdd-f63b-4898-97d6-2e05c0d37c78",
"engine": "gva",
"effort": "standard",
"template": null
}{
"error": "<string>",
"detail": "<string>",
"message": "<string>",
"error_description": "<string>",
"required_scope": "<string>",
"details": [
{
"code": "<string>",
"path": [
"<string>"
],
"message": "<string>"
}
],
"issues": [
{}
]
}{
"error": "<string>",
"detail": "<string>",
"message": "<string>",
"error_description": "<string>",
"required_scope": "<string>",
"details": [
{
"code": "<string>",
"path": [
"<string>"
],
"message": "<string>"
}
],
"issues": [
{}
]
}{
"error": "insufficient_credits",
"message": "Add credits before resuming this job.",
"status": "awaiting_user_input"
}{
"error": "engine_access_required",
"message": "Your account does not have access to this engine. Use list_engines or GET /engines to see available engines."
}{
"error": "<string>",
"detail": "<string>",
"message": "<string>",
"error_description": "<string>",
"required_scope": "<string>",
"details": [
{
"code": "<string>",
"path": [
"<string>"
],
"message": "<string>"
}
],
"issues": [
{}
]
}{
"error": "followup_requires_completed_job",
"message": "<string>",
"status": "<string>"
}Authorizations
Headers
Body
application/json
Creates a durable video job owned by the API key user. Requires available Motion credits on that user's account. Credits and auto top-ups are managed at https://motion.so, not through the API.
Response
Followup accepted
Was this page helpful?