v52

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-0393116227.2 KB
githubs

Create a GitHub data source

Creates a new GitHub data source and starts ingestion.

Required roles: All

post/githubs

Request body

namestring required

Name of the GitHub data source

repositorystring required

GitHub repository in owner/repo format (e.g. "octocat/Hello-World")

path_filtersstring[]

Path filters patterns. The total number of characters across all elements in the array must be 2000 or fewer.

github_tokenstring

One-time GitHub personal access token (mutually exclusive with secret_id)

secret_idstring

ID of a stored secret to use (mutually exclusive with github_token)

reference_type'default' | 'branch' | 'tag' | 'commit'

Git reference type

reference_paramstring

Reference parameter (branch name, tag name, or commit hash)

rrulestring

Recurrence rule (RFC 5545 RRULE). Requires secret_id (not one-time token).

Response

Successfully created GitHub data source

idstring required

GitHub data source ID

ingestion_setting_idstring required

GitHub ingestion setting ID

namestring required

Name of the GitHub ingestion setting

repositorystring required

GitHub repository in owner/repo format (e.g. "octocat/Hello-World")

path_filtersstring[]

Path filter patterns

reference_type'default' | 'branch' | 'tag' | 'commit' required

Git reference type

reference_paramstring

Reference parameter (branch name, tag name, or commit hash)

creation_timeinteger

Creation time (Unix timestamp in seconds)

status'unknown' | 'queued' | 'not_started' | 'managed' | 'starting' | 'started' | 'success' | 'failure' | 'canceling' | 'canceled' | 'deleting' | 'delete_job_failure' required

Job status

start_timeinteger

Job start time (Unix timestamp in seconds)

end_timeinteger

Job end time (Unix timestamp in seconds)