The Burp Suite User Forum was discontinued on the 1st November 2024.

Burp Suite User Forum

For support requests, go to the Support Center. To discuss with other Burp users, head to our Discord page.

SUPPORT CENTER DISCORD

How do I correctly configure my BurpSuite Pro API?

Mitchell | Last updated: Nov 30, 2022 09:36PM UTC

I have my BurpSuite Pro API set to port 1337 and to use it's private IPv4 address. The service link from that is this "http://172.31.13.222:1337/v0.1/" however, when I try to make an API call to that link, my python script gives me this error "{"error":"Not found"}" I have it set to allow access without an API key, but I included one anyways and here's my Header I'm using as well. main.py ``` url = 'http://172.31.13.222:8080/v0.1/' payload="{\"query\":\" query GetScans {\\n scans(site_id: 1, scan_status: []) {\\n id\\n start_time\\n end_time\\n status\\n }\\n}\",\"variables\":{}}" headers = { 'Access-Control-Allow-Origin': '*', 'Origin': 'http://localhost:8080', 'Authorization': 'yA8Ml5d0MtvKq9IFW8hGhhVsLLnnJ2TT', 'Content-Type': 'application/json' } response = requests.request("POST", url, headers=headers, data=payload) ``` What could be causing this to give me that error? Did I mess up any of the configuration?

Mitchell | Last updated: Nov 30, 2022 09:52PM UTC

The URL in my code `url = 'http://172.31.13.222:8080/v0.1/'` is also set to port 1337, not 8080 like it shows. I tried with both port 8080 and 1337 and got the same error both times

Hannah, PortSwigger Agent | Last updated: Dec 01, 2022 08:41AM UTC

Hi Can I confirm that you are referring to Burp Suite Profesional? Burp Suite Pro does not have a GraphQL API, just a REST API. However, Burp Suite Enterprise does have a GraphQL API.

Mitchell | Last updated: Dec 01, 2022 07:22PM UTC

Yeah I'm using Burp Suite Professional, I referenced code I found online, so that might play a factor in why it's off

Hannah, PortSwigger Agent | Last updated: Dec 02, 2022 08:46AM UTC