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

# Get an action

> Fetch a single action by its ID, including its configured service, method, and params. Returns 404 if no action matches.



## OpenAPI

````yaml /api-reference/workflows/actions.yaml get /actions/{actionId}
openapi: 3.1.0
info:
  title: Actions
  version: v1
servers:
  - description: Droidrun Cloud API
    url: https://api.mobilerun.ai/v1
security:
  - bearerAuth: []
paths:
  /actions/{actionId}:
    get:
      tags:
        - Actions
      summary: Get an action
      description: >-
        Fetch a single action by its ID, including its configured service,
        method, and params. Returns 404 if no action matches.
      operationId: getAction
      parameters:
        - in: path
          name: actionId
          required: true
          schema:
            format: uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    $ref: '#/components/schemas/Action'
                required:
                  - data
                type: object
          description: Action details
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorEnvelope'
          description: Not Found
      x-codeSamples:
        - lang: JavaScript
          source: >-
            import Mobilerun from '@mobilerun/sdk';


            const client = new Mobilerun({
              apiKey: process.env['MOBILERUN_CLOUD_API_KEY'], // This is the default and can be omitted
            });


            const action = await
            client.workflows.actions.retrieve('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');


            console.log(action.data);
        - lang: Python
          source: |-
            import os
            from mobilerun_sdk import Mobilerun

            client = Mobilerun(
                api_key=os.environ.get("MOBILERUN_CLOUD_API_KEY"),  # This is the default and can be omitted
            )
            action = client.workflows.actions.retrieve(
                "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
            )
            print(action.data)
components:
  schemas:
    Action:
      properties:
        catalogEntryId:
          format: uuid
          type: string
        createdAt:
          format: date-time
          type:
            - string
            - 'null'
        createdBy:
          format: uuid
          type:
            - string
            - 'null'
        description:
          type:
            - string
            - 'null'
        id:
          format: uuid
          type: string
        method:
          type: string
        name:
          type: string
        ownerId:
          format: uuid
          type: string
        params: {}
        paramsSchema: {}
        service:
          enum:
            - tasks_api
            - devices_api
            - agents_api
            - webhooks
            - integrations_api
          type: string
        updatedAt:
          format: date-time
          type:
            - string
            - 'null'
        userId:
          deprecated: true
          description: 'Deprecated: use ownerId (tenancy) / createdBy (actor).'
          format: uuid
          type: string
      required:
        - id
        - userId
        - ownerId
        - createdBy
        - catalogEntryId
        - name
        - description
        - service
        - method
        - createdAt
        - updatedAt
      type: object
    ApiErrorEnvelope:
      properties:
        code:
          type: string
        details: {}
        message:
          type: string
        retryAfterSeconds:
          type: number
        traceId:
          type: string
      required:
        - code
        - message
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: Opaque
      description: Bearer token via Authorization header
      scheme: bearer
      type: http

````

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