{"openapi":"3.0.0","info":{"description":"Maltiverse API","version":"1.0.0-oas3","title":"Maltiverse API","contact":{"email":"root@maltiverse.com"},"license":{"name":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}},"tags":[{"name":"IPv4","description":"IPv4 address IoC related methods"},{"name":"Hostname","description":"Hostname IoC related methods"},{"name":"Url","description":"Url IOC related methods"},{"name":"Sample","description":"Sample IOC related methods"},{"name":"Search","description":"Search related methods"},{"name":"Aggregation","description":"Aggregation result related methods"},{"name":"Bulk","description":"Bulk IOC queries"},{"name":"Authentication","description":"Authentication related methods"}],"paths":{"/auth/login":{"post":{"tags":["Authentication"],"summary":"Login endpoint","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/loginRequestItem"}}},"description":"login object","required":true},"responses":{"200":{"description":"Successfully loged in"},"401":{"description":"Try again"}}}},"/auth/user":{"get":{"security":[{"bearerAuth":[]}],"tags":["Authentication"],"summary":"Retrieves a list of users. Requires Admin","responses":{"200":{"description":"User list found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserItem"}}}},"401":{"description":"Bearer token malformed"},"404":{"description":"Not found"}}}},"/auth/user/{username}":{"get":{"security":[{"bearerAuth":[]}],"tags":["Authentication"],"summary":"Gets a user by its username","parameters":[{"name":"username","in":"path","description":"ID of the user to request","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"User found","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserItem"}}}}},"401":{"description":"Bearer token malformed"},"404":{"description":"Not found"}}}},"/ip/{ipv4}":{"get":{"tags":["IPv4"],"summary":"retrieves an IP indicator","operationId":"getIP","description":"Retrieves the specified ip if exists\n","parameters":[{"name":"ipv4","in":"path","description":"ID of IPv4 address to return","required":true,"schema":{"type":"string","format":"ipv4"}}],"responses":{"200":{"description":"Ip found","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Ipv4Item"}}}}},"400":{"description":"Bad request. Not a valid IP address"},"404":{"description":"Not found"}}},"put":{"security":[{"bearerAuth":[]}],"tags":["IPv4"],"summary":"adds an ipv4 item","operationId":"addIpV4","description":"Adds an ipv4 to the system.","parameters":[{"name":"ipv4","in":"path","description":"ID of IPv4 address to return","required":true,"schema":{"type":"string","format":"ipv4"}}],"responses":{"200":{"description":"IP created"},"201":{"description":"IP updated"},"400":{"description":"Bad request. Not a valid IP address"},"500":{"description":"Internal Server Error"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Ipv4Item"}}},"description":"ipv4 object that needs to be added","required":true}},"delete":{"security":[{"bearerAuth":[]}],"tags":["IPv4"],"summary":"Deletes an IP indicator. Only an admin can delete indicators.","operationId":"deleteIP","description":"Deletes a specified IP address indicator\n","parameters":[{"name":"ipv4","in":"path","description":"ID of IPv4 address to return","required":true,"schema":{"type":"string","format":"ipv4"}}],"responses":{"200":{"description":"IP deleted","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Ipv4Item"}}}}},"400":{"description":"Bad request. Not a valid IP address"},"404":{"description":"Not found"}}}},"/hostname/{hostname}":{"get":{"tags":["Hostname"],"summary":"retrieves an Honstame indicator","operationId":"getHostname","description":"Retrieves the specified hostname if exists\n","parameters":[{"name":"hostname","in":"path","description":"ID of Hostname to return","required":true,"schema":{"type":"string","format":"hostname"}}],"responses":{"200":{"description":"Hostname found","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/HostnameItem"}}}}},"400":{"description":"Bad request. Not a valid hostname"},"404":{"description":"Not found"}}},"put":{"security":[{"bearerAuth":[]}],"tags":["Hostname"],"summary":"adds a hostname item","operationId":"addHostname","description":"Adds a hostname to the system","parameters":[{"name":"hostname","in":"path","description":"ID of hotname address to return","required":true,"schema":{"type":"string","format":"hostname"}}],"responses":{"200":{"description":"hostname created"},"201":{"description":"hostname updated"},"400":{"description":"Bad request. Not a valid hostname"},"500":{"description":"Internal Server Error"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostnameItem"}}},"description":"hostname object that needs to be added","required":true}},"delete":{"security":[{"bearerAuth":[]}],"tags":["Hostname"],"summary":"Deletes a hostname indicator. Only an admin can delete indicators.","operationId":"deleteHostname","description":"Deletes a specified Hostname indicator\n","parameters":[{"name":"hostname","in":"path","description":"ID of hostname to return","required":true,"schema":{"type":"string","format":"hostname"}}],"responses":{"200":{"description":"Hostname deleted","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/HostnameItem"}}}}},"400":{"description":"Bad request. Not a valid Hostname"},"404":{"description":"Not found"}}}},"/url/{urlchecksum}":{"get":{"tags":["Url"],"summary":"retrieves an URL indicator","operationId":"getUrl","description":"Retrieves the specified url if exists fetched by its sha256 integrity checksum\n","parameters":[{"name":"urlchecksum","in":"path","description":"ID of URL to return. Must be calculated by the sha256 hash of the effective URL","required":true,"schema":{"type":"string","minLength":64,"maxLength":64}}],"responses":{"200":{"description":"URL found","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UrlItem"}}}}},"400":{"description":"Bad request. Not a valid url"},"404":{"description":"Not found"}}},"put":{"security":[{"bearerAuth":[]}],"tags":["Url"],"summary":"adds a url item","operationId":"addURL","description":"Adds a url to the system","parameters":[{"name":"urlchecksum","in":"path","description":"ID of URL to return. Must be calculated by the sha256 hash of the effective URL.","required":true,"schema":{"type":"string","minLength":64,"maxLength":64}}],"responses":{"200":{"description":"Url created"},"201":{"description":"Url updated"},"400":{"description":"Bad request. Not a valid Url"},"500":{"description":"Internal Server Error"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UrlItem"}}},"description":"URL object that needs to be added","required":true}},"delete":{"security":[{"bearerAuth":[]}],"tags":["Url"],"summary":"Deletes a url indicator. Only an admin can delete indicators.","operationId":"deleteUrl","description":"Deletes a specified Url indicator\n","parameters":[{"name":"urlchecksum","in":"path","description":"ID of URL to delete. Must be calculated by the sha256 hash of the effective URL.","required":true,"schema":{"type":"string","minLength":64,"maxLength":64}}],"responses":{"200":{"description":"Url deleted","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UrlItem"}}}}},"400":{"description":"Bad request. Not a valid Url"},"404":{"description":"Not found"}}}},"/sample/{sha256}":{"get":{"tags":["Sample"],"summary":"retrieves a Sample indicator","operationId":"getSample","description":"Gets the specified sample by if exists fetched by its sha256 \n","parameters":[{"name":"sha256","in":"path","description":"SHA256 hash of the effective file","required":true,"schema":{"type":"string","minLength":64,"maxLength":64}}],"responses":{"200":{"description":"Sample found","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SampleItem"}}}}},"400":{"description":"Bad request. Not a valid SHA256"},"404":{"description":"Not found"}}},"put":{"security":[{"bearerAuth":[]}],"tags":["Sample"],"summary":"adds a sample item","operationId":"addSample","description":"Puts a new sample into the dataset","parameters":[{"name":"sha256","in":"path","description":"SHA256 hash of the effective sample","required":true,"schema":{"type":"string","minLength":64,"maxLength":64}}],"responses":{"200":{"description":"Sample created"},"201":{"description":"Sample updated"},"400":{"description":"Bad request. Not a valid SHA256"},"500":{"description":"Internal Server Error"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SampleItem"}}},"description":"Sample object to be added","required":true}},"delete":{"security":[{"bearerAuth":[]}],"tags":["Sample"],"summary":"Deletes a sample indicator. Only an admin can delete indicators.","operationId":"deleteSample","description":"Deletes a specified Sample indicator\n","parameters":[{"name":"sha256","in":"path","description":"SHA256 hash of the effective sample","required":true,"schema":{"type":"string","minLength":64,"maxLength":64}}],"responses":{"200":{"description":"Sample deleted","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SampleItem"}}}}},"400":{"description":"Bad request. Not a valid SHA256"},"404":{"description":"Not found"}}}},"/search":{"get":{"tags":["Search"],"summary":"performs a search query into the dataset","operationId":"search","description":"Search for a DSL query into the Maltiverse dataset","parameters":[{"name":"query","in":"query","description":"Query DSL to search into the dataset https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html","required":true,"schema":{"type":"string"},"example":"blacklist.description:'Trickbot' AND type:url"},{"name":"from","in":"query","description":"Defines the offset from the first result to fetch","required":false,"schema":{"type":"integer","minimum":0,"default":0}},{"name":"size","in":"query","description":"Allows to configure the maximum amount of hits to be returned","required":false,"schema":{"type":"integer","minimum":1,"default":10}},{"name":"sort","in":"query","description":"Set the returned result sort type.","required":false,"schema":{"type":"string","enum":["modification_time_asc","modification_time_desc","creation_time_asc","creation_time_desc","visits_asc","visits_desc"]},"examples":{"modification_time_asc":{"value":"modification_time_asc","summary":"Sort by modification_time ASC"},"modification_time_desc":{"value":"modification_time_desc","summary":"Sort by modification_time DESC"}}},{"name":"range","in":"query","description":"Filters by matching documents with fields that have the specified 'range_field' date type greater or equal than the provided value. Ref: https://www.elastic.co/guide/en/elasticsearch/reference/6.4/common-options.html#date-math","required":false,"schema":{"type":"string"},"example":"now-1d"},{"name":"range_field","in":"query","description":"Filters by matching documents filtered by the field specified in this paraameter with date greater or equal than the value provided in 'range' field.","required":false,"schema":{"type":"string","enum":["creation_time","modification_time"]},"example":"now-1d"},{"name":"format","in":"query","description":"Specifies the return output format. Default is JSON but can specify STIX","required":false,"schema":{"type":"string","enum":["stix"]},"example":"stix"}],"responses":{"200":{"description":"Query executed","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UrlItem"}}}}},"400":{"description":"Bad request. Not a valid Url"},"404":{"description":"Not found"}}}},"/aggr/search":{"get":{"tags":["Aggregation"],"summary":"Resource that aggregates a search query by blacklist specified field","parameters":[{"name":"query","in":"query","description":"Query DSL to search into the dataset https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html","required":true,"schema":{"type":"string"}},{"name":"field","in":"query","description":"Field to aggregate results by. Could be any field","required":true,"schema":{"type":"string"}},{"name":"size","in":"query","description":"Number of results to retrieve","required":true,"schema":{"type":"string"}},{"name":"range","in":"query","description":"Time range in elasticsearch format to filter results in","schema":{"type":"string"}},{"name":"range_field","in":"query","description":"Datetime field to filter and query by","schema":{"type":"string"}}],"responses":{"200":{"description":"Aggregation performed","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/aggregationResponseItem"}}}}},"500":{"description":"Internal Server Error"}}}},"/aggr/hist":{"get":{"tags":["Aggregation"],"summary":"Resource that retrieves a histogram of a query results by interval","parameters":[{"name":"query","in":"query","description":"Query DSL to search into the dataset https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html","required":true,"schema":{"type":"string"}},{"name":"field","in":"query","description":"Field to aggregate results by. Could be any field","required":true,"schema":{"type":"string"}},{"name":"interval","in":"query","description":"Time interval in elasticsearch format to create histogram","required":true,"schema":{"type":"string"}},{"name":"range","in":"query","description":"Time range in elasticsearch format to filter results in","schema":{"type":"string"}},{"name":"range_field","in":"query","description":"Datetime field to filter and query by","schema":{"type":"string"}}],"responses":{"200":{"description":"Histogram performed","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/histogramResponseItem"}}}}},"500":{"description":"Internal Server Error"}}}},"/bulk/ip":{"post":{"tags":["Bulk"],"summary":"Resource for managing bulk IpV4 addresses resolution","requestBody":{"description":"Resource that queries IPv4 Addresses in bulk","required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ip_addr":{"type":"array","uniqueItems":true,"items":{"type":"string","format":"ipv4","example":["185.251.38.129","195.123.245.191","89.223.89.10"]}}}}}}},"responses":{"200":{"description":"Found","content":{"application/json":{"schema":{"type":"object","properties":{"fullInfo":{"type":"boolean"},"ip_addr":{"type":"array","items":{"$ref":"#/components/schemas/Ipv4Item"}}}}}}}}}},"/bulk/hostname":{"post":{"tags":["Bulk"],"summary":"Resource that queries hostnames in bulk","requestBody":{"description":"Resource that queries hostnames in bulk","required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"hostname":{"type":"array","uniqueItems":true,"items":{"type":"string","format":"hostname","example":["www.imosi.cn","abc.lvmaozy.com"]}}}}}}},"responses":{"200":{"description":"Found","content":{"application/json":{"schema":{"type":"object","properties":{"fullInfo":{"type":"boolean"},"hostname":{"type":"array","items":{"$ref":"#/components/schemas/HostnameItem"}}}}}}}}}},"/bulk/url":{"post":{"tags":["Bulk"],"summary":"Resource that queries urls in bulk.","requestBody":{"description":"Resource that queries urls in bulk","required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"array","items":{"type":"string","format":"url","example":["https://app.box.com/s/snz9xwhidgu8u175ayqfwhqyhmle77lp","https://www.welsfagmary-online.com/"]}}}}}}},"responses":{"200":{"description":"Found","content":{"application/json":{"schema":{"type":"object","properties":{"fullInfo":{"type":"boolean"},"url":{"type":"array","items":{"$ref":"#/components/schemas/UrlItem"}}}}}}}}}},"/auth/subscriptions":{"post":{"tags":["Authentication"],"summary":"Resource that subscribes a user to a plan","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/subscribeRequestItem"}}}},"responses":{"200":{"description":"Found","content":{"application/json":{"schema":{"type":"object","properties":{"fullInfo":{"type":"boolean"},"url":{"type":"array","items":{"$ref":"#/components/schemas/UrlItem"}}}}}}}}},"get":{"tags":["Authentication"],"summary":"Resource that gets the subscription plan of a user","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Histogram performed","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/subscriptionGetResponseItem"}}}}},"401":{"description":"Stripe account not found"}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"Ipv4Item":{"type":"object","required":["ip_addr","type","classification"],"properties":{"ip_addr":{"type":"string","format":"ipv4","example":"1.1.1.1"},"type":{"type":"string","enum":["ip"]},"classification":{"type":"string","enum":["malicious","suspicious","neutral","whitelisted"]},"tag":{"type":"array","uniqueItems":true,"items":{"type":"string"},"example":["c&c","banker","phishing","compromised"]},"blacklist":{"type":"array","items":{"$ref":"#/components/schemas/blItem"}},"creation_time":{"type":"string","format":"date","description":"The the date when the indicator is created. If no specified takes the current date value\n"},"modification_time":{"type":"string","format":"date","description":"The the date when the indicator got its last modification. If no specified takes the current date value\n"},"country_code":{"type":"string","minLength":2,"maxLength":2,"description":"Country code related to the IP address.\n"},"city":{"type":"string","description":"City related to the IP address.\n"},"state":{"type":"string","description":"State related to the IP address.\n"},"location":{"$ref":"#/components/schemas/locationItem"},"email":{"type":"array","uniqueItems":true,"items":{"type":"string","format":"email","example":["root@maltiverse.com","agm@maltiverse.com"]}},"address":{"type":"string","description":"Address related to the IP address.\n"},"as_name":{"type":"string","description":"Autonomous system related to the IP address.\n"},"asn_cidr":{"type":"string","description":"Autonomous system CIDR related to the IP address.      \n"},"asn_country_code":{"type":"string","description":"Country Code related to the IP address.   \n"},"asn_date":{"type":"string","description":"ASN date related to the IP address.   \n"},"asn_registry":{"type":"string","description":"ASN registry related to the IP address.   \n"},"cidr":{"type":"string","description":"CIDR related to the IP address. \n"},"registrant_name":{"type":"string","description":"Registrant name related to the IP address.       \n"},"postal_code":{"type":"string","description":"Postal code to the IP address. \n"},"last_updated":{"type":"string","format":"date","description":"Last time the whois reocord related to the IP address was updated. \n"}}},"HostnameItem":{"type":"object","required":["hostname","type","classification"],"properties":{"hostname":{"type":"string","format":"hostname","example":"paypal.com-information-update-activity-account.gq"},"type":{"type":"string","enum":["hostname"]},"classification":{"type":"string","enum":["malicious","suspicious","neutral","whitelisted"]},"tag":{"type":"array","uniqueItems":true,"items":{"type":"string"},"example":["c&c","banker","phishing","compromised"]},"blacklist":{"type":"array","items":{"$ref":"#/components/schemas/blItem"}},"creation_time":{"type":"string","format":"date","description":"The the date when the indicator is created. If no specified takes the current date value\n"},"modification_time":{"type":"string","format":"date","description":"The the date when the indicator got its last modification. If no specified takes the current date value\n"}}},"UrlItem":{"type":"object","required":["url","type","classification"],"properties":{"url":{"type":"string","format":"uri","example":"http://assocolours.com/mu/i/LoginVerification.php"},"type":{"type":"string","enum":["url"]},"classification":{"type":"string","enum":["malicious","suspicious","neutral","whitelisted"]},"tag":{"type":"array","uniqueItems":true,"items":{"type":"string"},"example":["c&c","banker","phishing","compromised"]},"blacklist":{"type":"array","items":{"$ref":"#/components/schemas/blItem"}},"creation_time":{"type":"string","format":"date","description":"The the date when the indicator is created. If no specified takes the current date value\n"},"modification_time":{"type":"string","format":"date","description":"The the date when the indicator got its last modification. If no specified takes the current date value\n"}}},"SampleItem":{"type":"object","required":["type","classification"],"properties":{"md5":{"type":"string","example":"5123f98a8d43c1f6cc25c3a5ae9cec24","minLength":32,"maxLength":32},"sha1":{"type":"string","example":"6bd6fc3c2e0ff8b3795dc8510d300f9a8c57c592","minLength":40,"maxLength":40},"sha256":{"type":"string","example":"e4a877ba15d80c1fb13c22ac4c90c7211452082f8d65f4393646e480cedffb3b","minLength":64,"maxLength":64},"sha512":{"type":"string","example":"babeed0f0c1456abfb3ee7321dfa38e433e84a617fb43fee9c91045cef3571eb0d3d19cd9940c0130ffba65fbe0e5421178183dc84000992e3ea6980e5d18e65","minLength":128,"maxLength":128},"av_ratio":{"type":"integer","example":12,"minLength":0,"maxLength":100},"score":{"type":"integer","example":20,"minLength":0,"maxLength":100},"size":{"type":"integer","example":2048,"minLength":0},"filetype":{"type":"string"},"mutex":{"type":"string"},"filename":{"type":"array","uniqueItems":true,"items":{"type":"string"},"example":["emotet_payload.exe","SCAN 099.pdf","HF8930495.jse"]},"contacted_host":{"type":"array","uniqueItems":true,"items":{"type":"string","format":"ipv4","example":"1.1.1.1"}},"dns_request":{"type":"array","uniqueItems":true,"items":{"type":"string","format":"hostname","example":"paypal.com-information-update-activity-account.gq"}},"type":{"type":"string","enum":["sample"]},"classification":{"type":"string","enum":["malicious","suspicious","neutral","whitelisted"]},"tag":{"type":"array","uniqueItems":true,"items":{"type":"string"},"example":["c&c","banker","phishing","compromised"]},"blacklist":{"type":"array","items":{"$ref":"#/components/schemas/blItem"}},"antivirus":{"type":"array","items":{"$ref":"#/components/schemas/antivirusItem"}},"network_suricata_alert":{"type":"array","items":{"$ref":"#/components/schemas/networkSuricataAlertItem"}},"process_list":{"type":"array","items":{"$ref":"#/components/schemas/processListItem"}},"http_data":{"type":"array","items":{"$ref":"#/components/schemas/httpDataItem"}},"creation_time":{"type":"string","format":"date","description":"The the date when the indicator is created. If no specified takes the current date value\n"},"modification_time":{"type":"string","format":"date","description":"The the date when the indicator got its last modification. If no specified takes the current date value\n"}}},"blItem":{"type":"object","required":["description","source"],"properties":{"description":{"type":"string","example":"Emotet"},"source":{"type":"string","example":"Maltiverse Research Team"},"first_seen":{"type":"string","format":"date","description":"First date when the blacklist blame was noticed. If no specified takes the current date value. This date can't point to the future and must be less or equal than last_seen\n"},"last_seen":{"type":"string","format":"date","description":"Last date when the blacklist blame was noticed. If no specified takes the current date value. This date can't point to the future and must be greater or equal than first_seen\n"}}},"antivirusItem":{"type":"object","required":["name","description"],"properties":{"name":{"type":"string","example":"HEUR:Trojan.Win32.Generic"},"description":{"type":"string","example":"Kaspersky"}}},"networkSuricataAlertItem":{"type":"object","properties":{"category":{"type":"string","example":"A Network Trojan was detected"},"description":{"type":"string","example":"ET TROJAN Observed GandCrab Ransomware Domain (carder .bit in DNS Lookup)"},"event":{"type":"string","example":"189.75.183.21:53 (UDP)"},"sid":{"type":"number","example":2025546}}},"processListItem":{"type":"object","properties":{"commandline":{"type":"string","example":"nslookup ransomware.bit ns2.wowservers.ru"},"name":{"type":"string","example":"nslookup.exe"},"normalizedpath":{"type":"string","example":"%WINDIR%\\System32\\nslookup.exe"},"sha256":{"type":"string","minLength":64,"maxLength":64,"example":"4a35c36f3f41f977fe1f0174d43c8cb9bd25a823b5f2a1970e501d839e1f8276"},"uid":{"type":"string","example":"00074954-00001104"}}},"httpDataItem":{"type":"object","properties":{"endpoint":{"type":"string"},"request":{"type":"string"},"url":{"type":"string"},"data":{"type":"string"}}},"locationItem":{"type":"object","required":["lat","lon"],"properties":{"lat":{"type":"number","example":11.231},"lon":{"type":"number","example":-23.1212}}},"UserItem":{"type":"object","required":["id","username"],"properties":{"id":{"type":"integer","example":1},"username":{"type":"string","example":"root"},"first_name":{"type":"string","example":"Ernest"},"last_name":{"type":"string","example":"Hemmingway"},"description":{"type":"string","example":"Hi there, this is a cybersecurity guru"},"email":{"type":"string","format":"email"},"password":{"type":"string"},"registered_on":{"type":"string","format":"date-time","description":"The the date when the user is created\n"},"active":{"type":"boolean","description":"Boolean that checks the user to be active. It a user is not active can't log into the system\n"},"tag":{"type":"array","uniqueItems":true,"items":{"type":"string"},"example":["c&c","banker","phishing","compromised"]}}},"loginRequestItem":{"type":"object","required":["email","password"],"properties":{"email":{"type":"string","format":"email","example":"email@maltiverse.com"},"password":{"type":"string","example":"qwerty123"}}},"loginResponseItem":{"type":"object","required":["email","password"],"properties":{"auth_token":{"type":"string"},"data":{"type":"object","description":"Array with information about the user"},"message":{"type":"string"},"status":{"type":"string"}}},"aggregationResponseItem":{"type":"object","required":["_shards"],"properties":{"_shards":{"type":"object","properties":{"failed":{"type":"number"},"skipped":{"type":"number"},"successful":{"type":"number"},"total":{"type":"number"}}},"aggregations":{"type":"object","properties":{"AggregateSearch":{"type":"object","properties":{"buckets":{"type":"array","items":{"$ref":"#/components/schemas/aggregationResponseBucketItem"}}}},"hits":{"type":"object","properties":{"max_score":{"type":"number"},"total":{"type":"number","description":"Count of hits filtered documents into the query"}}},"timed_out":{"type":"boolean","description":"Flag that considers if there is a false"},"took":{"type":"number"}}}}},"histogramResponseItem":{"type":"object","required":["_shards"],"properties":{"_shards":{"type":"object","properties":{"failed":{"type":"number"},"skipped":{"type":"number"},"successful":{"type":"number"},"total":{"type":"number"}}},"aggregations":{"type":"object","properties":{"histogram":{"type":"object","properties":{"buckets":{"type":"array","items":{"$ref":"#/components/schemas/histogramResponseBucketItem"}}}},"hits":{"type":"object","properties":{"max_score":{"type":"number"},"total":{"type":"number","description":"Count of hits filtered documents into the query"}}},"timed_out":{"type":"boolean","description":"Flag that considers if there is a false"},"took":{"type":"number"}}}}},"aggregationResponseBucketItem":{"type":"object","properties":{"doc_count":{"type":"number","example":24},"key":{"type":"string","example":"AS3561 Savvis"}}},"histogramResponseBucketItem":{"type":"object","properties":{"doc_count":{"type":"number","example":24},"key":{"type":"string","example":"1560117600000"},"key_as_string":{"type":"string","example":"2019-06-10 00:00:00"}}},"subscribeRequestItem":{"type":"object","properties":{"source":{"type":"string","description":"Stripe token generated in the Javascript client with payment information","example":["tok_1EykvrH2GQYU4ZadIUxrjXLJ"]},"plan_nickname":{"type":"string","enum":["Maltiverse Professional Plan","Maltiverse Enterprise Plan","Maltiverse Unlimited Plan"],"description":"Plan name get the user subscribed to"}}},"subscriptionGetResponseItem":{"type":"object","properties":{"id":{"type":"string","description":"Subscription identifier","example":["subs_1EykvrH2GQYU4ZadIUxrjXLJ"]}}}}},"servers":[{"url":"https://api.maltiverse.com"}]}