> ## 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.

# Get Ecf State Contract



## OpenAPI

````yaml /openapi/public-v1.json get /api/v1/ecf/states
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/ecf/states:
    get:
      tags:
        - ECF Documents
      summary: Get Ecf State Contract
      operationId: get_ecf_state_contract_api_v1_ecf_states_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EcfStateContractResponse'
      security: []
components:
  schemas:
    EcfStateContractResponse:
      properties:
        source_of_truth:
          type: string
          title: Source Of Truth
        mutation_policy:
          type: string
          title: Mutation Policy
        states:
          items:
            $ref: '#/components/schemas/EcfStateDefinition'
          type: array
          title: States
        event_derived_stages:
          items:
            $ref: '#/components/schemas/EcfEventDerivedStage'
          type: array
          title: Event Derived Stages
      type: object
      required:
        - source_of_truth
        - mutation_policy
        - states
        - event_derived_stages
      title: EcfStateContractResponse
    EcfStateDefinition:
      properties:
        name:
          type: string
          title: Name
        type:
          type: string
          title: Type
        terminal:
          type: boolean
          title: Terminal
        transitions:
          items:
            type: string
          type: array
          title: Transitions
      type: object
      required:
        - name
        - type
        - terminal
        - transitions
      title: EcfStateDefinition
    EcfEventDerivedStage:
      properties:
        name:
          type: string
          title: Name
        event:
          type: string
          title: Event
        description:
          type: string
          title: Description
      type: object
      required:
        - name
        - event
        - description
      title: EcfEventDerivedStage
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key de la empresa. Se muestra una sola vez al crearla.

````