> ## 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.

# List allowed methods for a service

> Return the methods allowed for the given service, each with its parameter definitions (name, type, whether required, description, and optional default/example). Returns 404 if the service is unknown.



## OpenAPI

````yaml /api-reference/workflows.yaml get /actions/services/{service}/methods
openapi: 3.1.0
info:
  title: Workflows
  version: v1
servers:
  - description: Droidrun Cloud API
    url: https://api.mobilerun.ai/v1
security:
  - bearerAuth: []
paths:
  /actions/services/{service}/methods:
    get:
      tags:
        - Actions
      summary: List allowed methods for a service
      description: >-
        Return the methods allowed for the given service, each with its
        parameter definitions (name, type, whether required, description, and
        optional default/example). Returns 404 if the service is unknown.
      operationId: listServiceMethods
      parameters:
        - in: path
          name: service
          required: true
          schema:
            minLength: 1
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/ServiceMethod'
                    type: array
                required:
                  - data
                type: object
          description: Allowed methods
        '404':
          content:
            application/json:
              schema:
                properties:
                  error:
                    type: string
                required:
                  - error
                type: object
          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 response = await
            client.workflows.actions.services.listMethods('x');


            console.log(response.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
            )
            response = client.workflows.actions.services.list_methods(
                "x",
            )
            print(response.data)
components:
  schemas:
    ServiceMethod:
      properties:
        method:
          type: string
        params:
          items:
            $ref: '#/components/schemas/ParamDef'
          type: array
      required:
        - method
        - params
      type: object
    ParamDef:
      properties:
        default: {}
        description:
          type: string
        example: {}
        name:
          type: string
        required:
          type: boolean
        type:
          enum:
            - string
            - number
            - boolean
            - object
            - array
          type: string
      required:
        - name
        - type
        - required
        - description
      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.