Skip to main content
Use the Boxpressd Sites SDK to fetch and display events for the business associated with your API key. Events are automatically scoped to the resolved business context, so you do not need to manually provide a venue ID, brand ID, or business ID.

Server Function

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

Function Signature

Options

React Hook

Use useEvents when fetching events from client components.

Hook Signature

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

Event Object

Example: Calendar Range

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