# Getting All Assignments Instantaneously

{% callout type="info" %}
Invoke Statsig SDKs at the point in your code where you serve the experiment treatment or feature.
For most use cases, call `getExperiment`, `checkGate`, or `getLayer` with the user object and key at the point of use.
{% /callout %}

Some customers want to capture all assignments (experiments, gates) in a single call, for example in an edge function or on the server at the start of a user's session. This is common when passing assignment information to other applications or using assignments as cache keys for CDN and edge compute use cases.

For this use case, use the `getClientInitializeResponse` server SDK method to generate the full assignments payload.

#### Example of capturing all assignments in Node.js

Statsig designed this method to [bootstrap](https://docs.statsig.com/client/concepts/initialize#bootstrapping-overview) the client SDKs. By default, it hashes the experiment and feature keys returned in the payload to prevent end-users from spoofing into features and gates. An optional `hash` parameter lets you disable hashing and capture all group names and values in plain text: [Node](https://github.com/statsig-io/node-js-server-sdk/blob/ea116142221c1aa83b46eff8b5f2292c8f8e2d54/src/StatsigServer.ts#L597), [Python](https://github.com/statsig-io/node-js-server-sdk/blob/ea116142221c1aa83b46eff8b5f2292c8f8e2d54/src/StatsigServer.ts#L597), [Java](https://github.com/statsig-io/java-server-sdk/blob/7443c357c78616142de9257af9e4c55c877ca700/src/main/kotlin/com/statsig/sdk/StatsigServer.kt#L83), [Go](https://github.com/statsig-io/go-sdk/blob/3d7edcbe468efb0fc7a04b0d10202243403dce5f/client.go#L282).

```node
const assignments = statsig.getClientInitializeResponse(userObj, "client-key", {hash: "none"});
```
