---
title: "Api Refresh Api Key"
method: POST
path: "/v1/api-keys/refresh"
tags: ["api_keys"]
---

# Api Refresh Api Key

`POST /v1/api-keys/refresh`

## Request

- Base URL: `https://api.branchly.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.branchly.io/v1/api-keys/refresh`
- Auth: HTTP bearer

Refresh an API key. It will be returned only once. Store it securely.

## Request body

- APIKeyRefresh: Model for recreating an API key.
  - `id` string, uuid, required
  - `application_id` string, uuid, required: Application ID this key belongs to

## Response `201`

Successful Response

- APIKeyPlainResponse: Model for API key response.
  - `id` string, uuid, required
  - `application_id` string, uuid, required
  - `name` string, required
  - `key` string, required: The actual API key (only shown on creation)
  - `meta` object: Metadata associated with the API key
  - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/branchly/apis/branchly-io-api.md) · [All operations](https://skmtc.dev/branchly/apis/branchly-io-api/llms.txt) · [OpenAPI document](https://skmtc.dev/branchly/apis/branchly-io-api/revisions/9ffb024f8ec8?raw)
