Redux · Schema

Redux Action

Schema for a Redux action object. Actions are plain JavaScript objects that represent an intention to change the state. Every action must have a type field.

Flux ArchitectureFrontendJavaScriptPredictable StateReactState ManagementTypeScript

Properties

Name Type Description
type string A string constant identifying the kind of action being performed. By convention written in SCREAMING_SNAKE_CASE.
payload object Any data that accompanies the action. Follows the Flux Standard Action convention.
error boolean When true, the payload is treated as an error object. Follows the Flux Standard Action convention.
meta object Extra information that is not part of the payload. Follows the Flux Standard Action convention.
View JSON Schema on GitHub

JSON Schema

redux-action-schema.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://api-evangelist.github.io/redux/json-schema/redux-action-schema.json",
  "title": "Redux Action",
  "description": "Schema for a Redux action object. Actions are plain JavaScript objects that represent an intention to change the state. Every action must have a type field.",
  "type": "object",
  "required": ["type"],
  "properties": {
    "type": {
      "description": "A string constant identifying the kind of action being performed. By convention written in SCREAMING_SNAKE_CASE.",
      "type": "string",
      "examples": [
        "INCREMENT",
        "USER_FETCH_SUCCEEDED",
        "todos/addTodo",
        "counter/increment"
      ]
    },
    "payload": {
      "description": "Any data that accompanies the action. Follows the Flux Standard Action convention.",
      "oneOf": [
        {"type": "string"},
        {"type": "number"},
        {"type": "boolean"},
        {"type": "object"},
        {"type": "array"},
        {"type": "null"}
      ]
    },
    "error": {
      "description": "When true, the payload is treated as an error object. Follows the Flux Standard Action convention.",
      "type": "boolean",
      "default": false
    },
    "meta": {
      "description": "Extra information that is not part of the payload. Follows the Flux Standard Action convention.",
      "type": "object",
      "additionalProperties": true
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "type": "INCREMENT"
    },
    {
      "type": "todos/addTodo",
      "payload": {
        "id": 1,
        "text": "Buy milk",
        "completed": false
      }
    },
    {
      "type": "USER_FETCH_FAILED",
      "payload": {
        "message": "Network request failed"
      },
      "error": true
    }
  ]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/redux-action"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.