iconLensAI

Get goal achievement by ID

Retrieve a goal achievement by its unique identifier.

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

In: header

Path Parameters

idstring

Unique identifier of the goal achievement

Response Body

application/json

curl -X GET "https://api.getlens.ai/v1/goals/RZJZTK6owKxeMELu3cGWWc"
{
  "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"
}