API and WEBHOOK CASE

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pdnthiago
    Junior Member
    • Oct 2019
    • 17

    API and WEBHOOK CASE

    Good afternoon everyone, I need your help. I work with a WhatsApp system with an open API and WEBHOOK.

    I wanted to know if it's possible that when finishing a conversation in this WhatsApp system, it opens a ticket/case in ESPOCRM.

    Is there any more comprehensive documentation regarding the POST?

    Can someone shed some light on this?
  • pdnthiago
    Junior Member
    • Oct 2019
    • 17

    #2
    Can someone help me?

    Comment

    • Kharg
      Senior Member
      • Jun 2021
      • 410

      #3
      Hi, what provider are you using for whatsapp api? How do you know when a conversation has ended?

      Comment

      • pdnthiago
        Junior Member
        • Oct 2019
        • 17

        #4
        I will be using a system from a partner company of META.

        In this system, there's a 'Finish Assistance' button. So, upon clicking this button, it would create a ticket in the Case section of EspoCRM.

        I have a programmer to carry out this action. However, he mentioned that he couldn't find API or WEBHOOK documentation for EspoCRM to establish this communication.

        Could you inform me where I can find the documentation for EspoCRM's API or POST WEBHOOK?"

        Comment

        • yuri
          Member
          • Mar 2014
          • 8440

          #5
          You might need just a simple POST request that creates a Case entity.



          POST Case

          With fields (attributes) in JSON payload.
          If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

          Comment


          • yuri
            yuri commented
            Editing a comment
            EspoCRM is a highly configurable system. We could write compete API docs for every standard entity and their attributes, but in most cases they won't be that valuable as usually there will be many custom fields and entities.

            Though, in the future, we might create a tool for building Open API schemas for a particular instance that one may utilize for building API for their customized instance.
        • pdnthiago
          Junior Member
          • Oct 2019
          • 17

          #6


          Thank you, Yuri. I will pass the information above to the programmer.


          Comment

          • pdnthiago
            Junior Member
            • Oct 2019
            • 17

            #7
            Friends,

            Where do I check the POST API URL?

            How would it be using my domain to create a case?

            Attached is the example that the programmer sent me to verify with you.
            Attached Files

            Comment

            • yuri
              Member
              • Mar 2014
              • 8440

              #8
              The API documentation should have been suffice to figure out for a programmer.



              Endpoint:

              POST https://your-domain/api/v1/Case

              Content-Type: application/json
              X-Api-Key: API_KEY_COPIED_FROM_THE_USER_DETAIL_VIEW

              Payload:
              Code:
              {
                  "name": "My Name",
                  "description": "My description."
              }
              If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

              Comment

              Working...