API call to Forge App from Postman/other server

Hello, i have platform from which i need to send requests to developed forge app with accountId, issueId, commentBody. Then i need to catch them with my forge app and send comment to issue from accountId that i set with user impersonation. How to do it correctly? I made app with next manifest.yml

permissions:
  scopes:
    - read:jira-work
    - write:jira-work
    - read:jira-user
modules:
  trigger:
    - key: create-comment
      function: main
      events:
        - http
  function:
    - key: main
      handler: index.run
app:
    runtime:
      name: nodejs18.x
    id: 'ari:cloud:ecosystem::app/app-key'

You might be looking for the webtrigger module.

Thanks, maybe there is some example of manifest for webtrigger app? And will it be possible to use “asUser()” in this webtrigger?

I missed the part about you needing user impersonation. In that case, I don’t think webtriggers will solve your use case. If user impersonation is a hard requirement then I’m not sure if what you’re describing is possible… maybe someone else will have a solution.

Maybe you know some other option to send comment to issue as customer? I have platform which is “bridge” between customer and operator in jira. I create ticket from “user” using raiseBehalfOn, but can`t find way to add comments from customer.

User impersonation is possible if you’re developing a Connect app so you will probably have better luck there.

https://developer.atlassian.com/cloud/confluence/user-impersonation-for-connect-apps/#flow-for-user-impersonation-authorization-grants