For the complete documentation index, see llms.txt. This page is also available as Markdown.

Principals

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
x-api-keystringRequired
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

querystringOptional

The substring by which the principals are filtered.

pageinteger · min: 1Optional

The page to return.

Default: 1
limitinteger · min: 1 · max: 100Optional

The maximum number of results to return.

Default: 30
repoIdentifierstringOptional

Identifier of the repo.

pullRequestAuthorsbooleanOptional

When query is empty, return users who recently authored pull requests in the repository. A query uses the normal principal search.

Default: false
Responses
200

OK

application/json
createdintegerOptional
display_namestringOptional
emailstringOptional
idintegerOptional
typestring · enumOptionalPossible values:
uidstringOptional
updatedintegerOptional
get/principals
GET /code/api/v1/principals?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
[
  {
    "created": 1,
    "display_name": "text",
    "email": "text",
    "id": 1,
    "type": "service",
    "uid": "text",
    "updated": 1
  }
]

List principals scoped to an account, org, project or repo

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
x-api-keystringRequired
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringOptional

Organization Identifier for the Entity.

projectIdentifierstringOptional

Project Identifier for the Entity.

querystringOptional

The substring by which the principals are filtered.

pageinteger · min: 1Optional

The page to return.

Default: 1
limitinteger · min: 1 · max: 100Optional

The maximum number of results to return.

Default: 30
repoIdentifierstringOptional

Identifier of the repo.

pullRequestAuthorsbooleanOptional

When query is empty, return users who recently authored pull requests in the repository. A query uses the normal principal search.

Default: false
Responses
200

OK

application/json
createdintegerOptional
display_namestringOptional
emailstringOptional
idintegerOptional
typestring · enumOptionalPossible values:
uidstringOptional
updatedintegerOptional
get/principals/scoped
GET /code/api/v1/principals/scoped?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
[
  {
    "created": 1,
    "display_name": "text",
    "email": "text",
    "id": 1,
    "type": "service",
    "uid": "text",
    "updated": 1
  }
]

Last updated

Was this helpful?