Skip to main content
Use the Boxpressd Sites SDK to display recent smoke session activity for the business associated with your API key. Sessions can be associated with venues, brands, cigars, and user activity depending on the data available in Boxpressd.

Server Function

Use getBoxpressdSessions when fetching sessions in server components, loaders, API routes, or other server-side code.

Function Signature

Options

React Hook

Use useSessions when fetching sessions from client components.

Hook Signature

useSessions is planned for the SDK and may not be available until a future release.

Session Object

Username Fallback

The SDK normalizes user display names when session data is returned. The display name is resolved in this order:

Example: Recent Sessions

Example: Date Range

Internally, this SDK helper calls the Boxpressd API endpoint for the resolved business:
For example:
or:
Most SDK users should use getBoxpressdSessions or useSessions instead of calling the API directly.

Best Practices

  • Use sessions as social proof on venue or brand websites.
  • Keep public session feeds recent and concise.
  • Gracefully hide the section when no sessions are available.
  • Avoid exposing sensitive user details.
  • Use the SDK’s normalized display name instead of manually building user names.

Next Steps

Continue to:
  • Events
  • Check-ins
  • Components Overview
  • API Reference