Companies

Manage companies within workspaces

List companies

get

Returns companies from workspaces the user has access to.

Authorizations
AuthorizationstringRequired

All API requests require a Bearer token in the Authorization header. Contact the Zero team to obtain your API token.

Query parameters
workspaceIdstring · uuidOptional

Filter by workspace ID

fieldsstringOptional

Comma-separated list of fields to return. Defaults to all fields.

Example: id,name,domain
wherestringOptional

JSON string with filter conditions

Example: {"workspaceId":"workspace-uuid"}
limitintegerOptional

Maximum number of records to return

Default: 100
offsetintegerOptional

Pagination offset

Default: 0
orderBystringOptional

JSON string for sort order

Example: {"name":"asc"}
Responses
chevron-right
200

Successful response

application/json
get
/api/companies

Create a company

post

Create a new company in a workspace.

Authorizations
AuthorizationstringRequired

All API requests require a Bearer token in the Authorization header. Contact the Zero team to obtain your API token.

Body
workspaceIdstring · uuidRequired
namestringOptional
domainstringOptional
logostring · uriOptional
descriptionstringOptional
linkedinstringOptional
listIdsstring · uuid[]Optional
ownerIdsstring · uuid[]Optional
locationstringOptional
customobjectOptional
externalIdstringOptional
sourcestringOptional
Responses
chevron-right
200

Company created successfully

application/json
post
/api/companies

Delete a company

delete

Delete a company. Use archive=true for soft delete.

Authorizations
AuthorizationstringRequired

All API requests require a Bearer token in the Authorization header. Contact the Zero team to obtain your API token.

Path parameters
companyIdstring · uuidRequired
Query parameters
archivebooleanOptional

If true, soft deletes (archives) the company instead of permanently deleting it.

Default: false
Responses
chevron-right
200

Company deleted successfully

No content

delete
/api/companies/{companyId}

No content

Update a company

patch

Update an existing company.

Authorizations
AuthorizationstringRequired

All API requests require a Bearer token in the Authorization header. Contact the Zero team to obtain your API token.

Path parameters
companyIdstring · uuidRequired
Body
namestringOptional
domainstringOptional
logostring · uriOptional
descriptionstringOptional
linkedinstringOptional
listIdsstring · uuid[]Optional
ownerIdsstring · uuid[]Optional
locationstringOptional
customobjectOptional
externalIdstringOptional
sourcestringOptional
Responses
chevron-right
200

Company updated successfully

application/json
patch
/api/companies/{companyId}

Last updated