Skip to main content
Creates a new company record in the database. Validates request body parameters using Zod schemas and ensures data integrity.

Endpoint

Authentication

This endpoint requires authentication. Include a valid bearer token in the Authorization header. Permission Required: company:create

Request Body

Note: Tracking fields (created_at, updated_at, deleted_at, is_actived, is_deleted, document_id) are managed automatically by the system and cannot be set during creation.

Response

Success Response (201 CREATED)

Returns the newly created company record.

Error Responses

400 Bad Request - Invalid request body or validation failed
401 Unauthorized - Missing or invalid authentication token 403 Forbidden - Insufficient permissions 409 Conflict - Internal identifier already exists

Examples

Basic Request

Minimal Request (Required Fields Only)