# List lead forms

> The hosted lead forms of a workspace, newest first.

Source: https://docs.mycrmsim.com/docs/lead-forms/list-lead-forms

```http
GET https://backend.mysmsgateway.app/api/v1/ext/lead-forms
```

- Category: myCRMSIM Lead Forms / Lead Forms
- Auth: Bearer access token
- Scope: `lead_forms.read`

Each form has a `public_url` (the hosted page) and an `embed_snippet` for a website. A submission creates or updates the contact the form's fields map to and can start automations.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `workspace_id` | query | number | yes | A workspace of the installer. Example: `7` |
| `search` | query | string | no | Part of a name. |
| `page` | query | number | no | Default 1. Example: `1` |
| `limit` | query | number | no | 1–100, default 25. Example: `25` |

## Response 200

OK

```json
{
  "success": true,
  "data": [
    {
      "id": 31,
      "workspace_id": 7,
      "name": "Website quote form",
      "slug": "f3a9c1d2e4b5f607",
      "title": "Get a quote",
      "description": "Tell us about your project.",
      "fields": [
        {
          "key": "first_name",
          "type": "text",
          "label": "First name",
          "required": true
        },
        {
          "key": "email",
          "type": "email",
          "label": "Email",
          "required": true
        },
        {
          "key": "phone_number",
          "type": "phone",
          "label": "Mobile",
          "required": false
        },
        {
          "key": "lead_source",
          "type": "select",
          "label": "How did you hear about us?",
          "options": [
            "Web",
            "Referral",
            "Event"
          ],
          "custom_field_id": 41
        },
        {
          "key": "sms_consent",
          "type": "sms_consent",
          "label": "Text me updates",
          "consent_text": "By ticking this box you agree to receive SMS from Acme. Reply STOP to opt out."
        }
      ],
      "settings": {
        "submit_button_text": "Get a quote",
        "thank_you_message": "Thanks — we will be in touch today.",
        "redirect_url": null,
        "tags": [
          "web-lead"
        ],
        "allowed_domains": [
          "acme.example"
        ],
        "daily_limit": 500,
        "style": {
          "primary_color": "#2563eb",
          "button_text_color": "#ffffff",
          "background_color": "#ffffff",
          "page_background": "#f8fafc",
          "text_color": "#0f172a",
          "border_radius": 8,
          "font_family": "system"
        }
      },
      "is_active": true,
      "submission_count": 128,
      "created_at": "2026-10-01T00:00:00.000Z",
      "updated_at": "2026-11-01T00:00:00.000Z",
      "public_url": "https://api.mycrmsim.com/f/f3a9c1d2e4b5f607",
      "embed_snippet": "<script src=\"https://api.mycrmsim.com/embed/forms.js\" data-form=\"f3a9c1d2e4b5f607\" async></script>"
    }
  ],
  "pagination": {
    "page": 1,
    "limit": 25,
    "total": 1,
    "total_pages": 1
  }
}
```

## 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): lead_forms.read. This integration was granted: …"
}
```

## Response 404

Workspace does not exist or is not the installer's (same response for both)

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