Billing
APIs for managing billing contributors
Returns a list of unique repository users who are considered active contributors for billing calculations.
An active contributor is defined as a unique (by email), non-bot human user who has committed code within the last 90 days to a billable, non-archived repository that has at least one security scanner enabled.
Note: You must have the Instance Administrator permissions to run this endpoint.
Required license:
Cortex Cloud Posture Management or Cortex Cloud Runtime Security with Application Security add-on.
{api_key}
your_api_key_here{api_key_id}
1Ok
Represents a user associated with a repository.
The date and time of the user's most recent commit. Used to determine contributor activity. Note: Only users who committed within the last 90 days are considered active contributors for billing.
2025-02-15T10:30:00.000ZThe display name of the repository user.
Jane DoeThe username of the repository user on the VCS platform.
janedoeThe email address associated with the user. This value is used to uniquely identify contributors across repositories. Emails associated with bots or automated accounts (for example, action@github.com or *@users.noreply.github.com) are excluded.
janedoe@example.comThe unique identifier of the repository associated with the user. The repository must be billable (not archived and with at least one security scanner enabled).
a1b2c3d4e5f6a7b8c9d0e1f2The date and time when the user record was created in the system.
2025-06-01T08:00:00.000ZThe permission level of the user within the repository.
WRITEPossible values: Indicates whether the user has multi-factor authentication (MFA) enabled on their VCS account.
trueThe names of the teams in the VCS organization that the user belongs to.
["backend-team","security-team"]Indicates whether the user is a guest (external collaborator) in the repository.
falseIndicates whether the user is an active contributor.
trueIndicates whether the user has admin permissions for the repository.
falseThe source from which the user's email address was obtained.
GITPossible values: A unique identifier assigned to the user by the VCS platform. Used to correlate the user across repositories and systems.
vcs-user-67890Bad Request - The request was malformed or contains invalid parameters.
Unauthorized - The request is unauthenticated. Pass the correct auth credentials.
Forbidden - Access to the resource is prohibited. Try with different auth credentials.
Not Found - The requested resource could not be found.
Internal Server Error
GET /public_api/appsec/v1/billing/contributors HTTP/1.1
Host: api-yourfqdn
Authorization: your_api_key_here
x-xdr-auth-id: 1
Accept: */*
[
{
"name": "Jane Doe",
"userName": "janedoe",
"email": "janedoe@example.com",
"repositoryId": "a1b2c3d4e5f6a7b8c9d0e1f2a",
"creationDate": "2025-06-01T08:00:00.000Z",
"lastCommitDate": "2025-02-15T10:30:00.000Z",
"role": "WRITE",
"hasMfa": true,
"teams": [
"backend-team",
"security-team"
],
"isGuest": false,
"isContributor": true,
"isAdmin": false,
"emailOrigin": "GIT",
"uniqueVcsId": "vcs-user-67890"
},
{
"name": "John Smith",
"userName": "johnsmith",
"email": "johnsmith@example.com",
"repositoryId": "repo-xyz-67890",
"creationDate": "2025-03-15T12:00:00.000Z",
"lastCommitDate": "2025-01-20T14:45:00.000Z",
"role": "DEVELOPER",
"hasMfa": false,
"teams": [
"frontend-team"
],
"isGuest": false,
"isContributor": true,
"isAdmin": false,
"emailOrigin": "API",
"uniqueVcsId": "vcs-user-11223"
}
]Last updated
Was this helpful?
