iconLensAI

Get valuable outcome by ID

Retrieve a valuable outcome record by its unique identifier.

GET/v1/outcomes/{id}
AuthorizationBearer <token>

In: header

Path Parameters

idstring

Unique identifier of the valuable outcome record

Response Body

application/json

curl -X GET "https://api.getlens.ai/v1/outcomes/RZJZTK6owKxeMELu3cGWWc"
{
  "id": "RZJZTK6owKxeMELu3cGWWc",
  "agentKey": "support-agent",
  "sessionKey": "session-12345",
  "customerKey": "customer-abc",
  "goalId": "YZABCD123456789012345678",
  "toolId": "EFGHIJ123456789012345678",
  "value": "50.00",
  "generatedAt": "2024-01-15T10:30:00.000Z",
  "createdAt": "2024-01-15T10:30:00.000Z"
}