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.
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:
Page | Description |
---|---|
middleware | Learn how to handle SDK logic between client and server. |
withCroct | Learn how to use Croct middleware in a Next.js API route. |
evaluate | Learn how to evaluate a CQL query using a standalone function. |
cql | Learn how to evaluate a CQL query using a tag function. |
fetchContent | Learn how to fetch content using a standalone function. |
identify | Learn how to identify a user using a standalone function. |
anonymize | Learn how to anonymize an identified user using a standalone function. |