Postiz

App · 12 actions

Manage social posts and read channel and post analytics.

Actions

ActionWhat it does
Change a post’s scheduling statusChange a post’s scheduling status.
Create or schedule a postCreate or schedule a post.
Delete a post groupDelete a post group.
Find the next publishing slotFind the next publishing slot.
Get post analyticsGet post analytics.
Get social channel analyticsGet social channel analytics.
Get social channel settingsGet social channel settings.
Get the connected workspaceGet the connected workspace.
List channel groupsList channel groups.
List posts in a date rangeList posts in a date range.
List social channelsList social channels.
Upload media from a URLUpload media from a URL.

Change a post’s scheduling status

Change a post’s scheduling status.

Inputs

Post IDpost_idtextRequired
Post ID
StatusstatustextRequired
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

TypetypetextRequired
Post typeOne of: draft, schedule, now.
Datedatedate and timeRequired
Publish date in UTC ISO format
Short linkshort_linktrue/falseRequired
Whether to use short links
Orderordertext
Order of posts
Interinternumber
Interval between posts
TagstagslistRequired
Tags.
Postspostslist
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 IDpost_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

Channelchannel_idtextRequired
Integration ID

Outputs

dataobject
The response from Postiz.
Example output
{
  "data": {
    "date": "example"
  }
}

Get post analytics

Get post analytics.

Inputs

Post IDpost_idtextRequired
Post ID
DatedatetextRequired
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

Channelchannel_idtextRequired
Integration ID
DatedatetextRequired
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

Channelchannel_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 datestart_datedate and timeRequired
Start date in UTC ISO format
End dateend_datedate and timeRequired
End date in UTC ISO format
Customercustomertext
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

Groupgrouptext
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

URLurltextRequired
URL of the file to upload
Adjustadjusttrue/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"
  }
}

On this page