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

# [Web Hosting] List web hosting accounts

> Retrieve a paginated list of web hosting accounts within the specified project.



## OpenAPI

````yaml https://api.onetsolutions.net/schema get /v1/organizations/{organization_id}/projects/{project_id}/hosting
openapi: 3.0.3
info:
  title: OnetSolutions API
  version: v1 (v1)
  description: >

    ## Overview


    The OnetSolutions API provides programmatic access to manage your cloud
    infrastructure, domains, and web hosting services.


    ## Authentication


    All API requests require authentication using one of the following methods:


    - **JWT Token**: Obtain a token via login endpoints and include it in the
    `Authorization: Bearer <token>` header

    - **API Key**: Generate an API key from your account settings and use it as
    `Authorization: Bearer sk-onetsolutions-...`


    ## Rate Limiting


    API requests are rate-limited to ensure fair usage:

    - **Standard**: 1000 requests per minute

    - **Burst**: 100 requests per second


    ## Pagination


    List endpoints return paginated results. Use `page` and `page_size` query
    parameters.


    ## Error Handling


    The API uses standard HTTP status codes:

    - `200` Success

    - `201` Created

    - `400` Bad Request

    - `401` Unauthorized

    - `403` Forbidden

    - `404` Not Found

    - `429` Too Many Requests
servers:
  - url: https://api.onetsolutions.net
    description: Production
security: []
tags:
  - name: Authentication
    description: >-
      Login, passwordless authentication, MFA, OAuth providers, and token
      management.
  - name: Organizations
    description: >-
      Organization management, members, roles, modules, audit logs, and
      notification settings.
  - name: Projects
    description: Project management, team members, and project-scoped resources.
  - name: Compute
    description: >-
      Cloud instances, volumes, snapshots, backups, VPCs, firewalls, SSH keys,
      uptime monitors, and instance tasks.
  - name: Domains
    description: >-
      Domain availability, registration, transfers, DNS zones, DNS records, and
      TLD information.
  - name: Web Hosting
    description: >-
      cPanel-based web hosting, emails, databases, subdomains, FTP accounts,
      addon domains, and SSL certificates.
paths:
  /v1/organizations/{organization_id}/projects/{project_id}/hosting:
    get:
      tags:
        - Web Hosting
      summary: '[Web Hosting] List web hosting accounts'
      description: >-
        Retrieve a paginated list of web hosting accounts within the specified
        project.
      operationId: list_web_hostings
      parameters:
        - in: path
          name: organization_id
          schema:
            type: string
            format: uuid
          description: Organization unique identifier
          required: true
        - name: page
          required: false
          in: query
          description: A page number within the paginated result set.
          schema:
            type: integer
        - name: page_size
          required: false
          in: query
          description: Number of results to return per page.
          schema:
            type: integer
        - in: path
          name: project_id
          schema:
            type: string
            format: uuid
          description: Project unique identifier
          required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedWebHostingListList'
          description: List of web hosting accounts retrieved successfully
        '401':
          description: Authentication credentials missing or invalid
        '403':
          description: Insufficient permissions to access this project
        '404':
          description: Organization or project not found
      security:
        - BearerAuth: []
components:
  schemas:
    PaginatedWebHostingListList:
      type: object
      required:
        - count
        - results
      properties:
        count:
          type: integer
          example: 123
        next:
          type: string
          nullable: true
          format: uri
          example: http://api.example.org/accounts/?page=4
        previous:
          type: string
          nullable: true
          format: uri
          example: http://api.example.org/accounts/?page=2
        results:
          type: array
          items:
            $ref: '#/components/schemas/WebHostingList'
    WebHostingList:
      type: object
      properties:
        id:
          type: string
          format: uuid
        project_id:
          type: string
          format: uuid
          readOnly: true
        project_name:
          type: string
          readOnly: true
        domain:
          type: string
          description: Primary domain
          maxLength: 255
        username:
          type: string
          description: cPanel username
          maxLength: 50
        status:
          enum:
            - pending
            - active
            - suspended
            - terminated
            - cancelled
            - failed
          type: string
          description: |-
            * `pending` - Pending
            * `active` - Active
            * `suspended` - Suspended
            * `terminated` - Terminated
            * `cancelled` - Cancelled
            * `failed` - Failed
          x-spec-enum-id: d109fd339b80bd1e
        plan_name:
          type: string
          readOnly: true
        hosting_type:
          type: string
          readOnly: true
        group_id:
          type: string
          format: uuid
          readOnly: true
          nullable: true
        group_name:
          type: string
          readOnly: true
          nullable: true
        group_slug:
          type: string
          readOnly: true
          nullable: true
        server_name:
          type: string
          readOnly: true
          nullable: true
        disk_usage_mb:
          type: integer
          maximum: 4294967295
          minimum: 0
          format: int64
          description: Current disk usage in MB
        disk_limit_mb:
          type: integer
          maximum: 4294967295
          minimum: 0
          format: int64
          description: Disk limit in MB
        billing_cycle:
          enum:
            - free
            - one_time
            - monthly
            - quarterly
            - semi_annually
            - annually
            - biennially
            - triennially
          type: string
          description: |-
            * `free` - Free
            * `one_time` - One Time
            * `monthly` - Monthly
            * `quarterly` - Quarterly
            * `semi_annually` - Semi-Annually
            * `annually` - Annually
            * `biennially` - Biennially
            * `triennially` - Triennially
          x-spec-enum-id: 77ae26705af8e5e4
        price:
          type: string
          pattern: ^-?\d{0,6}(?:\.\d{0,4})?$
          description: Recurring price from WHMCS tblhosting
        next_billing_date:
          type: string
          format: date-time
          nullable: true
        website_preview:
          allOf:
            - $ref: '#/components/schemas/WebsitePreviewList'
          readOnly: true
        is_active:
          type: boolean
        created:
          type: string
          format: date-time
          readOnly: true
      required:
        - created
        - domain
        - group_id
        - group_name
        - group_slug
        - hosting_type
        - plan_name
        - project_id
        - project_name
        - server_name
        - website_preview
    WebsitePreviewList:
      type: object
      properties:
        page_title:
          type: string
          readOnly: true
        favicon_url:
          type: string
          format: uri
          readOnly: true
        thumbnail_url:
          type: string
          format: uri
          readOnly: true
        ssl_status:
          enum:
            - valid
            - expired
            - invalid
            - none
            - unknown
          type: string
          description: |-
            * `valid` - Valid
            * `expired` - Expired
            * `invalid` - Invalid
            * `none` - No SSL
            * `unknown` - Unknown
          x-spec-enum-id: 4ae8d4d9c42dd29d
          readOnly: true
        ssl_expires_at:
          type: string
          format: date-time
          readOnly: true
          nullable: true
        http_status:
          type: integer
          readOnly: true
          nullable: true
        last_check_at:
          type: string
          format: date-time
          readOnly: true
          nullable: true
      required:
        - favicon_url
        - http_status
        - last_check_at
        - page_title
        - ssl_expires_at
        - ssl_status
        - thumbnail_url
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT or API Key
      description: >-
        Use `Authorization: Bearer <token>` header. Token can be a JWT token or
        an API key (format: `sk-onetsolutions-...`).

````