# ConnectAiProviderCredentialDTO

Type: object

Schema: [ConnectAiProviderCredentialDTO](https://sourcey-gauzy.pages.dev/api-reference/models/connectaiprovidercredentialdto/index.md)

- `tenant` (optional)
  Type: object

- `tenantId` (optional)
  Type: string

- `organization` (required)
  Type: object

- `organizationId` (required)
  Type: string

- `sentTo` (optional)
  Type: string

- `providerId` (required)
  Type: string
  
  AI provider identifier (must support a connect flow)

- `code` (required)
  Type: string
  
  One-time authorization code returned by the provider

- `codeVerifier` (required)
  Type: string
  
  PKCE code verifier generated by the client before authorizing