Create a social post
curl --request POST \
--url https://api.motion.so/api/motion/social/posts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"connection_id": "4f20dcdd-f63b-4898-97d6-2e05c0d37c78",
"generation_id": "541a1670-14db-4ee1-bdc4-f3b3c5d03459",
"title": "Launch video",
"description": "Introducing our latest product."
}
'import requests
url = "https://api.motion.so/api/motion/social/posts"
payload = {
"connection_id": "4f20dcdd-f63b-4898-97d6-2e05c0d37c78",
"generation_id": "541a1670-14db-4ee1-bdc4-f3b3c5d03459",
"title": "Launch video",
"description": "Introducing our latest product."
}
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({
connection_id: '4f20dcdd-f63b-4898-97d6-2e05c0d37c78',
generation_id: '541a1670-14db-4ee1-bdc4-f3b3c5d03459',
title: 'Launch video',
description: 'Introducing our latest product.'
})
};
fetch('https://api.motion.so/api/motion/social/posts', 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/social/posts",
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([
'connection_id' => '4f20dcdd-f63b-4898-97d6-2e05c0d37c78',
'generation_id' => '541a1670-14db-4ee1-bdc4-f3b3c5d03459',
'title' => 'Launch video',
'description' => 'Introducing our latest product.'
]),
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/social/posts"
payload := strings.NewReader("{\n \"connection_id\": \"4f20dcdd-f63b-4898-97d6-2e05c0d37c78\",\n \"generation_id\": \"541a1670-14db-4ee1-bdc4-f3b3c5d03459\",\n \"title\": \"Launch video\",\n \"description\": \"Introducing our latest product.\"\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/social/posts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"connection_id\": \"4f20dcdd-f63b-4898-97d6-2e05c0d37c78\",\n \"generation_id\": \"541a1670-14db-4ee1-bdc4-f3b3c5d03459\",\n \"title\": \"Launch video\",\n \"description\": \"Introducing our latest product.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.motion.so/api/motion/social/posts")
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 \"connection_id\": \"4f20dcdd-f63b-4898-97d6-2e05c0d37c78\",\n \"generation_id\": \"541a1670-14db-4ee1-bdc4-f3b3c5d03459\",\n \"title\": \"Launch video\",\n \"description\": \"Introducing our latest product.\"\n}"
response = http.request(request)
puts response.read_body{
"id": "4f20dcdd-f63b-4898-97d6-2e05c0d37c78",
"connection_id": "4f20dcdd-f63b-4898-97d6-2e05c0d37c78",
"generation_id": "541a1670-14db-4ee1-bdc4-f3b3c5d03459",
"composition_id": "541a1670-14db-4ee1-bdc4-f3b3c5d03459:film",
"thumbnail_generation_id": null,
"status": "draft",
"media_status": "preparing",
"caption": "",
"title": "Launch video",
"description": "Introducing our latest product.",
"scheduled_at": "2026-11-19T18:00:00Z",
"created_at": "2026-11-18T22:00:00Z",
"approved_by": null,
"post_url": null,
"error": null,
"has_media": false,
"has_thumbnail": false,
"publication_locked": false
}{
"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": "<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": "<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": [
{}
]
}Social posting
Create a social post
Create a draft from a generation. Motion exports its media automatically. YouTube and Reddit require title; use description for their post text. Other platforms use caption. Submit the draft for approval.
POST
/
social
/
posts
Create a social post
curl --request POST \
--url https://api.motion.so/api/motion/social/posts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"connection_id": "4f20dcdd-f63b-4898-97d6-2e05c0d37c78",
"generation_id": "541a1670-14db-4ee1-bdc4-f3b3c5d03459",
"title": "Launch video",
"description": "Introducing our latest product."
}
'import requests
url = "https://api.motion.so/api/motion/social/posts"
payload = {
"connection_id": "4f20dcdd-f63b-4898-97d6-2e05c0d37c78",
"generation_id": "541a1670-14db-4ee1-bdc4-f3b3c5d03459",
"title": "Launch video",
"description": "Introducing our latest product."
}
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({
connection_id: '4f20dcdd-f63b-4898-97d6-2e05c0d37c78',
generation_id: '541a1670-14db-4ee1-bdc4-f3b3c5d03459',
title: 'Launch video',
description: 'Introducing our latest product.'
})
};
fetch('https://api.motion.so/api/motion/social/posts', 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/social/posts",
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([
'connection_id' => '4f20dcdd-f63b-4898-97d6-2e05c0d37c78',
'generation_id' => '541a1670-14db-4ee1-bdc4-f3b3c5d03459',
'title' => 'Launch video',
'description' => 'Introducing our latest product.'
]),
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/social/posts"
payload := strings.NewReader("{\n \"connection_id\": \"4f20dcdd-f63b-4898-97d6-2e05c0d37c78\",\n \"generation_id\": \"541a1670-14db-4ee1-bdc4-f3b3c5d03459\",\n \"title\": \"Launch video\",\n \"description\": \"Introducing our latest product.\"\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/social/posts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"connection_id\": \"4f20dcdd-f63b-4898-97d6-2e05c0d37c78\",\n \"generation_id\": \"541a1670-14db-4ee1-bdc4-f3b3c5d03459\",\n \"title\": \"Launch video\",\n \"description\": \"Introducing our latest product.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.motion.so/api/motion/social/posts")
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 \"connection_id\": \"4f20dcdd-f63b-4898-97d6-2e05c0d37c78\",\n \"generation_id\": \"541a1670-14db-4ee1-bdc4-f3b3c5d03459\",\n \"title\": \"Launch video\",\n \"description\": \"Introducing our latest product.\"\n}"
response = http.request(request)
puts response.read_body{
"id": "4f20dcdd-f63b-4898-97d6-2e05c0d37c78",
"connection_id": "4f20dcdd-f63b-4898-97d6-2e05c0d37c78",
"generation_id": "541a1670-14db-4ee1-bdc4-f3b3c5d03459",
"composition_id": "541a1670-14db-4ee1-bdc4-f3b3c5d03459:film",
"thumbnail_generation_id": null,
"status": "draft",
"media_status": "preparing",
"caption": "",
"title": "Launch video",
"description": "Introducing our latest product.",
"scheduled_at": "2026-11-19T18:00:00Z",
"created_at": "2026-11-18T22:00:00Z",
"approved_by": null,
"post_url": null,
"error": null,
"has_media": false,
"has_thumbnail": false,
"publication_locked": false
}{
"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": "<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": "<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": [
{}
]
}Authorizations
MotionApiKeyMotionOAuth
Scopes
Headers
Body
application/json
Response
Success
Was this page helpful?