List organization inference-proxy request metadata
curl --request GET \
--url https://harness.example.com/gateway/request-logs \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://harness.example.com/gateway/request-logs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://harness.example.com/gateway/request-logs"
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",
"occurred_at": "2023-11-07T05:31:56Z",
"method": "<string>",
"path": "<string>",
"result": "success",
"upstream_latency_ms": 1,
"profile_id": "<string>",
"profile_name": "<string>",
"model": "<string>",
"http_status": 349,
"harness": "<string>",
"repository": "<string>",
"branch": "<string>",
"commit_sha": "<string>",
"dirty": true,
"run_id": "<string>"
}
],
"page": 2,
"per_page": 50,
"total": 1,
"total_pages": 1
}Gateway
List organization inference-proxy request metadata
Administrator-only retained request metadata. Bodies, query strings, credentials, and arbitrary headers are never returned or retained.
GET
/
gateway
/
request-logs
List organization inference-proxy request metadata
curl --request GET \
--url https://harness.example.com/gateway/request-logs \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://harness.example.com/gateway/request-logs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://harness.example.com/gateway/request-logs"
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",
"occurred_at": "2023-11-07T05:31:56Z",
"method": "<string>",
"path": "<string>",
"result": "success",
"upstream_latency_ms": 1,
"profile_id": "<string>",
"profile_name": "<string>",
"model": "<string>",
"http_status": 349,
"harness": "<string>",
"repository": "<string>",
"branch": "<string>",
"commit_sha": "<string>",
"dirty": true,
"run_id": "<string>"
}
],
"page": 2,
"per_page": 50,
"total": 1,
"total_pages": 1
}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:
x >= 1Required range:
1 <= x <= 100Case-insensitive literal search across path, model, profile name, repository, branch, and run ID.
Maximum string length:
200Available options:
success, redirect, client_error, server_error, transport_error Inclusive UTC calendar date.
Inclusive UTC calendar date.
Available options:
occurred_desc, occurred_asc 