Skip to main content
GET
/
automation
/
{automationId}
Read automation by ID
curl --request GET \
  --url https://apiweb.mile.app/api/v3/automation/{automationId} \
  --header 'Authorization: Bearer <token>'
{
  "status": true,
  "message": "Success",
  "data": {
    "name": "Auto webhook automation",
    "event": "onTaskFinished",
    "automationType": "webhook",
    "dataType": "task",
    "automationDetails": {
      "url": "https://apiweb.mile.app/webhook",
      "headers": {
        "x-api-key": "1234e98498ce07d29474a7ev2",
        "org": "general"
      }
    },
    "rules": {
      "flow": "Pickup",
      "flowId": "667b712f63020e5f182f0cb2"
    },
    "organizationId": "621dd813eb3ebf16b94dbde3",
    "isActive": true,
    "updatedTime": "2022-07-13T03:16:40+00:00",
    "createdTime": "2022-07-13T03:16:40+00:00",
    "_id": "62ce3918d3f3e1681a3a54b5"
  }
}

Authorizations

Authorization
string
header
required

Use a valid Bearer token to authenticate.

Path Parameters

automation_id
string
required

Unique identifier for automation that generated by system. Example: 62ce3918d3f3e1681a3a54b5

Response

Success

status
boolean

Status of response.

message
string

Message of API response.

data
object

Detail of object automation.