Integrations

Learn how to manage integrations in the NextCoder platform

Overview

Integrations allow you to connect your NextCoder workspaces with external services and data sources. This enables powerful automation workflows and data synchronization.

Supported Integrations

NextCoder supports integrations with:

  • GitHub - For code repositories and deployment
  • Slack - For notifications and team communication
  • Google Sheets - For data import/export
  • Airtable - For database integration
  • Stripe - For payment processing
  • Webhooks - For custom integrations

Creating an Integration

Integrations can be created through the dashboard UI or via the API.

// Create a new integration via API
const response = await fetch('/api/integrations', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    workspaceId: 'workspace-123',
    type: 'github',
    config: {
      repository: 'my-org/my-repo',
      branch: 'main',
      accessToken: 'gho_...'
    }
  }),
});

const integration = await response.json();

Integration API Endpoints

MethodEndpointDescription
GET/api/integrationsList all integrations
POST/api/integrationsCreate a new integration
GET/api/integrations/{id}Get integration details
PUT/api/integrations/{id}Update an integration
DELETE/api/integrations/{id}Delete an integration

Integration Data Model

interface Integration {
  id: string;
  workspaceId: string;
  type: string;
  configJson: string; // JSON string of configuration
  createdAt: Date;
  updatedAt: Date;
}