---
title: "PATCH /extension/settings"
method: PATCH
path: "/extension/settings"
---

# PATCH /extension/settings

`PATCH /extension/settings`

## Request

- Base URL: `https://api.useanima.sh/v1`
- URL: `https://api.useanima.sh/v1/extension/settings`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

## Request body

- object: Request body for updating extension auth settings
  - `authPolicy` 'session' | 'pre_approved' | 'prompt_owner': Updated auth policy
  - `tokenTtl` '15m' | '1h' | 'session': Updated token TTL
  - `preApprovedAgentIds` string[]: Updated list of pre-approved agent IDs

## Response `200`

OK

- object: Current extension auth settings
  - `authPolicy` 'session' | 'pre_approved' | 'prompt_owner': Auth policy for extension connections
  - `tokenTtl` '15m' | '1h' | 'session': How long extension auth tokens remain valid
  - `preApprovedAgentIds` string[]: Agent IDs allowed to silently authenticate (only used with pre_approved policy)

---

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