Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/ingestion/connectors/collaboration/zoom/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ stringData:
zoom_account_id: "" # Zoom account ID
zoom_client_id: "" # OAuth app client ID
zoom_client_secret: "" # OAuth app client secret
zoom_start_date: "2026-01-01" # Earliest date for incremental sync (YYYY-MM-DD)
```

### Fields
Expand All @@ -35,7 +34,11 @@ stringData:
| `zoom_account_id` | Yes | Zoom Server-to-Server OAuth account ID |
| `zoom_client_id` | Yes | OAuth app client ID |
| `zoom_client_secret` | Yes | OAuth app client secret (sensitive) |
| `zoom_start_date` | Yes | Earliest date for incremental sync (YYYY-MM-DD) |

There is no start-date knob: the `meetings` stream reads the Zoom Dashboard API
(`/v2/metrics/*`), which only serves data for the last six months. The first
sync automatically backfills from `now - 150 days` (a safety margin inside that
window); later syncs continue incrementally from saved state.

### Automatically injected

Expand Down
214 changes: 197 additions & 17 deletions src/ingestion/connectors/collaboration/zoom/connector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,18 +105,62 @@ streams:
http_method: POST
url: https://zoom.us/oauth/token
request_body:
$ref: "#/definitions/linked/HttpRequester/request_body"
type: RequestBodyUrlEncodedForm
value:
grant_type: account_credentials
account_id: "{{ config['zoom_account_id'] }}"
expiration_duration: PT1H
session_token_path:
- access_token
request_authentication:
type: Bearer
http_method: GET
error_handler:
$ref: "#/definitions/linked/HttpRequester/error_handler"
type: CompositeErrorHandler
error_handlers:
- type: DefaultErrorHandler
response_filters:
- type: HttpResponseFilter
action: RATE_LIMITED
http_codes:
- 429
backoff_strategies:
- type: WaitTimeFromHeader
header: Retry-After
- type: DefaultErrorHandler
response_filters:
- type: HttpResponseFilter
action: RATE_LIMITED
http_codes:
- 503
backoff_strategies:
- type: WaitTimeFromHeader
header: Retry-After
- type: DefaultErrorHandler
max_retries: 5
response_filters:
- type: HttpResponseFilter
action: RETRY
http_codes:
- 500
- 502
- 504
backoff_strategies:
- type: ExponentialBackoffStrategy
factor: 5
url: https://api.zoom.us/v2/users
paginator:
$ref: "#/definitions/linked/SimpleRetriever/paginator"
type: DefaultPaginator
page_token_option:
type: RequestOption
inject_into: request_parameter
field_name: next_page_token
pagination_strategy:
type: CursorPagination
cursor_value: "{{ response.get('next_page_token') }}"
stop_condition:
type: StopCondition
condition: "{{ not response.get('next_page_token') }}"
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
record_selector:
type: RecordSelector
extractor:
Expand Down Expand Up @@ -267,7 +311,10 @@ streams:
http_method: POST
url: https://zoom.us/oauth/token
request_body:
$ref: "#/definitions/linked/HttpRequester/request_body"
type: RequestBodyUrlEncodedForm
value:
grant_type: account_credentials
account_id: "{{ config['zoom_account_id'] }}"
expiration_duration: PT1H
session_token_path:
- access_token
Expand Down Expand Up @@ -336,7 +383,7 @@ streams:
- "%Y-%m-%dT%H:%M:%S%z"
start_datetime:
type: MinMaxDatetime
datetime: "{{ config['zoom_start_date'] }}"
datetime: "{{ (now_utc() - duration('P150D')).strftime('%Y-%m-%d') }}"
datetime_format: "%Y-%m-%d"
end_datetime:
type: MinMaxDatetime
Expand Down Expand Up @@ -522,13 +569,155 @@ streams:
parent_key: uuid
partition_field: meeting_uuid
stream:
$ref: "#/streams/1"
type: DeclarativeStream
name: _meetings
primary_key:
- uuid
retriever:
type: SimpleRetriever
decoder:
type: JsonDecoder
requester:
type: HttpRequester
authenticator:
type: SessionTokenAuthenticator
login_requester:
type: HttpRequester
authenticator:
type: BasicHttpAuthenticator
username: "{{ config['zoom_client_id'] }}"
password: "{{ config['zoom_client_secret'] }}"
http_method: POST
url: https://zoom.us/oauth/token
request_body:
type: RequestBodyUrlEncodedForm
value:
grant_type: account_credentials
account_id: "{{ config['zoom_account_id'] }}"
expiration_duration: PT1H
session_token_path:
- access_token
request_authentication:
type: Bearer
http_method: GET
error_handler:
type: CompositeErrorHandler
error_handlers:
- type: DefaultErrorHandler
response_filters:
- type: HttpResponseFilter
action: RATE_LIMITED
http_codes:
- 429
backoff_strategies:
- type: WaitTimeFromHeader
header: Retry-After
- type: DefaultErrorHandler
response_filters:
- type: HttpResponseFilter
action: RATE_LIMITED
http_codes:
- 503
backoff_strategies:
- type: WaitTimeFromHeader
header: Retry-After
- type: DefaultErrorHandler
max_retries: 5
response_filters:
- type: HttpResponseFilter
action: RETRY
http_codes:
- 500
- 502
- 504
backoff_strategies:
- type: ExponentialBackoffStrategy
factor: 5
request_parameters:
$ref: "#/definitions/linked/HttpRequester/request_parameters"
url: https://api.zoom.us/v2/metrics/meetings
paginator:
type: DefaultPaginator
page_token_option:
type: RequestOption
inject_into: request_parameter
field_name: next_page_token
pagination_strategy:
type: CursorPagination
cursor_value: "{{ response.get('next_page_token') }}"
stop_condition:
type: StopCondition
condition: "{{ not response.get('next_page_token') }}"
record_selector:
type: RecordSelector
extractor:
type: DpathExtractor
field_path:
- meetings
incremental_sync:
type: DatetimeBasedCursor
cursor_field: end_time
cursor_datetime_formats:
- "%Y-%m-%dT%H:%M:%SZ"
- "%Y-%m-%dT%H:%M:%S%z"
start_datetime:
type: MinMaxDatetime
datetime: >-
{{ (now_utc() - duration('P150D')).strftime('%Y-%m-%d') }}
datetime_format: "%Y-%m-%d"
end_datetime:
type: MinMaxDatetime
datetime: "{{ now_utc().strftime('%Y-%m-%d') }}"
datetime_format: "%Y-%m-%d"
datetime_format: "%Y-%m-%d"
start_time_option:
type: RequestOption
field_name: from
inject_into: request_parameter
end_time_option:
type: RequestOption
field_name: to
inject_into: request_parameter
lookback_window: P7D
step: P30D
cursor_granularity: P1D
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
schema_loader:
type: InlineSchemaLoader
schema:
type: object
$schema: http://json-schema.org/schema#
properties:
uuid:
type:
- string
- "null"
end_time:
type: string
additionalProperties: true
decoder:
type: JsonDecoder
requester:
type: HttpRequester
authenticator:
$ref: "#/definitions/linked/HttpRequester/authenticator"
type: SessionTokenAuthenticator
login_requester:
type: HttpRequester
authenticator:
type: BasicHttpAuthenticator
username: "{{ config['zoom_client_id'] }}"
password: "{{ config['zoom_client_secret'] }}"
http_method: POST
url: https://zoom.us/oauth/token
request_body:
type: RequestBodyUrlEncodedForm
value:
grant_type: account_credentials
account_id: "{{ config['zoom_account_id'] }}"
expiration_duration: PT1H
session_token_path:
- access_token
request_authentication:
type: Bearer
http_method: GET
error_handler:
type: CompositeErrorHandler
Expand Down Expand Up @@ -859,7 +1048,6 @@ spec:
- zoom_account_id
- zoom_client_id
- zoom_client_secret
- zoom_start_date
properties:
insight_tenant_id:
type: string
Expand All @@ -886,22 +1074,14 @@ spec:
title: Zoom Client Secret
airbyte_secret: true
order: 4
zoom_start_date:
type: string
description: >-
Earliest date to request during initial sync or best-effort historical
backfill.
title: Start Date
format: date
order: 5
page_size:
type: integer
description: Requested page size for paginated Zoom endpoints.
title: Page Size
default: 100
minimum: 1
maximum: 300
order: 6
order: 5
additionalProperties: true

metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: zoom
version: "1.0.0"
version: "1.1.0"
schedule: 0 3 * * *
dbt_select: tag:zoom+
workflow: sync
Expand All @@ -10,4 +10,3 @@ secret:
- zoom_account_id
- zoom_client_id
- zoom_client_secret
- zoom_start_date
1 change: 0 additions & 1 deletion src/ingestion/secrets/connectors/zoom.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ stringData:
zoom_account_id: "CHANGE_ME"
zoom_client_id: "CHANGE_ME"
zoom_client_secret: "CHANGE_ME"
zoom_start_date: "2026-01-01"
Loading