Service Accounts

List service account Git credentials

Changed on

Returns the Git credentials stored on a service account, as metadata only: the token is never returned. Also lists the Git providers that accept a credential and, when the organization's self-hosted GitLab is connected, its host. Open to Managers, the account's owners, and members who may use the agent profile that runs as the account. Service account credentials are rejected. Not available on self-hosted deployments.

get/api/v0/service-accounts/{serviceAccountId}/git-credentials

Request

  • Base URL
    https://api.factory.ai
  • Auth
    HTTP bearer

Path parameters

serviceAccountId, string required

Service account ID

Headers

X-Factory-Org-Id, string

Organization a JWT request acts in; required to act in a sub-organization. Without it, the request acts in the user's root organization, or is rejected with 403 when the user cannot access the root organization. API keys always act in their own organization and ignore this header.

Response

Response for status 200

ListServiceAccountGitCredentials200ResponseBody required
gitCredentials, object[] required
supportedIntegrations, string[] required

Git providers that accept a service account credential. More values may be added.

gitlabSelfHostedHost, string

Host of the organization's self-hosted GitLab, when that integration is connected.

Changes