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

# Issue relay bootstrap token



## OpenAPI

````yaml /api/openapi.yaml post /api/v1/relays/bootstrap-tokens
openapi: 3.1.0
info:
  title: OpenCluster Control Plane API
  version: 0.1.0
  description: HTTP contract for the OpenCluster product API and inbound webhook endpoints.
  license:
    name: Apache-2.0
servers:
  - url: http://localhost:8080
    description: Local self-hosted deployment
security: []
tags:
  - name: Authentication
  - name: Organizations
  - name: Members
  - name: Sessions
  - name: Policy
  - name: Audit
  - name: Integration Types
  - name: Integrations
  - name: Relays
  - name: Incidents
  - name: Investigations
  - name: Conversations
  - name: Postmortems
  - name: Webhook Deliveries
  - name: Webhook Intake
  - name: Metadata
paths:
  /api/v1/relays/bootstrap-tokens:
    post:
      tags:
        - Relays
      summary: Issue relay bootstrap token
      operationId: issueRelayBootstrapToken
      parameters:
        - $ref: '#/components/parameters/Organization'
      responses:
        '201':
          $ref: '#/components/responses/RelayBootstrapToken'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
      security:
        - SessionCookie: []
components:
  parameters:
    Organization:
      name: X-OpenCluster-Organization
      in: header
      required: true
      description: Selects the Organization whose data and membership are authorized.
      schema:
        $ref: '#/components/schemas/OrganizationID'
      example: acme-production
  responses:
    RelayBootstrapToken:
      description: Bootstrap token returned once; only its digest is retained.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RelayBootstrapToken'
    Unauthorized:
      description: Missing or rejected credential.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: >-
        Membership, permission, Organization selection, or cookie origin was
        rejected.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    OrganizationID:
      type: string
      pattern: ^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$
      minLength: 1
      maxLength: 63
    RelayBootstrapToken:
      type: object
      additionalProperties: false
      required:
        - token
        - expiresAt
        - notice
      properties:
        token:
          type: string
          minLength: 32
          maxLength: 2048
          readOnly: true
          example: relay-bootstrap-placeholder-token
        expiresAt:
          $ref: '#/components/schemas/Timestamp'
        notice:
          type: string
          minLength: 1
          maxLength: 1024
    Error:
      type: object
      additionalProperties: false
      required:
        - error
      properties:
        error:
          type: string
          minLength: 1
          maxLength: 1024
          example: the selected Organization is not available to this caller
        reason:
          type: string
          enum:
            - credential_rejected
            - session_expired
            - session_revoked
        requires:
          type: string
          minLength: 1
          maxLength: 128
    Timestamp:
      type: string
      format: date-time
  securitySchemes:
    SessionCookie:
      type: apiKey
      in: cookie
      name: __Host-oc_session

````