---
title: "Get API keys by filter"
method: GET
path: "/settings/1/accounts/{accountKey}/api-keys"
tags: ["platform", "account-management", "api-keys"]
deprecated: true
---

# Get API keys by filter

`GET /settings/1/accounts/{accountKey}/api-keys`

## Request

- Base URL: `https://api.infobip.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.infobip.com/settings/1/accounts/{accountKey}/api-keys`
- Auth: one of:
  - OAuth 2
    - Client credentials
    - Token URL: `https://api.infobip.com/auth/1/oauth2/token`
  - API key in header `Authorization`
  - HTTP basic

> **Deprecated.**

This method allows you to get API keys of some account by filter forwarded

## Path parameters

- `accountKey` string, required

## Query parameters

- `name` string
- `limit` integer
- `enabled` boolean
- `publicApiKey` string

## Response `200`

OK

- Bb8af9c2d2d4d677e25555100e31662e23d86ede8b5d73bbf4974b4decdd08d7ApiKeys
  - `apiKeys` Bb8af9c2d2d4d677e25555100e31662e23d86ede8b5d73bbf4974b4decdd08d7ApiKeyResponse[]: List of API keys
    - `key` string: Unique key specifying this api key.
    - `publicApiKey` string: Authentication key. Use this value for authentication on API. Keep this in secure storage and don't share it.
    - `accountKey` string: Unique identifier for account this API key belongs to.
    - `name` string, required: Name of this API Key.
    - `allowedIPs` string[]: List of allowed IP addresses from which this API key will be used. Authentication will fail from any other IP not specified in this list.
    - `validFrom` string, date-time: Date from which this API key is/will be valid. Time is in UTC.
    - `validTo` string, date-time: Date until this API key will be valid. Time is in UTC.
    - `enabled` boolean: Is API key enabled.
    - `permissions` Bb8af9c2d2d4d677e25555100e31662e23d86ede8b5d73bbf4974b4decdd08d7Permission[]: List of permissions this API key has granted.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/infobip/apis/infobip-openapi-specification.md) - [All operations](https://skmtc.dev/infobip/apis/infobip-openapi-specification/llms.txt) - [OpenAPI document](https://skmtc.dev/infobip/apis/infobip-openapi-specification/revisions/9dcbbaf902de?raw)
