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

# Generate a cryptographic key

> Generates a new cryptographic key for a user. Requires a user identifier and a verification_id that exists in the identity_verifications table and belongs to the user associated with the organisation. This endpoint calls the hot-keys orchestrator partner-assign-key endpoint.



## OpenAPI

````yaml /specs/retail.openapi.json post /v1/key/generate
openapi: 3.0.3
info:
  title: Control Orchestrator API
  description: API for orchestrating identity verification and key management workflows
  version: 1.0.0
servers:
  - url: https://orchestrator.control.coincover.com
    description: Production server
  - url: https://orchestrator.uat-control.coincover.com
    description: Development server
security:
  - ApiKeyAuth: []
  - BearerAuth: []
tags:
  - name: Verification
    description: Start, check, and simulate biometric identity verification.
  - name: Keys
    description: Generate, assign, and verify cryptographic keys.
  - name: Backups
    description: Store and recover encrypted backup data.
paths:
  /v1/key/generate:
    post:
      tags:
        - Keys
      summary: Generate a cryptographic key
      description: >-
        Generates a new cryptographic key for a user. Requires a user identifier
        and a verification_id that exists in the identity_verifications table
        and belongs to the user associated with the organisation. This endpoint
        calls the hot-keys orchestrator partner-assign-key endpoint.
      operationId: generateKey
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/KeyGenerateRequest'
      responses:
        '200':
          description: Key generated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KeyGenerateResponse'
components:
  schemas:
    KeyGenerateRequest:
      type: object
      properties:
        user_identifier:
          type: string
          description: User identifier (REQUIRED)
          example: john.doe@example.com
        verification_id:
          type: string
          description: >-
            Verification ID from a previous verification. (REQUIRED) Must exist
            in identity_verifications table and belong to the user associated
            with the organisation.
          example: a7b8c9d0-e1f2-4345-a678-901234567890
      required:
        - user_identifier
        - verification_id
    KeyGenerateResponse:
      type: object
      properties:
        key_id:
          type: string
          format: uuid
          description: Unique identifier for the generated key (UUID)
          example: 550e8400-e29b-41d4-a716-446655440000
        public_key:
          type: string
          description: Public key in hexadecimal format
          example: 30820122300d06092a864886f70d...
        signature:
          type: string
          description: Signature of the key in base64 format
          example: MEUCIQDxyz123abc456def789ghi...
      required:
        - key_id
        - public_key
        - signature
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authentication and authorization
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: ID token as Bearer token

````