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

# Public Signup

> Registro público desde el sitio web.

Crea empresa, certificado (si viene P12) y API key.
Luego notifica al Portal Odoo (fire-and-forget).



## OpenAPI

````yaml /openapi/public-v1.json post /api/v1/public/register
openapi: 3.1.0
info:
  title: emite.do API
  description: >-
    API pública para emitir, consultar y operar e-CF ante la DGII. Autenticación
    por header X-API-Key. El POST /api/v1/ecf no promete el estado fiscal final:
    consulta o webhook.
  version: 1.0.0
servers:
  - url: https://api.emite.do
    description: Producción
security:
  - ApiKeyAuth: []
paths:
  /api/v1/public/register:
    post:
      tags:
        - public
      summary: Public Signup
      description: |-
        Registro público desde el sitio web.

        Crea empresa, certificado (si viene P12) y API key.
        Luego notifica al Portal Odoo (fire-and-forget).
      operationId: public_signup_api_v1_public_register_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PublicSignupRequest'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicSignupResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security: []
components:
  schemas:
    PublicSignupRequest:
      properties:
        rnc:
          type: string
          maxLength: 11
          minLength: 9
          title: Rnc
        name:
          type: string
          maxLength: 255
          minLength: 1
          title: Name
        trade_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Trade Name
        address:
          anyOf:
            - type: string
            - type: 'null'
          title: Address
        email:
          type: string
          format: email
          title: Email
        phone:
          anyOf:
            - type: string
            - type: 'null'
          title: Phone
        contact_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Contact Name
        environment:
          type: string
          title: Environment
          default: TesteCF
        certificate_p12:
          anyOf:
            - type: string
            - type: 'null'
          title: Certificate P12
          description: P12 en base64
        certificate_pin:
          anyOf:
            - type: string
            - type: 'null'
          title: Certificate Pin
        erp:
          anyOf:
            - type: string
            - type: 'null'
          title: Erp
        volume:
          anyOf:
            - type: string
            - type: 'null'
          title: Volume
      type: object
      required:
        - rnc
        - name
        - email
      title: PublicSignupRequest
    PublicSignupResponse:
      properties:
        success:
          type: boolean
          title: Success
        company_public_id:
          type: string
          title: Company Public Id
        api_key:
          type: string
          title: Api Key
        has_certificate:
          type: boolean
          title: Has Certificate
        message:
          type: string
          title: Message
      type: object
      required:
        - success
        - company_public_id
        - api_key
        - has_certificate
        - message
      title: PublicSignupResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key de la empresa. Se muestra una sola vez al crearla.

````