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

# Get billing information

> Get current plan, usage, and subscription details for a workspace



## OpenAPI

````yaml openapi.json get /api/v1/billing
openapi: 3.0.0
info:
  description: Dualship backend API for workflow automation and API management.
  title: Dualship API
  termsOfService: https://dualship.run/terms
  contact:
    name: Dualship Support
    url: https://dualship.run/support
    email: support@dualship.run
  version: '1.0'
servers:
  - url: https://api.dualship.run
security: []
paths:
  /api/v1/billing:
    get:
      tags:
        - billing
      summary: Get billing information
      description: Get current plan, usage, and subscription details for a workspace
      parameters:
        - description: Workspace ID
          name: workspace_id
          in: query
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/github_com_dualship_dualship-be_internal_billing.BillingInfo
        '400':
          description: Invalid workspace ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_api_handler.BadRequestError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_api_handler.UnauthorizedError'
        '403':
          description: Not a member of this workspace
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_api_handler.ForbiddenError'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_api_handler.InternalServerError'
      security:
        - BearerAuth: []
components:
  schemas:
    github_com_dualship_dualship-be_internal_billing.BillingInfo:
      type: object
      properties:
        limits:
          $ref: >-
            #/components/schemas/github_com_dualship_dualship-be_internal_billing.PlanLimits
        plan:
          $ref: >-
            #/components/schemas/github_com_dualship_dualship-be_internal_billing.PlanInfo
        subscription:
          $ref: >-
            #/components/schemas/github_com_dualship_dualship-be_internal_billing.SubInfo
        usage:
          $ref: >-
            #/components/schemas/github_com_dualship_dualship-be_internal_billing.UsageInfo
    internal_api_handler.BadRequestError:
      description: Bad request error
      type: object
      properties:
        code:
          type: string
          example: BAD_REQUEST
        error:
          type: string
          example: invalid request parameters
    internal_api_handler.UnauthorizedError:
      description: Unauthorized error
      type: object
      properties:
        code:
          type: string
          example: UNAUTHORIZED
        error:
          type: string
          example: unauthorized
    internal_api_handler.ForbiddenError:
      description: Forbidden error
      type: object
      properties:
        code:
          type: string
          example: FORBIDDEN
        error:
          type: string
          example: insufficient permissions
    internal_api_handler.InternalServerError:
      description: Internal server error
      type: object
      properties:
        code:
          type: string
          example: INTERNAL_ERROR
        error:
          type: string
          example: internal server error
    github_com_dualship_dualship-be_internal_billing.PlanLimits:
      type: object
      properties:
        additional_seat_price:
          type: integer
        executions_per_month:
          type: integer
        flows:
          type: integer
        included_seats:
          type: integer
        log_retention_days:
          type: integer
        workspaces:
          type: integer
    github_com_dualship_dualship-be_internal_billing.PlanInfo:
      type: object
      properties:
        features:
          type: array
          items:
            $ref: >-
              #/components/schemas/github_com_dualship_dualship-be_internal_billing.PlanFeature
        id:
          type: string
        interval:
          type: string
        name:
          type: string
        price:
          type: integer
        slug:
          type: string
    github_com_dualship_dualship-be_internal_billing.SubInfo:
      type: object
      properties:
        cancel_at_period_end:
          type: boolean
        current_period_end:
          type: string
        status:
          type: string
        trial_end:
          type: string
    github_com_dualship_dualship-be_internal_billing.UsageInfo:
      type: object
      properties:
        executions:
          type: integer
        flows:
          type: integer
    github_com_dualship_dualship-be_internal_billing.PlanFeature:
      type: object
      properties:
        key:
          type: string
        label:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT Bearer token authentication

````