web stats
API login - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 08-29-2016, 04:53 AM
OlivierAZJP OlivierAZJP is offline
What's HL7?
 
Join Date: Aug 2016
Posts: 1
OlivierAZJP is on a distinguished road
Default 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?

Thanks
Reply With Quote
  #2  
Old 08-29-2016, 06:50 AM
narupley's Avatar
narupley narupley is offline
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,115
narupley is on a distinguished road
Default

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.
Reply With Quote
  #3  
Old 06-19-2019, 07:53 AM
it_guy_phx it_guy_phx is offline
What's HL7?
 
Join Date: Jun 2019
Posts: 3
it_guy_phx is on a distinguished road
Default

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
Reply With Quote
Reply

Tags
api login

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 11:43 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation