Postiz
App · 12 actions
Manage social posts and read channel and post analytics.
Actions
| Action | What it does |
|---|---|
| Change a post’s scheduling status | Change a post’s scheduling status. |
| Create or schedule a post | Create or schedule a post. |
| Delete a post group | Delete a post group. |
| Find the next publishing slot | Find the next publishing slot. |
| Get post analytics | Get post analytics. |
| Get social channel analytics | Get social channel analytics. |
| Get social channel settings | Get social channel settings. |
| Get the connected workspace | Get the connected workspace. |
| List channel groups | List channel groups. |
| List posts in a date range | List posts in a date range. |
| List social channels | List social channels. |
| Upload media from a URL | Upload media from a URL. |
Change a post’s scheduling status
Change a post’s scheduling status.
Inputs
- Post ID
post_idtextRequired - Post ID
- Status
statustextRequired - New status for the postOne of:
draft,schedule.
Outputs
dataobject- The response from Postiz.
Example output
{
"data": {
"id": "example",
"state": "DRAFT"
}
}Create or schedule a post
Create or schedule a post.
Inputs
- Type
typetextRequired - Post typeOne of:
draft,schedule,now. - Date
datedate and timeRequired - Publish date in UTC ISO format
- Short link
short_linktrue/falseRequired - Whether to use short links
- Order
ordertext - Order of posts
- Inter
internumber - Interval between posts
- Tags
tagslistRequired - Tags.
- Posts
postslist - Required if type is not 'draft'
Outputs
datalist- The response from Postiz.
Example output
{
"data": [
{
"integration": "example",
"postId": "example"
}
]
}Delete a post group
Delete a post group.
Inputs
- Post ID
post_idtextRequired - Post ID to delete
Outputs
dataobject- The response from Postiz.
Example output
{
"data": {
"id": "example"
}
}Find the next publishing slot
Find the next publishing slot.
Inputs
- Channel
channel_idtextRequired - Integration ID
Outputs
dataobject- The response from Postiz.
Example output
{
"data": {
"date": "example"
}
}Get post analytics
Get post analytics.
Inputs
- Post ID
post_idtextRequired - Post ID
- Date
datetextRequired - Number of days to look back for analytics data (e.g. 7, 30, 90)
Outputs
datalist- The response from Postiz.
Example output
{
"data": [
{
"aggregation": "sum",
"average": true,
"breakdowns": [
{}
],
"data": [
{}
],
"label": "example",
"notDaily": true,
"percentageChange": 1,
"previous": {
"from": "example",
"to": "example",
"total": "example"
},
"ratio": true,
"total": "example"
}
]
}Get social channel analytics
Get social channel analytics.
Inputs
- Channel
channel_idtextRequired - Integration ID
- Date
datetextRequired - Number of days to look back for analytics data (e.g. 7, 30, 90)
Outputs
datalist- The response from Postiz.
Example output
{
"data": [
{
"aggregation": "sum",
"average": true,
"breakdowns": [
{}
],
"data": [
{}
],
"label": "example",
"notDaily": true,
"percentageChange": 1,
"previous": {
"from": "example",
"to": "example",
"total": "example"
},
"ratio": true,
"total": "example"
}
]
}Get social channel settings
Get social channel settings.
Inputs
- Channel
channel_idtextRequired - The integration ID
Outputs
dataobject- The response from Postiz.
Example output
{
"data": {
"output": {
"maxLength": 1,
"rules": "example",
"settings": {},
"tools": [
{}
]
}
}
}Get the connected workspace
Get the connected workspace.
Inputs
None.
Outputs
dataobject- The response from Postiz.
Example output
{
"data": {
"organization": {
"id": "example",
"name": "example"
},
"user": {
"id": "example",
"name": "example",
"picture": "example"
}
}
}List channel groups
List channel groups.
Inputs
None.
Outputs
datalist- The response from Postiz.
Example output
{
"data": [
{
"id": "example",
"name": "example"
}
]
}List posts in a date range
List posts in a date range.
Inputs
- Start date
start_datedate and timeRequired - Start date in UTC ISO format
- End date
end_datedate and timeRequired - End date in UTC ISO format
- Customer
customertext - Filter by customer ID
Outputs
dataobject- The response from Postiz.
Example output
{
"data": {
"posts": [
{
"content": "example",
"error": "example",
"id": "example",
"integration": {},
"publishDate": "example",
"releaseURL": "example",
"settings": {},
"state": "QUEUE"
}
]
}
}List social channels
List social channels.
Inputs
- Group
grouptext - Filter integrations by customer (group) ID. Returns only channels assigned to the given group.
Outputs
datalist- The response from Postiz.
Example output
{
"data": [
{
"customer": {
"id": "example",
"name": "example"
},
"disabled": true,
"id": "example",
"identifier": "x",
"name": "example",
"picture": "example",
"profile": "example"
}
]
}Upload media from a URL
Upload media from a URL.
Inputs
- URL
urltextRequired - URL of the file to upload
- Adjust
adjusttrue/false - Adjust.
Outputs
dataobject- The response from Postiz.
Example output
{
"data": {
"createdAt": "example",
"id": "example",
"name": "example",
"organizationId": "example",
"path": "example",
"status": "ready",
"updatedAt": "example"
}
}