CreateImage
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"Examples
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
accessToken *Requiredstring
Access Token
Instagram access token with appropriate permissions (instagram_basic, instagram_content_publish, etc.)
igId *Requiredstring
Instagram Account ID
The ID of the Instagram professional account
imageUrl *Requiredstring
Image URL
Public URL of the image to upload (JPEG format only)
apiVersion string
Default
v24.0API Version
Instagram Graph API version to use
caption string
Caption
Caption text for the post
host string
Default
https://graph.facebook.comHost URL
The host URL for the Instagram Graph API