API ReferenceAccount
Schedule the account for deletion in 30 days
DELETE
Pauses every project the user owns, ends their sessions and disconnects their connected apps at once. The account and the projects it owns are deleted 30 days later; signing in again before then cancels the deletion.
Requires the account:write scope — Edit your profile and preferences, export your data, delete your account.
cookie
better-auth.session_token<token>BetterAuth session cookie. Used by the dashboard / browser clients. When present, the active project is taken from the x-project-id header.
application/json- body
confirmEmail*stringThe account email, typed by the user.
OK
application/json- response
success*trueValue in
truedeletionScheduledAt*stringFormat
date-timepurgeAfter*stringSigning in again before this cancels the deletion.
Format
date-timestoreSubscription*|A Sendly Pro the App Store or Google Play sold, which deleting the account does not cancel; null when there is none. Tell the person the message.
curl -X DELETE 'https://api.sendly.now/api/users/me' \ -H 'Content-Type: application/json' \ -d '{ "confirmEmail": "string"}'Example Response
{ "success": true, "deletionScheduledAt": "2019-08-24T14:15:22Z", "purgeAfter": "2019-08-24T14:15:22Z", "storeSubscription": { "store": "app_store", "message": "string" }}