---
title: "Revoke an account provider key"
method: DELETE
path: "/api/accounts/{accountId}/provider-keys/{provider}"
tags: ["User"]
---

# Revoke an account provider key

`DELETE /api/accounts/{accountId}/provider-keys/{provider}`

## Request

- Base URL: `https://makefx.app`
- URL: `https://makefx.app/api/accounts/{accountId}/provider-keys/{provider}`
- Auth: one of:
  - OAuth 2 (authorization code, authorization URL `https://makefx.app/api/oauth/authorize`, token URL `https://makefx.app/api/oauth/token`, scopes: `write`)
  - API key in cookie `auth_token`

Soft-revokes the active provider credential. Repeating the request has no effect.

## Path parameters

- `accountId` string, required: accountId path parameter
- `provider` string, required: provider path parameter

## Headers

- `API-Version` '2026-09-10'

## Response `200`

Success

- object
  - `provider` 'google_ai' | 'openai' | 'fal' | 'replicate' | 'elevenlabs' | 'fish_audio', required
  - `revoked` boolean, required

## Other responses

- `401`: No valid credentials. WWW-Authenticate names the protected resource metadata to start from
- `403`: The credentials are valid but not enough: the token lacks the scope, or the action needs a browser session rather than an app token
- `404`: Not found
- `429`: Rate limited. RateLimit names the policy; Retry-After says when to try again
- `500`: Internal server error

---

[API](https://skmtc.dev/makefx/apis/makefx-app-api.md) · [All operations](https://skmtc.dev/makefx/apis/makefx-app-api/llms.txt) · [OpenAPI document](https://skmtc.dev/makefx/apis/makefx-app-api/revisions/a05584da31c6?raw)
