> ## Documentation Index
> Fetch the complete documentation index at: https://docsv4.mile.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Read log automation by ID

> Returns one automation run log: what was sent, what came back, and whether it succeeded. Use the `_id` of an entry from `GET /automation-log`.
Requires permission `view/automation`.



## OpenAPI

````yaml /openapi/public/openapi-flow.json get /automation-log/{logId}
openapi: 3.0.0
info:
  title: API - Flow
  version: 3.0.0
  description: API Documentation - RESTful API for field operations management.
servers:
  - url: https://apiweb.mile.app/api/v3
security:
  - bearerAuth: []
tags:
  - name: Flow
    description: >-
      Flow is the mobile field application workflow, setting it correctly is
      critical to the success of the field workers in doing their job
      efficiently. Flow attributes consist of IDs, pages, components,
      configurations, and time. The Flow will be used at Task, Automation, or
      Schedule.


      **To see the details of flow object, please follow [this
      link](#tag/flow_model)**
  - name: Automation
    description: >-
      Automation enables you to set up automation based on tasks' events and
      data source's events. It might help you automate creation of tasks, task
      assignment, task placement, task webhook, data source update, datasource
      creation, and data source webhook. Automation attributes consist of IDs,
      automation name, automation type, automation details, and rules.


      **To see the details of automation object, please follow [this
      link](#tag/automation_model)**
  - name: Order Type
    description: >-
      An order type is the blueprint for orders: the list of steps, which task
      type each step uses, and how an order moves from one step to the next.
      Order types are versioned: you edit a draft, validate or simulate it, then
      publish it. These endpoints are served under `/api/v4`.
paths:
  /automation-log/{logId}:
    get:
      tags:
        - Automation
      summary: Read log automation by ID
      description: >-
        Returns one automation run log: what was sent, what came back, and
        whether it succeeded. Use the `_id` of an entry from `GET
        /automation-log`.

        Requires permission `view/automation`.
      operationId: getAutomationLogById
      parameters:
        - name: logId
          in: path
          required: true
          description: >-
            The log entry identifier (the `_id` of an entry in `GET
            /automation-log`).

            **Example:** `-DethoIBewA7zVXNTstW`
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: boolean
                    description: Status of response.
                  message:
                    description: Message of API response.
                    type: string
                  data:
                    type: object
                    description: The automation log entry.
                    additionalProperties: true
                  params:
                    type: object
                    description: Search parameters used.
                    additionalProperties: true
                example:
                  status: true
                  message: elasticData
                  data:
                    automationId: 62f25ada1c0cd810800157c2
                    automationName: Notify customer on finish
                    automationType: webhook
                    automationEvent: onTaskFinished
                    automationUrl: https://hooks.example.com/mileapp
                    dataType: task
                    referenceId: 62f25af61c0cd810800157c3
                    organizationId: 64d99303be0ad015c461c932
                    isSuccess: 'true'
                    statusCode: '200'
                    attempt: '0'
                    request: '{"title":"Delivery to Bandung"}'
                    response: '{"received":true}'
                    startRequestTime: '2026-10-15 07:34:31.6996'
                    finishRequestTime: '2026-10-15 07:34:31'
                    responseTime: '0.043'
                    '@timestamp': '2026-10-15T07:34:34.873Z'
                  params:
                    query:
                      bool:
                        must:
                          - term:
                              _id: '-DethoIBewA7zVXNTstW'
                          - term:
                              organizationId.keyword: 64d99303be0ad015c461c932
        '400':
          description: Log not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: boolean
                    description: Shows if the request was successful.
                  message:
                    type: string
                    description: A short message explaining what went wrong.
                example:
                  status: false
                  message: Bad request - invalid parameters provided.
        '500':
          description: Server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: boolean
                    description: Shows if the request was successful.
                  message:
                    type: string
                    description: A short message explaining what went wrong.
                example:
                  status: false
                  message: Internal server error, please contact support@mile.app.
      deprecated: false
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Use a valid Bearer token to authenticate.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.