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

# Get publish status

> Get publish status and hostname for a project.



## OpenAPI

````yaml /openapi.yaml get /projects/{id}
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/{id}:
    parameters:
      - $ref: '#/components/parameters/ProjectId'
    get:
      tags:
        - Projects
      summary: Get publish status
      description: Get publish status and hostname for a project.
      operationId: getProject
      responses:
        '200':
          description: Status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProjectStatusResponse'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    ProjectId:
      name: id
      in: path
      required: true
      schema:
        type: integer
        minimum: 1
      description: Project id returned by create or list.
  schemas:
    ProjectStatusResponse:
      type: object
      required:
        - ok
        - data
      properties:
        ok:
          type: boolean
          enum:
            - true
        data:
          type: object
          required:
            - status
            - url
            - error
          properties:
            status:
              $ref: '#/components/schemas/ProjectStatus'
            url:
              type: string
              example: my-site.molfex.app
            error:
              type:
                - string
                - 'null'
    ProjectStatus:
      type: string
      enum:
        - draft
        - processing
        - active
        - paused
        - failed
    ErrorBody:
      type: object
      required:
        - ok
        - error
      properties:
        ok:
          type: boolean
          enum:
            - false
        error:
          type: string
  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
    NotFound:
      description: Project not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorBody'
          example:
            ok: false
            error: Project not found
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: molfex
      description: API key from https://studio.molfex.app/api-keys. Starts with `molfex_`.

````