> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crosoftware.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Hauler

> Create a new hauler profile.



## OpenAPI

````yaml /spec/oas.yaml post /haulers
openapi: 3.0.3
info:
  title: CRO Software API
  version: 2.x
  description: >-
    REST API for the CRO Software waste management and logistics platform.
    Authenticate via OAuth2 (client_credentials or authorization_code). All
    requests require a Bearer token and an X-Tenant-Id header.
servers:
  - url: https://api.crosoftware.com/v0
    description: Production
security: []
paths:
  /haulers:
    post:
      tags:
        - Haulers
      summary: Create Hauler
      description: Create a new hauler profile.
      operationId: haulers_create_hauler
      parameters:
        - name: x-api-version
          in: header
          required: false
          schema:
            type: string
            description: Version identifier (date format).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateHaulerRequestModel'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThirdPartyHaulerModel'
      security:
        - oauth2:
            - api
components:
  schemas:
    CreateHaulerRequestModel:
      type: object
      description: Create hauler request body.
      properties:
        company_name:
          type: string
          description: Company name (free text).
        invite_token:
          type: string
          description: Signed HS256 JWT invite token from dispatch-backend.
        password:
          type: string
          description: New password.
        recaptcha:
          type: string
          description: Recaptcha answer.
        username:
          type: string
          description: New password.
      required:
        - company_name
        - password
        - recaptcha
        - username
    ThirdPartyHaulerModel:
      type: object
      description: Third party hauler profile.
      properties:
        id:
          type: string
          format: uuid
          description: Third party hauler identifier.
        name:
          type: string
          description: Name (free text).
      required:
        - id
        - name
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: REPLACE_WITH_AUTH_BASE_URL/oauth2/token
          scopes:
            api: General API access
            webhook: Webhook management
        authorizationCode:
          authorizationUrl: REPLACE_WITH_AUTH_BASE_URL/oauth2/auth
          tokenUrl: REPLACE_WITH_AUTH_BASE_URL/oauth2/token
          scopes:
            api: General API access
            webhook: Webhook management

````