List captured sessions visible to the caller
curl --request GET \
--url https://harness.example.com/session-uploads \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://harness.example.com/session-uploads', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://harness.example.com/session-uploads"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_email": "jsmith@example.com",
"harness": "<string>",
"compatibility_profile": "<string>",
"native_session_id": "<string>",
"artifact_format": "<string>",
"resumable": true,
"sharing_mode": "private",
"share_recipient_count": 1,
"updated_at": "2023-11-07T05:31:56Z",
"cwd": "<string>",
"title": "<string>",
"summary": "<string>",
"source_captured_at": "2023-11-07T05:31:56Z",
"repository": {
"root": "<string>",
"remote": "<string>"
},
"shared": true,
"status": "<string>",
"size_bytes": 123,
"content_type": "<string>",
"retention_expires_at": "2023-11-07T05:31:56Z"
}
],
"next_cursor": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"page": 123,
"per_page": 123,
"total": 123,
"total_pages": 123
}Sessions
List captured sessions visible to the caller
Organization administrators see their organization for audit; members see owned and shared sessions. Resumable mode always applies own/shared picker visibility. Callers may use cursor parameters or numbered page parameters, but must not combine the two modes.
GET
/
session-uploads
List captured sessions visible to the caller
curl --request GET \
--url https://harness.example.com/session-uploads \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://harness.example.com/session-uploads', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://harness.example.com/session-uploads"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_email": "jsmith@example.com",
"harness": "<string>",
"compatibility_profile": "<string>",
"native_session_id": "<string>",
"artifact_format": "<string>",
"resumable": true,
"sharing_mode": "private",
"share_recipient_count": 1,
"updated_at": "2023-11-07T05:31:56Z",
"cwd": "<string>",
"title": "<string>",
"summary": "<string>",
"source_captured_at": "2023-11-07T05:31:56Z",
"repository": {
"root": "<string>",
"remote": "<string>"
},
"shared": true,
"status": "<string>",
"size_bytes": 123,
"content_type": "<string>",
"retention_expires_at": "2023-11-07T05:31:56Z"
}
],
"next_cursor": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"page": 123,
"per_page": 123,
"total": 123,
"total_pages": 123
}Authorizations
OAuth 2.0 access token obtained through RFC 8628 at /api/auth/device/code and /api/auth/oauth2/token. The API enforces governance:read, session:write, and client-status:write as appropriate.
Query Parameters
Required range:
1 <= x <= 100Required range:
x >= 1Required range:
1 <= x <= 100Case-insensitive literal substring matched against native session ID and working directory.
Maximum string length:
200Available options:
pending, complete, superseded, failed Inclusive UTC calendar date.
Inclusive UTC calendar date.
Available options:
updated_desc, updated_asc Return only owned or explicitly shared portable sessions; administrator audit access is not applied.
