# List custom fields

> A workspace's custom field definitions, in display order.

Source: https://docs.mycrmsim.com/docs/custom-fields/list-custom-fields

```http
GET https://backend.mysmsgateway.app/api/v1/ext/custom-fields
```

- Category: myCRMSIM Contacts / Custom Fields
- Auth: Bearer access token
- Scope: `contacts.read`

A definition is the key under which a value sits in a contact's `custom_fields` (`{ "lead_source": "Referral" }`), its label, its type and, for `select` / `multi_select`, the allowed options. Typed definitions are enforced when a contact is created or updated: a value that is not a valid number, date (`YYYY-MM-DD`), URL, email, phone or option is refused there. `options` is `null` for every type but select and multi_select.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `workspace_id` | query | number | yes | The workspace. Example: `7` |

## Response 200

OK

```json
{
  "success": true,
  "data": [
    {
      "id": 41,
      "workspace_id": 7,
      "field_key": "lead_source",
      "field_label": "Lead Source",
      "field_type": "select",
      "options": [
        "Web",
        "Referral",
        "Event"
      ],
      "is_required": false,
      "sort_order": 1,
      "created_at": "2026-11-04T02:20:00.000Z",
      "updated_at": "2026-11-04T02:20:00.000Z"
    },
    {
      "id": 42,
      "workspace_id": 7,
      "field_key": "deal_size",
      "field_label": "Deal Size",
      "field_type": "number",
      "options": null,
      "is_required": false,
      "sort_order": 2,
      "created_at": "2026-11-04T02:21:00.000Z",
      "updated_at": "2026-11-04T02:21:00.000Z"
    }
  ]
}
```

## Response 400

No workspace_id

```json
{
  "success": false,
  "message": "workspace_id is required."
}
```

## Response 401

Missing or invalid token

```json
{
  "success": false,
  "message": "Invalid or expired access token."
}
```

## Response 403

Missing scope

```json
{
  "success": false,
  "message": "Missing scope(s): contacts.read. This integration was granted: …"
}
```

## Response 404

Workspace does not exist or is not owned by the installer (same response for both)

```json
{
  "success": false,
  "message": "Workspace not found or not accessible to this token"
}
```
