Get your Site Tree. The site tree is the hierarchical structure containing all sites and folders that you have configured in Burp Suite Enterprise Edition.
External DocumentationTo learn more, visit the PortSwigger documentation.

Example Output

{
	"data": {
		"site_tree": {
			"sites": [
				{
					"id": "3",
					"name": "Site 3",
					"scope_v2": {
						"start_urls": [
							"http://site3"
						],
						"out_of_scope_urls": []
					},
					"application_logins": {
						"login_credentials": [],
						"recorded_logins": []
					}
				},
				{
					"id": "4",
					"name": "Site 1",
					"scope_v2": {
						"start_urls": [
							"http://site1"
						],
						"out_of_scope_urls": [
							"http://site1/exclude"
						]
					},
					"application_logins": {
						"login_credentials": [
							{
								"label": "site1",
								"username": "user"
							}
						],
						"recorded_logins": []
					}
				},
				{
					"id": "5",
					"name": "Site 2",
					"scope_v2": {
						"start_urls": [
							"http://site2"
						],
						"out_of_scope_urls": [
							"http://site2/excluded1",
							"http://site2/excluded2"
						]
					},
					"application_logins": {
						"login_credentials": [],
						"recorded_logins": []
					}
				}
			],
			"folders": [
				{
					"id": "0",
					"name": "ROOT"
				},
				{
					"id": "1",
					"name": "Folder 1"
				},
				{
					"id": "2",
					"name": "Folder 2"
				}
			]
		}
	}
}

Workflow Library Example

Get Site Tree with Portswigger and Send Results Via Email
Workflow LibraryPreview this Workflow on desktop