Inbox-connect plumbing: returns the email provider's OAuth sign-in URL for linking a mailbox to the case. The caller opens it and sends the returned code to add-email-provider.
POST
/email-data/{caseId}/create-oauth-url
curl \
--request POST 'http://api.example.com/email-data/{caseId}/create-oauth-url' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"redirectUri": "string",
"provider": "google"
}'
Request examples
{
"redirectUri": "string",
"provider": "google"
}
Response examples (201)
{
"data": {
"url": "https://accounts.example.com/oauth/authorize?client_id=abc123&state=xyz"
},
"statusCode": 201,
"timestamp": "2026-01-15T10:15:00.000Z"
}