# E2E Networks Integration via LowCodeAPI

**Last Updated**: January 27, 2025

## Overview
E2E Networks is a hyperscaler cloud platform from India providing GPU cloud infrastructure, virtual compute nodes, object storage, and AI/ML services through TIR platform.

**Categories:**
- {'id': 'ai-cloud', 'name': 'AI Cloud'}

## Base Endpoint
https://api.lowcodeapi.com/e2enetworks

**Important**: Always include the provider name in the URL path after `api.lowcodeapi.com/`

## Authentication
**Type:** API_KEY

**Official Documentation:** https://docs.e2enetworks.com/api/myaccount/

## URL Format (Important)

LowCodeAPI supports two URL formats. **Always try the New Format first**, then fall back to Old Format if needed.

### New Format (Priority)
- Path parameters stay in the URL path
- Do NOT include path parameters as query parameters
- Example: `https://api.lowcodeapi.com/{provider}/resource/{id}?api_token=XXX`

### Old Format (Fallback)
- Path parameters become query parameters
- Example: `https://api.lowcodeapi.com/{provider}/resource/id?id={id}&api_token=XXX`

### Decision Flow for AI Agents
1. Always use **New Format** first - keep path parameters in the URL path
2. If you get a 404 or error, try **Old Format** with sanitized path
3. Log which format worked for future requests to this provider

## API Categories

## Common Endpoints

### List all compute nodes

**Method:** GET
**LowCodeAPI Path:** /nodes

**New Format URL:**
https://api.lowcodeapi.com/e2enetworks/nodes?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/e2enetworks/nodes?api_token=YOUR_API_TOKEN

**Query Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| limit | number |  |
| page | number |  |

**Example Request (New Format):**

```bash
curl -X GET 'https://api.lowcodeapi.com/e2enetworks/nodes?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://docs.e2enetworks.com/api/myaccount/

### Create compute node

**Method:** POST
**LowCodeAPI Path:** /nodes

**New Format URL:**
https://api.lowcodeapi.com/e2enetworks/nodes?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/e2enetworks/nodes?api_token=YOUR_API_TOKEN

**Request Body:**

| Field | Type | Description |
|-------|------|-------------|
| image_id | string |  |
| name | string |  |
| plan_id | string |  |
| ssh_key_id | string |  |
| vpc_id | string |  |

**Example Request (New Format):**

```bash
curl -X POST 'https://api.lowcodeapi.com/e2enetworks/nodes?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://docs.e2enetworks.com/docs/myaccount/node/

### Get compute node details

**Method:** GET
**LowCodeAPI Path:** /nodes/{nodeId}

**New Format URL:**
https://api.lowcodeapi.com/e2enetworks/nodes/{nodeId}?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/e2enetworks/nodes/nodeid?nodeId={nodeId}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| nodeId | string |  |

**Example Request (New Format):**

```bash
curl -X GET 'https://api.lowcodeapi.com/e2enetworks/nodes/{nodeId}?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://docs.e2enetworks.com/docs/myaccount/node/virt_comp_node/managenode/

### Update compute node

**Method:** PUT
**LowCodeAPI Path:** /nodes/{nodeId}

**New Format URL:**
https://api.lowcodeapi.com/e2enetworks/nodes/{nodeId}?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/e2enetworks/nodes/nodeid?nodeId={nodeId}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| nodeId | string |  |

**Request Body:**

| Field | Type | Description |
|-------|------|-------------|
| name | string |  |

**Example Request (New Format):**

```bash
curl -X PUT 'https://api.lowcodeapi.com/e2enetworks/nodes/{nodeId}?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://docs.e2enetworks.com/docs/myaccount/node/virt_comp_node/managenode/

### Delete compute node

**Method:** DELETE
**LowCodeAPI Path:** /nodes/{nodeId}

**New Format URL:**
https://api.lowcodeapi.com/e2enetworks/nodes/{nodeId}?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/e2enetworks/nodes/nodeid?nodeId={nodeId}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| nodeId | string |  |

**Example Request (New Format):**

```bash
curl -X DELETE 'https://api.lowcodeapi.com/e2enetworks/nodes/{nodeId}?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://docs.e2enetworks.com/docs/myaccount/node/virt_comp_node/managenode/

### Start compute node

**Method:** POST
**LowCodeAPI Path:** /nodes/{nodeId}/start

**New Format URL:**
https://api.lowcodeapi.com/e2enetworks/nodes/{nodeId}/start?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/e2enetworks/nodes/nodeid/start?nodeId={nodeId}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| nodeId | string |  |

**Example Request (New Format):**

```bash
curl -X POST 'https://api.lowcodeapi.com/e2enetworks/nodes/{nodeId}/start?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://docs.e2enetworks.com/docs/myaccount/node/virt_comp_node/managenode/

### Stop compute node

**Method:** POST
**LowCodeAPI Path:** /nodes/{nodeId}/stop

**New Format URL:**
https://api.lowcodeapi.com/e2enetworks/nodes/{nodeId}/stop?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/e2enetworks/nodes/nodeid/stop?nodeId={nodeId}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| nodeId | string |  |

**Example Request (New Format):**

```bash
curl -X POST 'https://api.lowcodeapi.com/e2enetworks/nodes/{nodeId}/stop?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://docs.e2enetworks.com/docs/myaccount/node/virt_comp_node/managenode/

### Restart compute node

**Method:** POST
**LowCodeAPI Path:** /nodes/{nodeId}/restart

**New Format URL:**
https://api.lowcodeapi.com/e2enetworks/nodes/{nodeId}/restart?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/e2enetworks/nodes/nodeid/restart?nodeId={nodeId}&api_token=YOUR_API_TOKEN

**Path Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| nodeId | string |  |

**Example Request (New Format):**

```bash
curl -X POST 'https://api.lowcodeapi.com/e2enetworks/nodes/{nodeId}/restart?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://docs.e2enetworks.com/docs/myaccount/node/virt_comp_node/managenode/

### List all buckets

**Method:** GET
**LowCodeAPI Path:** /buckets

**New Format URL:**
https://api.lowcodeapi.com/e2enetworks/buckets?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/e2enetworks/buckets?api_token=YOUR_API_TOKEN

**Query Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| limit | number |  |
| page | number |  |

**Example Request (New Format):**

```bash
curl -X GET 'https://api.lowcodeapi.com/e2enetworks/buckets?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://docs.e2enetworks.com/docs/myaccount/storage/object_storage/using_api/

### Create bucket

**Method:** POST
**LowCodeAPI Path:** /buckets

**New Format URL:**
https://api.lowcodeapi.com/e2enetworks/buckets?api_token=YOUR_API_TOKEN

**Old Format URL:**
https://api.lowcodeapi.com/e2enetworks/buckets?api_token=YOUR_API_TOKEN

**Request Body:**

| Field | Type | Description |
|-------|------|-------------|
| bucket_name | string |  |
| region | string |  |

**Example Request (New Format):**

```bash
curl -X POST 'https://api.lowcodeapi.com/e2enetworks/buckets?api_token=YOUR_API_TOKEN'
```

**Official Documentation:** https://docs.e2enetworks.com/docs/myaccount/storage/object_storage/using_api/


## Usage Examples

### Example 1: Basic API Request (New Format)

Making a simple GET request to retrieve resources:

```bash
# Get a list of resources - no path parameters needed
curl -X GET "https://api.lowcodeapi.com/e2enetworks/endpoint?api_token=YOUR_API_TOKEN"
```

### Example 2: Request with Path Parameters (New Format)

Retrieving a specific resource using its ID:

```bash
# Get specific resource by ID - replace RESOURCE_ID with actual ID from previous response
curl -X GET "https://api.lowcodeapi.com/e2enetworks/endpoint/{RESOURCE_ID}?api_token=YOUR_API_TOKEN"
# Note: RESOURCE_ID typically comes from a previous list request or from the provider dashboard
```

### Example 3: POST Request with Body (New Format)

Creating a new resource:

```bash
# Create a new resource
curl -X POST "https://api.lowcodeapi.com/e2enetworks/endpoint?api_token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"field": "value", "another_field": "another_value"}'
```

## Error Handling

LowCodeAPI returns standard HTTP status codes. Common errors:

| Status Code | Description |
|-------------|-------------|
| 200 | Success - Request completed successfully |
| 400 | Bad Request - Invalid parameters or request body |
| 401 | Unauthorized - Invalid or missing API token |
| 403 | Forbidden - Insufficient permissions |
| 404 | Not Found - Endpoint or resource doesn't exist |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Server Error - Provider API error |

All error responses include error details:

```json
{
  "data": {
    "error": {
      "message": "Error description",
      "code": "ERROR_CODE"
    }
  }
}
```

## Complete Endpoint Reference

| Endpoint | Method | Category |
|----------|--------|----------|
| List all compute nodes | GET | Compute Nodes |
| Create compute node | POST | Compute Nodes |
| Get compute node details | GET | Compute Nodes |
| Update compute node | PUT | Compute Nodes |
| Delete compute node | DELETE | Compute Nodes |
| Start compute node | POST | Compute Nodes |
| Stop compute node | POST | Compute Nodes |
| Restart compute node | POST | Compute Nodes |
| List all buckets | GET | Object Storage |
| Create bucket | POST | Object Storage |
| Get bucket details | GET | Object Storage |
| Delete bucket | DELETE | Object Storage |
| List objects in bucket | GET | Object Storage |
| List all VPCs | GET | Network |
| Create VPC | POST | Network |
| Get VPC details | GET | Network |
| Delete VPC | DELETE | Network |
| List all SSH keys | GET | Security |
| Create SSH key | POST | Security |
| Delete SSH key | DELETE | Security |
| List all snapshots | GET | Storage |
| Create snapshot | POST | Storage |
| Delete snapshot | DELETE | Storage |
| Get plans and pricing | GET | Account |
| Get OS images | GET | Images |
| Get plans of a particular OS | GET | Images |
| Convert to committed node | POST | Compute Nodes |
| Create manual snapshot | POST | Compute Nodes |
| Create monitoring alert | POST | Compute Nodes |
| Delete monitoring alert | DELETE | Compute Nodes |
| Attach VPC to node | POST | Network |
| Detach VPC from node | POST | Network |

## API Definition Endpoints

You can fetch the complete API specification for this provider:

**New Format (OpenAPI spec):**
```bash
curl 'https://backend.lowcodeapi.com/e2enetworks/openapi'
```

**Old Format (API definition):**
```bash
curl 'https://backend.lowcodeapi.com/e2enetworks/definition'
```

## Response Format

All responses are wrapped in a `data` key:

```json
{
  "data": {
    // Actual response from provider (object or array)
  }
}
```