# Get All Records from Custom Table

`GET /api/thirdparty/customtable/{table_name}`

Retrieves all records from the specified custom table. The table name should be the exact name as it exists in the database (no prefix will be added).

- **Group:** Thirdparty
- **Since:** v0.3.0
- **Authentication:** `authtoken` header, created under Setup > API > API Management
- **HTML version:** /apiguide/thirdparty/get-custom-table-records/

## Headers

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `authtoken` | String | **required** | Authentication token, generated from admin area |

## Parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `table_name` | String | **required** | Name of the custom database table (exact table name as it exists in the database) |

## Example request

```bash
curl -X GET "https://yoursite.com/api/thirdparty/customtable/TABLE_NAME" \
  -H "authtoken: YOUR_API_TOKEN"
```

## Success response

### Success-Response:

```json
HTTP/1.1 200 OK
[
  {
    "id": "1",
    "shoenumber": "39",
    "winter": "40"
  },
  {
    "id": "2",
    "shoenumber": "41",
    "winter": "42"
  }
]
```

## Error responses

### Error-Response (Table Not Found):

```json
HTTP/1.1 404 Not Found
{
  "status": false,
  "message": "Table 'giorgos' does not exist"
}
```

---

Perfex CRM REST API by Themesic Interactive. Full reference: /apiguide/
