myCRMSIM

myCRMSIM API 1.0

Get Started
​
No token

Update lead form

PATCH

/api/v1/ext/lead-forms/{id}

Change a form's name, text, fields, settings or active state.

Auth: Bearer access_token
Scope: lead_forms.write

Send only what changes. fields replaces the whole list and is checked like on create. Past submissions keep their own payloads.

Parameters

NameInTypeRequiredDescription
id
path
number
yes
The form id.
name
body
stringnoInternal name.
title
body
stringnoHeading.
description
body
stringnoText under the heading.
fields
body
array<object>no1–30 fields, each { key, type, label, required?, placeholder?, options?, custom_field_id?, consent_text? }. type: text, email, phone, textarea, select, checkbox, url, date, number, sms_consent. key is a contact column (first_name, last_name, email, phone_number, company_name, website, address, city, state, country) or a workspace custom field's key with its custom_field_id; the form needs an email or phone_number field. sms_consent is the opt-in checkbox (key sms_consent, consent_text up to 1000 characters).
settings
body
objectnosubmit_button_text, thank_you_message, redirect_url (https), tags (added to the contact, up to 20), allowed_domains (where it may be embedded, up to 20), daily_limit, style { primary_color, button_text_color, background_color, page_background, text_color (hex), border_radius 0–32, font_family system|serif|mono }.
is_active
body
booleannofalse takes the page offline (404) without deleting the form.

Responses

StatusWhen
200
OK
400
Nothing to change, or a rule failed
401
Missing or invalid token
403
Missing scope
404
Form does not exist or is not the installer's (same response for both)
Request
curl -X PATCH "https://backend.mysmsgateway.app/api/v1/ext/lead-forms/{id}" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
  "is_active": false
}'
Responses
OK
{
  "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": false,
    "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>"
  }
}
Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Path parameters

The form id.

Body (JSON)
Request URL
PATCHhttps://backend.mysmsgateway.app/api/v1/ext/lead-forms/%7Bid%7D
Previous

« Create lead form

Next

Delete lead form »