GET
/
{resourceSlug}
/
sessions.json
curl --request GET \
  --url https://app.agentcloud.dev/{resourceSlug}/sessions.json
{
  "csrf": "<string>",
  "sessions": [
    {
      "_id": "<string>",
      "orgId": "<string>",
      "teamId": "<string>",
      "name": "<string>",
      "startDate": {},
      "lastUpdatedDate": {},
      "tokensUsed": 123,
      "status": "started",
      "appId": "<string>",
      "previewLabel": "<string>",
      "sharingConfig": {
        "permissions": {},
        "mode": "restricted"
      }
    }
  ]
}

Path Parameters

resourceSlug
string
required

The resourceSlug is a url parameter of the teamId associated with the user. Anywhere the resourceSlug is used can be interpreted as a teamId

Response

200
sessions.json
JSON object containing an array of all the associated agents with that teamId, will return an empty array if the request is successful but there are no associated agents.
csrf
string

cross site token

sessions
object[]

Array of all sessions the given teamId has permissions for