# Using the API

When you run `quickback compile`, Quickback generates a complete REST API from your definitions. This section covers how to use the generated endpoints.

## Base URL

All generated endpoints are served under `/api/v1/`:

```
https://your-api.com/api/v1/{resource}
```

The resource name is derived from the filename: `jobs.ts` → `/api/v1/jobs`.

## Endpoint Overview

For each resource with `export default defineTable(...)`:

| Method | Endpoint | Description |
|--------|----------|-------------|
| `GET` | `/api/v1/{resource}` | List records (paginated) |
| `GET` | `/api/v1/{resource}/:id` | Get single record |
| `POST` | `/api/v1/{resource}` | Create record |
| `PATCH` | `/api/v1/{resource}/:id` | Update record |
| `DELETE` | `/api/v1/{resource}/:id` | Delete record |
| `POST` | `/api/v1/{resource}/batch` | Batch create |
| `PATCH` | `/api/v1/{resource}/batch` | Batch update |
| `DELETE` | `/api/v1/{resource}/batch` | Batch delete |

## Guides

- [CRUD Endpoints](/compiler/targets/hono-api/using-the-api/crud) — Detailed CRUD endpoint reference
- [Query Parameters](/compiler/targets/hono-api/using-the-api/query-params) — Filtering, pagination, and sorting
- [Batch Operations](/compiler/targets/hono-api/using-the-api/batch-operations) — Bulk create, update, delete with atomic mode
- [Views API](/compiler/targets/hono-api/using-the-api/views-api) — Column-level projections
- [Actions API](/compiler/targets/hono-api/using-the-api/actions-api) — Custom business logic endpoints
- [Errors](/compiler/targets/hono-api/using-the-api/errors) — Error responses and HTTP status codes
