Get Automation

View Markdown

Get an automation by ID.


GET
/automations/{id}

Authorization

AuthorizationRequiredBearer <token>

See API Security for more details.

In: header

Path Parameters

idRequiredstring

Header Parameters

Accept-Versionstring

Specifies the API Version

Default: "2025-08-20"Value in: "2025-08-20" | "latest"

Response Body

Success

idRequiredstring
namestring
descriptionstring
triggerRequiredobject
workflowRequiredarray<Any properties in object,object>
statusRequiredstring
Value in: "active" | "paused"
createdRequiredstring
Format: "date-time"
updatedRequiredstring
Format: "date-time"
const automation = await fetch("https://api.ittybit.com/automations/auto_abcdefgh1234", {
  headers: { "Authorization": "Bearer ITTYBIT_API_KEY" }
})
{
  "id": "auto_abcdefgh1234",
  "object": "automation",
  "name": "My Example Automation",
  "description": "This workflow will run whenever new media is created.",
  "trigger": {
    "kind": "event",
    "event": "media.created"
  },
  "workflow": [
    {
      "kind": "description"
    },
    {
      "kind": "image",
      "width": 320,
      "format": "png",
      "ref": "thumbnail"
    },
    {
      "kind": "conditions",
      "conditions": [
        {
          "prop": "kind",
          "value": "video"
        }
      ],
      "next": [
        {
          "kind": "subtitle",
          "ref": "subtitle"
        }
      ]
    }
  ],
  "created": "2025-01-01T01:23:45Z",
  "updated": "2025-01-01T01:23:45Z",
  "status": "active"
}