Get Automation

Get an automation by ID.


GET
/automations/{id}

Authorization

AuthorizationRequiredBearer <token>

See API Security for more details.

In: header

Path Parameters

idRequiredstring

Response Body

Success

TypeScript Definitions

Use the response body type in TypeScript.

metaobject
dataobject
errorobject | null | null
linksobject
fetch("https://api.ittybit.com/automations/auto_abcdefgh1234", {
  headers: {
    "Authorization": "Bearer <token>"
  }
})
{
  "meta": {
    "request_id": "req_abcdefghij1234567890",
    "org_id": "org_abcdefgh1234",
    "project_id": "prj_abcdefgh1234",
    "version": "2025-01-01",
    "type": "object"
  },
  "data": {
    "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"
  },
  "links": {
    "self": "https://api.ittybit.com/automations/auto_abcdefgh1234",
    "parent": "https://api.ittybit.com/automations"
  }
}