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

# Register an approval key

> <Badge color="blue" shape="pill">EA</Badge> Early Availability: this endpoint may change before GA.

Register an approval public key for an API user, used to sign approval requests. Up to 2 active keys are supported per API user. Returns the server-generated key ID used for deletion.

The `userId` must be the authenticated API user's own ID. Registering a key for another user is not supported and is rejected.

Registration may require approval. In that case the response carries `ccrIdPendingRegistration`, the key reads as `APPROVAL_API_KEY_STATUS_PENDING_REGISTRATION` and cannot sign until the request is approved. A rejected request removes the key.

Endpoint Permission: Owner, Admin, Non-Signing Admin, Approver, Signer, Security Admin.



## OpenAPI

````yaml https://swagger.fireblocks.com/openapi.yaml post /management/api_users/{userId}/approval_keys
openapi: 3.0.0
info:
  title: Fireblocks API
  description: >
    Fireblocks provides a suite of applications to manage digital asset
    operations and a complete development platform to build your business on the
    blockchain.


    - Visit our website for more information: [Fireblocks
    Website](https://fireblocks.com)

    - Visit our developer docs: [Fireblocks
    DevPortal](https://developers.fireblocks.com)
  version: 1.6.2
  contact:
    email: developers@fireblocks.com
servers:
  - url: https://api.fireblocks.io/v1
    description: Fireblocks Production Environment Base URL
  - url: https://sandbox-api.fireblocks.io/v1
    description: Fireblocks Sandbox Environment Base URL
security: []
paths:
  /management/api_users/{userId}/approval_keys:
    post:
      tags:
        - Approvals
      summary: Register an approval key
      description: >-
        <Badge color="blue" shape="pill">EA</Badge> Early Availability: this
        endpoint may change before GA.


        Register an approval public key for an API user, used to sign approval
        requests. Up to 2 active keys are supported per API user. Returns the
        server-generated key ID used for deletion.


        The `userId` must be the authenticated API user's own ID. Registering a
        key for another user is not supported and is rejected.


        Registration may require approval. In that case the response carries
        `ccrIdPendingRegistration`, the key reads as
        `APPROVAL_API_KEY_STATUS_PENDING_REGISTRATION` and cannot sign until the
        request is approved. A rejected request removes the key.


        Endpoint Permission: Owner, Admin, Non-Signing Admin, Approver, Signer,
        Security Admin.
      operationId: createApprovalKey
      parameters:
        - $ref: '#/components/parameters/X-Idempotency-Key'
        - in: path
          name: userId
          required: true
          description: The ID of the API user to register the approval key for.
          example: 8f3c1a2e-4b7d-4c91-a0e5-2d6f8b1c3a94
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RegisterApprovalApiKeyRequest'
      responses:
        '200':
          description: The approval key was registered.
          headers:
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RegisterApprovalApiKeyResponse'
        '409':
          description: >-
            Another approval key request for this API user is already pending
            approval.
          headers:
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchema'
        default:
          $ref: '#/components/responses/Error'
      x-codeSamples:
        - lang: TypeScript
          source: >-
            const response:
            Promise<FireblocksResponse<RegisterApprovalApiKeyResponse>> =
            fireblocks.approvals.createApprovalKey(approvalsApiCreateApprovalKeyRequest);
        - lang: Java
          source: >-
            CompletableFuture<ApiResponse<RegisterApprovalApiKeyResponse>>
            response =
            fireblocks.approvals().createApprovalKey(registerApprovalApiKeyRequest,
            userId, idempotencyKey);
        - lang: Python
          source: >-
            response =
            fireblocks.approvals.create_approval_key(register_approval_api_key_request,
            user_id, idempotency_key);
components:
  parameters:
    X-Idempotency-Key:
      name: Idempotency-Key
      in: header
      description: >-
        A unique identifier for the request. If the request is sent multiple
        times with the same idempotency key, the server will return the same
        response as the first request. The idempotency key is valid for 24
        hours.
      required: false
      schema:
        type: string
  schemas:
    RegisterApprovalApiKeyRequest:
      type: object
      description: The approval API key to register.
      properties:
        name:
          type: string
          description: A human-readable label for the key.
          example: primary signing key
        approvalApiPublicKey:
          $ref: '#/components/schemas/ApprovalApiPublicKey'
      required:
        - name
        - approvalApiPublicKey
    RegisterApprovalApiKeyResponse:
      type: object
      description: The result of registering an approval API key.
      properties:
        keyId:
          type: string
          description: The server-generated ID of the registered key, used for deletion.
          example: fab543c0-d6be-414c-aa05-5c6c84269d7a
        ccrIdPendingRegistration:
          type: string
          description: >-
            Always returned. An empty string when the key is active immediately.
            Otherwise, the ID of the approval request that must be approved
            before the key becomes active. The request appears in `GET
            /v1/approvals`.
          example: '19331'
      required:
        - keyId
        - ccrIdPendingRegistration
    ErrorSchema:
      type: object
      properties:
        message:
          type: string
        code:
          type: number
    ApprovalApiPublicKey:
      type: object
      description: The public key material and its signing algorithm.
      properties:
        algorithm:
          type: string
          description: The signature algorithm of the public key.
          example: ECDSA_SECP256R1
          enum:
            - RSA_PS256
            - ECDSA_SECP256R1
            - ECDSA_SECP384R1
            - EDDSA_ED25519
        publicKeyPem:
          type: string
          description: The PEM-encoded public key.
          example: |-
            -----BEGIN PUBLIC KEY-----
            MFkwEwYHKoZIzj0CAQ...
            -----END PUBLIC KEY-----
      required:
        - algorithm
        - publicKeyPem
  headers:
    X-Request-ID:
      schema:
        type: string
      description: >-
        Unique ID correlated to the API request. Please provide it in any
        support ticket you create or on Github issues related to Fireblocks SDKs
  responses:
    Error:
      description: Error Response
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorSchema'

````