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

# Retry Namespace Provisioning

> Retry provisioning for a namespace that failed or is stuck.

Use this endpoint to retry provisioning for a namespace that failed or is stuck in a pending state. The `force` parameter allows retrying even if the namespace status is `PENDING`, which is useful for stuck provisioning jobs.


## OpenAPI

````yaml openapi.json POST /namespaces/{namespace_id}/retry-provisioning
openapi: 3.1.0
info:
  title: Sb0 API
  version: 0.1.0
servers: []
security: []
paths:
  /namespaces/{namespace_id}/retry-provisioning:
    post:
      tags:
        - Namespaces
      summary: Retry Namespace Provisioning
      description: Retry provisioning for a namespace that failed or is stuck.
      operationId: namespaces_retry_provisioning
      parameters:
        - in: path
          name: namespace_id
          required: true
          schema:
            title: Namespace Id
            type: string
        - description: Force retry even if status is PENDING (for stuck namespaces)
          in: query
          name: force
          required: false
          schema:
            default: false
            description: Force retry even if status is PENDING (for stuck namespaces)
            title: Force
            type: boolean
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Namespace'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    Namespace:
      description: Response model for namespace.
      properties:
        artifact_registry:
          anyOf:
            - type: string
            - type: 'null'
          description: Artifact Registry repository name.
          title: Artifact Registry
        created_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: When the namespace was created.
          title: Created At
        created_by:
          description: member_id of the creator.
          title: Created By
          type: string
        error:
          anyOf:
            - type: string
            - type: 'null'
          description: Error message if provisioning failed.
          title: Error
        error_step:
          anyOf:
            - type: string
            - type: 'null'
          description: Which provisioning step failed (e.g., 'create_gcs_bucket').
          title: Error Step
        gcp_sa_email:
          anyOf:
            - type: string
            - type: 'null'
          description: GCP service account email.
          title: Gcp Sa Email
        gcs_bucket:
          anyOf:
            - type: string
            - type: 'null'
          description: GCS bucket name.
          title: Gcs Bucket
        id:
          description: The unique identifier of the namespace.
          title: Id
          type: string
        k8s_namespace:
          anyOf:
            - type: string
            - type: 'null'
          description: K8s namespace name.
          title: K8S Namespace
        name:
          description: Human-readable name for the namespace.
          title: Name
          type: string
        owner_org_id:
          description: WorkOS organization ID that owns this namespace.
          title: Owner Org Id
          type: string
        registry_sa_email:
          anyOf:
            - type: string
            - type: 'null'
          description: Registry service account email for token generation.
          title: Registry Sa Email
        slug:
          description: URL-friendly unique identifier.
          title: Slug
          type: string
        status:
          $ref: '#/components/schemas/NamespaceStatus'
          default: READY
          description: 'Namespace status: pending, ready, or failed.'
      required:
        - id
        - slug
        - name
        - owner_org_id
        - created_by
      title: Namespace
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    NamespaceStatus:
      description: Status of namespace infrastructure provisioning.
      enum:
        - PENDING
        - READY
        - FAILED
      title: NamespaceStatus
      type: string
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````