Sofa
Account

Regenerate webhook token

POST
/account/integrations/{provider}/regenerate-token

Generate a new webhook token for an integration. The old token is immediately invalidated.

Authorization

session
cookiebetter-auth.session_token<token>

Better Auth session cookie

Path Parameters

provider*string

Media server provider type

Value in"plex""jellyfin""emby""sonarr""radarr"

Request Body

application/json
  1. body

Response Body

Integration with new token

application/json
  1. response

A media server integration configuration

id*string

Integration ID

provider*string

Provider name (plex, jellyfin, etc.)

type*string

Integration type: webhook (Plex/Jellyfin/Emby) or list (Sonarr/Radarr)

Value in"webhook""list"
token*string

Webhook authentication token

enabled*boolean

Whether the integration is active

lastEventAt*|

Last received event timestamp (ISO 8601)

createdAt*string

When the integration was created (ISO 8601)

curl -X POST "https://example.com/account/integrations/plex/regenerate-token" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "string",  "provider": "string",  "type": "webhook",  "token": "string",  "enabled": true,  "lastEventAt": "string",  "createdAt": "string"}