Skip to main content
POST
Create Git Credential

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

repo_name
string
required

Repository name. Names that contain / or any other character that is not safe in a URL path segment must be URL encoded so the value occupies a single path segment. For example pierre/example is sent as pierre%2Fexample. Plain names such as example can be sent as-is. The server URL-decodes the value before resolving the repository.

Body

application/json

Store HTTPS credentials for a generic Git upstream such as GitLab, Bitbucket, Gitea, Forgejo, Codeberg, or SourceHut.

Request body for storing a new HTTPS Git credential when the repository is identified via the URL path.

password
string
required

Password or access token for the upstream provider.

Example:

"glpat_xxxxxxxxxxxx"

username
string
required

Optional username for HTTPS authentication. Omit it for token-only providers.

Example:

"git"

Response

Credential created successfully.

Stored Git credential summary returned after a credential is created or updated.

id
string
required

Credential ID returned when the credential is created.

Example:

"ggc_1234567890abcdef"

created_at
string

Credential creation timestamp in ISO 8601 format.

Example:

"2026-03-12T15:04:05Z"