logo
MailboxesGet Outlook OAuth consent URL
Mailboxes

Get Outlook OAuth consent URL

Returns a Microsoft OAuth authorization URL for connecting an Outlook/Office365 mailbox. The user must open this URL in a browser to authorize.

curl -X POST "https://api.sendkit.ai/v1/mailboxes/connect/outlook" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "success": true,
  "data": {
    "authUrl": "https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=...&response_type=code&scope=...",
    "instructions": "Open this URL in a browser. After authorizing, the mailbox will be created automatically in your workspace."
  }
}
POST
/v1/mailboxes/connect/outlook
POST
API Key (header: X-Api-Key)
X-Api-Keystring
Required

Platform API key (sk_user_...) or Workspace API key (sk_...)

Platform API key (sk_user_...) or Workspace API key (sk_...)
Bearer Token
Bearer Tokenstring
Required

API key as Bearer token

API key as Bearer token
Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-Api-Keystring
Required

API Key for authentication. Platform API key (sk_user_...) or Workspace API key (sk_...)

header
Authorizationstring
Required

Bearer token. API key as Bearer token

Responses

successboolean
dataobject