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

# List packages in workspace

> Returns the Packages owned by the Akua-Context Workspace, ordered by ID, with their versions newest first. Pass next_cursor as cursor to continue.



## OpenAPI

````yaml /openapi-public.json get /packages
openapi: 3.1.0
info:
  title: Akua API
  version: 1.0.0
  description: >-
    Manage installs and their asynchronous operations. Authenticate with a
    session bearer token and select a Workspace using Akua-Context.
  contact:
    name: Akua API support
    email: support@akua.dev
    url: https://docs.akua.dev/
servers:
  - url: https://api.akua.dev/v1
security: []
tags:
  - name: operations
  - name: installs
  - name: Organizations
  - name: Billing accounts
  - name: workspaces
  - name: regions
  - name: products
  - name: offers
  - name: Order Drafts
  - name: packages
  - name: API Tokens
  - name: Feedback
    description: >-
      Hit a limit, an error, or something confusing? Send feedback right away:
      akua feedback create --message "<what happened>". It goes straight to the
      Akua team.
  - name: Registry
    description: >-
      Connect image registry Upstreams and resolve private images. Guide:
      https://docs.akua.dev/private-images
  - name: Quota adjustments
  - name: Workspace services
  - name: Vault connections
  - name: clusterJoin
  - name: placements
  - name: joinBootstrap
  - name: clusters
  - name: Node pools
  - name: Nodes
  - name: machineBootstrap
  - name: machines
  - name: Sandboxes
  - name: OpenCode Servers
  - name: vaults
  - name: vaultSecrets
paths:
  /packages:
    get:
      tags:
        - packages
      summary: List packages in workspace
      description: >-
        Returns the Packages owned by the Akua-Context Workspace, ordered by ID,
        with their versions newest first. Pass next_cursor as cursor to
        continue.
      operationId: packages.list
      parameters:
        - name: akua-context
          in: header
          schema:
            type: string
            minLength: 1
            maxLength: 53
            description: >-
              Optional workspace/scope context for the request. Carries a single
              workspace wire id (`ws_…`) today. Only needed for broad tokens - a
              workspace-owned token implies its workspace.
            examples:
              - ws_j572abc123def4
          required: false
        - name: cursor
          in: query
          schema:
            type: string
            minLength: 1
            maxLength: 512
            description: Pagination cursor from a previous response's `next_cursor`.
          required: false
        - name: limit
          in: query
          schema:
            type: integer
            description: Items per page (1-100, default 50)
            default: 50
            minimum: 1
            maximum: 100
          required: false
      responses:
        '200':
          description: Packages in the Workspace
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkspacePackageList'
        '400':
          description: The request is malformed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiBadRequest'
        '401':
          description: Missing, invalid or expired credential.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiUnauthorized'
        '403':
          description: The credential may not act in this workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiForbidden'
        '503':
          description: The service is temporarily unavailable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiServiceUnavailable'
      security:
        - BearerAuth: []
components:
  schemas:
    WorkspacePackageList:
      type: object
      properties:
        data:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                minLength: 3
                maxLength: 54
              html_url:
                type: string
                description: Absolute dashboard URL for this resource. OUTPUT_ONLY.
                format: uri
                maxLength: 2048
              workspace_id:
                type: string
                minLength: 2
                maxLength: 53
              name:
                type: string
              source:
                $ref: '#/components/schemas/PackageSource'
              versions:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                      minLength: 3
                      maxLength: 55
                      description: >-
                        The version ID (`pkgv_...`), stable for the Package and
                        version number. OUTPUT_ONLY.
                    version:
                      type: string
                      minLength: 1
                      maxLength: 128
                      pattern: >-
                        ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|[0-9A-Za-z-]*[A-Za-z-][0-9A-Za-z-]*)(?:\.(?:0|[1-9]\d*|[0-9A-Za-z-]*[A-Za-z-][0-9A-Za-z-]*))*))?(?:\+([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?$
                    status:
                      type: string
                      enum:
                        - publishing
                        - published
                        - failed
                  required:
                    - id
                    - version
                    - status
                  additionalProperties: false
                description: Every version created for the Package, newest first.
              etag:
                type: string
              latest_version:
                anyOf:
                  - type: string
                    minLength: 1
                    maxLength: 128
                    pattern: >-
                      ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|[0-9A-Za-z-]*[A-Za-z-][0-9A-Za-z-]*)(?:\.(?:0|[1-9]\d*|[0-9A-Za-z-]*[A-Za-z-][0-9A-Za-z-]*))*))?(?:\+([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?$
                  - type: 'null'
                description: >-
                  Highest published semantic version, or null until one is
                  published.
            required:
              - id
              - html_url
              - workspace_id
              - name
              - source
              - versions
              - etag
              - latest_version
            additionalProperties: false
        has_more:
          type: boolean
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
      required:
        - data
        - has_more
        - next_cursor
      additionalProperties: false
    ApiBadRequest:
      type: object
      properties:
        _tag:
          type: string
          enum:
            - Validation
        success:
          type: boolean
          enum:
            - false
        errors:
          type: array
          prefixItems:
            - $ref: '#/components/schemas/ApiErrorEntry'
          minItems: 1
          items:
            $ref: '#/components/schemas/ApiErrorEntry'
        result:
          type: object
          additionalProperties: false
      required:
        - _tag
        - success
        - errors
        - result
      additionalProperties: false
    ApiUnauthorized:
      type: object
      properties:
        _tag:
          type: string
          enum:
            - Unauthorized
        success:
          type: boolean
          enum:
            - false
        errors:
          type: array
          prefixItems:
            - $ref: '#/components/schemas/ApiErrorEntry'
          minItems: 1
          items:
            $ref: '#/components/schemas/ApiErrorEntry'
        result:
          type: object
          additionalProperties: false
      required:
        - _tag
        - success
        - errors
        - result
      additionalProperties: false
    ApiForbidden:
      type: object
      properties:
        _tag:
          type: string
          enum:
            - Forbidden
        success:
          type: boolean
          enum:
            - false
        errors:
          type: array
          prefixItems:
            - $ref: '#/components/schemas/ApiErrorEntry'
          minItems: 1
          items:
            $ref: '#/components/schemas/ApiErrorEntry'
        result:
          type: object
          additionalProperties: false
      required:
        - _tag
        - success
        - errors
        - result
      additionalProperties: false
    ApiServiceUnavailable:
      type: object
      properties:
        _tag:
          type: string
          enum:
            - ServiceUnavailable
        success:
          type: boolean
          enum:
            - false
        errors:
          type: array
          prefixItems:
            - $ref: '#/components/schemas/ApiErrorEntry'
          minItems: 1
          items:
            $ref: '#/components/schemas/ApiErrorEntry'
        result:
          type: object
          additionalProperties: false
      required:
        - _tag
        - success
        - errors
        - result
      additionalProperties: false
    PackageSource:
      anyOf:
        - $ref: '#/components/schemas/PackageHostedSource'
        - $ref: '#/components/schemas/PackageOciSource'
    ApiErrorEntry:
      type: object
      properties:
        code:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
          description: Machine-readable error code
          examples:
            - 7002
        message:
          type: string
          description: Human-readable error message
          examples:
            - Resource not found
        path:
          type: array
          items:
            type: string
          description: Field path that caused the error, when applicable
          examples:
            - - body
              - name
        metadata:
          type: object
          additionalProperties:
            type: string
      required:
        - code
        - message
      additionalProperties: false
    PackageHostedSource:
      type: object
      properties:
        kind:
          type: string
          enum:
            - hosted
        chart:
          type: string
          minLength: 1
          maxLength: 253
          pattern: ^[a-z0-9]+(?:[._-][a-z0-9]+)*$
      required:
        - kind
        - chart
      additionalProperties: false
    PackageOciSource:
      type: object
      properties:
        kind:
          type: string
          enum:
            - oci
        repository:
          type: string
          description: >-
            Public OCI repository that holds the chart, without the chart name.
            Akua pulls each version anonymously.
          examples:
            - oci://ghcr.io/acme/charts
          minLength: 7
          maxLength: 2048
          pattern: ^oci:\/\/[^\s]+$
        chart:
          type: string
          examples:
            - web
          minLength: 1
          maxLength: 253
      required:
        - kind
        - repository
        - chart
      additionalProperties: false
  securitySchemes:
    BearerAuth:
      description: Bearer token for the authenticated caller.
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.