curl \
-H "Authorization: Bearer API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"postId": "RhrbDtYh7hdSMc67zC8H",
"platforms": ["twitter", "facebook", "linkedin"],
"scheduleDate": "2026-07-08T12:30:00Z"
}' \
-X POST https://api.ayrshare.com/api/post/copy
const API_KEY = "API_KEY";
fetch("https://api.ayrshare.com/api/post/copy", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${API_KEY}`
},
body: JSON.stringify({
postId: "RhrbDtYh7hdSMc67zC8H", // required
platforms: ["twitter", "facebook", "linkedin"], // required
scheduleDate: "2026-07-08T12:30:00Z", // optional
faceBookOptions: {
link: "https://example.com/new-link"
}
})
})
.then((res) => res.json())
.then((json) => console.log(json))
.catch(console.error);
import requests
payload = {
'postId': 'RhrbDtYh7hdSMc67zC8H',
'platforms': ['twitter', 'facebook', 'linkedin'],
'scheduleDate': '2026-07-08T12:30:00Z',
'faceBookOptions': {
'link': 'https://example.com/new-link'
}
}
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer API_KEY'
}
r = requests.post('https://api.ayrshare.com/api/post/copy',
json=payload,
headers=headers)
print(r.json())
<?php
$curl = curl_init();
$data = [
"postId" => "RhrbDtYh7hdSMc67zC8H",
"platforms" => ["twitter", "facebook", "linkedin"],
"scheduleDate" => "2026-07-08T12:30:00Z",
"faceBookOptions" => [
"link" => "https://example.com/new-link"
]
];
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.ayrshare.com/api/post/copy',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => json_encode($data),
CURLOPT_HTTPHEADER => [
'Authorization: Bearer API_KEY',
'Content-Type: application/json'
],
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
package main
import (
"bytes"
"encoding/json"
"log"
"net/http"
)
func main() {
message := map[string]interface{}{
"postId": "RhrbDtYh7hdSMc67zC8H",
"platforms": []string{"twitter", "facebook", "linkedin"},
"scheduleDate": "2026-07-08T12:30:00Z",
"faceBookOptions": map[string]interface{}{
"link": "https://example.com/new-link",
},
}
bytesRepresentation, err := json.Marshal(message)
if err != nil {
log.Fatalln(err)
}
req, _ := http.NewRequest("POST", "https://api.ayrshare.com/api/post/copy",
bytes.NewBuffer(bytesRepresentation))
req.Header.Add("Content-Type", "application/json; charset=UTF-8")
req.Header.Add("Authorization", "Bearer API_KEY")
res, err := http.DefaultClient.Do(req)
if err != nil {
log.Fatal("Error:", err)
}
res.Body.Close()
}
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace PostCopyRequest_csharp
{
class PostCopy
{
private static readonly HttpClient client = new HttpClient();
static async Task Main(string[] args)
{
string API_KEY = "API_KEY";
string url = "https://api.ayrshare.com/api/post/copy";
client.DefaultRequestHeaders.Add("Authorization", "Bearer " + API_KEY);
string json = "{\"postId\" : \"RhrbDtYh7hdSMc67zC8H\","
+ "\"platforms\" : [ \"twitter\", \"facebook\", \"linkedin\" ],"
+ "\"scheduleDate\" : \"2026-07-08T12:30:00Z\"}";
var content = new StringContent(json, Encoding.UTF8, "application/json");
try
{
HttpResponseMessage response = await client.PostAsync(url, content);
response.EnsureSuccessStatusCode();
string responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);
}
catch (HttpRequestException e)
{
Console.WriteLine($"Error: {e.Message}");
}
}
}
}
require 'httparty'
res = HTTParty.post("https://api.ayrshare.com/api/post/copy",
headers: {Authorization: "Bearer API_KEY"},
body: {
postId: "RhrbDtYh7hdSMc67zC8H",
platforms: ['twitter', 'facebook', 'linkedin'],
scheduleDate: '2026-07-08T12:30:00Z',
faceBookOptions: {
link: 'https://example.com/new-link'
}
}).body
puts res
{
"status": "success",
"copiedFrom": "RhrbDtYh7hdSMc67zC8H",
"originalPost": "Today is a great day!",
"errors": [],
"postIds": [
{
"status": "success",
"id": "1288899996423983106",
"platform": "twitter",
"postUrl": "https://x.com/handle/status/1288899996423983106"
},
{
"status": "success",
"id": "104923907983682_108329000309743",
"platform": "facebook",
"postUrl": "https://www.facebook.com/104923907983682_108329000309743"
},
{
"status": "success",
"id": "urn:li:share:7282181682126807042",
"postUrl": "https://www.linkedin.com/feed/update/urn:li:share:7282181682126807042",
"owner": "urn:li:organization:77682157",
"platform": "linkedin"
}
],
"id": "KpwxFmNj3kgQLa92vE5T"
}
{
"status": "scheduled",
"scheduleDate": "2025-05-28T14:32:00Z",
"id": "KpwxFmNj3kgQLa92vE5T",
"refId": "7a8e2f15c94d73a6e2bf89dd4c847b9f2e3a6d18",
"copiedFrom": "RhrbDtYh7hdSMc67zC8H",
"originalPost": "Today is a great day!"
}
{
"status": "error",
"errors": [
{
"action": "post",
"status": "error",
"code": 156,
"message": "Threads is not linked. Please confirm the linkage on the Social Accounts page in the dashboard. https://www.ayrshare.com/docs/dashboard/connect-social-accounts/overview",
"platform": "threads"
}
],
"postIds": [],
"id": "KpwxFmNj3kgQLa92vE5T",
"refId": "7a8e2f15c94d73a6e2bf89dd4c847b9f2e3a6d18"
}
{
"status": "error",
"code": 163,
"message": "Missing, empty, or not valid platforms parameter. Please verify sending an array of valid platforms. https://www.ayrshare.com/docs/apis/post",
"details": "platforms parameter is required for copying posts"
}
{
"status": "error",
"errors": [
{
"action": "post",
"status": "error",
"code": 137,
"message": "Duplicate or similar content posted within the same two day period. The social networks prohibit duplicate content and ban accounts that do not comply. https://www.ayrshare.com/docs/help-center/technical-support/dealing_with_duplicate_posts#dealing-with-duplicate-posts",
"details": "Duplicate found in user profile: \"Primary Profile\", post id: e5ELaDhKjhJBU1z6dbud, and refId: 5da3de47a8e3b1d8c2bd319350aa7d4e85d4ec74",
"verifyCheck": true,
"platform": "twitter"
}
],
"postIds": [],
"id": "KpwxFmNj3kgQLa92vE5T",
"refId": "7a8e2f15c94d73a6e2bf89dd4c847b9f2e3a6d18"
}
Post
Copy a Post
Копіювання наявного допису до нових соціальних мереж
POST
/
post
/
copy
curl \
-H "Authorization: Bearer API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"postId": "RhrbDtYh7hdSMc67zC8H",
"platforms": ["twitter", "facebook", "linkedin"],
"scheduleDate": "2026-07-08T12:30:00Z"
}' \
-X POST https://api.ayrshare.com/api/post/copy
const API_KEY = "API_KEY";
fetch("https://api.ayrshare.com/api/post/copy", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${API_KEY}`
},
body: JSON.stringify({
postId: "RhrbDtYh7hdSMc67zC8H", // required
platforms: ["twitter", "facebook", "linkedin"], // required
scheduleDate: "2026-07-08T12:30:00Z", // optional
faceBookOptions: {
link: "https://example.com/new-link"
}
})
})
.then((res) => res.json())
.then((json) => console.log(json))
.catch(console.error);
import requests
payload = {
'postId': 'RhrbDtYh7hdSMc67zC8H',
'platforms': ['twitter', 'facebook', 'linkedin'],
'scheduleDate': '2026-07-08T12:30:00Z',
'faceBookOptions': {
'link': 'https://example.com/new-link'
}
}
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer API_KEY'
}
r = requests.post('https://api.ayrshare.com/api/post/copy',
json=payload,
headers=headers)
print(r.json())
<?php
$curl = curl_init();
$data = [
"postId" => "RhrbDtYh7hdSMc67zC8H",
"platforms" => ["twitter", "facebook", "linkedin"],
"scheduleDate" => "2026-07-08T12:30:00Z",
"faceBookOptions" => [
"link" => "https://example.com/new-link"
]
];
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.ayrshare.com/api/post/copy',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => json_encode($data),
CURLOPT_HTTPHEADER => [
'Authorization: Bearer API_KEY',
'Content-Type: application/json'
],
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
package main
import (
"bytes"
"encoding/json"
"log"
"net/http"
)
func main() {
message := map[string]interface{}{
"postId": "RhrbDtYh7hdSMc67zC8H",
"platforms": []string{"twitter", "facebook", "linkedin"},
"scheduleDate": "2026-07-08T12:30:00Z",
"faceBookOptions": map[string]interface{}{
"link": "https://example.com/new-link",
},
}
bytesRepresentation, err := json.Marshal(message)
if err != nil {
log.Fatalln(err)
}
req, _ := http.NewRequest("POST", "https://api.ayrshare.com/api/post/copy",
bytes.NewBuffer(bytesRepresentation))
req.Header.Add("Content-Type", "application/json; charset=UTF-8")
req.Header.Add("Authorization", "Bearer API_KEY")
res, err := http.DefaultClient.Do(req)
if err != nil {
log.Fatal("Error:", err)
}
res.Body.Close()
}
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace PostCopyRequest_csharp
{
class PostCopy
{
private static readonly HttpClient client = new HttpClient();
static async Task Main(string[] args)
{
string API_KEY = "API_KEY";
string url = "https://api.ayrshare.com/api/post/copy";
client.DefaultRequestHeaders.Add("Authorization", "Bearer " + API_KEY);
string json = "{\"postId\" : \"RhrbDtYh7hdSMc67zC8H\","
+ "\"platforms\" : [ \"twitter\", \"facebook\", \"linkedin\" ],"
+ "\"scheduleDate\" : \"2026-07-08T12:30:00Z\"}";
var content = new StringContent(json, Encoding.UTF8, "application/json");
try
{
HttpResponseMessage response = await client.PostAsync(url, content);
response.EnsureSuccessStatusCode();
string responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);
}
catch (HttpRequestException e)
{
Console.WriteLine($"Error: {e.Message}");
}
}
}
}
require 'httparty'
res = HTTParty.post("https://api.ayrshare.com/api/post/copy",
headers: {Authorization: "Bearer API_KEY"},
body: {
postId: "RhrbDtYh7hdSMc67zC8H",
platforms: ['twitter', 'facebook', 'linkedin'],
scheduleDate: '2026-07-08T12:30:00Z',
faceBookOptions: {
link: 'https://example.com/new-link'
}
}).body
puts res
{
"status": "success",
"copiedFrom": "RhrbDtYh7hdSMc67zC8H",
"originalPost": "Today is a great day!",
"errors": [],
"postIds": [
{
"status": "success",
"id": "1288899996423983106",
"platform": "twitter",
"postUrl": "https://x.com/handle/status/1288899996423983106"
},
{
"status": "success",
"id": "104923907983682_108329000309743",
"platform": "facebook",
"postUrl": "https://www.facebook.com/104923907983682_108329000309743"
},
{
"status": "success",
"id": "urn:li:share:7282181682126807042",
"postUrl": "https://www.linkedin.com/feed/update/urn:li:share:7282181682126807042",
"owner": "urn:li:organization:77682157",
"platform": "linkedin"
}
],
"id": "KpwxFmNj3kgQLa92vE5T"
}
{
"status": "scheduled",
"scheduleDate": "2025-05-28T14:32:00Z",
"id": "KpwxFmNj3kgQLa92vE5T",
"refId": "7a8e2f15c94d73a6e2bf89dd4c847b9f2e3a6d18",
"copiedFrom": "RhrbDtYh7hdSMc67zC8H",
"originalPost": "Today is a great day!"
}
{
"status": "error",
"errors": [
{
"action": "post",
"status": "error",
"code": 156,
"message": "Threads is not linked. Please confirm the linkage on the Social Accounts page in the dashboard. https://www.ayrshare.com/docs/dashboard/connect-social-accounts/overview",
"platform": "threads"
}
],
"postIds": [],
"id": "KpwxFmNj3kgQLa92vE5T",
"refId": "7a8e2f15c94d73a6e2bf89dd4c847b9f2e3a6d18"
}
{
"status": "error",
"code": 163,
"message": "Missing, empty, or not valid platforms parameter. Please verify sending an array of valid platforms. https://www.ayrshare.com/docs/apis/post",
"details": "platforms parameter is required for copying posts"
}
{
"status": "error",
"errors": [
{
"action": "post",
"status": "error",
"code": 137,
"message": "Duplicate or similar content posted within the same two day period. The social networks prohibit duplicate content and ban accounts that do not comply. https://www.ayrshare.com/docs/help-center/technical-support/dealing_with_duplicate_posts#dealing-with-duplicate-posts",
"details": "Duplicate found in user profile: \"Primary Profile\", post id: e5ELaDhKjhJBU1z6dbud, and refId: 5da3de47a8e3b1d8c2bd319350aa7d4e85d4ec74",
"verifyCheck": true,
"platform": "twitter"
}
],
"postIds": [],
"id": "KpwxFmNj3kgQLa92vE5T",
"refId": "7a8e2f15c94d73a6e2bf89dd4c847b9f2e3a6d18"
}
Копіюйте наявний допис до нових соціальних мереж з тим самим вмістом і налаштуваннями. Цей ендпоінт дозволяє повторно використовувати успішні дописи в різних платформах або з різними конфігураціями.
Обов’язково додайте ваш
API_KEY та PROFILE_KEY, якщо копіюєте до User Profile, у Authorization header.
API Key можна знайти в Ayrshare Developer Dashboard на сторінці API Key.
Header Parameters
Body Parameters
ID наявного допису, який потрібно скопіювати. Це Ayrshare Post ID, повернутий з початкового
ендпоінта
/post.Соціальні мережі, у які потрібно опублікувати скопійований вміст. Приймає масив рядків зі значеннями:
bluesky, facebook, gmb, instagram, linkedin, pinterest, reddit, snapchat, telegram, threads, tiktok, twitter або youtube.Зверніть увагу: використовуйте facebook для Facebook Pages та gmb для Google Business Profile.Вказані тут платформи перекриють платформи оригінального допису — ви маєте явно обрати, у які платформи копіювати.Дата й час планування скопійованого допису. Приймає UTC datetime.Наприклад, використовуйте формат
YYYY-MM-DDThh:mm:ssZ і надсилайте як 2026-07-08T12:30:00Z.
Більше прикладів див. на utctime.Якщо не вказано, допис буде опубліковано негайно.Перекрийте налаштування Bluesky оригінального допису. Див. деталі
Bluesky.
Перекрийте налаштування Facebook оригінального допису. Див. деталі
Facebook.
Перекрийте налаштування Google Business Profile оригінального допису. Див. деталі Google Business Profile.
Перекрийте налаштування Instagram оригінального допису. Див. деталі
Instagram.
Перекрийте налаштування LinkedIn оригінального допису. Див. деталі
LinkedIn.
Перекрийте налаштування Pinterest оригінального допису. Див. деталі
Pinterest.
Перекрийте налаштування Reddit оригінального допису. Див. деталі
Reddit.
Перекрийте налаштування Snapchat оригінального допису. Див. деталі
Snapchat.
Перекрийте налаштування Telegram оригінального допису. Див. деталі
Telegram.
Перекрийте налаштування Threads оригінального допису. Див. деталі
Threads.
Перекрийте налаштування TikTok оригінального допису. Див. деталі
TikTok.
Перекрийте налаштування X/Twitter оригінального допису. Див. деталі
X/Twitter.
Перекрийте налаштування YouTube оригінального допису. Див. деталі
YouTube.
Перекрийте налаштування скорочення посилань оригінального допису.Для скорочення посилань потрібен Max Pack.
Перекрийте налаштування автохештегів оригінального допису. Див. auto
hashtags для деталей.
Перекрийте налаштування коментарів оригінального допису. Доступно лише для Instagram, LinkedIn і TikTok.
Перекрийте налаштування першого коментаря оригінального допису. Див. first
comment для деталей.
Додайте нові примітки до скопійованого допису. Вони замінять будь-які примітки з оригінального допису. Примітки
використовуються лише для довідки й не впливають на вміст допису.
curl \
-H "Authorization: Bearer API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"postId": "RhrbDtYh7hdSMc67zC8H",
"platforms": ["twitter", "facebook", "linkedin"],
"scheduleDate": "2026-07-08T12:30:00Z"
}' \
-X POST https://api.ayrshare.com/api/post/copy
const API_KEY = "API_KEY";
fetch("https://api.ayrshare.com/api/post/copy", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${API_KEY}`
},
body: JSON.stringify({
postId: "RhrbDtYh7hdSMc67zC8H", // required
platforms: ["twitter", "facebook", "linkedin"], // required
scheduleDate: "2026-07-08T12:30:00Z", // optional
faceBookOptions: {
link: "https://example.com/new-link"
}
})
})
.then((res) => res.json())
.then((json) => console.log(json))
.catch(console.error);
import requests
payload = {
'postId': 'RhrbDtYh7hdSMc67zC8H',
'platforms': ['twitter', 'facebook', 'linkedin'],
'scheduleDate': '2026-07-08T12:30:00Z',
'faceBookOptions': {
'link': 'https://example.com/new-link'
}
}
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer API_KEY'
}
r = requests.post('https://api.ayrshare.com/api/post/copy',
json=payload,
headers=headers)
print(r.json())
<?php
$curl = curl_init();
$data = [
"postId" => "RhrbDtYh7hdSMc67zC8H",
"platforms" => ["twitter", "facebook", "linkedin"],
"scheduleDate" => "2026-07-08T12:30:00Z",
"faceBookOptions" => [
"link" => "https://example.com/new-link"
]
];
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.ayrshare.com/api/post/copy',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => json_encode($data),
CURLOPT_HTTPHEADER => [
'Authorization: Bearer API_KEY',
'Content-Type: application/json'
],
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
package main
import (
"bytes"
"encoding/json"
"log"
"net/http"
)
func main() {
message := map[string]interface{}{
"postId": "RhrbDtYh7hdSMc67zC8H",
"platforms": []string{"twitter", "facebook", "linkedin"},
"scheduleDate": "2026-07-08T12:30:00Z",
"faceBookOptions": map[string]interface{}{
"link": "https://example.com/new-link",
},
}
bytesRepresentation, err := json.Marshal(message)
if err != nil {
log.Fatalln(err)
}
req, _ := http.NewRequest("POST", "https://api.ayrshare.com/api/post/copy",
bytes.NewBuffer(bytesRepresentation))
req.Header.Add("Content-Type", "application/json; charset=UTF-8")
req.Header.Add("Authorization", "Bearer API_KEY")
res, err := http.DefaultClient.Do(req)
if err != nil {
log.Fatal("Error:", err)
}
res.Body.Close()
}
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace PostCopyRequest_csharp
{
class PostCopy
{
private static readonly HttpClient client = new HttpClient();
static async Task Main(string[] args)
{
string API_KEY = "API_KEY";
string url = "https://api.ayrshare.com/api/post/copy";
client.DefaultRequestHeaders.Add("Authorization", "Bearer " + API_KEY);
string json = "{\"postId\" : \"RhrbDtYh7hdSMc67zC8H\","
+ "\"platforms\" : [ \"twitter\", \"facebook\", \"linkedin\" ],"
+ "\"scheduleDate\" : \"2026-07-08T12:30:00Z\"}";
var content = new StringContent(json, Encoding.UTF8, "application/json");
try
{
HttpResponseMessage response = await client.PostAsync(url, content);
response.EnsureSuccessStatusCode();
string responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);
}
catch (HttpRequestException e)
{
Console.WriteLine($"Error: {e.Message}");
}
}
}
}
require 'httparty'
res = HTTParty.post("https://api.ayrshare.com/api/post/copy",
headers: {Authorization: "Bearer API_KEY"},
body: {
postId: "RhrbDtYh7hdSMc67zC8H",
platforms: ['twitter', 'facebook', 'linkedin'],
scheduleDate: '2026-07-08T12:30:00Z',
faceBookOptions: {
link: 'https://example.com/new-link'
}
}).body
puts res
{
"status": "success",
"copiedFrom": "RhrbDtYh7hdSMc67zC8H",
"originalPost": "Today is a great day!",
"errors": [],
"postIds": [
{
"status": "success",
"id": "1288899996423983106",
"platform": "twitter",
"postUrl": "https://x.com/handle/status/1288899996423983106"
},
{
"status": "success",
"id": "104923907983682_108329000309743",
"platform": "facebook",
"postUrl": "https://www.facebook.com/104923907983682_108329000309743"
},
{
"status": "success",
"id": "urn:li:share:7282181682126807042",
"postUrl": "https://www.linkedin.com/feed/update/urn:li:share:7282181682126807042",
"owner": "urn:li:organization:77682157",
"platform": "linkedin"
}
],
"id": "KpwxFmNj3kgQLa92vE5T"
}
{
"status": "scheduled",
"scheduleDate": "2025-05-28T14:32:00Z",
"id": "KpwxFmNj3kgQLa92vE5T",
"refId": "7a8e2f15c94d73a6e2bf89dd4c847b9f2e3a6d18",
"copiedFrom": "RhrbDtYh7hdSMc67zC8H",
"originalPost": "Today is a great day!"
}
{
"status": "error",
"errors": [
{
"action": "post",
"status": "error",
"code": 156,
"message": "Threads is not linked. Please confirm the linkage on the Social Accounts page in the dashboard. https://www.ayrshare.com/docs/dashboard/connect-social-accounts/overview",
"platform": "threads"
}
],
"postIds": [],
"id": "KpwxFmNj3kgQLa92vE5T",
"refId": "7a8e2f15c94d73a6e2bf89dd4c847b9f2e3a6d18"
}
{
"status": "error",
"code": 163,
"message": "Missing, empty, or not valid platforms parameter. Please verify sending an array of valid platforms. https://www.ayrshare.com/docs/apis/post",
"details": "platforms parameter is required for copying posts"
}
{
"status": "error",
"errors": [
{
"action": "post",
"status": "error",
"code": 137,
"message": "Duplicate or similar content posted within the same two day period. The social networks prohibit duplicate content and ban accounts that do not comply. https://www.ayrshare.com/docs/help-center/technical-support/dealing_with_duplicate_posts#dealing-with-duplicate-posts",
"details": "Duplicate found in user profile: \"Primary Profile\", post id: e5ELaDhKjhJBU1z6dbud, and refId: 5da3de47a8e3b1d8c2bd319350aa7d4e85d4ec74",
"verifyCheck": true,
"platform": "twitter"
}
],
"postIds": [],
"id": "KpwxFmNj3kgQLa92vE5T",
"refId": "7a8e2f15c94d73a6e2bf89dd4c847b9f2e3a6d18"
}
⌘I
