AuthKeys

Search auth keys

Changed on
post/auth_keys

Request

  • Base URL
    https://misp.local
  • URL
    https://misp.local/auth_keys
  • Auth
    API key in header Authorization

Request body

pageinteger nullable
limitinteger nullable

Maximum number of results to be returned. Can't be greater than the one set for your role. 0 means maximum.

idstring
uuidstring uuid
authkey_startstring

Search term matching the first 4 characters of the authkey

authkey_endstring

Search term matching the last 4 characters of the authkey

createdstring nullable

You can use any of the valid time related filters (examples: 7d, timestamps, [14d, 7d] for ranges, etc.)

expirationstring nullable

You can use any of the valid time related filters (examples: 7d, timestamps, [14d, 7d] for ranges, etc.)

read_onlyboolean
user_idstring
commentstring
allowed_ipsstring

Stringified JSON array of the IP addresses.

last_usedstring nullable

You can use any of the valid time related filters (examples: 7d, timestamps, [14d, 7d] for ranges, etc.)

Example request

{
  "id": "12345",
  "uuid": "c99506a6-1255-4b71-afa5-7b8ba48c3b1b",
  "user_id": "12345",
  "allowed_ips": "[\"127.0.0.1\",\"127.0.0.2\"]"
}

Response

Get auth keys response

Example response

[
  {
    "AuthKey": {
      "id": "12345",
      "uuid": "c99506a6-1255-4b71-afa5-7b8ba48c3b1b",
      "created": "1617875568",
      "expiration": "1970-01-01 00:00:00",
      "user_id": "12345",
      "allowed_ips": [
        "127.0.0.1"
      ],
      "last_used": "1617875568"
    },
    "User": {
      "id": "12345"
    }
  }
]

Changes

    • breaking

      the // response property's maxLength was unset from 36 for the response status

    • breaking

      the // response's property format changed from datetime to date-time for status

    • breaking

      the request property's min was increased to 1.00

    • info

      the request property's min was decreased from 1.00 to 0.00