---
title: "Restore a revoked API credential; the same key + secret work again (public API)"
method: POST
path: "/projects/{project}/api-credentials/{cred}/restore"
tags: ["public", "api-credentials"]
---

# Restore a revoked API credential; the same key + secret work again (public API)

`POST /projects/{project}/api-credentials/{cred}/restore`

## Request

- Base URL: `https://api.urlbox.io/v2`
- URL: `https://api.urlbox.io/v2/projects/{project}/api-credentials/{cred}/restore`
- Auth: one of:
  - API key in header `x-api-key`
  - API key in cookie `urlbox.session_token`

## Path parameters

- `project` string, required
- `cred` string, required

## Response `200`

OK

- object
  - `id` string, required
  - `apiKey` string, required
  - `apiSecret` string, nullable, required
  - `secretLast4` string, required
  - `revoked` boolean, required
  - `revokedAt` string, nullable, required
  - `createdAt` string, required

## Changes

- **2026-10-26** `2e3492ef654f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/urlbox/apis/urlbox-public-api-spike/changes/projects/:project/api-credentials/:cred/restore/post.md)

---

[API](https://skmtc.dev/urlbox/apis/urlbox-public-api-spike.md) - [All operations](https://skmtc.dev/urlbox/apis/urlbox-public-api-spike/llms.txt) - [OpenAPI document](https://skmtc.dev/urlbox/apis/urlbox-public-api-spike/revisions/3abe8d573200?raw)
