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

# Get API key

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

## 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/{key}`
- 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.**

Key of the main account the API key belongs to. Use the special _ value to reference the account of the user making the API request or a standard account key such as 8F0792F86035A9F4290821F1EE6BC06A to reference an account explicitly

## Path parameters

- `accountKey` string, required
- `key` string, required

## Response `200`

OK

- Bb8af9c2d2d4d677e25555100e31662e23d86ede8b5d73bbf4974b4decdd08d7ApiKeyResponse
  - `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)
