List goal achievements with pagination
Retrieve goal achievements for agents owned by the authenticated developer with pagination support.
GET
/v1/goalsAuthorizationBearer <token>
In: header
Query Parameters
limit?number
Maximum number of results to return (default: 100, max: 1000)
offset?number
Number of results to skip (default: 0)
Response Body
application/json
curl -X GET "https://api.getlens.ai/v1/goals"[
{
"id": "RZJZTK6owKxeMELu3cGWWc",
"goalKey": "customer_issue_resolved",
"agentKey": "support-agent",
"sessionKey": "session-12345",
"customerKey": "customer-abc",
"metadata": {
"issueType": "billing",
"resolution": "refund"
},
"createdAt": "2024-01-15T10:30:00.000Z"
}
]