CreateImage​Create​Image

Create and publish an image post to Instagram

Publish an image with caption to an Instagram professional account

yaml
type: "io.kestra.plugin.meta.instagram.media.CreateImage"

Create an image post

yaml
id: instagram_create_image_post
namespace: company.team

tasks:
  - id: create_image_post
    type: io.kestra.plugin.meta.instagram.media.CreateImage
    igId: "{{ secret('INSTAGRAM_ACCOUNT_ID') }}"
    accessToken: "{{ secret('INSTAGRAM_ACCESS_TOKEN') }}"
    imageUrl: "https://example.com/image.jpg"
    caption: "Hello from Kestra! This is an automated post."
Properties

Access Token

Instagram access token with appropriate permissions (instagram_basic, instagram_content_publish, etc.)

Instagram Account ID

The ID of the Instagram professional account

Image URL

Public URL of the image to upload (JPEG format only)

Default v24.0

API Version

Instagram Graph API version to use

Caption

Caption text for the post

Default https://graph.facebook.com

Host URL

The host URL for the Instagram Graph API