{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wso2/refs/heads/main/json-schema/admin-api-api-key-schema.json",
  "title": "API Key details to invoke APIs",
  "description": "APIKey schema from WSO2 API Manager",
  "type": "object",
  "properties": {
    "keyUUID": {
      "type": "string",
      "description": "The UUID of the API key"
    },
    "keyName": {
      "type": "string",
      "description": "API Key name",
      "example": "Test_Key"
    },
    "apiName": {
      "type": "string",
      "description": "API Name",
      "example": "NotificationsAPI"
    },
    "applicationName": {
      "type": "string",
      "description": "Application Name",
      "example": "DefaultApplication"
    },
    "keyType": {
      "type": "string",
      "description": "Application Key Type",
      "example": "PRODUCTION",
      "enum": [
        "PRODUCTION",
        "SANDBOX"
      ]
    },
    "user": {
      "type": "string",
      "description": "Owner of the Application",
      "example": "Bob"
    },
    "issuedOn": {
      "type": "integer",
      "format": "int64",
      "description": "Created time in Unix epoch milliseconds",
      "example": 1599196134000
    },
    "validityPeriod": {
      "type": "integer",
      "format": "int64",
      "example": 3600
    },
    "lastUsed": {
      "type": "integer",
      "format": "int64",
      "nullable": true,
      "description": "Last used time in Unix epoch milliseconds",
      "example": 1599196134000
    }
  }
}