Skip to content

Commit 3038c3e

Browse files
author
Maxime Carbonneau
committed
Added Search by Cookie Value
1 parent f83c0ab commit 3038c3e

File tree

3 files changed

+54
-2
lines changed

3 files changed

+54
-2
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
title: "Search Cookies by Value"
3+
api: "POST https://api.flare.io/astp/v2/cookies/_search_by_value"
4+
authMethod: "bearer"
5+
---
6+
7+
import GatedAccessFeatureAstp from '/snippets/gated-access-feature-astp.mdx';
8+
9+
<GatedAccessFeatureAstp />
10+
11+
Returns a list of cookies matching the value provided, paginated and in descending order from most recently added to least recently added.
12+
13+
<ResponseExample>
14+
15+
```json Response Example
16+
{
17+
"items": [
18+
{
19+
"uuid": "44672461-aca4-4b3b-b192-6bd5429c4c6d",
20+
"domain": "scatterholt.com",
21+
"expires_at": "2024-10-18T00:00:00+00:00",
22+
"imported_at": "2024-01-01T00:00:00+00:00",
23+
"name": "session",
24+
"path": "/",
25+
"event_uid": "stealer_log/stealer_logs_live/12345",
26+
"value": "abcdefghijkl",
27+
},
28+
],
29+
"next": "WzFd",
30+
}
31+
```
32+
33+
</ResponseExample>
34+
35+
## Paging
36+
37+
This endpoint supports the
38+
[Flare standard paging pattern <Icon icon="book" size={16} />](/concepts/paging).
39+
40+
## Body Parameters
41+
42+
<ParamField body="value" type="string">
43+
The exact value for which you want to search cookies.
44+
</ParamField>
45+
46+
<ParamField body="size" type="number">
47+
The number of results to fetch. (default: 100, max: 2000)
48+
</ParamField>
49+
50+
<ParamField body="from" type="string">
51+
The `next` value from the last response.
52+
</ParamField>

docs/api-reference/astp/endpoints/post-cookies-search.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ Returns a list of credentials matching the query provided.
2727
},
2828
],
2929
"next": "WzFd",
30-
}
3130
}
3231
```
3332

docs/docs.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@
115115
{
116116
"group": "Cookies",
117117
"pages": [
118-
"api-reference/astp/endpoints/post-cookies-search"
118+
"api-reference/astp/endpoints/post-cookies-search",
119+
"api-reference/astp/endpoints/post-cookies-search-by-value"
119120
]
120121
}
121122
]

0 commit comments

Comments
 (0)