---
title: "Get an automation execution"
method: GET
path: "/api/v1/automation-executions/{id}"
tags: ["automation"]
---

# Get an automation execution

`GET /api/v1/automation-executions/{id}`

## Request

- Base URL: `https://api.bundle.social`
- URL: `https://api.bundle.social/api/v1/automation-executions/{id}`
- Auth: API key in header `x-api-key`

Get a single automation run by id, including its input event, its per-step results and any error that stopped it.

## Path parameters

- `id` string, required

## Response `200`

200

- object
  - `id` string, required
  - `teamId` string, required
  - `organizationId` string, nullable
  - `flowId` string, required
  - `flowVersionId` string, required
  - `triggerId` string, nullable
  - `platform` 'INSTAGRAM' | 'FACEBOOK' | 'TIKTOK', required
  - `socialAccountId` string, required
  - `conversationId` string, nullable
  - `conversationMessageId` string, nullable
  - `fetchedCommentId` string, nullable
  - `senderExternalId` string, nullable
  - `currentStepId` string, nullable
  - `status` 'QUEUED' | 'RUNNING' | 'COMPLETED' | 'FAILED' | 'CANCELED' | 'SKIPPED', required
  - `idempotencyKey` string, required
  - `input` object
    - `type` 'COMMENT_CREATED' | 'DM_RECEIVED' | 'QUICK_REPLY_CLICKED' | 'BUTTON_CLICKED' | 'MANUAL_TEST', nullable
    - `platform` 'INSTAGRAM' | 'FACEBOOK' | 'TIKTOK', nullable
    - `socialAccountId` string, nullable
    - `postId` string, nullable
    - `conversationId` string, nullable
    - `conversationMessageId` string, nullable
    - `fetchedCommentId` string, nullable
    - `senderExternalId` string, nullable
    - `externalMessageId` string, nullable
    - `text` string, nullable
    - `payload` string, nullable
  - `output` object
  - `error` object, nullable
    - `code` string, nullable
    - `message` string, nullable
    - `retryable` boolean, nullable
  - `startedAt` string, date-time, nullable
  - `completedAt` string, date-time, nullable
  - `createdAt` string, date-time, nullable, required
  - `updatedAt` string, date-time, nullable, required
  - `flow` object
    - `id` string, required
    - `teamId` string, required
    - `organizationId` string, nullable
    - `name` string, required
    - `status` 'DRAFT' | 'ACTIVE' | 'PAUSED' | 'ARCHIVED', required
    - `platformScope` 'INSTAGRAM' | 'FACEBOOK' | 'BOTH' | 'TIKTOK', required
    - `createdByUserId` string, nullable
    - `createdAt` string, date-time, nullable, required
    - `updatedAt` string, date-time, nullable, required
    - `deletedAt` string, date-time, nullable
    - `draftVersion` object
      - `id` string, required
      - `flowId` string, required
      - `version` number, required
      - `status` 'DRAFT' | 'PUBLISHED' | 'RETIRED', required
      - `definition` object, required
        - `trigger` object, required
          - `keywords` string[]
          - `matchMode` 'ANY' | 'ALL'
          - `caseSensitive` boolean
          - `senderExternalIds` string[]
          - `payloads` string[]
          - `actionDelaySeconds` integer
          - `id` string
          - `type` 'COMMENT_CREATED' | 'DM_RECEIVED' | 'QUICK_REPLY_CLICKED' | 'BUTTON_CLICKED' | 'MANUAL_TEST', required
          - `platform` 'INSTAGRAM' | 'FACEBOOK' | 'TIKTOK', required
          - `socialAccountId` string, required
          - `postId` string, nullable
        - `steps` union[], required
          - union
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
      - `publishedAt` string, date-time, nullable
      - `publishedByUserId` string, nullable
      - `createdAt` string, date-time, nullable, required
    - `publishedVersion` object
      - `id` string, required
      - `flowId` string, required
      - `version` number, required
      - `status` 'DRAFT' | 'PUBLISHED' | 'RETIRED', required
      - `definition` object, required
        - `trigger` object, required
          - `keywords` string[]
          - `matchMode` 'ANY' | 'ALL'
          - `caseSensitive` boolean
          - `senderExternalIds` string[]
          - `payloads` string[]
          - `actionDelaySeconds` integer
          - `id` string
          - `type` 'COMMENT_CREATED' | 'DM_RECEIVED' | 'QUICK_REPLY_CLICKED' | 'BUTTON_CLICKED' | 'MANUAL_TEST', required
          - `platform` 'INSTAGRAM' | 'FACEBOOK' | 'TIKTOK', required
          - `socialAccountId` string, required
          - `postId` string, nullable
        - `steps` union[], required
          - union
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
            - object
              - …
      - `publishedAt` string, date-time, nullable
      - `publishedByUserId` string, nullable
      - `createdAt` string, date-time, nullable, required
  - `flowVersion` object
    - `id` string, required
    - `flowId` string, required
    - `version` number, required
    - `status` 'DRAFT' | 'PUBLISHED' | 'RETIRED', required
    - `definition` object, required
      - `trigger` object, required
        - `keywords` string[]
        - `matchMode` 'ANY' | 'ALL'
        - `caseSensitive` boolean
        - `senderExternalIds` string[]
        - `payloads` string[]
        - `actionDelaySeconds` integer
        - `id` string
        - `type` 'COMMENT_CREATED' | 'DM_RECEIVED' | 'QUICK_REPLY_CLICKED' | 'BUTTON_CLICKED' | 'MANUAL_TEST', required
        - `platform` 'INSTAGRAM' | 'FACEBOOK' | 'TIKTOK', required
        - `socialAccountId` string, required
        - `postId` string, nullable
      - `steps` union[], required
        - union
          - object
            - `id` string
            - `type` 'CONDITION', required
            - `conditions` object[], required
              - …
          - object
            - `id` string
            - `type` 'SEND_MESSAGE', required
            - `message` object, required
              - …
          - object
            - `id` string
            - `type` 'SEND_PRIVATE_REPLY', required
            - `message` object, required
              - …
          - object
            - `id` string
            - `type` 'SEND_PUBLIC_COMMENT_REPLY', required
            - `text` string, required
          - object
            - `id` string
            - `type` 'LIKE_COMMENT', required
          - object
            - `id` string
            - `type` 'ARCHIVE_CONVERSATION', required
          - object
            - `id` string
            - `type` 'OPEN_CONVERSATION', required
    - `publishedAt` string, date-time, nullable
    - `publishedByUserId` string, nullable
    - `createdAt` string, date-time, nullable, required
  - `steps` object[]
    - `id` string, required
    - `executionId` string, required
    - `stepId` string, nullable
    - `status` 'PENDING' | 'RUNNING' | 'COMPLETED' | 'FAILED' | 'SKIPPED', required
    - `attemptCount` number, required
    - `input` object
      - `type` 'COMMENT_CREATED' | 'DM_RECEIVED' | 'QUICK_REPLY_CLICKED' | 'BUTTON_CLICKED' | 'MANUAL_TEST', nullable
      - `platform` 'INSTAGRAM' | 'FACEBOOK' | 'TIKTOK', nullable
      - `socialAccountId` string, nullable
      - `postId` string, nullable
      - `conversationId` string, nullable
      - `conversationMessageId` string, nullable
      - `fetchedCommentId` string, nullable
      - `senderExternalId` string, nullable
      - `externalMessageId` string, nullable
      - `text` string, nullable
      - `payload` string, nullable
    - `output` object
    - `error` object, nullable
      - `code` string, nullable
      - `message` string, nullable
      - `retryable` boolean, nullable
    - `startedAt` string, date-time, nullable
    - `completedAt` string, date-time, nullable
    - `createdAt` string, date-time, nullable, required
    - `updatedAt` string, date-time, nullable, required
  - `conversation` object, nullable
    - `id` string, required
    - `teamId` string, required
    - `socialAccountId` string, required
    - `platform` 'INSTAGRAM' | 'FACEBOOK', required: Messaging platform. Extensible: new platforms are added over time, so handle unknown values gracefully rather than switching exhaustively.
    - `externalConversationId` string, nullable
    - `externalParticipantId` string, required
    - `participantUsername` string, nullable
    - `participantDisplayName` string, nullable
    - `participantAvatarUrl` string, nullable
    - `status` 'OPEN' | 'ARCHIVED', required
    - `lastMessageAt` string, date-time, nullable
    - `lastActivityAt` string, date-time, nullable, required
    - `lastMessagePreview` string, nullable
    - `lastReadAt` string, date-time, nullable
    - `unreadCount` number, required
    - `platformSeenAt` string, date-time, nullable
    - `createdAt` string, date-time, nullable, required
    - `updatedAt` string, date-time, nullable, required
    - `platformData` object
      - `canReply` boolean, nullable
      - `lastInboundAt` string, date-time, nullable
      - `providerStateSync` object, nullable
        - `action` 'ARCHIVE' | 'OPEN', required
        - `status` 'SYNCED' | 'SYNC_FAILED' | 'UNSUPPORTED', required
        - `reason` string, nullable
        - `error` string, nullable
        - `syncedAt` string, date-time, nullable
    - `socialAccount` object
      - `id` string, required
      - `type` 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK' | 'BLUESKY' | 'GOOGLE_BUSINESS' | 'SNAPCHAT', required
      - `teamId` string, required
      - `username` string, nullable
      - `displayName` string, nullable
      - `bio` string, nullable
      - `avatarUrl` string, nullable
      - `externalId` string, nullable
      - `providerPageId` string, nullable
      - `userUsername` string, nullable
      - `userDisplayName` string, nullable
      - `userEmail` string, nullable
      - `userId` string, nullable
      - `channels` object[], nullable
        - `id` string, required
        - `name` string, nullable
        - `username` string, nullable
        - `address` string, nullable
        - `avatarUrl` string, nullable
        - `webhook` object, nullable
          - `id` string, nullable
          - `name` string, nullable
          - `avatar` string, nullable
          - `url` string, nullable
        - `metadata` object, nullable
          - `allowImages` boolean, nullable
          - `allowVideos` boolean, nullable
          - `allowGalleries` boolean, nullable
          - `linkFlairEnabled` boolean, nullable
          - `facebookPageId` string, nullable
      - `mastodonServerId` string, nullable
      - `instagramConnectionMethod` 'FACEBOOK' | 'INSTAGRAM', nullable
      - `twitterSubType` 'none' | 'basic' | 'premium' | 'premium_plus', nullable
      - `isTiktokBusinessAccount` boolean, nullable
      - `disconnectedCheckTryAt` string, date-time, nullable
      - `deleteOn` string, date-time, nullable
      - `messagingStatus` 'DISABLED' | 'ENABLED' | 'DISABLE_PENDING'
      - `messagingStatusUpdatedAt` string, date-time, nullable
      - `messagingLastError` string, nullable
      - `createdAt` string, date-time, nullable, required
      - `updatedAt` string, date-time, nullable, required
      - `deletedAt` string, date-time, nullable
  - `conversationMessage` object, nullable
    - `id` string, required
    - `conversationId` string, required
    - `teamId` string, required
    - `socialAccountId` string, required
    - `platform` 'INSTAGRAM' | 'FACEBOOK', required: Messaging platform. Extensible: new platforms are added over time, so handle unknown values gracefully rather than switching exhaustively.
    - `direction` 'INBOUND' | 'OUTBOUND', required
    - `status` 'PENDING' | 'SENT' | 'DELIVERED' | 'SEEN' | 'FAILED', required
    - `source` 'PRIVATE_REPLY' | 'DM' | 'WEBHOOK' | 'API' | 'ECHO', required
    - `externalMessageId` string, nullable
    - `text` string, nullable
    - `attachments` object[]
      - `type` 'IMAGE' | 'VIDEO' | 'AUDIO' | 'FILE' | 'POST' | 'STORY_MENTION' | 'UNKNOWN', required
      - `url` string, nullable
      - `externalId` string, nullable
      - `mimeType` string, nullable
      - `name` string, nullable
      - `captionTrackUrl` string, nullable
      - `captionLanguage` string, nullable
      - `captionLabel` string, nullable
    - `sentAt` string, date-time, nullable
    - `failedAt` string, date-time, nullable
    - `error` string, nullable
    - `seenAt` string, date-time, nullable
    - `replyTo` object, nullable
      - `externalMessageId` string, nullable
      - `isSelfReply` boolean, nullable
      - `messageId` string, nullable
    - `privateReplyContext` object, nullable
      - `fetchedCommentId` string, required
      - `externalCommentId` string, nullable
      - `text` string, nullable
      - `authorName` string, nullable
      - `authorAvatarUrl` string, nullable
      - `publishedAt` string, date-time, nullable
      - `postId` string, nullable
      - `externalPostId` string, nullable
      - `postPermalink` string, nullable
      - `postThumbnailUrl` string, nullable
    - `createdAt` string, date-time, nullable, required
    - `updatedAt` string, date-time, nullable, required
    - `platformData` object
      - `replyTo` object, nullable
        - `externalMessageId` string, nullable
        - `isSelfReply` boolean, nullable
      - `storyReply` object, nullable
        - `storyId` string, nullable
        - `url` string, nullable
        - `linkStickerUrl` string, nullable
      - `reactions` object[]
        - `senderId` string, required
        - `reaction` string, nullable
        - `emoji` string, nullable
        - `reactedAt` string, date-time, nullable
      - `quickReplies` object[]
        - `id` string
        - `label` string, required
        - `payload` string, required
      - `buttons` union[]
        - union
          - object
            - `id` string
            - `type` 'POSTBACK', required
            - `label` string, required
            - `payload` string, required
          - object
            - `id` string
            - `type` 'URL', required
            - `label` string, required
            - `url` string, uri, required
          - object
            - `id` string
            - `type` 'PHONE', required
            - `label` string, required
            - `phoneNumber` string, required
      - `carousel` object, nullable
        - `cards` object[], required
          - `id` string
          - `title` string, required
          - `subtitle` string, nullable
          - `imageUrl` string, uri, nullable
          - `buttons` union[]
            - union
              - …
      - `isEcho` boolean, nullable
      - `isEdited` boolean, nullable
      - `editedAt` string, date-time, nullable
      - `isPostback` boolean, nullable
      - `postbackPayload` string, nullable
      - `isUnsent` boolean, nullable
      - `unsentAt` string, date-time, nullable
  - `fetchedComment` object, nullable
    - `id` string, required
    - `teamId` string, required
    - `organizationId` string, nullable
    - `postId` string, nullable
    - `importedPostId` string, nullable
    - `socialAccountId` string, required
    - `importId` string, required
    - `platform` 'FACEBOOK' | 'INSTAGRAM' | 'LINKEDIN' | 'YOUTUBE' | 'TIKTOK' | 'REDDIT' | 'THREADS' | 'MASTODON' | 'BLUESKY' | 'TWITTER', required
    - `externalId` string, required
    - `externalParentId` string, nullable
    - `externalPostId` string, nullable
    - `authorName` string, nullable
    - `authorExternalId` string, nullable
    - `authorProfileUrl` string, nullable
    - `authorAvatarUrl` string, nullable
    - `text` string, nullable
    - `likesCount` number, required
    - `repliesCount` number, required
    - `platformData` object
      - `canDelete` boolean, nullable
      - `canHide` boolean, nullable
      - `canLike` boolean, nullable
      - `canModerate` boolean, nullable
      - `hidden` boolean, nullable
      - `likedByMe` boolean, nullable
      - `likedByAutomation` boolean, nullable
      - `reactionsCount` number, nullable
      - `reactionType` 'LIKE' | 'LOVE' | 'WOW' | 'HAHA' | 'SAD' | 'ANGRY', nullable
      - `owner` boolean, nullable
      - `hideStatus` string, nullable
      - `moderationStatus` string, nullable
      - `approvalStatus` string, nullable
      - `status` string, nullable
      - `attachmentType` string, nullable
      - `attachmentUrl` string, nullable
      - `cid` string, nullable
      - `origin` 'platform' | 'bundle', nullable
      - `source` string, nullable
      - `mediaProductType` string, nullable
      - `bundleCommentId` string, nullable
      - `displayState` 'active' | 'thread_deleted' | 'platform_missing', nullable
      - `disabledReason` string, nullable
    - `publishedAt` string, date-time, nullable
    - `createdAt` string, date-time, nullable, required
    - `updatedAt` string, date-time, nullable, required
    - `deletedAt` string, date-time, nullable
  - `socialAccount` object
    - `id` string, required
    - `type` 'TIKTOK' | 'YOUTUBE' | 'INSTAGRAM' | 'FACEBOOK' | 'TWITTER' | 'THREADS' | 'LINKEDIN' | 'PINTEREST' | 'REDDIT' | 'MASTODON' | 'DISCORD' | 'SLACK' | 'BLUESKY' | 'GOOGLE_BUSINESS' | 'SNAPCHAT', required
    - `teamId` string, required
    - `username` string, nullable
    - `displayName` string, nullable
    - `bio` string, nullable
    - `avatarUrl` string, nullable
    - `externalId` string, nullable
    - `providerPageId` string, nullable
    - `userUsername` string, nullable
    - `userDisplayName` string, nullable
    - `userEmail` string, nullable
    - `userId` string, nullable
    - `channels` object[], nullable
      - `id` string, required
      - `name` string, nullable
      - `username` string, nullable
      - `address` string, nullable
      - `avatarUrl` string, nullable
      - `webhook` object, nullable
        - `id` string, nullable
        - `name` string, nullable
        - `avatar` string, nullable
        - `url` string, nullable
      - `metadata` object, nullable
        - `allowImages` boolean, nullable
        - `allowVideos` boolean, nullable
        - `allowGalleries` boolean, nullable
        - `linkFlairEnabled` boolean, nullable
        - `facebookPageId` string, nullable
    - `mastodonServerId` string, nullable
    - `instagramConnectionMethod` 'FACEBOOK' | 'INSTAGRAM', nullable
    - `twitterSubType` 'none' | 'basic' | 'premium' | 'premium_plus', nullable
    - `isTiktokBusinessAccount` boolean, nullable
    - `disconnectedCheckTryAt` string, date-time, nullable
    - `deleteOn` string, date-time, nullable
    - `messagingStatus` 'DISABLED' | 'ENABLED' | 'DISABLE_PENDING'
    - `messagingStatusUpdatedAt` string, date-time, nullable
    - `messagingLastError` string, nullable
    - `createdAt` string, date-time, nullable, required
    - `updatedAt` string, date-time, nullable, required
    - `deletedAt` string, date-time, nullable

## Other responses

- `400`: 400
- `401`: 401
- `403`: 403
- `404`: 404
- `429`: 429
- `500`: 500
- `502`: 502
- `503`: 503
- `504`: 504

## Changes

- **2026-11-03** `fb6e4fbd8d2f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/bundle/apis/bundle-social-api/changes/api/v1/automation-executions/:id/get.md)

---

[API](https://skmtc.dev/bundle/apis/bundle-social-api.md) - [All operations](https://skmtc.dev/bundle/apis/bundle-social-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bundle/apis/bundle-social-api/revisions/18efa1cb93a4?raw)
