OAuth2 Applications
Register OAuth2 application
Registers a new OAuth2 application for a specific provider
post/v1/oauth2
Request
- Base URL: https://your-emailengine-host
- URL: https://your-emailengine-host/v1/oauth2
- Auth: HTTP bearer
Headers
x-ee-timeoutinteger
Request timeout in milliseconds. Raises the command timeout above the EENGINE_TIMEOUT default for a long-running request; a value below the default has no effect
Example:30000
Request body
Example request
{
"name": "My Gmail App",
"description": "My cool app",
"title": "App title",
"provider": "gmail",
"enabled": true,
"clientId": "52422112755-3uov8bjwlrullq122rdm6l8ui25ho7qf.apps.googleusercontent.com",
"clientSecret": "boT7Q~dUljnfFdVuqpC11g8nGMjO8kpRAv-ZB",
"baseScopes": "imap",
"pubSubApp": "AAAAAQAACnA",
"extraScopes": [
"User.Read"
],
"skipScopes": [
"SMTP.Send"
],
"serviceClient": "7103296518315821565203",
"googleProjectId": "project-name-425411",
"googleTopicName": "ee-pub-12345",
"googleSubscriptionName": "ee-sub-12345",
"serviceClientEmail": "name@project-123.iam.gserviceaccount.com",
"serviceKey": "-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBgk...",
"authMethod": "externalAccount",
"externalAccount": "{\"type\":\"external_account\",\"audience\":\"//iam.googleapis.com/projects/.../providers/...\",...}",
"authority": "common",
"cloud": "global",
"redirectUrl": "https://myservice.com/oauth"
}Response
Returns the registered OAuth2 application.
Example response
{
"id": "AAABhaBPHscAAAAH"
}Changes
No recorded changes to this operation across all 1 revision of this API.