Create post
curl --request POST \
--url https://api.autoadify.com/v1/posts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"content": "<string>",
"channelIds": [
"<string>"
],
"publishAt": "2023-11-07T05:31:56Z",
"mediaIds": [],
"contentByPlatform": {},
"draft": false
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
content: '<string>',
channelIds: ['<string>'],
publishAt: '2023-11-07T05:31:56Z',
mediaIds: [],
contentByPlatform: {},
draft: false
})
};
fetch('https://api.autoadify.com/v1/posts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.autoadify.com/v1/posts"
payload = {
"content": "<string>",
"channelIds": ["<string>"],
"publishAt": "2023-11-07T05:31:56Z",
"mediaIds": [],
"contentByPlatform": {},
"draft": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"status": "draft",
"content": "<string>",
"scheduledAt": "2023-11-07T05:31:56Z",
"publishedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"source": "<string>",
"channels": [
{
"channelId": "<string>",
"platform": "<string>",
"status": "draft",
"content": "<string>",
"platformPostId": "<string>",
"url": "<string>",
"publishedAt": "2023-11-07T05:31:56Z",
"error": "<string>"
}
],
"media": [
{
"id": "<string>",
"type": "<string>",
"url": "<string>"
}
],
"reddit": {
"subreddit": "<string>",
"title": "<string>"
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}Posts
Create post
Schedules a post to one or more channels, or publishes it now when publishAt is omitted (it goes out within about a minute). With draft: true nothing is published: the post is saved for the user to review on the Posts page in Autoadify. Validates platform rules up front: media requirements, TikTok privacy, Reddit subreddit (the last two are optional for drafts).
Requires the publish scope.
POST
/
posts
Create post
curl --request POST \
--url https://api.autoadify.com/v1/posts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"content": "<string>",
"channelIds": [
"<string>"
],
"publishAt": "2023-11-07T05:31:56Z",
"mediaIds": [],
"contentByPlatform": {},
"draft": false
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
content: '<string>',
channelIds: ['<string>'],
publishAt: '2023-11-07T05:31:56Z',
mediaIds: [],
contentByPlatform: {},
draft: false
})
};
fetch('https://api.autoadify.com/v1/posts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.autoadify.com/v1/posts"
payload = {
"content": "<string>",
"channelIds": ["<string>"],
"publishAt": "2023-11-07T05:31:56Z",
"mediaIds": [],
"contentByPlatform": {},
"draft": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"status": "draft",
"content": "<string>",
"scheduledAt": "2023-11-07T05:31:56Z",
"publishedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"source": "<string>",
"channels": [
{
"channelId": "<string>",
"platform": "<string>",
"status": "draft",
"content": "<string>",
"platformPostId": "<string>",
"url": "<string>",
"publishedAt": "2023-11-07T05:31:56Z",
"error": "<string>"
}
],
"media": [
{
"id": "<string>",
"type": "<string>",
"url": "<string>"
}
],
"reddit": {
"subreddit": "<string>",
"title": "<string>"
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}Authorizations
Body
application/json
Response
The post, scheduled.

