> ## Documentation Index
> Fetch the complete documentation index at: https://doc.eazemyapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate api

EazeMyAPI automatically generates REST APIs based on the tables you create in your project.

Once your database schema is defined, the platform instantly creates API endpoints that allow applications to interact with your data.

No backend server code is required.

***

## API URL Structure

All EazeMyAPI endpoints follow this structure:

```
https://api.eazemyapi.com/{project}/{table}/{version}/{action}
```

| Parameter | Description |
| - | - |
| `{project}` | Your project identifier |
| `{table}` | Database table name |
| `{version}` | API version |
| `{action}` | Operation (list, create, update, delete) |

***

## How API Generation Works

The API generation process follows these steps:

```
Create Project
      ↓
Create Tables
      ↓
Define Fields
      ↓
EazeMyAPI Generates APIs
```

Each table you create becomes an API resource.

***

## Instant API Example

Here’s what happens in real-time when you create a table:

```
You create: users table
        ↓
API generated: /demo-project/users/v1/list
        ↓
You call API → Get data
```

### Example Endpoint

```
https://api.eazemyapi.com/demo-project/users/v1/list
```

### Example Response

```json theme={null}
{
  "success": true,
  "message": "Data found.",
  "data": [
    {
      "id": 1,
      "name": "Dara Singh",
      "email": "dara@example.com"
    }
  ]
}
```

This is generated instantly—no backend code required.

***

## Example Table

Example **users** table:

| Field | Type |
| - | - |
| id | NUMBER |
| name | TEXT |
| email | EMAIL |
| phone | PHONE |
| created\_at | DATETIME |

After creating this table, EazeMyAPI automatically generates API endpoints.

***

## Generated API Endpoints

Typical endpoints generated for a table include:

### List Records

```
GET /{project}/users/{version}/list
```

***

### Create Record

```
POST /{project}/users/{version}/create
```

***

### Update Record

```
POST /{project}/users/{version}/update/{id}
```

***

### Delete Record

```
DELETE /{project}/users/{version}/delete/{id}
```

***

## Example API Request

### Endpoint

```
https://api.eazemyapi.com/demo-project/users/v1/list
```

### Request

```bash theme={null}
curl https://api.eazemyapi.com/demo-project/users/v1/list \
  -H "X-API-SIGNATURE: your-secret-key"
```

### Example Response

```json theme={null}
{
  "success": true,
  "message": "Data found.",
  "data": [
    {
      "id": 1,
      "name": "Dara Singh",
      "email": "dara@example.com"
    }
  ]
}
```

***

## Automatic CRUD Operations

Each generated API supports standard **CRUD operations**.

| Operation | Description |
| - | - |
| Create | Add new records |
| Read | Retrieve records |
| Update | Modify existing records |
| Delete | Remove records |

***

## Benefits of Automatic API Generation

Using EazeMyAPI to generate APIs provides several advantages:

* No backend server setup required
* Faster development
* Standardized API structure
* Secure authentication support
* Easy frontend integration

Developers can focus on building applications instead of managing backend infrastructure.

***

## Related Documentation

Learn how to create tables:

[Create Tables](https://doc.eazemyapi.com/docs/create-tables.md)

Understand API endpoints:

[API Endpoints](https://doc.eazemyapi.com/docs/api-endpoints.md)

Learn about authentication:

[Authentication](https://doc.eazemyapi.com/docs/authentication.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.