Skip to main content
PATCH
/
extension
/
settings
cURL
curl --request PATCH \
  --url https://api.useanima.sh/v1/extension/settings \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "preApprovedAgentIds": [
    "<string>"
  ]
}
'
{
  "authPolicy": "session",
  "tokenTtl": "session",
  "preApprovedAgentIds": []
}

Authorizations

Authorization
string
header
required

JWT Bearer token obtained from authentication. Pass as: Authorization: Bearer

Body

application/json

Request body for updating extension auth settings

authPolicy
enum<string>

Updated auth policy

Available options:
session,
pre_approved,
prompt_owner
tokenTtl
enum<string>

Updated token TTL

Available options:
15m,
1h,
session
preApprovedAgentIds
string[]

Updated list of pre-approved agent IDs

Response

200 - application/json

OK

Current extension auth settings

authPolicy
enum<string>
default:session

Auth policy for extension connections

Available options:
session,
pre_approved,
prompt_owner
tokenTtl
enum<string>
default:session

How long extension auth tokens remain valid

Available options:
15m,
1h,
session
preApprovedAgentIds
string[]

Agent IDs allowed to silently authenticate (only used with pre_approved policy)