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
source
string

Responses

Request samples

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

Response samples

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

List/search alerts

List/search alerts

query Parameters
q
string
Default: ""
page
integer <int32>
Default: 1
limit
integer <int32>
Default: 10

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"
}

Get an alert

Get an alert

path Parameters
id
required
integer <int32>

Responses

Response samples

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

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",
  • "query": "string",
  • "metadata": { },
  • "createdAt": "2019-08-24T14:15:22Z",
  • "tags": [
    ],
  • "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"
}

List/search artifacts

List/search artifacts

query Parameters
q
string
Default: ""
page
integer <int32>
Default: 1
limit
integer <int32>
Default: 10

Responses

Response samples

Content type
application/json
[
  • {
    }
]

configs

Operations about configs

List configs

list configs

Responses

Response samples

Content type
application/json
[
  • {
    }
]

ip_addresses

Operations about ip_addresses

Get IP address data

Get IP address data

path Parameters
ip
required
string

Responses

Response samples

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

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
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": [
    ]
}

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": [
    ]
}

List/search rules

List/search rules

query Parameters
q
string
Default: ""
page
integer <int32>
Default: 1
limit
integer <int32>
Default: 10

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Run a rule

Search by a rule

path Parameters
id
required
string

Responses

Response samples

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

tags

Operations about tags

Delete a tag

Delete a tag

path Parameters
id
required
integer <int32>

Responses

Response samples

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

List tags

List tags

query Parameters
q
string
Default: ""
page
integer <int32>
Default: 1
limit
integer <int32>
Default: 10

Responses

Response samples

Content type
application/json
[
  • {
    }
]