Remove the stored credentials permanently and disable AI
DELETE
/v1/settings/ai/credentials
const url = 'https://beta-api.plune.ai/v1/settings/ai/credentials';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://beta-api.plune.ai/v1/settings/ai/credentials \ --header 'Authorization: Bearer <token>'Owner only (AC-20). The ciphertext is deleted without a recovery path. AI is left disabled; connecting again (PUT) starts over from AC-05. A draft already awaiting_decision is unaffected (AC-20).
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Removed
No / invalid token or session
A member or a reader asked
Media type application/json
object
error
required
string
Example
{ "error": "project owner only"}No provider connected — nothing to remove
Media type application/json
object
error
required
string
Example
{ "error": "AI is not connected"}Rate-limited: either the per-route throttle or a tenant quota. Retry-After carries the seconds until the window rolls over.
Media type application/json
object
error
required
string
Example generated
{ "error": "example"}Headers
Section titled “Headers ” Retry-After
integer
Seconds until the window rolls over