Functions

Discover all the utility functions available in the Next.js SDK.

The JavaScript SDK provides a convenient set of utility functions for interacting with our client-facing APIs.

These functions can be used in any JavaScript environment, including Node.js, meaning that they can also be used in server-side rendered applications.

Croct's mascot winking
Looking for something specific?

Use the search bar at the top of the page or press / to quickly search through the documentation.

Use the summary below to quickly jump to a specific topic:

PageDescription
middlewareLearn how to handle SDK logic between client and server.
withCroctLearn how to use Croct middleware in a Next.js API route.
evaluateLearn how to evaluate a CQL query using a standalone function.
cqlLearn how to evaluate a CQL query using a tag function.
fetchContentLearn how to fetch content using a standalone function.
identifyLearn how to identify a user using a standalone function.
anonymizeLearn how to anonymize an identified user using a standalone function.