Mihari API (0.0.1)

Download OpenAPI specification:Download

alerts

Operations about alerts

Create an alert

Create an alert

Request Body schema: application/json
required
ruleId
required
string
artifacts
required
Array of strings

Responses

Request samples

Content type
application/json
{
  • "ruleId": "string",
  • "artifacts": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "ruleId": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "artifacts": [
    ],
  • "tags": [
    ]
}

Search alerts

Search alerts

query Parameters
page
integer <int32>
Default: 1
limit
integer <int32>
Default: 10
artifact
string
rule_id
string
tag
string
fromAt
string <date-time>
toAt
string <date-time>

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Delete an alert

Delete an alert

path Parameters
id
required
integer <int32>

Responses

Response samples

Content type
application/json
{
  • "message": "string"
}

artifacts

Operations about artifacts

Delete an artifact

Delete an artifact

path Parameters
id
required
integer <int32>

Responses

Response samples

Content type
application/json
{
  • "message": "string"
}

Get an artifact

Get an artifact

path Parameters
id
required
integer <int32>

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "data": "string",
  • "dataType": "string",
  • "source": "string",
  • "tags": [
    ],
  • "metadata": { },
  • "autonomousSystem": {
    },
  • "geolocation": {
    },
  • "whoisRecord": {
    },
  • "reverseDnsNames": [
    ],
  • "dnsRecords": [
    ],
  • "cpes": [
    ],
  • "ports": [
    ]
}

Enrich an artifact

Enrich an artifact

path Parameters
id
required
integer <int32>

Responses

Response samples

Content type
application/json
{
  • "message": "string"
}

configs

Operations about configs

Get configs

Get configs

Responses

Response samples

Content type
application/json
[
  • {
    }
]

ip_addresses

Operations about ip_addresses

Get an IP address

Get an IP address

path Parameters
ip
required
string

Responses

Response samples

Content type
application/json
{
  • "ip": "string",
  • "countryCode": "string",
  • "hostname": "string",
  • "loc": "string",
  • "asn": 0
}

rules

Operations about rules

Delete a rule

Delete a rule

path Parameters
id
required
string

Responses

Response samples

Content type
application/json
{
  • "message": "string"
}

Get a rule

Get a rule

path Parameters
id
required
string

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "title": "string",
  • "description": "string",
  • "yaml": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "tags": [
    ]
}

Update a rule

Update a rule

Request Body schema: application/json
required
id
required
string
yaml
required
string

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "yaml": "string"
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "title": "string",
  • "description": "string",
  • "yaml": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "tags": [
    ]
}

Create a rule

Create a rule

Request Body schema: application/json
required
yaml
required
string

Responses

Request samples

Content type
application/json
{
  • "yaml": "string"
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "title": "string",
  • "description": "string",
  • "yaml": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "tags": [
    ]
}

Search rules

Search rules

query Parameters
page
integer <int32>
Default: 1
limit
integer <int32>
Default: 10
title
string
description
string
tag
string
fromAt
string <date-time>
toAt
string <date-time>

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Run a rule

Run a rule

path Parameters
id
required
string

Responses

Response samples

Content type
application/json
{
  • "message": "string"
}

Get rule IDs

Get Rule IDs

Responses

Response samples

Content type
application/json
[
  • {
    }
]

tags

Operations about tags

Delete a tag

Delete a tag

path Parameters
name
required
string

Responses

Response samples

Content type
application/json
{
  • "message": "string"
}

Get tags

Get tags

Responses

Response samples

Content type
application/json
[
  • {
    }
]