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

# Crea un proveedor



## OpenAPI

````yaml post /providers/
openapi: 3.0.3
info:
  title: Esolbay API
  version: 1.0.0
  description: API Esolbay.
servers:
  - url: http://localhost:3000/api/v1
    description: Ruta base local
  - url: https://api.esolbay.com/api/v1
    description: Producción
  - url: https://staging.esolbay.com/api/v1
    description: Staging
security:
  - apiKeyAuth: []
  - bearerAuth: []
paths:
  /providers/:
    post:
      tags:
        - Providers
      summary: Crea un proveedor
      operationId: createProvider
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProviderCreate'
      responses:
        '201':
          description: Creado
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  company:
                    type: string
                  contactName:
                    type: string
                  email:
                    type: string
                    format: email
                  phone:
                    type: string
                  createdAt:
                    nullable: true
                  updatedAt:
                    nullable: true
                required:
                  - id
                example:
                  id: prov_1
                  company: Proveedor SAC
                  contactName: Juan Pérez
                  email: contacto@proveedor.com
        '400':
          description: Solicitud inválida
components:
  schemas:
    ProviderCreate:
      type: object
      properties:
        company:
          type: string
        contactName:
          type: string
        email:
          type: string
          format: email
        phone:
          type: string
        createdAt:
          nullable: true
        updatedAt:
          nullable: true
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````