Git Providers

Create a Generic git provider for self-hosted or arbitrary HTTPS git hosts. Supports public repositories (no token) and private repositories (token-based).

Changed on
post/git-providers/generic

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Request body

base_urlstring nullable

Optional base URL of the git host for display purposes (no API is called).

clone_urlstring required

HTTPS clone URL for the repository, e.g. https://git.example.com/org/repo.git.

namestring required

Display name for this provider.

tokenstring password nullable

A credential. Write-only: it is never returned, and the AI assistant supplies it through a secret slot instead of typing it into the conversation.

token_usernamestring nullable

HTTP Basic username used with the token. Defaults to x-access-token when absent or empty. Ignored for public (unauthenticated) repositories.

Response

Generic git provider created successfully

auth_methodstring required
base_urlstring nullable
created_atstring date-time required
idinteger required
is_activeboolean required
is_defaultboolean required
namestring required
provider_typestring required
updated_atstring date-time required

Changes

    • breaking

      the request property token became not nullable

    • breaking

      the token request property type changed from string null to no type

    • info

      added subschema #2 to the token request property oneOf list