# Epic 7: API Coverage & n8n Integration - GitHub Pages Documentation
<!-- Powered by BMAD™ Core -->
## Epic Goal
Create comprehensive documentation of n8n REST API coverage, integration details, known limitations, workarounds, and version compatibility to enable users to understand the full scope of available functionality, work around API restrictions, and ensure compatibility with their n8n instances.
## Epic Description
### Existing System Context
**Current Relevant Functionality:**
- 83% coverage of n8n REST API v1 (19/23 methods fully implemented, 4 with informative guidance)
- Complete integration with n8n REST API v1
- Tested and validated against n8n version 1.82.3
- Comprehensive API documentation in docs/n8n-api-docs/
- Epic 2 validation completed with 100% test success rate
- Known API limitations documented with workarounds
**API Coverage Breakdown:**
- **Workflows API:** 8 methods, 75% coverage (6 fully implemented, 2 API limitations)
- **Executions API:** 4 methods, 100% coverage (all fully implemented)
- **Credentials API:** 6 methods, 67% coverage (4 fully implemented, 2 security restrictions)
- **Tags API:** 5 methods, 100% coverage (all fully implemented)
**Technology Stack:**
- n8n REST API v1 (tested with 1.82.3)
- HTTP/HTTPS communication via Axios
- API key authentication (X-N8N-API-KEY header)
- JSON request/response format
- Multi-instance support for different n8n versions
**Integration Points:**
- docs/API-COVERAGE-ANALYSIS.md - Coverage analysis
- docs/n8n-api-docs/ - Complete API documentation (8 files)
- src/services/n8nApiWrapper.ts - API method implementations
- Epic 2 documentation - Validation and test results
- README.md - API coverage summary
### Enhancement Details
**Current Situation:**
**✅ Existing Documentation:**
- docs/API-COVERAGE-ANALYSIS.md provides detailed coverage analysis
- docs/n8n-api-docs/ contains 8 comprehensive API documentation files
- README.md includes API coverage section with visual table
- Epic 2 completion documentation with test results
- Known limitations documented in multiple places
**📋 Implementation Status:**
- All 23 official n8n REST API v1 methods analyzed
- 19 methods fully implemented and tested
- 4 methods return informative guidance (API limitations)
- 100% test success rate for all implemented methods
- Multi-instance support validated
**⚠️ Current Gaps for GitHub Pages:**
- API coverage not presented in unified, searchable format
- Method-by-method documentation scattered across files
- Limitations and workarounds not consolidated
- Version compatibility matrix missing
- Integration guide for specific n8n versions not available
- No visual API coverage dashboard
- Troubleshooting for API-specific issues scattered
**What's Being Added/Changed:**
1. **API Coverage Summary & Visualization (Story 7.1):**
- Executive summary with 83% coverage highlight
- Visual coverage matrix by category
- Method implementation status table
- Coverage trends and roadmap
- Interactive API explorer (if possible)
- Quick reference cards per category
2. **Workflows API Documentation (Story 7.2):**
- Complete documentation for all 8 methods
- 6 fully implemented methods with examples
- 2 API limitation methods with workarounds
- Request/response specifications
- Common workflows and patterns
- Performance considerations
- Best practices
3. **Executions API Documentation (Story 7.3):**
- Complete documentation for all 4 methods
- 100% implementation coverage
- Filtering and pagination guide
- Retry workflow patterns
- Monitoring and alerting integration
- Performance optimization
4. **Credentials API Documentation (Story 7.4):**
- Complete documentation for all 6 methods
- 4 fully implemented methods
- 2 security restriction methods with alternatives
- Schema-driven creation workflow
- DELETE + CREATE update pattern
- Security best practices
- Multi-environment credential management
5. **Tags API Documentation (Story 7.5):**
- Complete documentation for all 5 methods
- 100% implementation coverage
- Tag organization patterns
- Workflow categorization strategies
- Bulk operations
6. **Known API Limitations & Workarounds (Story 7.6):**
- Comprehensive catalog of API limitations
- Workarounds for each limitation
- Alternative approaches
- n8n UI integration when necessary
- Future roadmap for limitations
- Community contributions for solutions
7. **n8n Version Compatibility Guide (Story 7.7):**
- Compatibility matrix by n8n version
- Version-specific notes and limitations
- Migration guide between n8n versions
- Deprecation notices
- Feature availability by version
- Testing against different versions
**How It Integrates:**
- Builds on Epic 2 validation results
- References Epic 4 (tools) for implementation details
- Links to Epic 8 (troubleshooting) for API issues
- Provides technical depth for Epic 3 (installation)
- Complements Epic 5 (multi-instance) with version compatibility
- Supports developers understanding API capabilities
**Success Criteria:**
1. ✅ All 23 n8n REST API methods documented with status
2. ✅ API coverage clearly presented (83% with visual)
3. ✅ Known limitations cataloged with workarounds
4. ✅ Version compatibility matrix complete
5. ✅ Integration guide for different n8n versions
6. ✅ Searchable API reference format
7. ✅ Visual coverage dashboard
8. ✅ Links to detailed API documentation functional
## Stories
This epic consists of 7 user stories organized by API category and cross-cutting concerns:
### Phase 1: Overview (Story 7.1)
#### Story 7.1: API Coverage Summary & Visualization
**📄 File:** `docs/stories/7.1.api-coverage-summary-visualization.md`
**Description:** Create comprehensive API coverage summary with visual presentation, coverage statistics, and quick reference for all API categories.
**User Story:**
> As a developer evaluating n8n-workflow-builder, I want a clear overview of API coverage, so that I can understand what functionality is available and what limitations exist.
**Scope:**
- **Executive Summary:**
- Overall coverage: 83% (19/23 methods fully implemented)
- Category breakdown with percentages
- Implementation status legend
- Key achievements and milestones
- Roadmap for remaining coverage
- **Visual Coverage Matrix:**
- Coverage by category (bar chart or similar)
- Method implementation status (color-coded table)
- Trend visualization (if historical data available)
- Interactive elements (expandable sections)
- **Coverage Statistics:**
- Total methods: 23 (official n8n REST API v1)
- Fully implemented: 19 (83%)
- Partially implemented (informative guidance): 4 (17%)
- Category-specific statistics
- Test success rate: 100%
- **Method Status Table:**
| Category | Total | Fully Implemented | Partial | Coverage % |
|----------|-------|-------------------|---------|------------|
| Workflows | 8 | 6 | 2 | 75% |
| Executions | 4 | 4 | 0 | 100% |
| Credentials | 6 | 4 | 2 | 67% |
| Tags | 5 | 5 | 0 | 100% |
| **TOTAL** | **23** | **19** | **4** | **83%** |
- **Quick Reference Cards:**
- One card per category
- Available methods list
- Key features
- Limitations summary
- Links to detailed documentation
- **Roadmap & Future Work:**
- Plans for addressing partial implementations
- Potential new methods from n8n updates
- Community contribution opportunities
- Version compatibility improvements
**Key Acceptance Criteria:**
1. Executive summary clear and compelling
2. Visual coverage matrix accurate and informative
3. Statistics comprehensive and up-to-date
4. Method status table complete for all 23 methods
5. Quick reference cards for all 4 categories
6. Roadmap realistic and actionable
7. Links to detailed documentation functional
8. Mobile-responsive visualization
**Estimated Complexity:** Medium
**Dependencies:** None
**Blocking:** Stories 7.2-7.5 (category-specific docs reference this)
---
### Phase 2: API Category Documentation (Stories 7.2-7.5)
#### Story 7.2: Workflows API Complete Documentation (8 methods, 75%)
**📄 File:** `docs/stories/7.2.workflows-api-documentation.md`
**Description:** Comprehensive documentation for all 8 Workflows API methods including fully implemented and API limitation methods.
**User Story:**
> As a developer working with n8n workflows, I want complete documentation for all Workflows API methods, so that I can understand available operations, limitations, and workarounds.
**Scope:**
**Fully Implemented Methods (6):**
- **GET /api/v1/workflows** (`list_workflows`)
- Implementation: n8nApiWrapper.ts:170
- Returns: Streamlined metadata (ID, name, active, dates, nodeCount, tags)
- Filtering: By active status
- Performance: Optimized for large datasets (no full workflow JSON)
- Examples: List all, filter active only
- Best practices: Use for dashboards and listings
- **GET /api/v1/workflows/{id}** (`get_workflow`)
- Implementation: n8nApiWrapper.ts:78
- Returns: Complete workflow JSON (nodes, connections, settings)
- Use cases: Editing, versioning, backup
- Examples: Retrieve specific workflow
- Best practices: Cache results when possible
- **POST /api/v1/workflows** (`create_workflow`)
- Implementation: n8nApiWrapper.ts:59
- Accepts: Workflow specification with nodes and connections
- Validation: validateWorkflowSpec(), connection transformation
- Special handling: Set node parameters, array-to-object connections
- Examples: Simple workflow, complex workflow, template-based
- Best practices: Validate before create, use templates
- **PUT /api/v1/workflows/{id}** (`update_workflow`)
- Implementation: n8nApiWrapper.ts:93
- Operation: Full workflow replacement
- Use cases: Major workflow changes, versioning
- Examples: Complete update
- Best practices: Get workflow first, validate, then update
- **PATCH /api/v1/workflows/{id}** (`patch_workflow`)
- Implementation: n8nApiWrapper.ts:110
- Operation: Partial workflow update
- Use cases: Rename, change settings, modify specific nodes
- Examples: Rename only, update settings, add node
- Best practices: Use PATCH for incremental changes vs PUT for full replacement
- **DELETE /api/v1/workflows/{id}** (`delete_workflow`)
- Implementation: n8nApiWrapper.ts:127
- Operation: Permanent deletion
- Cascade: Execution records retained (orphaned)
- Examples: Delete unused workflow
- Best practices: Confirm before delete, backup important workflows
**API Limitation Methods (2):**
- **PUT /api/v1/workflows/{id}/activate** (`activate_workflow`)
- Status: ⚠️ Returns informative guidance
- Limitation: n8n API v2.0.3+ has read-only 'active' field
- Reason: API design decision by n8n team
- Workaround: Manual activation via n8n web UI
- Alternative: Use n8n UI, automate with browser automation (not recommended)
- Future: Monitor n8n API changes for potential support
- Examples: Error message, UI navigation guide
- **PUT /api/v1/workflows/{id}/deactivate** (`deactivate_workflow`)
- Status: ⚠️ Returns informative guidance
- Limitation: Same as activate (read-only 'active' field)
- Reason: Consistent with activate limitation
- Workaround: Manual deactivation via n8n web UI
- Examples: Error message, UI navigation guide
**Common Patterns:**
- Create → Get → Update workflow
- List → Filter → Get details workflow
- Create → Manually Activate → Monitor workflow
- PATCH for incremental vs PUT for full updates
**Key Acceptance Criteria:**
1. All 8 methods documented completely
2. Request/response examples for each method
3. API limitations clearly explained with workarounds
4. Common workflows illustrated
5. Code examples tested against n8n 1.82.3
6. Performance considerations included
7. Best practices actionable
8. Links to Epic 4 (tools) and Epic 8 (troubleshooting)
**Estimated Complexity:** High
**Dependencies:** Story 7.1 (coverage overview)
**Blocking:** None
---
#### Story 7.3: Executions API Complete Documentation (4 methods, 100%)
**📄 File:** `docs/stories/7.3.executions-api-documentation.md`
**Description:** Comprehensive documentation for all 4 Executions API methods with 100% implementation coverage.
**User Story:**
> As a developer monitoring workflow executions, I want complete documentation for all Executions API methods, so that I can effectively track, retry, and manage workflow executions.
**Scope:**
**All Methods Fully Implemented (4):**
- **GET /api/v1/executions** (`list_executions`)
- Implementation: n8nApiWrapper.ts:232
- Filtering: status, workflowId, projectId
- Pagination: limit, cursor (cursor-based)
- includeData: Optional full execution data
- Returns: Execution metadata array
- Examples: All executions, filter by workflow, filter by status, paginated
- Performance: Use filters to reduce data transfer
- Best practices: Pagination for large datasets, includeData sparingly
- **GET /api/v1/executions/{id}** (`get_execution`)
- Implementation: n8nApiWrapper.ts:247
- Parameters: id (required), includeData (optional)
- Returns: Single execution with full details
- Status interpretation: success, error, waiting, running
- Examples: Get with data, get metadata only
- Use cases: Debugging, audit trail, monitoring
- Best practices: Use includeData=false for metadata-only queries
- **DELETE /api/v1/executions/{id}** (`delete_execution`)
- Implementation: n8nApiWrapper.ts:263
- Operation: Permanent deletion of execution record
- Cascade: None (workflow remains)
- Use cases: Cleanup, privacy compliance, storage management
- Examples: Delete single execution, bulk deletion pattern
- Best practices: Retention policies, regular cleanup
- **POST /api/v1/executions/{id}/retry** (`retry_execution`)
- Implementation: n8nApiWrapper.ts:278
- Condition: Only works for executions with status 'error'
- Behavior: Creates new execution as retry of original
- Returns: New execution ID and metadata
- Use cases: Error recovery, automated retry logic
- Examples: Retry failed execution, retry with modifications
- Best practices: Limit retry attempts, log retry history
**Execution Status Values:**
- `success` - Execution completed successfully
- `error` - Execution failed with errors
- `waiting` - Execution waiting for trigger or dependency
- `running` - Currently executing
- `unknown` - Status unknown or not set
**Monitoring Patterns:**
- Real-time execution tracking
- Error detection and alerting
- Execution history analysis
- Performance metrics collection
- Automated retry workflows
**Key Acceptance Criteria:**
1. All 4 methods documented completely
2. Filtering and pagination examples comprehensive
3. Execution status values explained
4. includeData usage clearly demonstrated
5. Retry workflow patterns illustrated
6. Monitoring integration examples provided
7. Performance optimization guidance included
8. Code examples tested
**Estimated Complexity:** Medium
**Dependencies:** Story 7.1 (coverage overview)
**Blocking:** None
---
#### Story 7.4: Credentials API Complete Documentation (6 methods, 67%)
**📄 File:** `docs/stories/7.4.credentials-api-documentation.md`
**Description:** Comprehensive documentation for all 6 Credentials API methods including security restrictions and workarounds.
**User Story:**
> As a developer managing n8n credentials, I want complete documentation for all Credentials API methods including security limitations, so that I can safely create and manage credentials with understanding of restrictions.
**Scope:**
**Fully Implemented Methods (4):**
- **GET /api/v1/credentials** (`list_credentials`)
- Implementation: n8nApiWrapper.ts:420
- Returns: Metadata only (ID, name, type, nodesAccess, timestamps)
- Security: Secret data NOT returned
- Pagination: limit, cursor
- Examples: List all, paginated retrieval
- Use cases: Credential inventory, UI dropdowns
- Best practices: Never log credential data
- **POST /api/v1/credentials** (`create_credential`)
- Implementation: n8nApiWrapper.ts:435
- Schema-driven: Use get_credential_schema first
- Encryption: Automatic by n8n
- Supported types: httpBasicAuth, httpHeaderAuth, oAuth2Api, etc.
- Examples: Basic Auth, Header Auth, OAuth2
- Workflow: Get schema → Validate data → Create
- Best practices: Schema validation, secure storage of API keys
- **DELETE /api/v1/credentials/{id}** (`delete_credential`)
- Implementation: n8nApiWrapper.ts:465
- Operation: Permanent deletion
- Cascade: Workflows using credential must be updated
- Use cases: Credential rotation, cleanup, security
- Examples: Delete single credential
- Best practices: Check workflow usage first, confirm deletion
- **GET /api/v1/credentials/schema/{typeName}** (`get_credential_schema`)
- Implementation: n8nApiWrapper.ts:450
- Returns: JSON schema for credential type
- Supported types: All n8n credential types
- Use cases: Schema-driven creation, validation, UI generation
- Examples: httpBasicAuth, httpHeaderAuth, oAuth2Api schemas
- Workflow: Schema → Data preparation → Create
- Best practices: Always validate against schema
**Security Restriction Methods (2):**
- **GET /api/v1/credentials/{id}** (`get_credential`)
- Status: ⚠️ Returns informative guidance (405 Method Not Allowed)
- Limitation: n8n blocks credential reading for security
- Reason: Prevent credential data exposure, audit trail protection
- Alternatives:
1. View in n8n web UI (most common)
2. Use in workflow nodes (credential injection)
3. Recreate using known values
- Workaround: Use list_credentials for metadata
- Security rationale: Credentials contain sensitive data (API keys, passwords, tokens)
- Examples: Error response, alternative approaches
- **PUT /api/v1/credentials/{id}** (`update_credential`)
- Status: ⚠️ Returns informative guidance (immutability)
- Limitation: Credentials are immutable for security/audit
- Reason: Maintain audit trail, prevent unauthorized changes
- Workaround: DELETE + CREATE pattern
- Pattern steps:
1. Delete old credential
2. Create new credential with same name/type
3. Update workflows if ID changed
- Examples: DELETE + CREATE code example
- Alternative: Update via n8n web UI
- Best practices: Document credential updates, test workflows after
**Schema-Driven Creation Workflow:**
```
1. get_credential_schema(typeName) → Get required fields
2. Prepare credential data → Validate against schema
3. create_credential(name, type, data) → Encrypted storage
4. Use in workflows → Auto-injection by n8n
```
**Security Best Practices:**
- Never log credential data
- Use schema validation before creation
- Rotate credentials regularly
- Isolate credentials per environment
- Use DELETE + CREATE for "updates"
- Monitor credential usage in workflows
**Key Acceptance Criteria:**
1. All 6 methods documented completely
2. Security restrictions clearly explained
3. DELETE + CREATE pattern detailed with examples
4. Schema-driven workflow illustrated
5. Security best practices prominent
6. Credential types reference provided
7. Multi-environment patterns documented
8. Code examples tested
**Estimated Complexity:** High
**Dependencies:** Story 7.1 (coverage overview)
**Blocking:** None
---
#### Story 7.5: Tags API Complete Documentation (5 methods, 100%)
**📄 File:** `docs/stories/7.5.tags-api-documentation.md`
**Description:** Comprehensive documentation for all 5 Tags API methods with 100% implementation coverage.
**User Story:**
> As a developer organizing workflows with tags, I want complete documentation for all Tags API methods, so that I can effectively categorize and manage workflows using tags.
**Scope:**
**All Methods Fully Implemented (5):**
- **POST /api/v1/tags** (`create_tag`)
- Implementation: n8nApiWrapper.ts:344
- Parameters: name (required, unique)
- Returns: Tag object with ID
- Validation: Name uniqueness enforced
- Examples: Create category tag, environment tag
- Best practices: Consistent naming conventions, descriptive names
- **GET /api/v1/tags** (`get_tags`)
- Implementation: n8nApiWrapper.ts:359
- Pagination: limit, cursor
- Returns: Array of all tags
- Sorting: By name or ID
- Examples: List all tags, paginated retrieval
- Use cases: Tag selection UI, organization overview
- **GET /api/v1/tags/{id}** (`get_tag`)
- Implementation: n8nApiWrapper.ts:374
- Returns: Single tag with details
- Include: Usage count in workflows (if available)
- Examples: Get specific tag
- Use cases: Tag details, validation
- **PUT /api/v1/tags/{id}** (`update_tag`)
- Implementation: n8nApiWrapper.ts:389
- Parameters: id, name (new name)
- Cascade: Automatically updates all workflows with tag
- Conflict: 409 error if new name already exists
- Examples: Rename tag
- Workaround for conflicts: Use UUID in name or delete duplicate
- Best practices: Verify name availability first
- **DELETE /api/v1/tags/{id}** (`delete_tag`)
- Implementation: n8nApiWrapper.ts:404
- Cascade: Removes tag from all workflows
- Returns: Deleted tag object
- Examples: Delete unused tag
- Best practices: Confirm tag not in use, backup if important
**Tag Organization Patterns:**
- **By Environment:** production, staging, development, testing
- **By Category:** automation, integration, data-processing, reporting
- **By Team:** team-a, team-b, marketing, engineering
- **By Priority:** critical, high, medium, low
- **By Status:** active, deprecated, archived, experimental
- **Hierarchical:** project:feature, category:subcategory (using naming convention)
**Tag Workflows:**
- Create tags → Assign to workflows → Filter by tags
- Bulk tagging: Tag multiple workflows at once
- Tag-based organization: Organize large workflow collections
- Tag-based queries: Find workflows by tag combination
**Key Acceptance Criteria:**
1. All 5 methods documented completely
2. Tag organization patterns illustrated
3. Conflict handling (409 errors) documented
4. Cascade behavior explained
5. Naming conventions and best practices provided
6. Bulk tagging patterns demonstrated
7. Code examples tested
8. Use cases comprehensive
**Estimated Complexity:** Low
**Dependencies:** Story 7.1 (coverage overview)
**Blocking:** None
---
### Phase 3: Cross-Cutting Concerns (Stories 7.6-7.7)
#### Story 7.6: Known API Limitations & Workarounds Catalog
**📄 File:** `docs/stories/7.6.api-limitations-workarounds.md`
**Description:** Comprehensive catalog of all known n8n API limitations with detailed workarounds, alternatives, and future roadmap.
**User Story:**
> As a developer working around API limitations, I want a consolidated catalog of all known limitations and workarounds, so that I can plan implementations and find solutions quickly.
**Scope:**
- **Limitations Catalog:**
- Workflow activation/deactivation (read-only 'active' field)
- Credential reading restriction (security)
- Credential update restriction (immutability)
- Manual workflow execution via API (not supported)
- Tag name uniqueness conflicts
- **Workflow Activation/Deactivation Limitation:**
- **Issue:** PUT /workflows/{id}/activate and /deactivate return errors
- **API Version:** n8n v2.0.3+
- **Reason:** 'active' field is read-only in API
- **Impact:** Cannot programmatically activate/deactivate workflows
- **Workarounds:**
1. Manual activation via n8n web UI (recommended)
2. Workflows created active by default (design around this)
3. Use test instances with permanent activation
- **Alternative Approaches:**
- Create workflows in desired state initially
- Use separate instances for active/inactive workflows
- **Future Outlook:** Monitor n8n API changelog for changes
- **Community Input:** Feature request exists in n8n repository
- **Credential GET Limitation:**
- **Issue:** GET /credentials/{id} returns 405 Method Not Allowed
- **Reason:** Security - prevents credential data exposure
- **Impact:** Cannot retrieve credential details programmatically
- **Workarounds:**
1. Use list_credentials for metadata
2. View in n8n web UI
3. Document credentials externally
4. Use credential schemas to understand structure
- **Best Practice:** Treat as security feature, not limitation
- **Security Rationale:** Protects API keys, passwords, tokens from exposure
- **Credential UPDATE Limitation:**
- **Issue:** PUT /credentials/{id} not directly supported
- **Reason:** Immutability for security and audit trail
- **Impact:** Cannot modify existing credentials
- **Workaround:** DELETE + CREATE pattern
```javascript
// Step 1: Delete old credential
await delete_credential({ id: oldCredId });
// Step 2: Create new credential
const newCred = await create_credential({
name: 'Same Name',
type: 'httpBasicAuth',
data: { user: 'newuser', password: 'newpass' }
});
// Step 3: Update workflows if ID changed
// (Manual step or automation needed)
```
- **Alternative:** Update via n8n web UI
- **Best Practice:** Document credential rotation process
- **Manual Workflow Execution Limitation:**
- **Issue:** execute_workflow tool provides guidance only
- **Reason:** n8n API doesn't support manual trigger execution via REST
- **Impact:** Workflows with manual triggers cannot be executed via API
- **Workarounds:**
1. Execute manually via n8n web UI
2. Convert Manual Trigger to Webhook Trigger
3. Use Schedule Trigger for automated execution
4. Use other trigger types (service-specific triggers)
- **Design Recommendation:** Use webhook or schedule triggers for API-driven workflows
- **Tag Name Uniqueness Conflicts:**
- **Issue:** UPDATE tag with existing name returns 409 Conflict
- **Impact:** Cannot rename tag to name that exists
- **Workaround:**
1. Delete duplicate tag first
2. Use UUID in tag names for uniqueness
3. Check name availability before update
- **Best Practice:** Centralized tag naming conventions
**Limitation Impact Matrix:**
| Limitation | Severity | Workaround Complexity | User Impact |
|------------|----------|----------------------|-------------|
| Activation/Deactivation | Medium | Low (manual UI) | Moderate |
| Credential GET | Low | Low (use list) | Low |
| Credential UPDATE | Medium | Medium (DELETE+CREATE) | Moderate |
| Manual Execution | Medium | Medium (trigger change) | Moderate |
| Tag Conflicts | Low | Low (check first) | Low |
**Future Roadmap:**
- Monitor n8n API updates for limitation resolution
- Community contributions for alternative approaches
- Feature requests tracking
- Backward compatibility considerations
**Key Acceptance Criteria:**
1. All known limitations cataloged
2. Each limitation has detailed workaround
3. Impact assessment provided
4. Alternative approaches documented
5. Code examples for workarounds
6. Future roadmap realistic
7. Links to n8n documentation and issues
8. Links to Epic 8 (troubleshooting)
**Estimated Complexity:** Medium
**Dependencies:** Stories 7.2-7.5 (all API categories)
**Blocking:** None
---
#### Story 7.7: n8n Version Compatibility Guide
**📄 File:** `docs/stories/7.7.n8n-version-compatibility.md`
**Description:** Comprehensive guide to n8n version compatibility including tested versions, version-specific notes, and migration guidance.
**User Story:**
> As a user with a specific n8n version, I want compatibility information, so that I can verify the MCP server will work with my n8n instance and understand any version-specific considerations.
**Scope:**
- **Compatibility Matrix:**
| n8n Version | MCP Server Version | Compatibility | Notes |
|-------------|-------------------|---------------|-------|
| 1.82.3 | 0.9.1 | ✅ Fully Tested | Primary test version |
| 2.0.x | 0.9.1 | ✅ Compatible | API v1 stable |
| 2.1.x | 0.9.1 | ✅ Compatible | API v1 stable |
| < 1.80 | 0.9.1 | ⚠️ Untested | May work but not validated |
- **Tested Version Details:**
- **Primary:** n8n 1.82.3
- **Testing Date:** 2025-12-26 (Epic 2 validation)
- **Test Coverage:** All 23 API methods
- **Success Rate:** 100% for implemented methods
- **Known Issues:** activate/deactivate, credential restrictions
- **Version-Specific Notes:**
- **n8n 1.82.3:**
- Trigger node requirements for activation
- manualTrigger not recognized as valid trigger
- scheduleTrigger, webhook work correctly
- API v1 stable and fully supported
- **n8n 2.0.x+:**
- 'active' field read-only (activation limitation)
- API v1 maintains backward compatibility
- Credential security enhanced
- **n8n Cloud:**
- URL format: `https://instance.app.n8n.cloud`
- API key from account settings
- All features supported
- **Feature Availability by Version:**
- **Workflows API:**
- All CRUD operations: v1.50+
- activate/deactivate limitation: v2.0+
- **Executions API:**
- All operations: v1.50+
- retry_execution: v1.70+
- **Credentials API:**
- Schema endpoint: v1.80+
- Security restrictions: All versions
- **Tags API:**
- All operations: v1.60+
- **Migration Between n8n Versions:**
- **Upgrading n8n:**
1. Check compatibility matrix
2. Review version-specific notes
3. Test in staging environment
4. Update workflows if needed
5. Verify MCP server connectivity
- **Breaking Changes:**
- Document known breaking changes per version
- Migration scripts if applicable
- Rollback procedures
- **Deprecation Notices:**
- Features deprecated in newer n8n versions
- Timeline for removal
- Migration paths
- **Testing Against Different Versions:**
- Recommended testing procedure
- Validation checklist per version
- Compatibility verification commands
- Automated testing approaches
- **Version Detection:**
- How to determine n8n version
- API version endpoint (if available)
- Configuration recommendations per version
**Key Acceptance Criteria:**
1. Compatibility matrix complete and accurate
2. Primary tested version (1.82.3) fully documented
3. Version-specific notes comprehensive
4. Feature availability clearly mapped
5. Migration guidance actionable
6. Testing procedures documented
7. Deprecation notices tracked
8. Links to n8n changelog and release notes
**Estimated Complexity:** Low
**Dependencies:** Stories 7.2-7.6 (all API documentation)
**Blocking:** None
---
## Story Implementation Order
**Phase 1 (Overview) - Story 7.1:**
- MUST be completed first
- Provides context for all API category documentation
- Foundational understanding
**Phase 2 (API Categories) - Stories 7.2-7.5:**
- Can be executed in parallel
- Each focuses on one API category
- All reference Story 7.1
**Recommended Sequential Order:**
1. **Story 7.2** (Workflows) - Most complex, most methods
2. **Story 7.3** (Executions) - Related to workflows
3. **Story 7.4** (Credentials) - Security-focused, complex
4. **Story 7.5** (Tags) - Simplest, workflow-related
**Phase 3 (Cross-Cutting) - Stories 7.6-7.7:**
- MUST follow Phase 2 completion
- Story 7.6 (Limitations) synthesizes from all categories
- Story 7.7 (Compatibility) provides version context
## Compatibility Requirements
- [x] Documentation matches v0.9.1 implementation
- [x] All 23 n8n API methods covered
- [x] Epic 2 validation results integrated
- [x] API coverage analysis accurate (83%)
- [x] Version compatibility verified (n8n 1.82.3)
- [x] Known limitations cataloged
- [x] Workarounds tested and documented
- [x] Cross-references to Epic 4 (tools), Epic 8 (troubleshooting)
## Risk Mitigation
**Primary Risk:** n8n API changes in newer versions
**Mitigation:**
- Version-specific documentation
- Compatibility matrix maintained
- Regular testing against new n8n versions
- Deprecation tracking
- Community contributions for new versions
- Changelog integration
**Secondary Risk:** Documentation becomes outdated
**Mitigation:**
- Reference actual API responses
- Include version tags
- Automated testing of examples
- Regular documentation review
- Epic 2 validation as baseline
- Version history tracking
**Rollback Plan:**
- Documentation changes are non-breaking
- Users can reference docs/API-COVERAGE-ANALYSIS.md
- Version history maintained
- No code changes in this epic
## Definition of Done
- [ ] All 7 stories completed with acceptance criteria met
- [ ] All 23 n8n API methods documented with status
- [ ] API coverage summary clear and visual (83%)
- [ ] All 4 API categories completely documented
- [ ] Known limitations cataloged with workarounds
- [ ] Version compatibility matrix complete
- [ ] Cross-references to other epics functional
- [ ] GitHub Pages navigation structure implemented
- [ ] Visual aids (coverage charts, tables) included
- [ ] Code examples tested against n8n 1.82.3
- [ ] Mobile-responsive content verified
- [ ] Links to n8n documentation working
### Testing Checklist
**Prerequisites:**
- [ ] n8n instance 1.82.3 available
- [ ] Epic 2 validation results accessible
- [ ] API coverage analysis reviewed
- [ ] All 17 MCP tools tested
**Documentation Quality:**
- [ ] All 23 methods accurately documented
- [ ] Coverage statistics correct (83%)
- [ ] Limitation workarounds tested
- [ ] Code examples functional
- [ ] Version compatibility verified
- [ ] Links to external n8n docs working
**Coverage Validation:**
- [ ] Workflows: 6/8 fully implemented (75%)
- [ ] Executions: 4/4 fully implemented (100%)
- [ ] Credentials: 4/6 fully implemented (67%)
- [ ] Tags: 5/5 fully implemented (100%)
- [ ] Overall: 19/23 fully implemented (83%)
**User Experience:**
- [ ] Coverage visualization clear
- [ ] API reference searchable
- [ ] Workarounds actionable
- [ ] Version compatibility easy to find
- [ ] Mobile layout readable
**Integration:**
- [ ] Links to Epic 4 (tools) working
- [ ] Links to Epic 8 (troubleshooting) working
- [ ] Links to n8n docs functional
- [ ] Cross-references accurate
## Technical Notes
### Current Documentation Sources
**docs/API-COVERAGE-ANALYSIS.md:**
- Complete coverage analysis (83%)
- Method-by-method status
- Implementation details
- Known limitations
**docs/n8n-api-docs/:**
- 00-INDEX.md - Navigation
- 01-OVERVIEW.md - API overview
- 02-AUTHENTICATION.md - Auth guide
- 03-PAGINATION.md - Pagination guide
- 10-WORKFLOWS-API.md - 8 methods
- 20-EXECUTIONS-API.md - 4 methods
- 30-CREDENTIALS-API.md - 6 methods
- 40-TAGS-API.md - 5 methods
**Epic 2 Documentation:**
- Test results for all methods
- Validation findings
- Known issues discovered
**README.md:**
- API coverage section
- Known limitations
- Version compatibility notes
### GitHub Pages Integration
**Proposed Page Structure:**
```
🔗 API Integration
├── Overview
│ └── API Coverage Summary (Story 7.1)
├── Workflows API
│ └── 8 Methods Documentation (Story 7.2)
├── Executions API
│ └── 4 Methods Documentation (Story 7.3)
├── Credentials API
│ └── 6 Methods Documentation (Story 7.4)
├── Tags API
│ └── 5 Methods Documentation (Story 7.5)
├── Limitations
│ └── Known Limitations & Workarounds (Story 7.6)
└── Compatibility
└── Version Compatibility Guide (Story 7.7)
```
### Visual Assets Needed
**Charts:**
- API coverage bar chart by category
- Coverage trend over time (if historical data)
- Implementation status pie chart
**Tables:**
- Coverage matrix (from Story 7.1)
- Method status table per category
- Version compatibility matrix
- Limitation impact matrix
**Diagrams:**
- n8n API integration architecture
- Multi-instance routing to different n8n versions
- Workaround flow diagrams
### Content Extraction Plan
**From docs/API-COVERAGE-ANALYSIS.md:**
- Coverage statistics → Story 7.1
- Method details → Stories 7.2-7.5
- Limitations → Story 7.6
**From docs/n8n-api-docs/:**
- API method specifications → Stories 7.2-7.5
- Authentication guide → Integration examples
- Pagination guide → Best practices
**From Epic 2:**
- Test results → Examples and validation
- Known issues → Story 7.6
**From README.md:**
- API coverage table → Story 7.1
- Known limitations → Story 7.6
## Story Manager Handoff
**Story Manager Handoff:**
"Please develop detailed user stories for this API coverage and n8n integration epic. Key considerations:
- This is a documentation-focused epic covering n8n REST API integration
- Content sources:
- docs/API-COVERAGE-ANALYSIS.md (complete coverage analysis, 83%)
- docs/n8n-api-docs/ (8 comprehensive API documentation files)
- Epic 2 documentation (validation results, test findings)
- README.md (API coverage section)
- Target audience:
- Primary: Developers understanding API capabilities and limitations
- Secondary: Architects evaluating MCP server coverage
- Tertiary: Users troubleshooting API-specific issues
- Documentation goals:
- Clear understanding of 83% API coverage
- Comprehensive reference for all 23 methods
- Practical workarounds for all known limitations
- Version compatibility confidence
- GitHub Pages requirements:
- Visual coverage dashboard
- Searchable API reference
- Limitation catalog with solutions
- Version compatibility matrix
- Each story must include:
- Complete method specifications
- Request/response examples
- Limitation explanations with workarounds
- Version-specific notes
- Code examples tested against n8n 1.82.3
- Links to n8n official documentation
- Visual aids where helpful
The epic should provide comprehensive API integration documentation enabling users to understand full capabilities, work around limitations, and ensure compatibility with their n8n versions."
---
## Change Log
| Date | Version | Description | Author |
|------|---------|-------------|--------|
| 2025-12-27 | 1.0 | Epic created for GitHub Pages API Coverage & n8n Integration documentation | Sarah (PO) |
## References
- **API Coverage Analysis:** docs/API-COVERAGE-ANALYSIS.md (83% coverage)
- **API Documentation:** docs/n8n-api-docs/ (8 files, 23 methods)
- **Validation Results:** Epic 2 documentation (all stories)
- **Coverage Summary:** README.md (API coverage section)
- **Epic 4:** Core Features & MCP Tools (tool implementations)
- **Epic 8:** Troubleshooting & FAQ (API-specific issues)
- **Target Version:** MCP Server 0.9.1, n8n 1.82.3
- **n8n API:** REST API v1