Dapr ServiceInvocation API

Service-to-service invocation operations.

Documentation

Specifications

Schemas & Data

Other Resources

OpenAPI Specification

dapr-serviceinvocation-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Dapr Actors ServiceInvocation API
  description: The Dapr Actors API provides virtual actor capabilities for distributed applications, including actor method invocation, state management, timers, and reminders. Actors provide a single-threaded programming model with guaranteed message ordering.
  version: 1.0.0
  contact:
    name: Dapr
    url: https://dapr.io
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
servers:
- url: http://localhost:3500
  description: Dapr Sidecar
tags:
- name: ServiceInvocation
  description: Service-to-service invocation operations.
paths:
  /v1.0/invoke/{appId}/method/{method-name}:
    get:
      summary: Dapr Invoke Method (GET)
      description: Invokes a method on a remote Dapr app using GET.
      operationId: invokeMethodGet
      tags:
      - ServiceInvocation
      parameters:
      - name: appId
        in: path
        required: true
        description: The App ID of the remote application.
        schema:
          type: string
      - name: method-name
        in: path
        required: true
        description: The name of the method to invoke.
        schema:
          type: string
      responses:
        '200':
          description: Method invoked successfully.
          content:
            application/json:
              schema: {}
        '403':
          description: Invocation forbidden by access controls.
        '500':
          description: Failed to invoke method.
    post:
      summary: Dapr Invoke Method (POST)
      description: Invokes a method on a remote Dapr app using POST.
      operationId: invokeMethodPost
      tags:
      - ServiceInvocation
      parameters:
      - name: appId
        in: path
        required: true
        description: The App ID of the remote application.
        schema:
          type: string
      - name: method-name
        in: path
        required: true
        description: The name of the method to invoke.
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema: {}
      responses:
        '200':
          description: Method invoked successfully.
          content:
            application/json:
              schema: {}
        '403':
          description: Invocation forbidden by access controls.
        '500':
          description: Failed to invoke method.
    put:
      summary: Dapr Invoke Method (PUT)
      description: Invokes a method on a remote Dapr app using PUT.
      operationId: invokeMethodPut
      tags:
      - ServiceInvocation
      parameters:
      - name: appId
        in: path
        required: true
        description: The App ID of the remote application.
        schema:
          type: string
      - name: method-name
        in: path
        required: true
        description: The name of the method to invoke.
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema: {}
      responses:
        '200':
          description: Method invoked successfully.
          content:
            application/json:
              schema: {}
        '403':
          description: Invocation forbidden by access controls.
        '500':
          description: Failed to invoke method.
    delete:
      summary: Dapr Invoke Method (DELETE)
      description: Invokes a method on a remote Dapr app using DELETE.
      operationId: invokeMethodDelete
      tags:
      - ServiceInvocation
      parameters:
      - name: appId
        in: path
        required: true
        description: The App ID of the remote application.
        schema:
          type: string
      - name: method-name
        in: path
        required: true
        description: The name of the method to invoke.
        schema:
          type: string
      responses:
        '200':
          description: Method invoked successfully.
          content:
            application/json:
              schema: {}
        '403':
          description: Invocation forbidden by access controls.
        '500':
          description: Failed to invoke method.
    patch:
      summary: Dapr Invoke Method (PATCH)
      description: Invokes a method on a remote Dapr app using PATCH.
      operationId: invokeMethodPatch
      tags:
      - ServiceInvocation
      parameters:
      - name: appId
        in: path
        required: true
        description: The App ID of the remote application.
        schema:
          type: string
      - name: method-name
        in: path
        required: true
        description: The name of the method to invoke.
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema: {}
      responses:
        '200':
          description: Method invoked successfully.
          content:
            application/json:
              schema: {}
        '403':
          description: Invocation forbidden by access controls.
        '500':
          description: Failed to invoke method.
externalDocs:
  description: Dapr Actors API Reference
  url: https://docs.dapr.io/reference/api/actors_api/