> ## Documentation Index
> Fetch the complete documentation index at: https://developer.jtl-software.com/llms.txt
> Use this file to discover all available pages before exploring further.

# StartOAuthCompanyEmailCommandRequestInput

> Begins establishing an OAuth connection and returns the address to be opened in the browser. The sign-in has to be completed before the returned expiry. In GraphQL, the error code arrives in 'extensions.code': VALIDATION_FAILED (the request is invalid, for example an empty provider ID), COMPANY_NOT_FOUND, COMPANY_INACTIVE, COMPANY_EMAIL_ALREADY_AUTHORIZED (remove the authorization first), OAUTH_PROVIDER_NOT_FOUND. - Request



**Kind**: `input`

## Fields

**`companyId`**: `ID!` (required)

The ID of the company.

---

**`oAuthProviderId`**: `String!` (required)

The ID of the OAuth provider (see "GET /v2/email-oauth-providers" or "QueryCompanyEmailOAuthProviders").

---

**`idempotencyKey`**: `String`

Client-supplied idempotency key. When provided, a repeated request with the same key and payload replays the original result instead of re-executing the mutation.

