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 · headerrequiredScopes:
api:reador
AuthorizationBearer token (JWT) · headerrequiredPath parameters
idstringrequiredResponses
200
createdAtstring<date-time>requiredCreation timestamp
createdBystringrequiredCreator user ID
executionConfigobjectrequiredExecution config
executionTypestringrequiredExecution type
Allowed:
agentworkflowexecutorUserIdstringrequiredExecutor user ID
idstringrequiredAutomation ID
isEnabledbooleanrequiredWhether automation is enabled
ownerUserIdobject | nullrequiredOwner user ID (for personal scope)
scopestringrequiredScope
Allowed:
personalworkspacetitlestringrequiredAutomation title
triggersobject[]requiredTriggers. 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 propertiesHide properties
Array of
objectdefinitionobjectidstringisEnabledbooleansortOrdernumbertypestringAllowed:
dailyweeklymonthlycustomCronwebhookorganizationCreatedprojectCreatedtaskCreatedobjectCreatedslackMessageInPublicChannelslackReactionAddedwebhookSecretstring | nullOnly 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>requiredLast update timestamp
updatedByobject | nullrequiredLast updater user ID
userPromptobject | nullrequiredUser prompt for agent (HTML, automation prompt format: basic nodes, mentions, images; no files or videos)
workspaceIdstringrequiredWorkspace 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"const response = await fetch("https://leadtime.app/api/public/automations/string", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.get(
"https://leadtime.app/api/public/automations/string",
headers={
"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"
}Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions