---
source_url: https://www.pubnub.com/docs/sdks/redux/commands
title: Commands API for Redux SDK
updated_at: 2026-06-01T05:31:24.193Z
---

> Documentation Index
> For a curated overview of PubNub documentation, see: https://www.pubnub.com/docs/llms.txt
> For the full list of all documentation pages, see: https://www.pubnub.com/docs/llms-full.txt


# Commands API for Redux SDK

Commands are functions that your app can dispatch to perform PubNub server operations and process the response. When you dispatch a command, the command returns an action that the process has begun. After the operation is performed on the PubNub server, the command dispatches an action that acknowledges either the success or failure of the operation. The reducer that responds to each action updates the application state in your store.

The commands for each feature fall into the following operational categories:

### Fetch operations

| Command Name | Description |
| --- | --- |
| [fetchUserData](https://www.pubnub.com/docs/sdks/redux/api-reference/users#fetchuserdata) | Returns the specified user object, optionally including the user's custom data object. |
| [fetchAllUserData](https://www.pubnub.com/docs/sdks/redux/api-reference/users#fetchalluserdata) | Returns a paginated list of user objects, optionally including each user's custom data object. |
| [fetchChannelData](https://www.pubnub.com/docs/sdks/redux/api-reference/channels#fetchchanneldata) | Returns the specified channel object, optionally including the channel's custom data object. |
| [fetchAllChannelData](https://www.pubnub.com/docs/sdks/redux/api-reference/channels#fetchallchanneldata) | Returns a paginated list of channel objects, optionally including each channel's custom data object. |
| [fetchMemberships](https://www.pubnub.com/docs/sdks/redux/api-reference/memberships#fetchmemberships) | Returns a list of channel memberships for a specified user. |
| [fetchChannelMembers](https://www.pubnub.com/docs/sdks/redux/api-reference/members#fetchchannelmembers) | Returns a list of members in a specified channel. |
| [fetchMessageHistory](https://www.pubnub.com/docs/sdks/redux/api-reference/messages#fetchmessagehistory) | Fetch historical messages of a channel. |
| [fetchHereNow](https://www.pubnub.com/docs/sdks/redux/api-reference/presence#fetchherenow) | Obtain information about the current state of a channel, including a list of unique `userId`s currently subscribed to the channel and the total occupancy count of the channel. |
| [fetchPresenceState](https://www.pubnub.com/docs/sdks/redux/api-reference/presence#fetchpresencestate) | Get the current state information based on the current `uuid` for either specified `channels` or `channelGroups`. |

### Set operations

| Command Name | Description |
| --- | --- |
| [setUserData](https://www.pubnub.com/docs/sdks/redux/api-reference/users#setuserdata) | Set data associated with a UUID. |
| [setChannelData](https://www.pubnub.com/docs/sdks/redux/api-reference/channels#setchanneldata) | Set data associated with a channel. |
| [setMemberships](https://www.pubnub.com/docs/sdks/redux/api-reference/memberships#setmemberships) | Set user memberships for a list of channels. |
| [setChannelMembers](https://www.pubnub.com/docs/sdks/redux/api-reference/members#setchannelmembers) | Set channel memberships for a list of users. |

### Delete operations

| Command Name | Description |
| --- | --- |
| [removeUserData](https://www.pubnub.com/docs/sdks/redux/api-reference/users#removeuserdata) | Deletes the specified user object. |
| [removeChannelData](https://www.pubnub.com/docs/sdks/redux/api-reference/channels#removechanneldata) | Deletes the specified channel object. |
| [removeMemberships](https://www.pubnub.com/docs/sdks/redux/api-reference/memberships#removememberships) | Remove a user from a list of channel. |
| [removeChannelMembers](https://www.pubnub.com/docs/sdks/redux/api-reference/members#removechannelmembers) | Remove a list of members from a channel. |

### Send operations

| Command Name | Description |
| --- | --- |
| [sendMessage](https://www.pubnub.com/docs/sdks/redux/api-reference/messages#sendmessage) | Send a message packaged in a request object. |

## External references

For more details about the concepts discussed in the PubNub Redux framework documentation, you should review the following references:

* [PubNub JavaScript SDK Reference](https://www.pubnub.com/docs/sdks/javascript/api-reference/configuration)
* [PubNub REST API SDK Reference](https://www.pubnub.com/docs/sdks/rest-api)
* [Redux API Reference](https://redux.js.org/api/api-reference)