Mihari API (0.0.1)

Download OpenAPI specification:Download

alerts

Operations about alerts

Delete an alert

Delete an alert

path Parameters
id
required
integer <int32>

Responses

Response samples

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

Search alerts

Search alerts

query Parameters
page
integer <int32>
artifact
string
description
string
source
string
tag
string
title
string
fromAt
string <date-time>
toAt
string <date-time>
asn
integer <int32>
dnsRecord
string
reverseDnsName
string

Responses

Response samples

Content type
application/json
[
  • {
    }
]

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": 0,
  • "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",
  • "yaml": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Update a rule

Update a rule

Request Body schema: application/json
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",
  • "yaml": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Create a rule

Create a rule

Request Body schema: application/json
yaml
required
string

Responses

Request samples

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

Response samples

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

Search rules

Search rules

query Parameters
page
integer <int32>
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"
}

sources

Operations about sources

Get sources

Get sources

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
[
  • {
    }
]