Wildfire API "Missing required field apikey"

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Please sign in to see details of an important advisory in our Customer Advisories area.

Wildfire API "Missing required field apikey"

L0 Member

Hello,

 

I have been working on automating our internal URL analysis process, and I've been using the following documentation to get the verdict of a URL via the Wildfire API:

Get a WildFire Verdict (WildFire API) (paloaltonetworks.com)

When using Example Request 2 in the above link, I replace the placeholder API value (<API KEY>) with my own and keep the rest of the cURL request the same. However, when doing this I receive the following HTTP response:

<error>
  <error-message>'Missing required field apikey'</error-message>
</error>

 

Attached is a screenshot of my cURL request (with the redacted API keys). Thanks in advance!

1 accepted solution

Accepted Solutions

L5 Sessionator

Hi @chughey, getting a verdict uses /get/verdict/, but the screenshot shows /submit/link

Please try the correct API endpoint first, and see if that helps

Example:
curl -F 'apikey=1234567890' -F 'url=https://www.google.com' 'https://wildfire.paloaltonetworks.com/publicapi/get/verdict'


<?xml version="1.0" encoding="UTF-8"?>
<wildfire>
<get-verdict-info>
<url>https://www.google.com</url>
<verdict>0</verdict>
<analysis_time>2023-09-25T13:15:05Z</analysis_time>
<valid>Yes</valid>
</get-verdict-info>
</wildfire>

Help the community: "Like" helpful comments, and click "Accept as Solution" if you found your answer 🙂

View solution in original post

1 REPLY 1

L5 Sessionator

Hi @chughey, getting a verdict uses /get/verdict/, but the screenshot shows /submit/link

Please try the correct API endpoint first, and see if that helps

Example:
curl -F 'apikey=1234567890' -F 'url=https://www.google.com' 'https://wildfire.paloaltonetworks.com/publicapi/get/verdict'


<?xml version="1.0" encoding="UTF-8"?>
<wildfire>
<get-verdict-info>
<url>https://www.google.com</url>
<verdict>0</verdict>
<analysis_time>2023-09-25T13:15:05Z</analysis_time>
<valid>Yes</valid>
</get-verdict-info>
</wildfire>

Help the community: "Like" helpful comments, and click "Accept as Solution" if you found your answer 🙂
  • 1 accepted solution
  • 1156 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!