Usage of the built-in agent (Ask yggy) per member
GET
/api/v1/connections/in-app-usage
const url = 'https://api.yggy.tech/api/v1/connections/in-app-usage';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.yggy.tech/api/v1/connections/in-app-usage \ --header 'Authorization: Bearer <token>'Calls the in-app agent made on a member’s behalf; they carry no OAuth client, so they are not listed under connections. Admins and owners see every member, others only themselves.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Per-member in-app usage
Media type application/json
object
members
required
Array<object>
object
userId
required
string
userName
required
string
userEmail
required
string
totalCalls
required
number
lastUsedAt
required
string
Example generated
{ "members": [ { "userId": "example", "userName": "example", "userEmail": "example", "totalCalls": 1, "lastUsedAt": "example" } ]}