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

# [One Click Apps] List the deployments of a custom application

> Return the most recent builds of a custom application as reported by the platform (status, commit, timestamps). Only custom applications have deployments.



## OpenAPI

````yaml https://api.onetsolutions.net/schema get /v1/organizations/{organization_id}/projects/{project_id}/compute/instances/{instance_id}/one-click/apps/{app_id}/deployments
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: Billing
    description: >-
      Shopping cart, orders, invoices, payments, payment methods, gateways,
      promo codes, and balance management.
  - 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}/compute/instances/{instance_id}/one-click/apps/{app_id}/deployments:
    get:
      tags:
        - Compute
      summary: '[One Click Apps] List the deployments of a custom application'
      description: >-
        Return the most recent builds of a custom application as reported by the
        platform (status, commit, timestamps). Only custom applications have
        deployments.
      operationId: one_click_apps_deployments_list
      parameters:
        - in: path
          name: app_id
          schema:
            type: string
          description: Unique identifier of the deployed One Click App.
          required: true
        - in: path
          name: instance_id
          schema:
            type: string
          description: Unique identifier of the compute instance.
          required: true
        - in: query
          name: limit
          schema:
            type: integer
          description: >-
            Number of most recent deployments fetched from the platform
            (default: 20, max: 50).
        - in: path
          name: organization_id
          schema:
            type: string
          description: Unique identifier of the organization that owns the resource.
          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
          description: Unique identifier of the project containing the resource.
          required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedAppDeploymentList'
          description: ''
        '400':
          description: >-
            The application is not a custom application or is not deployed on
            the platform
        '401':
          description: Authentication credentials missing or invalid
        '403':
          description: Insufficient permissions on this instance
        '404':
          description: Application or instance not found
        '502':
          description: The application platform could not be reached
      security:
        - BearerAuth: []
components:
  schemas:
    PaginatedAppDeploymentList:
      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/AppDeployment'
    AppDeployment:
      type: object
      properties:
        uuid:
          type: string
          readOnly: true
        status:
          type: string
          readOnly: true
          description: >-
            Platform status: queued, in_progress, finished, failed or
            cancelled-by-user
        commit:
          type: string
          readOnly: true
        commit_message:
          type: string
          readOnly: true
        created_at:
          type: string
          readOnly: true
        updated_at:
          type: string
          readOnly: true
        is_webhook:
          type: boolean
          readOnly: true
          description: True when the redeploy webhook triggered it
      required:
        - commit
        - commit_message
        - created_at
        - is_webhook
        - status
        - updated_at
        - uuid
  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-...`).

````