Search Documentation

Search API endpoints, webhooks, tools, and guides

On this page6 sections
Is this helpful?
Quick Actions
Download OpenAPI.json
POST/api/contacts/create-contactContactsPermission: contact.create

Create Contact

Creates a new customer/contact record with a tenant-unique contact code.

Authentication: Requires Authorization: Bearer <ACCESS_TOKEN> (Supabase JWT, OAuth2 M2M token, or integration token).

Request

Provide the following fields in the request payload.

Body application/json
namestringrequired

name parameter.

codestringrequired

code parameter.

firstNamestring | nulloptional

first Name parameter.

lastNamestring | nulloptional

last Name parameter.

emailstring (email) | enum('') | object | nulloptional

email parameter.

phonestring | enum('') | object | nulloptional

phone parameter.

mobilestring | enum('') | object | nulloptional

mobile parameter.

addressstring | enum('') | object | nulloptional

address parameter.

citystring | enum('') | object | nulloptional

city parameter.

statestring | enum('') | object | nulloptional

state parameter.

zipCodestring | enum('') | object | nulloptional

zip Code parameter.

countrystring | enum('') | object | nulloptional

country parameter.

genderstring | enum('') | object | nulloptional

gender parameter.

groupstring | enum('') | object | nulloptional

group parameter.

notesstring | enum('') | object | nulloptional

notes parameter.

statusenum('Active' | 'Inactive')optionaldefault: Active

status parameter.

Responses

Select a status code to inspect schema.

Created — Contact created successfully.application/json
successenum('true')

Success (true).

messagestring

Message.

dataobject | null

Response payload or null.

POST/api/contacts/create-contact
curl -X POST "https://api.invoger.com/api/contacts/create-contact" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{ "name": "Andi Wijaya", "code": "CUST-001", "email": "andi@example.com", "phone": "+628123456789", "status": "Active" }'
Interactive playground

Response

application/json
{
  "success": true,
  "message": "Contact created successfully",
  "data": {
    "id": "cnt_1",
    "name": "Andi Wijaya",
    "code": "CUST-001",
    "status": "Active"
  }
}