myCRMSIM

myCRMSIM API 1.0

Get Started
​
No token

Create contact

POST

/api/v1/ext/contacts

Create a contact in a workspace.

Auth: Bearer access_token
Scope: contacts.write

workspace_id is required and must belong to the installer. ⚠️ At least one of `email` or `phone_number` is required. Sending both omitted returns 400 Either email or phone_number is required. The two fields each have their own uniqueness constraint inside a workspace, so a contact is always identifiable by at least one of them. Every other field is optional — see the response Schema tab for the full row that comes back on success.

Parameters

NameInTypeRequiredDescription
workspace_id
body
number
yes
Workspace to attach the contact to. Must belong to the installer.
first_name
body
stringnoGiven name. Max 50 chars.
last_name
body
stringnoFamily name. Max 50 chars.
email
body
stringnoConditionally required — at least one of email or phone_number must be provided. Normalized to lowercase. Max 100 chars.
phone_number
body
stringnoConditionally required — at least one of email or phone_number must be provided. Max 20 chars.
company_name
body
stringnoCompany / organization. Max 100 chars.
website
body
stringnoPublic website URL. Max 255 chars.
linkedin_profile
body
stringnoLinkedIn profile URL. Max 255 chars.
summary
body
string (text)noFree-form summary / bio.
details
body
objectnoLoosely-typed JSON details bag.
address
body
stringnoStreet address. Max 255 chars.
city
body
stringnoMax 100 chars.
state
body
stringnoMax 100 chars.
country
body
stringnoMax 100 chars.
timezone
body
stringnoIANA timezone, e.g. Europe/London.
custom_fields
body
objectnoWorkspace-defined custom fields (JSON).
tags
body
array<string>noUp to 20 strings, each max 64 chars.
notes
body
string | array<string>noFree-form notes. Accepts a single string or an array of strings.
is_verified_sms
body
booleannoPhone has been verified for SMS.
is_verified_whatsapp
body
booleannoPhone has been verified for WhatsApp.
is_verified_imessage
body
booleannoPhone has been verified for iMessage.
last_contacted
body
string (ISO 8601)noWhen this contact was last contacted.

Responses

StatusWhen
201
Created
400
Missing required fields
404
workspace_id not accessible to this token
409
Duplicate contact in this workspace

Response schema

contactobject

The newly created contact

idnumber

Unique identifier of the contact.

Example:1234
workspace_idnumber

The workspace this contact lives in.

Example:7
user_idnumber

The installer this contact belongs to.

Example:42
first_namestring
nullable

Given name. Max 50 chars.

Example:Ada
last_namestring
nullable

Family name. Max 50 chars.

Example:Lovelace
emailstring
nullable

Primary email. Unique within a workspace. Normalized to lowercase. Max 100 chars.

Example:ada@example.com
phone_numberstring
nullable

Primary phone number. Unique within a workspace. Max 20 chars.

Example:+15551234567
company_namestring
nullable

Company / organization name. Max 100 chars.

Example:Analytical Engines Ltd
websitestring
nullable

Public website URL. Max 255 chars.

Example:https://analyticalengines.example.com
linkedin_profilestring
nullable

LinkedIn profile URL. Max 255 chars.

Example:https://linkedin.com/in/ada
summarystring (text)
nullable

Free-form summary / bio.

detailsobject
nullable

Loosely-typed details bag (JSON). Use this for app-specific metadata that doesn't fit a column.

addressstring
nullable

Street address. Max 255 chars.

citystring
nullable

City. Max 100 chars.

statestring
nullable

State / region. Max 100 chars.

countrystring
nullable

Country name. Max 100 chars.

timezonestring
nullable

IANA timezone (e.g. Europe/London). Max 100 chars.

custom_fieldsobject
nullable

Workspace-defined custom fields (JSON).

tagsarray<string>
nullable

Up to 20 short labels.

notesarray<string>
nullable

Free-form notes. Accepts a string or an array on write; reads always return an array.

is_verified_smsboolean
nullable

Phone number has been verified for SMS.

Example:false
is_verified_whatsappboolean
nullable

Phone number has been verified for WhatsApp.

Example:false
is_verified_imessageboolean
nullable

Phone number has been verified for iMessage.

Example:false
last_contactedstring (ISO 8601)
nullable

When the contact last had a message exchange.

created_atstring (ISO 8601)

When the contact was first created.

Example:2026-05-21T09:14:22.000Z
updated_atstring (ISO 8601)

When the contact was last modified.

Example:2026-05-21T09:14:22.000Z
deleted_atstring (ISO 8601)
nullable

Set when the contact has been soft-deleted. null for active records.

Request
curl -X POST "https://backend.mysmsgateway.app/api/v1/ext/contacts" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
  "workspace_id": 7,
  "first_name": "Ada",
  "last_name": "Lovelace",
  "email": "ada@example.com",
  "phone_number": "+15551234567",
  "company_name": "Analytical Engines Ltd",
  "website": "https://analyticalengines.example.com",
  "linkedin_profile": "https://linkedin.com/in/ada",
  "summary": "Mathematician + first programmer. Interested in early CRM tooling.",
  "details": {
    "source": "newsletter",
    "priority": "high"
  },
  "address": "12 Mayfair St",
  "city": "London",
  "state": "Greater London",
  "country": "United Kingdom",
  "timezone": "Europe/London",
  "custom_fields": {
    "lead_score": 92,
    "owner": "gary"
  },
  "tags": [
    "lead",
    "priority",
    "engineer"
  ],
  "notes": [
    "Spoke at conference 2026-05-15",
    "Wants a quote on the Pro tier"
  ],
  "is_verified_sms": true,
  "is_verified_whatsapp": false,
  "is_verified_imessage": false,
  "last_contacted": "2026-05-20T11:02:09.000Z"
}'
Responses
Created
{
  "success": true,
  "data": {
    "id": 1234,
    "first_name": "Ada",
    "last_name": "Lovelace",
    "email": "ada@example.com",
    "phone_number": "+15551234567",
    "company_name": "Analytical Engines Ltd",
    "website": "https://analyticalengines.example.com",
    "linkedin_profile": "https://linkedin.com/in/ada",
    "summary": "Mathematician + first programmer. Interested in early CRM tooling.",
    "details": {
      "source": "newsletter",
      "priority": "high"
    },
    "address": "12 Mayfair St",
    "city": "London",
    "state": "Greater London",
    "country": "United Kingdom",
    "timezone": "Europe/London",
    "custom_fields": {
      "lead_score": 92,
      "owner": "gary"
    },
    "is_verified_sms": true,
    "is_verified_whatsapp": false,
    "is_verified_imessage": false,
    "last_contacted": "2026-05-20T11:02:09.000Z",
    "notes": [
      "Spoke at conference 2026-05-15"
    ],
    "tags": [
      "lead",
      "priority"
    ],
    "workspace_id": 7,
    "user_id": 42,
    "created_at": "2026-05-21T09:14:22.000Z",
    "updated_at": "2026-05-21T09:14:22.000Z",
    "deleted_at": null
  }
}
Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Body (JSON)
Request URL
POSThttps://backend.mysmsgateway.app/api/v1/ext/contacts
Previous

« Get contact

Next

Update contact »