{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/envestnet/json-schema/envestnet-api-key-response-schema.json",
  "title": "ApiKeyResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/envestnet-auth-api-openapi.yml#/components/schemas/ApiKeyResponse",
  "type": "object",
  "properties": {
    "apiKey": {
      "type": "array",
      "description": "ApiKey customer details.<br><br><b>Endpoints</b>:<ul><li>GET /auth/apiKey</li><li>POST /auth/apiKey</li></ul>",
      "items": {
        "$ref": "#/$defs/ApiKeyOutput"
      }
    }
  },
  "$defs": {
    "ApiKeyOutput": {
      "title": "ApiKeyOutput",
      "type": "object",
      "properties": {
        "expiresIn": {
          "type": "integer",
          "description": "Time in seconds after which the JWT token created for users expires.<br><br><b>Endpoints</b>:<ul><li>GET /auth/apiKey</li><li>POST /auth/apiKey</li></ul>",
          "format": "int64"
        },
        "createdDate": {
          "type": "string",
          "description": "The date on which the apiKey was created for the customer.<br><br><b>Endpoints</b>:<ul><li>GET /auth/apiKey</li><li>POST /auth/apiKey</li></ul>"
        },
        "publicKey": {
          "maxLength": 2147483647,
          "minLength": 1,
          "type": "string",
          "description": "Public key uploaded by the customer while generating ApiKey.<br><br><b>Endpoints</b>:<ul><li>GET /auth/apiKey</li><li>POST /auth/apiKey</li></ul>"
        },
        "key": {
          "type": "string",
          "description": "ApiKey or the issuer key used to generate the JWT token for authentication.<br><br><b>Endpoints</b>:<ul><li>GET /auth/apiKey</li><li>POST /auth/apiKey</li></ul>"
        }
      }
    }
  }
}