Crego APIs
APIs DocHome Page
Web Apps
  • Jupiter
  • Venus
APIs DocHome Page
Web Apps
  • Jupiter
  • Venus
  1. NameSpace
  • Omni
  • Contact APIs
  • NameSpace
    • Create
      POST
    • Update
      PATCH
    • List
      GET
    • Delete
      DELETE
  • Address
    • Create
      POST
    • Update
      PATCH
    • List
      GET
    • Retrieve
      GET
    • Delete
      DELETE
  • Bank
    • Create
      POST
    • Update
      PATCH
    • List
      GET
    • Retrieve
      GET
    • Delete
      DELETE
  • Props
    • Update Props
      PUT
    • Get Props
      GET
    • Delete Props
      DELETE
  • Relation
    • Create
      POST
    • Update
      PATCH
    • List
      GET
    • Retrieve
      GET
    • Delete
      DELETE
  • Contact
    • Create
      POST
    • Update
      PATCH
    • List
      GET
    • Retrieve
      GET
    • Dedupe
      POST
    • Active
      PUT
    • Inactive
      PUT
    • Reject
      PUT
    • Approve
      PUT
  1. NameSpace

Create

Developing
preprod
https://preprod.api.crego.io
preprod
https://preprod.api.crego.io
POST
/namespaces/
Last modified:2025-04-10 10:30:05

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
Name of namespace
contact_pattern
string 
optional
Contact ref id generation pattern
contact_counter
number 
optional
Contact sequence counter, default 1
account_pattern
string 
optional
Account ref id generation pattern
account_counter
number 
optional
Account sequence counter, default is 1
Example
{
    "name": "customer"
}

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/namespaces/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "customer"
}'

Responses

🟢201Created
application/json
Body
name
string 
required
Name of namespace
contact_pattern
string 
optional
Contact ref id generation pattern
contact_counter
number 
optional
Contact sequence counter, default 1
account_pattern
string 
optional
Account ref id generation pattern
account_counter
number 
optional
Account sequence counter, default is 1
id
string 
optional
ID, 8-40 characters long, allowing alphanumeric characters.
>= 8 characters<= 40 characters
Match pattern:
^[a-zA-Z0-9._-]{8,50}$
created_at
string <date-time>
optional
Timestamp indicating when the entity was created, in ISO 8601 format.
created_by
string 
optional
Created by, 1-100 characters long, allowing alphanumeric characters, spaces, periods, underscores, and dashes.
<= 100 characters
Match pattern:
^[a-zA-Z0-9._-]{8,50}$
updated_at
string <date-time>
optional
Timestamp indicating when the entity was last updated, in ISO 8601 format.
updated_by
string  | null 
optional
Updated by, 1-100 characters long, allowing alphanumeric characters, spaces, periods, underscores, and dashes.
<= 100 characters
Match pattern:
^[a-zA-Z0-9._-]{8,50}$
tenant_id
string 
optional
Tenant ID, 6-40 characters long, allowing alphanumeric characters.
<= 40 characters
Match pattern:
^[a-zA-Z0-9._-]{8,50}$
Example
{"id":"01JNNXBS0914ZAYS2Q00PK5T2Z","is_deleted":false,"deleted_at":null,"tenant_id":"4985deb5-2094-4bda-9cae-268e111b4a4e","created_by":"b415d54c-0105-4ea9-b155-d832f2bc289b","updated_by":"","created_at":"2025-03-06T19:52:14.599664Z","updated_at":"2025-03-06T19:52:14.599664Z","name":"borrower"}
Next
Update
Built with