How do I read a user's settings via the API?
You can fetch a user's personal preferences through the API, such as their default language, signing method, notification method and reminder interval. This is useful if your integration should create envelopes with the same defaults the user has chosen in the web app.
Request
GET https://app.verified.eu/api/users/{userId}/settings
Authorization: JWT {token}
x-namespace: /companies/{companyId}
See API authentication for how to get a token.
Example response
{
"availableLanguages": [ ... ],
"availableCountries": [ ... ],
"preferences": {
"language": "en_EN",
"signatoryLanguage": "fi_FI",
"signingMethod": "email",
"notificationMethod": "email",
"reminder": { "offset": "2" },
"greeting": "",
"eventsToNotify": [ "recipient.envelope.opened" ]
}
}
What the preferences mean
- language: the user's language in the web app
- signatoryLanguage: the default language for recipients
- signingMethod: the default signing method for recipients
- notificationMethod: how recipients are notified by default (email or SMS)
- reminder.offset: how many days pass before an automatic reminder is sent
- greeting: the user's default message to recipients
- eventsToNotify: the events the user gets email notifications about
The response also has a features list. You can ignore it, because features are managed at company level, not per user.