Actions40
- AI Actions
- Business Actions
- Calculate Actions
- Code Actions
- Convert Actions
- Crypto Actions
- Generate Actions
- Operator Actions
- PDF Actions
- Storage Actions
Storage → JSON Bin Storage
AI-generatedOverview
The Storage: JSON Bin Storage operation in the 0CodeKit n8n node provides a way to manage JSON data "bins"—essentially, small JSON objects that can be stored, retrieved, updated, listed, or deleted via an API. This is useful for workflows that need temporary or persistent storage of structured data, such as caching results, sharing state between workflow executions, or managing configuration/data snapshots.
Practical examples:
- Storing user session data or tokens between workflow steps.
- Saving and retrieving configuration blobs for dynamic workflow behavior.
- Listing all stored JSON bins for audit or management purposes.
Properties
| Name | Meaning |
|---|---|
| Choose a JSON Bin Operation | Selects the action to perform on the JSON bin. Options: Add a New JSON Bin, Delete a Stored JSON Bin, Get a JSON, List All Your JSON Bins, Update a JSON Bin |
| JSON or JSON String | The JSON object or string to store or update in the bin. Required when adding or updating a bin. |
| Bin ID of the JSON | The unique identifier of the JSON bin. Required when getting, deleting, or updating a specific bin. |
Output
The output will be a JSON object (or array of objects) representing the result of the selected operation:
- Add a New JSON Bin: Returns details about the newly created bin, including its ID and possibly the stored content.
- Delete a Stored JSON Bin: Returns confirmation of deletion, typically with the bin ID.
- Get a JSON: Returns the contents of the specified bin.
- List All Your JSON Bins: Returns an array of metadata for each bin (e.g., IDs, timestamps).
- Update a JSON Bin: Returns the updated bin's details.
Note: If an error occurs and "Continue On Fail" is enabled, the output will include an
errorfield with the error message.
Dependencies
- External Service: Requires access to the CodeKit API endpoint for storage operations.
- Credentials: Needs a configured
codeKitApicredential in n8n. - Environment: No special environment variables are required beyond standard n8n setup.
Troubleshooting
Common Issues:
- Missing or invalid credentials: Ensure the
codeKitApicredential is set up correctly in n8n. - Invalid Bin ID: Supplying a non-existent or malformed Bin ID will result in errors when getting, updating, or deleting.
- Malformed JSON: When adding or updating, ensure the JSON input is valid; otherwise, the operation may fail.
Error Messages:
"Cannot read property '...' of undefined": Likely due to missing required fields (e.g., Bin ID or JSON content)."Request failed with status code ...": Indicates an issue with the external API (e.g., authentication, not found, server error).
How to resolve:
- Double-check all required fields for the chosen operation.
- Validate your JSON before submitting.
- Verify that the Bin ID exists for get, update, or delete actions.
- Check your API credentials and network connectivity.
Links and References
- n8n Documentation
- 0CodeKit Node Information (if available)
- JSON Bin Concept (for general understanding of JSON bin storage)