Configured email providers and this user's connected accounts
const url = 'http://localhost:11044/api/v1/email/connections';const options = {method: 'GET', headers: {'X-Embabel-Api-Key': '<X-Embabel-Api-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:11044/api/v1/email/connections \ --header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
The signed-in user’s email connection state, answered by GET /email/connections.
object
The email accounts this user has connected, across every provider
One account the signed-in user has connected; it never carries a credential. Listed by GET /email/connections and GET /calendar/connections.
object
The provider’s stable identifier for the account, typically its email address; the id DELETE /email/connections/{accountId} takes
Label recorded for the account when it was connected, for showing in a UI
Key of the provider the account was connected through; matches a provider’s providerName
Every email provider registered on this appliance
A provider this appliance can connect accounts with, and where to start connecting one. Listed by GET /email/connections and GET /calendar/connections.
object
Path on this server that starts the provider’s OAuth flow; send the browser there to connect an account
True when the provider is set up on this appliance, so an account can be connected through it
Name to show for the provider, such as Google
Provider key, such as google-workspace or microsoft-graph; the value a connected account’s provider carries

