No announcement yet.

API login

  • Filter
  • Time
  • Show
Clear All
new posts

  • API login

    Hello everyone,

    We want to monitor Mirth channel errors via the Mirth API. I'm using teh URL https://mirthserver:8443/api/channels/statistics but I get the Unauthorized error message. How can I send my login credentials via this URL?


  • #2
    You first need to invoke the /users/_login endpoint. You'll get a JSESSIONID token that you need to pass on all subsequent requests. Finally, make sure to invoke the logout endpoint when you've finished.
    Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

    Nicholas Rupley
    Work: 949-237-6069
    Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.

    - How do I foo?
    - You just bar.


    • #3
      Old thread, however in my quest to find information regarding accessing the Mirth Connect API this thread kept coming up and it would have helped to have more detailed explanation. My own efforts were to access the API via Powershell and the results can be found here: https://incoherentsysadmin.blogspot....-api-from.html