What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

How can i pass key to the http API instead of login credentials

Votes:

0

Our client wants to monitor the web request via http API using API key. Currently, one can do that using credentials. However, the API the clients request are rather via Keys as opposed to credentials.

Getting this feature will enable the client to easily monitor their website using the http API.

Thank you

api http key

Created on May 12, 2021 5:35:54 AM



3 Replies

Votes:

0

Hi Alex,

I'm afraid there is currently no option to use an API key. You will need to authenticate with credentials. The only option to not use a password would be to use the passhash. This could look like this:

https://yourserver/api/table.xml?content=sensors&columns=sensor&username=myuser&passhash=hash

Here you can find also more detailed information about the API.


Kind regards

Felix Wiesneth - Team Tech Support

Created on May 12, 2021 8:11:32 AM by  Felix Wiesneth [Paessler Support]



Votes:

0

Hi Paessler...

Now with the new API Key... Is it possible to pass it(the API Key) without having it in the URL ?? Can it be set as a header like the standard RFC1945 authorization: Token XXXXX or authorization: Bearer XXXXX

It would be really nice to be able to get it into the portion that is not viewable by the whole world...

Thanks JR

Created on Feb 15, 2023 5:56:18 PM by  JR Andreassen (10) 2



Votes:

0

Hi JR,

With the API v2 this will be implemented. So far it is not possible to use this with the current version of our API.


Kind regards

Felix Wiesneth - Team Tech Support

Created on Feb 16, 2023 9:35:03 AM by  Felix Wiesneth [Paessler Support]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.