Power Automate Step

Written By Yevhen Havrylenko

Last updated About 2 months ago

The following is the spec for a custom Power Automate Action. Use this Open AI Spec to create a custom Power Automate Action.

swagger: '2.0'
info:
  title: Clerk Chat Demo
  description: ''
  version: '1.0'
host: web-api.clerk.chat
basePath: /
schemes:
  - https
consumes:
  - application/json
produces:
  - application/json
paths:
  /conversations/message:
    post:
      summary: Send Message
      operationId: send_message
      parameters:
        - in: body
          name: payload
          required: true
          description: The message details
          schema:
            type: object
            required:
              - sender
              - recipients
              - body
            properties:
              sender:
                type: string
                description: The sender's phone number
              recipients:
                type: array
                items:
                  type: string
                description: A list of recipient phone numbers
              body:
                type: string
                description: The content of the message
              sentByName:
                type: string
                description: The name of the sender's program or external service
      responses:
        '200':
          description: Success
          schema:
            type: object
            properties:
              success:
                type: boolean
                description: Indicates if the message was sent successfully
        '400':
          description: Bad Request
          schema:
            type: object
            properties:
              error:
                type: string
                description: Description of the error
securityDefinitions:
  api_key:
    type: apiKey
    in: header
    name: apiKey
security:
  - api_key: []
x-ms-openai-manifest:
  humanName: Clerk Chat