GET
/
api
/
v1
/
workspaces
/
{workspaceUuid}
/
organisations
/
{organisationUuid}
/
sessions
curl --request GET \
  --url https://app.snitcher.com/api/v1/workspaces/{workspaceUuid}/organisations/{organisationUuid}/sessions \
  --header 'Authorization: Bearer <token>'
{
  "current_page": 1,
  "last_page": 10,
  "per_page": 15,
  "total": 150,
  "next_page_url": "https://api.example.com/api/v1/workspaces?page=2",
  "prev_page_url": null,
  "first_page_url": "https://api.example.com/api/v1/workspaces?page=1",
  "last_page_url": "https://api.example.com/api/v1/workspaces?page=10",
  "path": "https://api.example.com/api/v1/workspaces",
  "from": 1,
  "to": 15,
  "data": [
    {
      "uuid": "123e4567-e89b-12d3-a456-426614174000",
      "started_at": "2021-01-01T00:00:00Z",
      "ended_at": "2021-01-01T00:00:00Z",
      "location": {
        "country": "US",
        "state": "California",
        "city": "Los Angeles",
        "latitude": 34.0522,
        "longitude": -118.2437
      },
      "browser": "Chrome",
      "referrer": "https://google.com",
      "device_type": "mobile",
      "views": [
        {
          "visited_at": "2021-01-01T00:00:00Z",
          "time_on_page": 0,
          "url": "https://acme.com/page?foo=bar#baz"
        }
      ]
    }
  ],
  "success": true
}

Authorizations

Authorization
string
header
required

Enter your personal access token (PAT) to authenticate

Path Parameters

workspaceUuid
string
required

The UUID of the workspace

Example:

"123e4567-e89b-12d3-a456-426614174000"

organisationUuid
string
required

The UUID of the organisation

Example:

"123e4567-e89b-12d3-a456-426614174000"

Query Parameters

page
integer

The page number for pagination

Example:

1

size
integer

The number of sessions per page

Example:

10

date
string

The specific date to filter sessions.

Example:

"2025-03-01"

date_from
string

The start date for filtering sessions. Can only be used if date is not provided.

Example:

"2025-03-01"

date_to
string

The end date for filtering sessions. Can only be used if date is not provided.

Example:

"2025-03-10"

url
string

Filters sessions where the visited URL contains the given string.

Example:

"checkout"

referrer
string

Filters sessions where the referrer contains the given string.

Example:

"google.com"

Response

200 - application/json
List of sessions
current_page
integer
Example:

1

last_page
integer
Example:

10

per_page
integer
Example:

15

total
integer
Example:

150

next_page_url
string | null
Example:

"https://api.example.com/api/v1/workspaces?page=2"

prev_page_url
string | null
Example:

null

first_page_url
string | null
Example:

"https://api.example.com/api/v1/workspaces?page=1"

last_page_url
string | null
Example:

"https://api.example.com/api/v1/workspaces?page=10"

path
string | null
Example:

"https://api.example.com/api/v1/workspaces"

from
integer | null
Example:

1

to
integer | null
Example:

15

data
object[]

A representation of a session

success
boolean
Example:

true