Skip to content
Leadtime
English
Esc
navigateopen⌘Jpreview

Get automation details

Returns the full automation including triggers. userPrompt is returned as HTML (automation prompt format: basic nodes, mentions, images; no files or videos).

GET/automations/{id}
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:read
or
AuthorizationBearer token (JWT) · headerrequired
Path parameters
idstringrequired
Responses
200
createdAtstring<date-time>required
Creation timestamp
createdBystringrequired
Creator user ID
executionConfigobjectrequired
Execution config
executionTypestringrequired
Execution type
Allowed:agentworkflow
executorUserIdstringrequired
Executor user ID
idstringrequired
Automation ID
isEnabledbooleanrequired
Whether automation is enabled
ownerUserIdobject | nullrequired
Owner user ID (for personal scope)
scopestringrequired
Scope
Allowed:personalworkspace
titlestringrequired
Automation title
triggersobject[]required
Triggers. For type webhook, webhookSecret is present after save; use POST {base}/api/automations/webhooks/{webhookSecret} to run. For type slackMessageInPublicChannel, definition contains channelId (Slack C…) and optional textPattern/useRegex. For type slackReactionAdded, definition contains emojiName and optional channelId.
Show properties
Array of object
definitionobject
idstring
isEnabledboolean
sortOrdernumber
typestring
Allowed:dailyweeklymonthlycustomCronwebhookorganizationCreatedprojectCreatedtaskCreatedobjectCreatedslackMessageInPublicChannelslackReactionAdded
webhookSecretstring | null
Only for webhook triggers. Present after save. Inbound webhook: POST {base}/api/automations/webhooks/{webhookSecret} with Content-Type: application/json. No auth; secret authenticates. Request body is passed to the agent as context.
updatedAtstring<date-time>required
Last update timestamp
updatedByobject | nullrequired
Last updater user ID
userPromptobject | nullrequired
User prompt for agent (HTML, automation prompt format: basic nodes, mentions, images; no files or videos)
workspaceIdstringrequired
Workspace ID
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
Request
curl -X GET "https://leadtime.app/api/public/automations/string" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response
{
  "createdAt": "2024-01-01T00:00:00Z",
  "createdBy": "string",
  "executionConfig": {},
  "executionType": "agent",
  "executorUserId": "string",
  "id": "string",
  "isEnabled": true,
  "ownerUserId": {},
  "scope": "personal",
  "title": "string",
  "triggers": [
    {
      "definition": {},
      "id": "string",
      "isEnabled": true,
      "sortOrder": 0,
      "type": "daily",
      "webhookSecret": "string"
    }
  ],
  "updatedAt": "2024-01-01T00:00:00Z",
  "updatedBy": {},
  "userPrompt": {},
  "workspaceId": "string"
}