Sessions
List network requests
GET /v1/sessions/{id}/network- Permission
read:sessions- Tokens
- API key, CLI user token, Session token (own session only)
Read every HTTP request a session made through an Ellipsis proxy, oldest first. That is its GitHub calls, git included, and its Ellipsis API calls.
Path parameters
idstringrequired
Query parameters
cursorstring
limitdefault
25integer{
"has_more": bool,
"next_cursor": str,
}
1
import os
2
3
from ellipsis import Ellipsis
4
5
client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])
6
7
for item in client.sessions.network("..."):
8
print(item)
1
import { Ellipsis } from '@ellipsis-dev/sdk';
2
3
const client = new Ellipsis({
4
apiKey: process.env.ELLIPSIS_API_TOKEN!,
5
});
6
7
for await (const item of await client.sessions.network('...')) {
8
console.log(item);
9
}
1
curl "https://api.ellipsis.dev/v1/sessions/{id}/network" \
2
-H "Authorization: Bearer $ELLIPSIS_API_TOKEN"
Response
has_moredefault
falsebooleanWhether more results exist past this page.
next_cursorstring
Pass as `cursor` to fetch the next page. Null on the last page. Opaque , echo it back rather than parsing it.
requestsarray<NetworkRequest>required
The requests.