VCS Events API
Note: The VCS Events API is still in beta as support is being added for additional VCS providers. Currently only GitLab.com connections established after December 2020 are supported.
VCS (version control system) events describe changes within your organization for VCS-related actions. Events are only stored for 10 days. If information about the OAuth Client or OAuth Token are available at the time of the event, it will be logged with the event.
List VCS events
This endpoint lists VCS events for an organization
GET /organizations/:organization_name/vcs-events
Parameter | Description |
---|---|
:organization_name | The name of the organization to list VCS events from. The organization must already exist in the system and the user must have permissions to manage VCS settings. |
Note: Viewing VCS events is restricted to the owners team, teams with the "Manage VCS Settings", and the organization API token. (More about permissions.)
Query Parameters
This endpoint supports pagination with standard URL query parameters. Remember to percent-encode [
as %5B
and ]
as %5D
if your tooling doesn't automatically encode URLs.
Parameter | Description |
---|---|
page[number] | Optional. If omitted, the endpoint will return the first page. |
page[size] | Optional. If omitted, the endpoint will return 20 workspaces per page. |
filter[from] | Optional. Must be RFC3339 formatted and in UTC. If omitted, the endpoint will default to 10 days ago. |
filter[to] | Optional. Must be RFC3339 formatted and in UTC. If omitted, the endpoint will default to now. |
filter[oauth_client_external_ids] | Optional. Format as a comma-separated string. If omitted, the endpoint will return all events. |
filter[levels] | Optional. info and error are the only accepted values. If omitted, the endpoint will return both info and error events. |
include | Optional. Allows including related resource data. This endpoint only supports oauth_client as a value. Only the name , service-provider , and id will be returned on the OAuth Client object in the included block. |
Sample Request
Sample Response