RASL
RASL | DashboardContact
RASL | DashboardContact
Instagram
  1. Contacts
RASL
  • Introduction
  • Messages
    • Overview
    • Message Bot Management
      • List Message Bots
      • Get Message Bots Details
    • Send Simple Message
      POST
    • Send Media Message
      POST
  • Templates
    • Overview
    • Template Management
      • Template Bot
        • List Template Bots
        • Get Template Bots Details
      • List Templates
      • Get Template Details
    • Send Authentication Template
      POST
    • Send Template Message
      POST
  • Contacts
    • Overview
    • Create a New Contact
      POST
    • List Contacts
      GET
    • Get Contact Details
      GET
    • Update Contact Information
      PUT
    • Delete Contact
      DELETE
  • Groups
    • Overview
    • Create Group
      POST
    • List Groups
      GET
    • Get Group Details
      GET
    • Update Group
      PUT
    • Delete Group
      DELETE
  • Statuses
    • Overview
    • Create Status
      POST
    • List Statuses
      GET
    • Get Status Details
      GET
    • Update Status
      PUT
    • Delete Status
      DELETE
  • Sources
    • Overview
    • Create Source
    • List Sources
    • Get Source Details
    • Update Source
    • Delete Source
  • Integrations
    • N8N Webhook Integration
    • Webhook Format Reference
    • eCommerce Webhook Integration
      • Webhook Listener
      • WooCommerce Webhook Setup
RASL | DashboardContact
RASL | DashboardContact
Instagram
  1. Contacts

Create a New Contact

POST
https://getrasl.io/api/v1/{tenant-name}/contacts

Add a new contact to your database#

You can specify the contact type (lead or lustomer) assign them to groups, and include all relevant contact information.

Key Features#

Automatic validation of contact data
Type classification (lead vs customer)
Group assignment with auto-creation of new groups
Source and status tracking
International phone and country support
WhatsApp Auto Lead Settings Integration: Automatic fallback to configured defaults

WhatsApp Auto Lead Fallback#

When WhatsApp Auto Lead is enabled in your tenant settings the system will automatically provide default values for missing fields:
status_id: Uses the configured default lead status if not provided
source_id: Uses the configured default lead source if not provided
assignee: Uses the configured default assignee if not provided
This allows for simplified API calls where you only need to provide the essential contact information, and the system handles lead management defaults automatically.

Business Rules#

Email must be unique within the tenant (if provided)
Phone numbers must be unique within the tenant
Groups will be auto-created if they don't exist
Contact creation counts towards your plan limits
Auto Lead fallback only applies when the feature is enabled in tenant settings

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Path Params

Header Params

Body Params application/jsonRequired

Example
{
  "firstname": "Mahmoud",
  "lastname": "Elsayed",
  "company": "RASL",
  "type": "lead",
  "email": "mahmoud@example.com",
  "phone": "+201XXXXXXXXX",
  "source_id": 2,
  "status_id": 1,
  "description": "Potential client interested in premium services, contacted via website form",
  "country_id": 101,
  "assigned_id": 15,
  "groups": "VIP Customers,Newsletter Subscribers,Product Updates"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://getrasl.io/api/v1//contacts' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
  "firstname": "Mahmoud",
  "lastname": "Elsayed",
  "company": "RASL",
  "type": "lead",
  "email": "mahmoud@example.com",
  "phone": "+201XXXXXXXXX",
  "source_id": 2,
  "status_id": 1,
  "description": "Potential client interested in premium services, contacted via website form",
  "country_id": 101,
  "assigned_id": 15,
  "groups": "VIP Customers,Newsletter Subscribers,Product Updates"
}'

Responses

🟢201Created
application/json
Body

Example
{
  "status": "success",
  "message": "Contact created successfully",
  "data": {
    "id": 25,
    "tenant_id": 13,
    "firstname": "Mahmoud",
    "lastname": "Elsayed",
    "company": "RASL",
    "type": "lead",
    "email": "mahmoud@example.com",
    "phone": "+201XXXXXXXXX",
    "source_id": 2,
    "status_id": 1,
    "description": "Potential client interested in premium services, contacted via website form",
    "country_id": 101,
    "assigned_id": 15,
    "addedfrom": 15,
    "created_at": "2024-02-08T14:30:25.000000Z",
    "updated_at": "2024-02-08T14:30:25.000000Z",
    "group_id": [
      1,
      2,
      3
    ]
  }
}
🟠400Bad Request
🟠401Unauthenticated
🟠422Validation Errors
Previous
Overview
Next
List Contacts
Built with