git-integration
Git Integration

Create Git Provider

Create a new git provider connection.

Args: provider_data: Provider creation data ctx: Application context with session, user, and company info

Returns: StandardResponse with created provider

post/api/v1/git-providers/

Request

  • Base URL: http://localhost:8000
  • URL: http://localhost:8000/api/v1/git-providers/
  • Auth: none declared

Headers

Authorizationstring

Request body

provider_type'github' | 'gitlab' | 'bitbucket' required

Supported git provider types.

base_urlstring uri required

Base URL for git provider (e.g., https://github.com)

oauth_client_idstring nullable

OAuth app client ID (user-provided, e.g., GitHub OAuth app)

oauth_client_secretstring nullable

OAuth app client secret (user-provided)

oauth_scopesstring[] nullable

OAuth scopes to request (e.g., ['repo', 'read:user'] for GitHub)

Response

Successful Response

successboolean required
dataunknown
messagestring nullable
errorstring nullable
metaobject nullable

Changes

No recorded changes to this operation across all 1 revision of this API.