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

# List projects

> List sites on this Molfex account.



## OpenAPI

````yaml /openapi.yaml get /projects
openapi: 3.1.0
info:
  title: Molfex API
  version: 1.0.0
  summary: Host a file or static site on a molfex.app URL.
  description: >
    Authenticate with `Authorization: Bearer molfex_...`.

    Create a key at
    [studio.molfex.app/api-keys](https://studio.molfex.app/api-keys).

    There is no guest or email-only upload.


    ### Publish loop


    1. `POST /projects` — get `uploadUrl` and `contentType`

    2. `PUT` the file to `uploadUrl` (expires in one hour)

    3. `POST /projects/{id}/publish`

    4. Poll `GET /projects/{id}` until `active` or `failed`


    `url` values are hostnames without `https://`. Open `https://{url}`.


    Publish uses credits. If you are out, buy more on the billing page.
  contact:
    url: https://studio.molfex.app
  license:
    name: Proprietary
servers:
  - url: https://studio.molfex.app/api/v1
    description: Production
security:
  - apiKey: []
tags:
  - name: Projects
    description: Create, publish, list, replace, and delete hosted projects.
paths:
  /projects:
    get:
      tags:
        - Projects
      summary: List projects
      description: List sites on this Molfex account.
      operationId: listProjects
      responses:
        '200':
          description: Project list
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProjectListResponse'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    ProjectListResponse:
      type: object
      required:
        - ok
        - data
      properties:
        ok:
          type: boolean
          enum:
            - true
        data:
          type: array
          items:
            $ref: '#/components/schemas/ProjectListItem'
    ProjectListItem:
      type: object
      required:
        - id
        - slug
        - status
        - createdAt
        - url
        - customDomains
        - passwordProtected
      properties:
        id:
          type: integer
        slug:
          type: string
        status:
          $ref: '#/components/schemas/ProjectStatus'
        createdAt:
          type: string
          format: date-time
        url:
          type: string
          example: my-site.molfex.app
        customDomains:
          type: array
          items:
            type: string
        passwordProtected:
          type: boolean
    ErrorBody:
      type: object
      required:
        - ok
        - error
      properties:
        ok:
          type: boolean
          enum:
            - false
        error:
          type: string
    ProjectStatus:
      type: string
      enum:
        - draft
        - processing
        - active
        - paused
        - failed
  responses:
    Error:
      description: Validation or business error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorBody'
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorBody'
          example:
            ok: false
            error: You need an API key
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: molfex
      description: API key from https://studio.molfex.app/api-keys. Starts with `molfex_`.

````