Riposte reads platform settings from a single JSON document at
riposte/sync.config.json. The file now focuses on operational wiring for the
hosted admin experience—database connectivity, webhook delivery, OAuth
credentials, and branding for the hosted authentication flow. All options live
alongside your source code so changes are easy to review and track.
The riposte object contains the strongly typed platform configuration. Common
sub-sections include:
riposte.database – Connection string and optional pooling controls for the
sync datastore.
riposte.migrations – Decide whether Riposte runs pending migrations at
startup. autoApply defaults to true; set it to false when you want to
manage migrations outside of the server lifecycle.
riposte.notifications – Choose webhook versus polling delivery and tune
polling cadence.
riposte.webhooks – Define named webhook targets with secrets, headers,
retries, and timeouts.
riposte.oauth – Store OAuth redirect URIs and reference environment
variables for client credentials.
riposte.googleCloud – Configure Pub/Sub integration for Gmail push
notifications.
riposte.logging.openTelemetry – Enable OTLP log export and specify
collector headers or endpoints.
riposte.app – Control redirects for the hosted admin portal.
riposte.authScreen – Brand the hosted authentication experience.
riposte.messageTracking – Enable tracking pixels or headers and supply the
supported domains.
Environment-specific overrides remain optional—add an environments object if
you need to tailor riposte.* settings for specific deployments.
Reset account cursor sync configuration to global defaults
Reset a specific account's cursor sync configuration to use the global defaults.
Parameters
accountIdstring
In path•Required
Unique account identifier assigned by Riposte. You may also provide the custom user ID set during authentication; the API resolves it to the canonical account.
Retrieve the cursor-based synchronization configuration for a specific email account.
Parameters
accountIdstring
In path•Required
Unique account identifier assigned by Riposte. You may also provide the custom user ID set during authentication; the API resolves it to the canonical account.
Returns
Default Response
Content type: application/json
Status: 200
Example request
1curl -X GET "http://localhost:8080/cursor-sync/accounts/{accountId}/config"
Example response200
No example response available.
POST/cursor-sync/accounts/{accountId}/config
Configure cursor sync for an account
Set cursor-based synchronization configuration for a specific email account.
Parameters
accountIdstring
In path•Required
Unique account identifier assigned by Riposte. You may also provide the custom user ID set during authentication; the API resolves it to the canonical account.