{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/paradex/json-schema/paradex-requests-activate-subkey-schema.json",
  "title": "requests.ActivateSubkey",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/paradex-subkey-api-openapi.yml#/components/schemas/requests.ActivateSubkey",
  "type": "object",
  "required": [
    "account_id",
    "public_key",
    "signature",
    "timestamp"
  ],
  "properties": {
    "account_id": {
      "description": "Account ID that the pending subkey belongs to.",
      "type": "string"
    },
    "name": {
      "description": "Optional: New name for the subkey upon activation.",
      "type": "string"
    },
    "public_key": {
      "description": "Public key of the pending subkey to activate.",
      "type": "string"
    },
    "signature": {
      "description": "Starknet signature [r, s] over pedersen(timestamp, eph_public_key).",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "timestamp": {
      "description": "Unix timestamp (seconds) included in signed message.",
      "type": "integer"
    }
  }
}