GET
/
{resourceSlug}
/
session
/
{sessionId}
.json
curl --request GET \
  --url https://app.agentcloud.dev/{resourceSlug}/session/{sessionId}.json
{
  "csrf": "<string>",
  "session": {
    "_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

sessionId
string
required

The sessionId of the session to retrieve

Response

200
session.json
JSON object the session associated with the given sessionId, will return an empty array if the request is successful but there are no associated agents.
csrf
string

cross site token

session
object

Session Object returned for the given sessionId