Operations 2
GET
/v1/workspaces/{workspaceUuid}/organisations/{organisationUuid}/sessions
Overview of the sessions of an organisation
#
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/snitcher:snitcher-sessions-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Snitcher Sessions API
description: Discovering leads or discovering our API. This page is all you need to do both!
contact:
email: info@snitcher.com
version: 1.0.0
servers:
- url: https://api.snitcher.com
description: Production API
tags:
- name: Sessions
description: Endpoints for sessions
paths:
/v1/workspaces/{workspaceUuid}/sessions:
get:
tags:
- Sessions
summary: Overview of the sessions in a date range
description: 'Lists sessions within a date range. A date range is required: provide either `date` or `date_from` (optionally with `date_to`), otherwise the request fails with a 400.'
operationId: 3c1a872e427c8996e46308a4d3861551
parameters:
- name: workspaceUuid
in: path
description: The UUID of the workspace
required: true
schema:
type: string
format: uuid
example: 123e4567-e89b-12d3-a456-426614174000
- name: segmentUuid
in: query
description: Only include sessions matching this segment UUID
required: false
schema:
type: string
format: uuid
example: 123e4567-e89b-12d3-a456-426614174000
- name: date
in: query
description: The specific date to filter sessions. Cannot be used together with date_from/date_to. Either `date` or `date_from` must be provided.
required: false
schema:
type: string
format: date
example: '2025-03-01'
- name: date_from
in: query
description: Start date for filtering sessions (inclusive). Required unless `date` is provided.
required: false
schema:
type: string
format: date
example: '2025-03-01'
- name: date_to
in: query
description: End date for filtering sessions (inclusive). Defaults to the end of today when omitted.
required: false
schema:
type: string
format: date
example: '2025-03-10'
- name: url
in: query
description: Filter sessions where the visited URL contains the given string.
required: false
schema:
type: string
example: checkout
- name: referrer
in: query
description: Filter sessions where the referrer contains the given string.
required: false
schema:
type: string
example: google.com
- name: visitor_uuid
in: query
description: Only include sessions of this visitor (client) ID — the `visitor_uuid` returned on every session, and the value the tracker sends as `anonymous_id`. Lets a client-side ID minted at conversion time be resolved back to the sessions, and therefore the organisation, it belongs to.
required: false
schema:
type: string
format: uuid
example: 123e4567-e89b-12d3-a456-426614174000
- name: page
in: query
description: The page number for pagination. page × size may not exceed 25,000 rows; narrow the listing with date_from and date_to instead of paging deeper.
required: false
schema:
type: integer
minimum: 1
example: 1
- name: size
in: query
description: Number of sessions per page (1-1000).
required: false
schema:
type: integer
maximum: 1000
minimum: 1
example: 10
responses:
'200':
description: List of sessions. When more than `organisation_limit` organisations match the date range, the response is truncated to the most-recently-active organisations and `truncated` is set to true. The caller can use the per-organisation sessions endpoint to backfill any orgs beyond the cap.
content:
application/json:
schema:
type: object
allOf:
- $ref: '#/components/schemas/Pagination'
- properties:
success:
type: boolean
example: true
data:
type: array
items:
$ref: '#/components/schemas/Session'
truncated:
description: True when the organisation set was capped to `organisation_limit`.
type: boolean
example: false
total_organisations:
description: Total number of organisations matching the filter, before any cap.
type: integer
example: 42
organisation_limit:
description: Maximum number of organisations included in a single response.
type: integer
example: 10000
type: object
'400':
description: Invalid parameters, e.g. no date range provided
security:
- Snitcher bearer token: []
/v1/workspaces/{workspaceUuid}/organisations/{organisationUuid}/sessions:
get:
tags:
- Sessions
summary: Overview of the sessions of an organisation
operationId: 71efed14b0d3aaf9caea94c0602c1e34
parameters:
- name: workspaceUuid
in: path
description: The UUID of the workspace
required: true
schema:
type: string
format: uuid
example: 123e4567-e89b-12d3-a456-426614174000
- name: organisationUuid
in: path
description: The UUID of the organisation
required: true
schema:
type: string
format: uuid
example: 123e4567-e89b-12d3-a456-426614174000
- name: page
in: query
description: The page number for pagination. page × size may not exceed 25,000 rows; narrow the listing with date_from and date_to instead of paging deeper.
required: false
schema:
type: integer
minimum: 1
example: 1
- name: size
in: query
description: The number of sessions per page (1-1000)
required: false
schema:
type: integer
maximum: 1000
minimum: 1
example: 10
- name: date
in: query
description: The specific date to filter sessions.
required: false
schema:
type: string
format: date
example: '2025-03-01'
- name: date_from
in: query
description: The start date for filtering sessions. Can only be used if `date` is not provided.
required: false
schema:
type: string
format: date
example: '2025-03-01'
- name: date_to
in: query
description: The end date for filtering sessions. Can only be used if `date` is not provided.
required: false
schema:
type: string
format: date
example: '2025-03-10'
- name: url
in: query
description: Filters sessions where the visited URL contains the given string.
required: false
schema:
type: string
example: checkout
- name: referrer
in: query
description: Filters sessions where the referrer contains the given string.
required: false
schema:
type: string
example: google.com
- name: visitor_uuid
in: query
description: Only include sessions of this visitor (client) ID — the `visitor_uuid` returned on every session, and the value the tracker sends as `anonymous_id`. Lets a client-side ID minted at conversion time be resolved back to the sessions, and therefore the organisation, it belongs to.
required: false
schema:
type: string
format: uuid
example: 123e4567-e89b-12d3-a456-426614174000
responses:
'200':
description: List of sessions
content:
application/json:
schema:
type: object
allOf:
- $ref: '#/components/schemas/Pagination'
- properties:
success:
type: boolean
example: true
data:
type: array
items:
$ref: '#/components/schemas/Session'
type: object
security:
- Snitcher bearer token: []
components:
schemas:
Pagination:
properties:
current_page:
type: integer
example: 1
last_page:
type: integer
example: 10
per_page:
type: integer
example: 15
total:
type: integer
example: 150
next_page_url:
type:
- string
- 'null'
example: https://api.example.com/v1/workspaces?page=2
prev_page_url:
type:
- string
- 'null'
example: null
first_page_url:
type:
- string
- 'null'
example: https://api.example.com/v1/workspaces?page=1
last_page_url:
type:
- string
- 'null'
example: https://api.example.com/v1/workspaces?page=10
path:
type:
- string
- 'null'
example: https://api.example.com/v1/workspaces
from:
type:
- integer
- 'null'
example: 1
to:
type:
- integer
- 'null'
example: 15
data:
type: array
items: {}
type: object
Session:
title: Session
description: A representation of a session
properties:
uuid:
type: string
format: uuid
example: 123e4567-e89b-12d3-a456-426614174000
organisation_uuid:
type: string
format: uuid
example: 123e4567-e89b-12d3-a456-426614174000
visitor_uuid:
description: The visitor (client) ID of the browser this session belongs to, the same value the tracker sends as `anonymous_id` and Spotter returns. Stable per browser until its storage is cleared, and shared across every session of that visitor, so it can be joined against an ID minted client-side.
type: string
format: uuid
example: 123e4567-e89b-12d3-a456-426614174000
started_at:
type: string
format: date-time
example: '2021-01-01T00:00:00Z'
ended_at:
type: string
format: date-time
example: '2021-01-01T00:00:00Z'
location:
$ref: '#/components/schemas/Location'
browser:
description: The browser used during the session
type:
- string
- 'null'
example: Chrome
referrer:
description: The referring URL from which the session originated
type:
- string
- 'null'
example: https://google.com
device_type:
description: The type of device used (e.g., desktop, mobile, tablet)
type:
- string
- 'null'
example: mobile
views:
description: 'Deprecated: Use `events` instead. Only contains pageview events.'
type: array
items:
properties:
visited_at:
type: string
format: date-time
example: '2021-01-01T00:00:00Z'
time_on_page:
type: integer
example: 0
url:
type: string
example: https://acme.com/page?foo=bar#baz
type: object
deprecated: true
events:
description: All tracking events in the session (pageviews, form submissions, custom events, clicks, downloads)
type: array
items:
$ref: '#/components/schemas/SessionEvent'
type: object
SessionEvent:
title: SessionEvent
description: A tracking event within a session. Additional fields depend on event_type.
properties:
event_type:
description: The type of event
type: string
enum:
- pageview
- form_submit
- form_abandon
- track
- click
- download
example: pageview
url:
description: The URL where the event occurred
type: string
example: https://acme.com/pricing
triggered_at:
description: When the event was triggered
type: string
format: date-time
example: '2021-01-01T00:00:00Z'
time_on_page:
description: Time spent on page in seconds (pageview only)
type:
- integer
- 'null'
example: 45
form_id:
description: The form element ID (form_submit and form_abandon)
type:
- string
- 'null'
example: contact-form
form_name:
description: The form name (form_submit and form_abandon)
type:
- string
- 'null'
example: Contact Form
time_spent:
description: Seconds spent interacting with the form before leaving (form_abandon only)
type:
- integer
- 'null'
example: 54
fields:
description: Form field values captured (form_submit and form_abandon)
type:
- array
- 'null'
items:
properties:
name:
type: string
value:
type: string
type: object
name:
description: Event name (track, click, download only)
type:
- string
- 'null'
example: plan_selected
properties:
description: Event properties (track, click, download only)
type:
- array
- 'null'
items:
properties:
name:
type: string
value:
type: string
type: object
type: object
Location:
title: Location
description: Representation of an location in API responses
properties:
country:
description: Maps an Organisation object to an API response.
type: string
example: US
state:
type: string
example: California
city:
type: string
example: Los Angeles
latitude:
type: number
example: 34.0522
longitude:
type: number
example: -118.2437
type: object
securitySchemes:
Snitcher_bearer_token:
type: http
description: Enter your personal access token (PAT) to authenticate
bearerFormat: JWT
scheme: bearer