Mailboxes
Oauth validate
Checks that a just completed OAuth flow, identified by the temporary identifier it produced, can really serve a mailbox: the account is read, the latest messages are fetched and a real test message is sent from the address to a Deskhero delivery test address. Nothing is stored, the temporary tokens live in a short lived cache so this has to run soon after the OAuth flow, and the response names the authorized account and the resolved address or the step that failed.
POST
/api/{tenant:minlength(2)}/v{version:apiVersion}/mailboxes/oauth_validate
Request arguments
| Name | Type | Source |
|---|---|---|
| input | DTO_mailbox_oauth2_validation_input | Body |
Request body example
Response
Response body example
DTO_mailbox_oauth2_validation_input
| Name | Type | ReadOnly | Description |
|---|---|---|---|
| identifier | String | Identifier | |
| String | Optional. If the user has multiple mailboxes, this is the mailbox that the user wants to use. |
DTO_mailbox_oauth2_validation_response
| Name | Type | ReadOnly | Description |
|---|---|---|---|
| success | Boolean | Success | |
| String | |||
| error_message | String | Error message | |
| authorized_account | String | Authorized account |
Generated Aug 4, 2026 18:37