Account
Create or update integration
POST
Create a new media server integration or update an existing one. Generates a unique webhook token for the provider.
sessioncookie
better-auth.session_token<token>Better Auth session cookie
application/json- body
Create a new media server integration
provider*stringMedia server provider to integrate
Value in
"plex""jellyfin""emby""sonarr""radarr"enabled?booleanWhether the integration starts enabled (default: true)
Created or updated integration with token
application/json- response
A media server integration configuration
id*stringIntegration ID
provider*stringProvider name (plex, jellyfin, etc.)
type*stringIntegration type: webhook (Plex/Jellyfin/Emby) or list (Sonarr/Radarr)
Value in
"webhook""list"token*stringWebhook authentication token
enabled*booleanWhether the integration is active
lastEventAt*|Last received event timestamp (ISO 8601)
createdAt*stringWhen the integration was created (ISO 8601)
curl -X POST "https://example.com/account/integrations" \ -H "Content-Type: application/json" \ -d '{ "provider": "plex" }'{ "id": "string", "provider": "string", "type": "webhook", "token": "string", "enabled": true, "lastEventAt": "string", "createdAt": "string"}