Skip to content

Commit

Permalink
add attack-surface.md
Browse files Browse the repository at this point in the history
  • Loading branch information
amrdruid committed Aug 20, 2024
1 parent 4655cc2 commit 279a34a
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions versions/v2/content/attack-surface.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
weight: 14
title: "Attack Surface"
---

# Attack Surface

## Stats

```sh
curl --location 'https://api.us.cobalt.io/attack_surface/stats' \
-H "Accept: application/vnd.cobalt.v2+json" \
-H "Authorization: Bearer YOUR-PERSONAL-API-TOKEN" \
-H "X-Org-Token: YOUR-V2-ORGANIZATION-TOKEN"
--data '{}'
```

> The above command returns JSON structured like this:
```json
{
"resource": {
"domains": "3",
"seen_hosts": "200",
"new_seen_hosts": "10"
}
}
```

This endpoint retrieves stats from Attack Surface for the organization

0 comments on commit 279a34a

Please sign in to comment.