---
title: "Search auth keys"
method: POST
path: "/auth_keys"
tags: ["AuthKeys"]
---

# Search auth keys

`POST /auth_keys`

## Request body

- object
  - `page` integer, nullable
  - `limit` integer, nullable — Maximum number of results to be returned. Can't be greater than the one set for your role. 0 means maximum.
  - `id` string
  - `uuid` string, uuid
  - `authkey_start` string — Search term matching the first 4 characters of the authkey
  - `authkey_end` string — Search term matching the last 4 characters of the authkey
  - `created` string, nullable — You can use any of the valid time related filters (examples: 7d, timestamps, [14d, 7d] for ranges, etc.)
  - `expiration` string, nullable — You can use any of the valid time related filters (examples: 7d, timestamps, [14d, 7d] for ranges, etc.)
  - `read_only` boolean
  - `user_id` string
  - `comment` string
  - `allowed_ips` string — Stringified JSON array of the IP addresses.
  - `last_used` string, nullable — You can use any of the valid time related filters (examples: 7d, timestamps, [14d, 7d] for ranges, etc.)

## Response `200`

Get auth keys response

- object[]
  - `AuthKey` AuthKey
    - `id` string
    - `uuid` string, uuid
    - `authkey_start` string
    - `authkey_end` string
    - `created` string
    - `expiration` string, date-time, nullable
    - `read_only` boolean
    - `user_id` string
    - `comment` string
    - `allowed_ips` string[], nullable
    - `last_used` string, nullable
  - `User` object
    - `id` string
    - `email` string, email

## Other responses

- `403` — Authentication failed. Please make sure you pass the API key of an API enabled user along in the Authorization header.
- `404` — The specified resource was not found
- `default` — Unexpected API error

---

[API](https://skmtc.net/misp/apis/misp-automation-api.md) · [All operations](https://skmtc.net/misp/apis/misp-automation-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/misp/misp-automation-api/versions/88b34ff032a1/schema)
