curl --request POST \
--url https://api.tella.com/v1/motion/documents/{id}/commands \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"commands": [
{
"name": "<string>",
"type": "setCurve",
"value": 123
}
],
"baseRevision": 4503599627370495,
"dryRun": true
}
'import requests
url = "https://api.tella.com/v1/motion/documents/{id}/commands"
payload = {
"commands": [
{
"name": "<string>",
"type": "setCurve",
"value": 123
}
],
"baseRevision": 4503599627370495,
"dryRun": True
}
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({
commands: [{name: '<string>', type: 'setCurve', value: 123}],
baseRevision: 4503599627370495,
dryRun: true
})
};
fetch('https://api.tella.com/v1/motion/documents/{id}/commands', 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.tella.com/v1/motion/documents/{id}/commands",
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([
'commands' => [
[
'name' => '<string>',
'type' => 'setCurve',
'value' => 123
]
],
'baseRevision' => 4503599627370495,
'dryRun' => true
]),
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.tella.com/v1/motion/documents/{id}/commands"
payload := strings.NewReader("{\n \"commands\": [\n {\n \"name\": \"<string>\",\n \"type\": \"setCurve\",\n \"value\": 123\n }\n ],\n \"baseRevision\": 4503599627370495,\n \"dryRun\": true\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.tella.com/v1/motion/documents/{id}/commands")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"commands\": [\n {\n \"name\": \"<string>\",\n \"type\": \"setCurve\",\n \"value\": 123\n }\n ],\n \"baseRevision\": 4503599627370495,\n \"dryRun\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tella.com/v1/motion/documents/{id}/commands")
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 \"commands\": [\n {\n \"name\": \"<string>\",\n \"type\": \"setCurve\",\n \"value\": 123\n }\n ],\n \"baseRevision\": 4503599627370495,\n \"dryRun\": true\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"changed": true,
"seq": 0
}{
"docsUrl": "https://docs.tella.com/",
"error": "bad_request",
"message": "The request was malformed or contained invalid parameters."
}{
"docsUrl": "https://docs.tella.com/",
"error": "unauthorized",
"message": "Authentication is required. Provide a valid API key."
}{
"docsUrl": "https://docs.tella.com/",
"error": "forbidden",
"message": "You don't have permission to access this resource."
}{
"docsUrl": "https://docs.tella.com/",
"error": "not_found",
"message": "The requested resource was not found."
}{
"docsUrl": "https://docs.tella.com/",
"error": "conflict",
"message": "The request conflicts with the resource's current state, e.g. an Idempotency-Key whose first request is still in progress. Retry once it settles."
}{
"docsUrl": "https://docs.tella.com/",
"error": "rate_limited",
"message": "You have exceeded the rate limit. Please slow down."
}{
"docsUrl": "https://docs.tella.com/",
"error": "server_error",
"message": "An unexpected error occurred"
}{
"docsUrl": "https://docs.tella.com/",
"error": "not_implemented",
"message": "The requested operation is not implemented."
}{
"docsUrl": "https://docs.tella.com/",
"error": "unavailable",
"message": "A dependency was unavailable and the request was not executed. Safe to resend unchanged after the Retry-After delay."
}Edit a Tella Motion document
Applies a batch of ops and the editor’s own commands as one transaction and one undo step; nothing applies unless everything does. Prefer a command for anything the editor does (titles, shapes, media, keyframes and easing, effects, masks, text animation, fades), since it keeps the editor’s conventions; use ops (node.patch, node.move, node.insert, …) for the rest. GET /v1/motion/schema?schema=edits&type=… gives each one’s fields. Pass baseRevision to refuse the batch with 409 if the document changed since you read it, and dryRun to check it without saving.
curl --request POST \
--url https://api.tella.com/v1/motion/documents/{id}/commands \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"commands": [
{
"name": "<string>",
"type": "setCurve",
"value": 123
}
],
"baseRevision": 4503599627370495,
"dryRun": true
}
'import requests
url = "https://api.tella.com/v1/motion/documents/{id}/commands"
payload = {
"commands": [
{
"name": "<string>",
"type": "setCurve",
"value": 123
}
],
"baseRevision": 4503599627370495,
"dryRun": True
}
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({
commands: [{name: '<string>', type: 'setCurve', value: 123}],
baseRevision: 4503599627370495,
dryRun: true
})
};
fetch('https://api.tella.com/v1/motion/documents/{id}/commands', 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.tella.com/v1/motion/documents/{id}/commands",
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([
'commands' => [
[
'name' => '<string>',
'type' => 'setCurve',
'value' => 123
]
],
'baseRevision' => 4503599627370495,
'dryRun' => true
]),
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.tella.com/v1/motion/documents/{id}/commands"
payload := strings.NewReader("{\n \"commands\": [\n {\n \"name\": \"<string>\",\n \"type\": \"setCurve\",\n \"value\": 123\n }\n ],\n \"baseRevision\": 4503599627370495,\n \"dryRun\": true\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.tella.com/v1/motion/documents/{id}/commands")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"commands\": [\n {\n \"name\": \"<string>\",\n \"type\": \"setCurve\",\n \"value\": 123\n }\n ],\n \"baseRevision\": 4503599627370495,\n \"dryRun\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tella.com/v1/motion/documents/{id}/commands")
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 \"commands\": [\n {\n \"name\": \"<string>\",\n \"type\": \"setCurve\",\n \"value\": 123\n }\n ],\n \"baseRevision\": 4503599627370495,\n \"dryRun\": true\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"changed": true,
"seq": 0
}{
"docsUrl": "https://docs.tella.com/",
"error": "bad_request",
"message": "The request was malformed or contained invalid parameters."
}{
"docsUrl": "https://docs.tella.com/",
"error": "unauthorized",
"message": "Authentication is required. Provide a valid API key."
}{
"docsUrl": "https://docs.tella.com/",
"error": "forbidden",
"message": "You don't have permission to access this resource."
}{
"docsUrl": "https://docs.tella.com/",
"error": "not_found",
"message": "The requested resource was not found."
}{
"docsUrl": "https://docs.tella.com/",
"error": "conflict",
"message": "The request conflicts with the resource's current state, e.g. an Idempotency-Key whose first request is still in progress. Retry once it settles."
}{
"docsUrl": "https://docs.tella.com/",
"error": "rate_limited",
"message": "You have exceeded the rate limit. Please slow down."
}{
"docsUrl": "https://docs.tella.com/",
"error": "server_error",
"message": "An unexpected error occurred"
}{
"docsUrl": "https://docs.tella.com/",
"error": "not_implemented",
"message": "The requested operation is not implemented."
}{
"docsUrl": "https://docs.tella.com/",
"error": "unavailable",
"message": "A dependency was unavailable and the request was not executed. Safe to resend unchanged after the Retry-After delay."
}Authorizations
API key obtained from your Tella account settings
Path Parameters
Tella Motion document ID (ffd_…), from GET /v1/motion/documents.
Body
A batch of ops and editor commands, applied in order as one transaction and one undo step: nothing applies unless everything does.
1 - 256 elementsOne edit in a batch: an editor command (camelCase type, times in seconds) or an op (dotted type, raw render timeline values). See https://docs.tella.com/mcp-tools/motion-commands for every command and op with an example.
- setCurve
- bindProperty
- split
- trim
- delete
- duplicate
- setSpeed
- setTransition
- addTitle
- addShape
- addMedia
- setTitle
- setShape
- animate
- setProperty
- setKeyframes
- editKeyframe
- removeKeyframes
- addEffect
- setEffect
- removeEffect
- moveEffect
- setMasks
- setMatte
- group
- ungroup
- stagger
- applyLook
- fitCanvas
- setMarkers
- setTimeRemap
- setExpression
- setTextAnimation
- addPath
- setPath
- duck
- expect
- setFades
- op
Hide child attributes
Hide child attributes
The curve's name.
^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$setCurve A number, keys, or an expression over other curves; null removes it. Every reader (bindProperty, a shader uniform) sees the same value at the same canvas time.
The seq you inspected. The batch is refused with 409 when the document has changed since.
0 <= x <= 9007199254740991Check the batch without saving it.
Was this page helpful?