# REST API Clients and Leads > Clients and Leads Data Structure Field Type Length Allow Null Default Value idintNoneNoAUTO_INCREMENT company_namevarchar150NoNone typeenumNoneNo'organization' addresstextNoneYesNone cityvarchar50Yes… - Page: https://dashboard.nizu.io/knowledge_base/view/24-rest-api-clients-and-leads - Part of: [Knowledge base](https://dashboard.nizu.io/knowledge_base/llms.txt) on NIZU — https://dashboard.nizu.io/llms.txt - Updated: 2026-10-25T11:50:03Z ## Clients and Leads Data Structure | Field | Type | Length | Allow Null | Default Value | | --- | --- | --- | --- | --- | | id | int | None | No | AUTO_INCREMENT | | company_name | varchar | 150 | No | None | | type | enum | None | No | 'organization' | | address | text | None | Yes | None | | city | varchar | 50 | Yes | NULL | | state | varchar | 50 | Yes | NULL | | zip | varchar | 50 | Yes | NULL | | country | varchar | 50 | Yes | NULL | | created_date | datetime | None | No | None | | website | text | None | Yes | None | | phone | varchar | 20 | Yes | NULL | | currency_symbol | varchar | 20 | Yes | NULL | | starred_by | mediumtext | None | No | None | | group_ids | text | None | No | None | | deleted | tinyint | 1 | No | 0 | | is_lead | tinyint | 1 | No | 0 | | lead_status_id | int | None | No | None | | owner_id | int | None | No | None | | created_by | int | None | No | None | | sort | int | None | No | 0 | | lead_source_id | int | None | No | None | | last_lead_status | text | None | No | None | | client_migration_date | date | None | No | None | | vat_number | text | None | Yes | None | | gst_number | text | None | Yes | None | | stripe_customer_id | text | None | No | None | | stripe_card_ending_digit | int | None | No | None | | currency | varchar | 3 | Yes | NULL | | disable_online_payment | tinyint | 1 | No | 0 | | labels | text | None | Yes | None | --- ### What Makes the difference between a Lead and Client The fields **is_lead**, **lead_status_id** and **lead_source_id.**If is_lead is set as 1 then this is no longer a client, and is just a Lead. ### GET REST API to Search, List or filter your workspace clients: ``` curl --location --request GET 'https://api.nizu.io/v2/' --header 'Content-Type: application/json' --header 'Authorization: Bearer '  --data '{     "module": "clients",     "data":{} }' ``` ### Insert / POST An strict number of fields are required in order to create a client, once a client or lead is created, is strongly recommended to attach a new contact or people in relation with this client. ``` curl --location 'https://api.nizu.dev/v2/' --header 'Content-Type: application/json' --header 'Authorization: Bearer ' --data '{, "module": "clients", "data":[ { "field":"company_name", "value":"Company test" }, { "field":"type", "value":"organization" }, { "field":"phone", "value":"1555555555" }, { "field":"country", "value":"Belgium" }, { "field":"city", "value":"Brussels" }, { "field":"zip", "value":"1000" }, { "field":"state", "value":"Brussels" }, { "field":"address", "value":"Rue Royale 265" }, { "field":"website", "value":"https://mywebsite.com" }, { "field":"created_date", "value":"NOW()" }, { "field":"starred_by", "value":"1" }, { "field":"group_ids", "value":"" }, { "field":"lead_status_id", "value":"1" }, { "field":"lead_source_id", "value":"1" }, { "field":"last_lead_status", "value":"Won" }, { "field":"stripe_customer_id", "value":"" }, { "field":"stripe_card_ending_digit", "value":"0" }, { "field":"owner_id", "value":"1" }, { "field":"created_by", "value":"1" }, { "field":"client_migration_date", "value":"NOW()" } ] } ' ``` ### Leads The only difference between a client and a lead is the field `is_lead` set as 1, and the **lead_status_id** and **lead_source_id** are required to be set.