---
title: OneTimeKeys
type: object
description: |-
  One-time public keys.  The names of the properties should be in the format
  `<algorithm>:<key_id>`. The format of the key is determined
  by the [key algorithm](/client-server-api/#key-algorithms).
additionalProperties:
  oneOf:
    - type: string
    - type: object
      title: KeyObject
      properties:
        key:
          type: string
          description: The key, encoded using unpadded base64.
        signatures:
          type: object
          description: |-
            Signature for the device. Mapped from user ID to signature object,
            containing mapping from _key signing identifier_ to the signature
            (see also: [Signing JSON](/appendices/#signing-json))
          patternProperties:
            "^@":
              x-pattern-format: mx-user-id
              type: object
      required: ['key', 'signatures']
