Hosted pages
4 operations
Read a hosted connect session
/v1/hosted/connect-sessions/{token}workwae.hostedConnectSessions.get()No API key: the token in the path is the credentialErrors
| Status | Reason | When |
|---|---|---|
| 404 | connect_session_not_found | No session has this id (or token). |
It can also answer the errors every operation can answer. Each error's reason is the body's code.
Parameters
| Name | In | Schema |
|---|---|---|
| tokenrequired | path | string min length 1 |
Responses
Connect an IMAP account from the hosted page
/v1/hosted/connect-sessions/{token}/imap-accountsworkwae.hostedConnectSessions.createImapAccount()No API key: the token in the path is the credentialWhen the tenant's plan allows no more accounts, or its payment is past due beyond the grace period, the session fails and redirectUrl carries status=error&error=plan_limit_accounts (or billing_past_due), as the OAuth callback does. Giving dav switches settings.calendarEnabled and contactsEnabled on for the halves found unless the session's options name them, as POST /v1/imap-accounts does. A reconnect session replaces the password only: the account keeps its stored servers and DAV settings, and any sent here are ignored. Its DAV login is checked again: with the new password when DAV uses the IMAP password, otherwise with dav.password when given (which then replaces the stored DAV password) or the stored one.
Errors
| Status | Reason | When |
|---|---|---|
| 400 | session_expired | The session is past expiresAt. |
| 400 | redirect_uri_not_allowed | The session's return address is no longer on the tenant allowlist. |
| 400 | provider_not_allowed | The session does not offer the IMAP form. |
| 400 | login_failed | A server (IMAP, SMTP, CalDAV or CardDAV) refuses the login. |
| 400 | server_not_allowed | A server resolves to a private or loopback address. |
| 400 | plaintext_not_allowed | A server is named with security none (a plaintext login). |
| 400 | dav_discovery_failed | Neither a CalDAV nor a CardDAV server was found or answered. |
| 400 | not_dav_server | A named CalDAV or CardDAV URL is no DAV server (it answers 404, 403, or not as one). |
| 400 | password_required | A reconnect session's DAV has a password of its own, none is stored and dav.password is left out. |
| 404 | connect_session_not_found | No session has this id (or token). |
| 404 | account_not_found | The account a reconnect session was created for was deleted. |
| 409 | session_used | The session already completed or failed. |
| 409 | account_exists | The tenant already has a live IMAP account with this address and the session was not created to reconnect it (accountId). |
| 409 | account_mismatch | A reconnect session's account has another address, or is not an IMAP account. |
| 422 | autodiscovery_failed | imap was left out and autodiscovery found no IMAP server for the address. |
| 429 | provider_throttled | The provider asked us to slow down (with Retry-After when it named a wait). |
| 502 | provider_unavailable | The provider could not be reached (with Retry-After when it named a wait). |
It can also answer the errors every operation can answer. Each error's reason is the body's code.
Parameters
| Name | In | Schema |
|---|---|---|
| tokenrequired | path | string min length 1 |
Request body
requiredResponses
Find IMAP and SMTP settings from the hosted page
/v1/hosted/connect-sessions/{token}/autoconfigworkwae.hostedConnectSessions.autoconfig()No API key: the token in the path is the credentialErrors
| Status | Reason | When |
|---|---|---|
| 400 | session_expired | The session is past expiresAt. |
| 400 | redirect_uri_not_allowed | The session's return address is no longer on the tenant allowlist. |
| 400 | provider_not_allowed | The session does not offer the IMAP form. |
| 404 | connect_session_not_found | No session has this id (or token). |
| 409 | session_used | The session already completed or failed. |
| 422 | autodiscovery_failed | No IMAP settings were found for the address. |
It can also answer the errors every operation can answer. Each error's reason is the body's code.
Parameters
| Name | In | Schema |
|---|---|---|
| tokenrequired | path | string min length 1 |
| emailrequired | query | string (email) max length 320 |
Responses
Read a hosted meeting connect session
/v1/hosted/meeting-connect-sessions/{token}workwae.hostedMeetingConnectSessions.get()No API key: the token in the path is the credentialErrors
| Status | Reason | When |
|---|---|---|
| 404 | meeting_connect_session_not_found | No session has this token, or its account no longer exists. |
It can also answer the errors every operation can answer. Each error's reason is the body's code.
Parameters
| Name | In | Schema |
|---|---|---|
| tokenrequired | path | string min length 1 |