Create a post
curl --request POST \
--url https://api.creatorline.io/v1/clips \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"account_id": "e307923d-bc66-4959-a297-6e230b93dc22",
"asset_ids": [
"9b2f7c10-4f3a-4a2b-9f10-77c3d2e1a8b4"
],
"caption": "morning ritual ☕️",
"hashtags": [
"skincare",
"grwm"
]
}
'import requests
url = "https://api.creatorline.io/v1/clips"
payload = {
"account_id": "e307923d-bc66-4959-a297-6e230b93dc22",
"asset_ids": ["9b2f7c10-4f3a-4a2b-9f10-77c3d2e1a8b4"],
"caption": "morning ritual ☕️",
"hashtags": ["skincare", "grwm"]
}
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({
account_id: 'e307923d-bc66-4959-a297-6e230b93dc22',
asset_ids: ['9b2f7c10-4f3a-4a2b-9f10-77c3d2e1a8b4'],
caption: 'morning ritual ☕️',
hashtags: ['skincare', 'grwm']
})
};
fetch('https://api.creatorline.io/v1/clips', 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.creatorline.io/v1/clips",
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([
'account_id' => 'e307923d-bc66-4959-a297-6e230b93dc22',
'asset_ids' => [
'9b2f7c10-4f3a-4a2b-9f10-77c3d2e1a8b4'
],
'caption' => 'morning ritual ☕️',
'hashtags' => [
'skincare',
'grwm'
]
]),
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.creatorline.io/v1/clips"
payload := strings.NewReader("{\n \"account_id\": \"e307923d-bc66-4959-a297-6e230b93dc22\",\n \"asset_ids\": [\n \"9b2f7c10-4f3a-4a2b-9f10-77c3d2e1a8b4\"\n ],\n \"caption\": \"morning ritual ☕️\",\n \"hashtags\": [\n \"skincare\",\n \"grwm\"\n ]\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.creatorline.io/v1/clips")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"account_id\": \"e307923d-bc66-4959-a297-6e230b93dc22\",\n \"asset_ids\": [\n \"9b2f7c10-4f3a-4a2b-9f10-77c3d2e1a8b4\"\n ],\n \"caption\": \"morning ritual ☕️\",\n \"hashtags\": [\n \"skincare\",\n \"grwm\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.creatorline.io/v1/clips")
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 \"account_id\": \"e307923d-bc66-4959-a297-6e230b93dc22\",\n \"asset_ids\": [\n \"9b2f7c10-4f3a-4a2b-9f10-77c3d2e1a8b4\"\n ],\n \"caption\": \"morning ritual ☕️\",\n \"hashtags\": [\n \"skincare\",\n \"grwm\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"object": "clip",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"asset_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"title": "<string>",
"ratio": "<string>",
"caption": "<string>",
"hashtags": [
"<string>"
],
"channels": [
"<string>"
],
"scheduled_for": "<string>",
"published_at": "<string>",
"created_at": 123,
"duration_sec": 123,
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"error": "<string>",
"channel_posts": [
{
"platform": "<string>",
"status": "<string>",
"url": "<string>",
"error": "<string>"
}
]
}{
"error": {
"type": "invalid_request_error",
"code": "invalid_parameter",
"message": "This creator has no connected channels. Connect one in the studio, or pass `channels` explicitly.",
"param": "channels"
},
"request_id": "req_8fQ2mRxK1pLd"
}{
"error": {
"type": "authentication_error",
"code": "invalid_api_key",
"message": "Missing or invalid API key."
},
"request_id": "req_8fQ2mRxK1pLd"
}{
"error": {
"type": "permission_error",
"code": "insufficient_scope",
"message": "This API key is read-only. Create a key with the `write` scope to run generations."
},
"request_id": "req_8fQ2mRxK1pLd"
}{
"error": {
"type": "not_found_error",
"code": "resource_missing",
"message": "No such generation."
},
"request_id": "req_8fQ2mRxK1pLd"
}Posts
Create a post
Turn finished media into a post for one creator. It is created at pending_review
— the review gate’s entry state. Nothing is public yet; it appears in the studio’s
review queue like any other post.
channels defaults to that creator’s CONNECTED channels, so the common case is just
account_id, asset_ids and caption. The format (video / carousel / photo) is derived
from the media and validated against every target platform before the post is written.
POST
/
v1
/
clips
Create a post
curl --request POST \
--url https://api.creatorline.io/v1/clips \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"account_id": "e307923d-bc66-4959-a297-6e230b93dc22",
"asset_ids": [
"9b2f7c10-4f3a-4a2b-9f10-77c3d2e1a8b4"
],
"caption": "morning ritual ☕️",
"hashtags": [
"skincare",
"grwm"
]
}
'import requests
url = "https://api.creatorline.io/v1/clips"
payload = {
"account_id": "e307923d-bc66-4959-a297-6e230b93dc22",
"asset_ids": ["9b2f7c10-4f3a-4a2b-9f10-77c3d2e1a8b4"],
"caption": "morning ritual ☕️",
"hashtags": ["skincare", "grwm"]
}
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({
account_id: 'e307923d-bc66-4959-a297-6e230b93dc22',
asset_ids: ['9b2f7c10-4f3a-4a2b-9f10-77c3d2e1a8b4'],
caption: 'morning ritual ☕️',
hashtags: ['skincare', 'grwm']
})
};
fetch('https://api.creatorline.io/v1/clips', 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.creatorline.io/v1/clips",
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([
'account_id' => 'e307923d-bc66-4959-a297-6e230b93dc22',
'asset_ids' => [
'9b2f7c10-4f3a-4a2b-9f10-77c3d2e1a8b4'
],
'caption' => 'morning ritual ☕️',
'hashtags' => [
'skincare',
'grwm'
]
]),
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.creatorline.io/v1/clips"
payload := strings.NewReader("{\n \"account_id\": \"e307923d-bc66-4959-a297-6e230b93dc22\",\n \"asset_ids\": [\n \"9b2f7c10-4f3a-4a2b-9f10-77c3d2e1a8b4\"\n ],\n \"caption\": \"morning ritual ☕️\",\n \"hashtags\": [\n \"skincare\",\n \"grwm\"\n ]\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.creatorline.io/v1/clips")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"account_id\": \"e307923d-bc66-4959-a297-6e230b93dc22\",\n \"asset_ids\": [\n \"9b2f7c10-4f3a-4a2b-9f10-77c3d2e1a8b4\"\n ],\n \"caption\": \"morning ritual ☕️\",\n \"hashtags\": [\n \"skincare\",\n \"grwm\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.creatorline.io/v1/clips")
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 \"account_id\": \"e307923d-bc66-4959-a297-6e230b93dc22\",\n \"asset_ids\": [\n \"9b2f7c10-4f3a-4a2b-9f10-77c3d2e1a8b4\"\n ],\n \"caption\": \"morning ritual ☕️\",\n \"hashtags\": [\n \"skincare\",\n \"grwm\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"object": "clip",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"asset_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"title": "<string>",
"ratio": "<string>",
"caption": "<string>",
"hashtags": [
"<string>"
],
"channels": [
"<string>"
],
"scheduled_for": "<string>",
"published_at": "<string>",
"created_at": 123,
"duration_sec": 123,
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"error": "<string>",
"channel_posts": [
{
"platform": "<string>",
"status": "<string>",
"url": "<string>",
"error": "<string>"
}
]
}{
"error": {
"type": "invalid_request_error",
"code": "invalid_parameter",
"message": "This creator has no connected channels. Connect one in the studio, or pass `channels` explicitly.",
"param": "channels"
},
"request_id": "req_8fQ2mRxK1pLd"
}{
"error": {
"type": "authentication_error",
"code": "invalid_api_key",
"message": "Missing or invalid API key."
},
"request_id": "req_8fQ2mRxK1pLd"
}{
"error": {
"type": "permission_error",
"code": "insufficient_scope",
"message": "This API key is read-only. Create a key with the `write` scope to run generations."
},
"request_id": "req_8fQ2mRxK1pLd"
}{
"error": {
"type": "not_found_error",
"code": "resource_missing",
"message": "No such generation."
},
"request_id": "req_8fQ2mRxK1pLd"
}Authorizations
bearerAuthapiKeyHeader
Your organization's API key, from Settings → API. Authorization: Bearer crl_sk_live_…
Body
application/json
Media, in post order.
Required array length:
1 - 10 elementsDefaults to the creator's connected channels.
Available options:
IG, TikTok, YouTube, Telegram Target time as "HH:mm".
Response
The post, awaiting review.
Available options:
clip Available options:
pending_review, approved, scheduled, published, failed, rejected Available options:
photo, video, carousel Per-platform publish state, filled in as each platform confirms.
Show child attributes
Show child attributes
⌘I