ReqArchitect Codegen API

The codegen API from ReqArchitect — 20 operation(s) for codegen.

Business capability
Software Construction Management BC-4200.40

Operations 22

POST /api/codegen/capabilities/validate Validate capability selection for conflicts and missing dependencies #
GET /api/codegen/capabilities/dependency-graph Full requires/conflicts_with graph for all capabilities #
POST /api/codegen/{blueprint_id}/generate Create/invoke generate #
GET /api/codegen/jobs/{job_id}/files Get generated file contents for a completed job #
GET /api/codegen/jobs/{job_id}/download Get download #
GET /api/codegen/jobs/{job_id}/mock-server Download standalone mock_server.py #
GET /api/codegen/jobs/{job_id}/preview Live mock API root — returns server info #
GET /api/codegen/jobs/{job_id}/preview/{api_path} Live mock API — no auth required #
POST /api/codegen/jobs/{job_id}/preview/{api_path} Live mock API POST — no auth required #
POST /api/codegen/jobs/{job_id}/retry Create/invoke retry #
POST /api/codegen/jobs/{job_id}/save-files Persist client-side edits back into the artifact #
POST /api/codegen/jobs/{job_id}/verify Re-run ARCHVERIFY on current (possibly edited) file set #
POST /api/codegen/jobs/{job_id}/ai-edit Apply NL instruction to a generated file via workspace LLM #
GET /api/codegen/jobs/{job_id}/status Get status #
POST /api/codegen/jobs/{job_id}/live-preview Launch a live preview environment for a completed codegen job (Pro+ only) #
GET /api/codegen/jobs/{job_id}/live-preview Poll live preview environment status for a codegen job #
GET /api/codegen/{blueprint_id}/latest Get latest completed codegen artifact for a blueprint #
GET /api/codegen/{blueprint_id}/history List all code generation runs for a blueprint, newest first #
POST /api/codegen/{blueprint_id}/generate-mobile Generate a React Native / Expo mobile app scaffold for a blueprint (paid… #
POST /api/codegen/jobs/{job_id}/regenerate-previews Regenerate web + mobile preview URLs for a codegen job #
POST /api/codegen/jobs/{job_id}/feedback Create/invoke feedback #
GET /api/codegen/jobs/{job_id}/traceability Get traceability #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/archiet:archiet-codegen-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

archiet-codegen-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Archiet — AI-Native Architecture-to-Code SaaS Platform…
  version: 1.0.0
tags:
- name: codegen
paths:
  /api/codegen/capabilities/validate:
    post:
      operationId: validate_capability_selection
      summary: Validate capability selection for conflicts and missing dependencies
      tags:
      - codegen
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                capabilities:
                  type: array
                  items:
                    type: object
                    properties:
                      id:
                        type: string
      responses:
        '200':
          description: Selection is valid
        '422':
          description: Conflicts or missing dependencies detected
        '401':
          description: Unauthorized
      security:
      - cookieAuth: []
  /api/codegen/capabilities/dependency-graph:
    get:
      operationId: get_capability_dependency_graph
      summary: Full requires/conflicts_with graph for all capabilities
      tags:
      - codegen
      responses:
        '200':
          description: OK
        '401':
          description: Unauthorized
      security:
      - cookieAuth: []
  /api/codegen/{blueprint_id}/generate:
    post:
      operationId: post_codegen_by_blueprint_id_generate
      summary: Create/invoke generate
      tags:
      - codegen
      responses:
        '200':
          description: OK
        '201':
          description: Created
        '400':
          description: Bad Request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - cookieAuth: []
      parameters:
      - name: blueprint_id
        in: path
        required: true
        schema:
          type: integer
      requestBody:
        content:
          application/json:
            schema:
              type: object
  /api/codegen/jobs/{job_id}/files:
    get:
      operationId: get_codegen_jobs_by_job_id_files
      summary: Get generated file contents for a completed job
      tags:
      - codegen
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      files:
                        type: object
                      sandpack_interceptor_js:
                        type: string
                        nullable: true
        '400':
          description: Generation not complete
        '401':
          description: Unauthorized
        '404':
          description: Not Found
      security:
      - cookieAuth: []
      parameters:
      - name: job_id
        in: path
        required: true
        schema:
          type: string
  /api/codegen/jobs/{job_id}/download:
    get:
      operationId: get_codegen_jobs_by_job_id_download
      summary: Get download
      tags:
      - codegen
      responses:
        '200':
          description: OK
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not Found
      security:
      - cookieAuth: []
      parameters:
      - name: job_id
        in: path
        required: true
        schema:
          type: string
  /api/codegen/jobs/{job_id}/mock-server:
    get:
      operationId: get_codegen_jobs_by_job_id_mock_server
      summary: Download standalone mock_server.py
      description: Returns a standalone Python stdlib mock server for the generated project. Run locally or in CodeSandbox to get working auth + CRUD without a real database.
      tags:
      - codegen
      responses:
        '200':
          description: mock_server.py file
          content:
            text/x-python:
              schema:
                type: string
        '400':
          description: Generation not complete
        '401':
          description: Unauthorized
        '404':
          description: Job not found
      security:
      - cookieAuth: []
      parameters:
      - name: job_id
        in: path
        required: true
        schema:
          type: string
  /api/codegen/jobs/{job_id}/preview:
    get:
      operationId: get_codegen_jobs_by_job_id_preview_root
      summary: Live mock API root — returns server info
      tags:
      - codegen
      responses:
        '200':
          description: Mock server info
        '404':
          description: Preview not available
      parameters:
      - name: job_id
        in: path
        required: true
        schema:
          type: string
  /api/codegen/jobs/{job_id}/preview/{api_path}:
    get:
      operationId: get_codegen_jobs_by_job_id_preview
      summary: Live mock API — no auth required
      description: In-platform mock backend for web previews. Handles /api/auth/login, /api/auth/me, and CRUD for all generated entities. CORS-enabled, no JWT required. Set NEXT_PUBLIC_API_URL to this base URL in CodeSandbox.
      tags:
      - codegen
      responses:
        '200':
          description: Mock response
        '404':
          description: Preview not available
      parameters:
      - name: job_id
        in: path
        required: true
        schema:
          type: string
      - name: api_path
        in: path
        required: true
        schema:
          type: string
    post:
      operationId: post_codegen_jobs_by_job_id_preview
      summary: Live mock API POST — no auth required
      tags:
      - codegen
      responses:
        '200':
          description: Mock response
        '201':
          description: Created
      parameters:
      - name: job_id
        in: path
        required: true
        schema:
          type: string
      - name: api_path
        in: path
        required: true
        schema:
          type: string
  /api/codegen/jobs/{job_id}/retry:
    post:
      operationId: post_codegen_jobs_by_job_id_retry
      summary: Create/invoke retry
      tags:
      - codegen
      responses:
        '200':
          description: OK
        '201':
          description: Created
        '400':
          description: Bad Request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - cookieAuth: []
      parameters:
      - name: job_id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
  /api/codegen/jobs/{job_id}/save-files:
    post:
      operationId: save_edited_codegen_files
      summary: Persist client-side edits back into the artifact
      tags:
      - codegen
      security:
      - cookieAuth: []
      parameters:
      - name: job_id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - edits
              properties:
                edits:
                  type: object
                  additionalProperties:
                    type: string
      responses:
        '200':
          description: OK — returns file_count and saved count
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '404':
          description: Job not found
  /api/codegen/jobs/{job_id}/verify:
    post:
      operationId: reverify_codegen_artifact
      summary: Re-run ARCHVERIFY on current (possibly edited) file set
      tags:
      - codegen
      security:
      - cookieAuth: []
      parameters:
      - name: job_id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK — returns quality_score, by_phase, issues, passed
        '400':
          description: No files or generation incomplete
        '401':
          description: Unauthorized
        '404':
          description: Job not found
  /api/codegen/jobs/{job_id}/ai-edit:
    post:
      operationId: ai_edit_codegen_file
      summary: Apply NL instruction to a generated file via workspace LLM
      tags:
      - codegen
      security:
      - cookieAuth: []
      parameters:
      - name: job_id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - instruction
              - file_path
              - content
              properties:
                instruction:
                  type: string
                file_path:
                  type: string
                content:
                  type: string
      responses:
        '200':
          description: OK — returns new_content, diff, file_path
        '400':
          description: Bad request or no LLM key configured
        '401':
          description: Unauthorized
        '404':
          description: Job not found
  /api/codegen/jobs/{job_id}/status:
    get:
      operationId: get_codegen_jobs_by_job_id_status
      summary: Get status
      tags:
      - codegen
      responses:
        '200':
          description: OK
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not Found
      security:
      - cookieAuth: []
      parameters:
      - name: job_id
        in: path
        required: true
        schema:
          type: string
  /api/codegen/jobs/{job_id}/live-preview:
    post:
      operationId: launch_live_preview
      summary: Launch a live preview environment for a completed codegen job (Pro+ only)
      tags:
      - codegen
      responses:
        '202':
          description: Provisioning started — poll GET /live-preview for status
        '200':
          description: Preview already running
        '400':
          description: Generation not complete
        '401':
          description: Unauthorized
        '402':
          description: Plan upgrade required (Professional+)
        '404':
          description: Job not found
      security:
      - cookieAuth: []
      parameters:
      - name: job_id
        in: path
        required: true
        schema:
          type: string
    get:
      operationId: get_live_preview_status
      summary: Poll live preview environment status for a codegen job
      tags:
      - codegen
      responses:
        '200':
          description: Live preview status
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      live_preview_status:
                        type: string
                        enum:
                        - pending
                        - building
                        - running
                        - failed
                        - stopped
                      live_preview_url:
                        type: string
                        nullable: true
                      live_preview_expires_at:
                        type: string
                        format: date-time
                        nullable: true
                      live_preview_error:
                        type: string
                        nullable: true
        '401':
          description: Unauthorized
        '404':
          description: Job not found
      security:
      - cookieAuth: []
      parameters:
      - name: job_id
        in: path
        required: true
        schema:
          type: string
  /api/codegen/{blueprint_id}/latest:
    get:
      operationId: get_codegen_by_blueprint_id_latest
      summary: Get latest completed codegen artifact for a blueprint
      tags:
      - codegen
      responses:
        '200':
          description: OK — data is null if no artifact exists
        '401':
          description: Unauthorized
      security:
      - cookieAuth: []
      parameters:
      - name: blueprint_id
        in: path
        required: true
        schema:
          type: integer
  /api/codegen/{blueprint_id}/history:
    get:
      operationId: get_codegen_by_blueprint_id_history
      summary: List all code generation runs for a blueprint, newest first
      tags:
      - codegen
      security:
      - cookieAuth: []
      parameters:
      - name: blueprint_id
        in: path
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: List of generation artifacts for the blueprint
        '404':
          description: Blueprint not found
  /api/codegen/{blueprint_id}/generate-mobile:
    post:
      operationId: post_codegen_by_blueprint_id_generate_mobile
      summary: Generate a React Native / Expo mobile app scaffold for a blueprint (paid…
      tags:
      - codegen
      security:
      - cookieAuth: []
      parameters:
      - name: blueprint_id
        in: path
        required: true
        schema:
          type: integer
      responses:
        '202':
          description: Mobile generation job accepted
        '402':
          description: Subscription inactive or insufficient credits
        '404':
          description: Blueprint not found
  /api/codegen/jobs/{job_id}/regenerate-previews:
    post:
      operationId: post_regenerate_previews
      summary: Regenerate web + mobile preview URLs for a codegen job
      tags:
      - codegen
      parameters:
      - name: job_id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
        '404':
          description: Not Found
      security:
      - cookieAuth: []
  /api/codegen/jobs/{job_id}/feedback:
    post:
      operationId: post_codegen_jobs_by_job_id_feedback
      summary: Create/invoke feedback
      tags:
      - codegen
      responses:
        '200':
          description: OK
        '201':
          description: Created
        '400':
          description: Bad Request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - cookieAuth: []
      parameters:
      - name: job_id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
  /api/codegen/jobs/{job_id}/traceability:
    get:
      operationId: get_codegen_jobs_by_job_id_traceability
      summary: Get traceability
      tags:
      - codegen
      responses:
        '200':
          description: OK
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not Found
      security:
      - cookieAuth: []
      parameters:
      - name: job_id
        in: path
        required: true
        schema:
          type: string
components:
  securitySchemes:
    cookieAuth:
      type: apiKey
      in: cookie
      name: access_token_cookie
      description: JWT access token stored in httpOnly cookie