Create a first comment

Learn how to automatically publish a first comment on a post once it goes live using the Outstand post creation endpoint.

Functionality relies on the post creation endpoint.

Sometimes you want to create a post with a first comment automatically posted once your post is published. This is useful for example to add external links without compromising your post's reach, or to create artificial "engagement" to get the post more visibility.

In order for this to work, you need to create the post with the containers field, and include the comment as the first container.

For example, this is a simple post without a comment:

{
  "content": "This is a comment",
  ....
}

Skip using the content field and use the containers field instead, for both the post and the comment:

{
  "containers": [
    {
      "content": "This is the post content",
    },
    {
      "content": "This is a comment",
    }
  ]
}

When the post is published, the comment will be automatically posted as a reply to the post.

Comments can include media attachments, just like posts.

{
  "containers": [
    {
      "content": "This is the post content",
    },
    {
      "content": "This is a comment",
      "media": [
        {
          "url": "https://example.com/media.jpg",
        }
      ]
    }
  ]
}

Network support

First comments (and the publish a comment / get post replies endpoints) rely on each network exposing a comments API. They are not supported on every network:

  • TikTok - not supported.
  • Pinterest - not supported (Pinterest has no comments API).
  • Google Business Profile - not supported.

If you include a reply container for an unsupported network, the root post still publishes normally, but the reply container is not delivered to that network.

On this page