curl --request GET \
--url https://api.ngrok.com/app/sessions \
--header 'Authorization: Bearer <token>' \
--header 'ngrok-version: <ngrok-version>'{
"application_sessions": [
{
"id": "<string>",
"uri": "<string>",
"public_url": "<string>",
"browser_session": {
"user_agent": {
"raw": "<string>",
"browser_name": "<string>",
"browser_version": "<string>",
"device_type": "<string>",
"os_name": "<string>",
"os_version": "<string>"
},
"ip_address": "<string>",
"location": {
"country_code": "<string>",
"latitude": 123,
"longitude": 123,
"lat_long_radius_km": 123
}
},
"application_user": {
"id": "<string>",
"uri": "<string>"
},
"created_at": "<string>",
"last_active": "<string>",
"expires_at": "<string>",
"endpoint": {
"id": "<string>",
"uri": "<string>"
},
"edge": {
"id": "<string>",
"uri": "<string>"
},
"route": {
"id": "<string>",
"uri": "<string>"
}
}
],
"uri": "<string>",
"next_page_uri": "<string>"
}List all application sessions for this account.
curl --request GET \
--url https://api.ngrok.com/app/sessions \
--header 'Authorization: Bearer <token>' \
--header 'ngrok-version: <ngrok-version>'{
"application_sessions": [
{
"id": "<string>",
"uri": "<string>",
"public_url": "<string>",
"browser_session": {
"user_agent": {
"raw": "<string>",
"browser_name": "<string>",
"browser_version": "<string>",
"device_type": "<string>",
"os_name": "<string>",
"os_version": "<string>"
},
"ip_address": "<string>",
"location": {
"country_code": "<string>",
"latitude": 123,
"longitude": 123,
"lat_long_radius_km": 123
}
},
"application_user": {
"id": "<string>",
"uri": "<string>"
},
"created_at": "<string>",
"last_active": "<string>",
"expires_at": "<string>",
"endpoint": {
"id": "<string>",
"uri": "<string>"
},
"edge": {
"id": "<string>",
"uri": "<string>"
},
"route": {
"id": "<string>",
"uri": "<string>"
}
}
],
"uri": "<string>",
"next_page_uri": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
List all application sessions for this account.
list of all application sessions on this account
Show child attributes
unique application session resource identifier
URI of the application session API resource
URL of the hostport served by this endpoint
browser session details of the application session
Show child attributes
HTTP User-Agent data
Show child attributes
raw User-Agent request header
browser name (e.g. Chrome)
browser version (e.g. 102)
type of device (e.g. Desktop)
operating system name (e.g. MacOS)
operating system version (e.g. 10.15.7)
IP address
IP geolocation data
Show child attributes
ISO country code
geographical latitude
geographical longitude
accuracy radius of the geographical coordinates
timestamp when the user was created in RFC 3339 format
timestamp when the user was last active in RFC 3339 format
timestamp when session expires in RFC 3339 format
URI of the application session list API resource
URI of the next page, or null if there is no next page
Was this page helpful?