- Omni
- Contact APIs
- NameSpace
- Address
- Bank
- Props
- Relation
- Contact
Create
Developing
preprod
https://preprod.api.crego.io
preprod
https://preprod.api.crego.io
POST
/contacts/
Last modified:2025-05-25 13:05:30
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
name
stringÂ
required
>= 1 characters<= 100 characters
Match pattern:
^[a-zA-Z0-9\s,.\-'&()]{1,100}$
namespace
stringÂ
required
status
enum<string>Â
required
Allowed values:
activeinactive
type
enum<string>Â
required
Allowed values:
individualcorporate
tags
array[string]
optional
refs
objectÂ
optional
props
array[object (Props) {3}]Â
required
key
stringÂ
required
>= 1 characters<= 100 characters
Match pattern:
^[a-zA-Z0-9\s,.\-'&()]{1,100}$
value
stringÂ
required
>= 1 characters<= 500 characters
type
enum<string>Â
required
Allowed values:
filenumbertextboolean
Example
{
"name": "Sukumar",
"ref_id":"jijkdmkdoedmsaad",
"status": "active",
"type": "individual",
"tags": [
"string"
],
"refs": {},
"branch_id": "",
"namespace":"Vayana",
"props": [
{
"key": "pan_no",
"type": "number",
"value":"123254684"
}
]
}
Request 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://preprod.api.crego.io/contacts/' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Sukumar",
"ref_id":"jijkdmkdoedmsaad",
"status": "active",
"type": "individual",
"tags": [
"string"
],
"refs": {},
"branch_id": "",
"namespace":"Vayana",
"props": [
{
"key": "pan_no",
"type": "number",
"value":"123254684"
}
]
}'
Responses
🟢201Created
application/json
Body
name
stringÂ
required
>= 1 characters<= 100 characters
Match pattern:
^[a-zA-Z0-9\s,.\-'&()]{1,100}$
namespace
stringÂ
required
status
enum<string>Â
required
Allowed values:
activeinactive
type
enum<string>Â
required
Allowed values:
individualcorporate
tags
array[string]
optional
refs
objectÂ
optional
props
array[object (Props) {3}]Â
required
key
stringÂ
required
>= 1 characters<= 100 characters
Match pattern:
^[a-zA-Z0-9\s,.\-'&()]{1,100}$
value
stringÂ
required
>= 1 characters<= 500 characters
type
enum<string>Â
required
Allowed values:
filenumbertextboolean
rm_id
stringÂ
optional
Match pattern:
^[A-Za-z0-9_-]{1,50}$
branch_id
stringÂ
optional
Match pattern:
^[A-Za-z0-9_-]{1,50}$
id
stringÂ
required
>= 8 characters<= 40 characters
Match pattern:
^[a-zA-Z0-9._-]{8,50}$
created_at
string <date-time>
required
created_by
stringÂ
required
<= 100 characters
Match pattern:
^[a-zA-Z0-9._-]{8,50}$
updated_at
string <date-time>
optional
updated_by
string  | nullÂ
optional
<= 100 characters
Match pattern:
^[a-zA-Z0-9._-]{8,50}$
tenant_id
stringÂ
required
<= 40 characters
Match pattern:
^[a-zA-Z0-9._-]{8,50}$
Examples
{"id":"01JK7V37V8RY5NX22AF4QYSBB3","tenant_id":"59ecf94e-054d-43ee-83db-b158ab9d7f67","created_by":"cffe818a-5003-4116-9104-069f7e062bb4","updated_by":"","created_at":"2025-02-04T12:11:52.033074Z","updated_at":"2025-02-04T12:11:52.033196Z","name":"Kaushick","status":"active","type":"individual","tags":["string"],"refs":{},"branch":null}
🟢201Created