Codecov Users API
The Users API from Codecov — 5 operation(s) for users.
The Users API from Codecov — 5 operation(s) for users.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/codecov:codecov-users-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Codecov Users API
version: 2.0.0
description: Public Codecov API
servers:
- url: https://api.codecov.io/api/v2/
tags:
- name: Users
paths:
/{service}/:
get:
operationId: root_list
description: Returns all owners to which the currently authenticated user has access
summary: Service owners
parameters:
- name: page
required: false
in: query
description: A page number within the paginated result set.
schema:
type: integer
- name: page_size
required: false
in: query
description: Number of results to return per page.
schema:
type: integer
- in: path
name: service
schema:
type: string
enum:
- bitbucket
- bitbucket_server
- github
- github_enterprise
- gitlab
- gitlab_enterprise
description: Git hosting service provider
required: true
tags:
- Users
security:
- tokenAuth: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/PaginatedOwnerList'
description: ''
/{service}/{owner_username}/:
get:
operationId: root_retrieve
description: Returns a single owner by name
summary: Owner detail
parameters:
- in: path
name: owner_username
schema:
type: string
description: username from service provider
required: true
- in: path
name: service
schema:
type: string
enum:
- bitbucket
- bitbucket_server
- github
- github_enterprise
- gitlab
- gitlab_enterprise
description: Git hosting service provider
required: true
tags:
- Users
security:
- tokenAuth: []
- {}
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Owner'
description: ''
/{service}/{owner_username}/user-sessions/:
get:
operationId: user_sessions_list
description: 'Returns a paginated list of users'' login session for the specified owner (org)
Note: Requires the caller to be an admin of the requested organization'
summary: User session list
parameters:
- in: path
name: owner_username
schema:
type: string
description: username from service provider
required: true
- name: page
required: false
in: query
description: A page number within the paginated result set.
schema:
type: integer
- name: page_size
required: false
in: query
description: Number of results to return per page.
schema:
type: integer
- in: path
name: service
schema:
type: string
enum:
- bitbucket
- bitbucket_server
- github
- github_enterprise
- gitlab
- gitlab_enterprise
description: Git hosting service provider
required: true
tags:
- Users
security:
- tokenAuth: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/PaginatedUserSessionList'
description: ''
/{service}/{owner_username}/users/:
get:
operationId: users_list
description: Returns a paginated list of users for the specified owner (org)
summary: User list
parameters:
- in: query
name: activated
schema:
type: boolean
- in: query
name: is_admin
schema:
type: boolean
- in: path
name: owner_username
schema:
type: string
description: username from service provider
required: true
- name: page
required: false
in: query
description: A page number within the paginated result set.
schema:
type: integer
- name: page_size
required: false
in: query
description: Number of results to return per page.
schema:
type: integer
- name: search
required: false
in: query
description: A search term.
schema:
type: string
- in: path
name: service
schema:
type: string
enum:
- bitbucket
- bitbucket_server
- github
- github_enterprise
- gitlab
- gitlab_enterprise
description: Git hosting service provider
required: true
tags:
- Users
security:
- tokenAuth: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/PaginatedUserList'
description: ''
/{service}/{owner_username}/users/{user_username_or_ownerid}/:
get:
operationId: users_retrieve
description: Returns a user for the specified owner_username or ownerid
summary: User detail
parameters:
- in: path
name: owner_username
schema:
type: string
description: username from service provider
required: true
- in: path
name: service
schema:
type: string
enum:
- bitbucket
- bitbucket_server
- github
- github_enterprise
- gitlab
- gitlab_enterprise
description: Git hosting service provider
required: true
- in: path
name: user_username_or_ownerid
schema:
type: string
required: true
tags:
- Users
security:
- tokenAuth: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/User'
description: ''
patch:
operationId: users_partial_update
description: 'Updates a user for the specified owner_username or ownerid
Allowed fields
- activated: boolean value to activate or deactivate the user'
summary: Update a user
parameters:
- in: path
name: owner_username
schema:
type: string
description: username from service provider
required: true
- in: path
name: service
schema:
type: string
enum:
- bitbucket
- bitbucket_server
- github
- github_enterprise
- gitlab
- gitlab_enterprise
description: Git hosting service provider
required: true
- in: path
name: user_username_or_ownerid
schema:
type: string
required: true
tags:
- Users
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PatchedUserUpdateActivation'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/PatchedUserUpdateActivation'
multipart/form-data:
schema:
$ref: '#/components/schemas/PatchedUserUpdateActivation'
security:
- tokenAuth: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/User'
description: ''
components:
schemas:
Owner:
type: object
properties:
service:
allOf:
- $ref: '#/components/schemas/ServiceEnum'
readOnly: true
username:
type:
- string
- 'null'
readOnly: true
name:
type:
- string
- 'null'
readOnly: true
required:
- name
- service
- username
PaginatedUserSessionList:
type: object
required:
- count
- results
properties:
count:
type: integer
example: 123
next:
type:
- string
- 'null'
format: uri
example: http://api.example.org/accounts/?page=4
previous:
type:
- string
- 'null'
format: uri
example: http://api.example.org/accounts/?page=2
results:
type: array
items:
$ref: '#/components/schemas/UserSession'
PatchedUserUpdateActivation:
type: object
properties:
activated:
type: boolean
ServiceEnum:
enum:
- github
- gitlab
- bitbucket
- github_enterprise
- gitlab_enterprise
- bitbucket_server
type: string
description: '* `github` - Github
* `gitlab` - Gitlab
* `bitbucket` - Bitbucket
* `github_enterprise` - Github Enterprise
* `gitlab_enterprise` - Gitlab Enterprise
* `bitbucket_server` - Bitbucket Server'
User:
type: object
properties:
service:
$ref: '#/components/schemas/ServiceEnum'
username:
type:
- string
- 'null'
name:
type:
- string
- 'null'
activated:
type: boolean
is_admin:
type: boolean
email:
type:
- string
- 'null'
required:
- activated
- is_admin
- service
PaginatedOwnerList:
type: object
required:
- count
- results
properties:
count:
type: integer
example: 123
next:
type:
- string
- 'null'
format: uri
example: http://api.example.org/accounts/?page=4
previous:
type:
- string
- 'null'
format: uri
example: http://api.example.org/accounts/?page=2
results:
type: array
items:
$ref: '#/components/schemas/Owner'
UserSession:
type: object
properties:
username:
type:
- string
- 'null'
readOnly: true
name:
type:
- string
- 'null'
readOnly: true
has_active_session:
type: boolean
expiry_date:
type: string
format: date-time
required:
- expiry_date
- has_active_session
- name
- username
PaginatedUserList:
type: object
required:
- count
- results
properties:
count:
type: integer
example: 123
next:
type:
- string
- 'null'
format: uri
example: http://api.example.org/accounts/?page=4
previous:
type:
- string
- 'null'
format: uri
example: http://api.example.org/accounts/?page=2
results:
type: array
items:
$ref: '#/components/schemas/User'
securitySchemes:
tokenAuth:
type: http
scheme: bearer
x-provenance:
method: searched
source: https://docs.codecov.com/reference
harvested: '2026-10-26'
tool: harvest-readme-openapi.py
note: Assembled verbatim from the OpenAPI definition ReadMe embeds in each operation page of the provider's developer portal; paths and components merged by API title, nothing authored.
assembled_from:
- https://docs.codecov.com/reference/repos_branches_list.md
- https://docs.codecov.com/reference/repos_branches_retrieve.md
- https://docs.codecov.com/reference/repos_commits_list.md
- https://docs.codecov.com/reference/repos_commits_retrieve.md
- https://docs.codecov.com/reference/repos_commits_uploads_list.md
- https://docs.codecov.com/reference/repos_compare_components_retrieve.md
- https://docs.codecov.com/reference/repos_compare_file_retrieve.md
- https://docs.codecov.com/reference/repos_compare_flags_retrieve.md
- https://docs.codecov.com/reference/repos_compare_impacted_files_retrieve.md
- https://docs.codecov.com/reference/repos_compare_retrieve.md
- https://docs.codecov.com/reference/repos_compare_segments_retrieve.md
- https://docs.codecov.com/reference/repos_components_list.md
- https://docs.codecov.com/reference/repos_config_retrieve.md
- https://docs.codecov.com/reference/repos_coverage_list.md
- https://docs.codecov.com/reference/repos_evals_compare_retrieve-1.md
- https://docs.codecov.com/reference/repos_evals_summary_retrieve-1.md
- https://docs.codecov.com/reference/repos_file_report_retrieve.md
- https://docs.codecov.com/reference/repos_flags_coverage_list.md
- https://docs.codecov.com/reference/repos_flags_list.md
- https://docs.codecov.com/reference/repos_list.md
- https://docs.codecov.com/reference/repos_pulls_list.md
- https://docs.codecov.com/reference/repos_pulls_retrieve.md
- https://docs.codecov.com/reference/repos_report_retrieve.md
- https://docs.codecov.com/reference/repos_report_tree_retrieve.md
- https://docs.codecov.com/reference/repos_retrieve.md
- https://docs.codecov.com/reference/repos_test_analytics_list-1.md
- https://docs.codecov.com/reference/repos_test_results_list.md
- https://docs.codecov.com/reference/repos_test_results_retrieve.md
- https://docs.codecov.com/reference/repos_totals_retrieve.md
- https://docs.codecov.com/reference/root_list.md
- https://docs.codecov.com/reference/root_retrieve.md
- https://docs.codecov.com/reference/user_sessions_list.md
- https://docs.codecov.com/reference/users_list.md
- https://docs.codecov.com/reference/users_partial_update.md
- https://docs.codecov.com/reference/users_retrieve.md
merge:
pages: 35
deduped: 98
conflicts_kept_first: 0