Skip to content

Schemas

The objects the endpoints accept and return. Each endpoint links the ones it uses.

FieldTypeRequiredDescription
roleRoleYes
user_idstringYes
FieldTypeRequiredDescription
agent_keystringYes
expires_atstringNo
tokenstringYes
FieldTypeRequiredDescription
api_keystringYes
cloud_idstringNo
org_idstringYes
site_urlstringNo
FieldTypeRequiredDescription
containerstringNo
errorstringNo
excessarray of stringNo
missingarray of stringNo
pendingbooleanNoPending means the agent’s seat has not taken effect yet, so the check could not run rather than having failed.
productstringNoProduct distinguishes an ENG project from an ENG space.
settings_stylestringNo
settings_urlstringNoSettingsURL is where a person changes this container’s access, and SettingsStyle what kind of screen that is.
FieldTypeRequiredDescription
agent_keystringNo
display_namestringNo
emailstringNo
has_tokenbooleanNo
last_errorstringNo
projectsarray of AtlassianProjectAccessNoProjects is what the agent may actually do in each project and space it works in, as the product reported it at the last sync. Each entry names its product, because a Jira project and a Confluence space can share a key. An entry carrying excess names access the tenant’s own permission scheme granted on top of what Crewlet asks for; only they can revoke it.
statusstringNo
token_expires_atstringNo
updated_atstringNo
FieldTypeRequiredDescription
availablebooleanNo
awaiting_appbooleanNoAwaitingApp means the credential works but nothing is provisioned yet, because the Crewlet app is not on the site. It is the console’s cue to keep showing the install step and to keep checking.
cloud_idstringNo
connectedbooleanNo
connected_atstringNo
forge_install_urlstringNoForgeInstallURL is where an administrator installs the app, empty when the deployment has none configured.
forge_installedbooleanNoForgeInstalled reports whether the Crewlet app is installed on the site, confirmed with Atlassian rather than assumed.
org_idstringNo
reconcileReconcileStatusNoReconcile is what the loop last made of this integration, so the console states whether a provider is still applying something or a person is being waited on.
service_accountsarray of AtlassianServiceAccountStatusNo
site_urlstringNo
statusstringNo

Type: string. One of human, machine, pat, system, anonymous.

FieldTypeRequiredDescription
company_idstringNo
countintegerNo
daystringNo
event_typeAuditEventTypeNo
outcomeAuditOutcomeNo
FieldTypeRequiredDescription
actor_kindAuditActorKindNo
actor_labelstringNo
actor_user_idstringNo
changesarray of integerNoThe field-level diff of a state-changing event, as { "field": { "from": ..., "to": ... } }, with sensitive keys removed. Absent when there is no diff (creation, deletion, sign-in).
client_iparray of integerNo
company_idstringNo
correlation_idstringNo
credential_idstringNo
credential_kindstringNo
credential_prefixstringNo
event_typeAuditEventTypeNo
http_methodstringNo
http_pathstringNo
http_statusintegerNo
idstringNo
metadataarray of integerNo
occurred_atstringNo
outcomeAuditOutcomeNo
recorded_atstringNo
request_bodyarray of integerNoThe JSON body of the request a system.http_request event records, with secret-shaped keys removed. Never captured for sign-in, sign-up, token refresh or OAuth exchange.
request_idstringNo
schema_versionintegerNo
subjectsarray of stringNo
target_idstringNo
target_kindAuditTargetKindNo
target_labelstringNo
user_agentstringNo

Type: string. One of auth.login_succeeded, auth.login_failed, auth.logout, auth.refresh_reused, auth.email_verified, auth.password_reset, auth.mfa_enabled, auth.mfa_disabled, auth.mfa_failed, organization.created, company.created, company.updated, company.config_changed, company.deleted, company.restored, company.ownership_transferred, operator.added, operator.role_changed, operator.removed, operator.disabled, operator.enabled, machine_user.created, machine_user.deleted, machine_key.issued, machine_key.revoked, pat.issued, pat.revoked, integration.slack_connected, integration.slack_disconnected, integration.atlassian_connected, integration.atlassian_disconnected, integration.atlassian_credential_adopted, integration.github_connected, integration.github_disconnected, integration.gitlab_connected, integration.gitlab_disconnected, integration.datadog_connected, integration.datadog_disconnected, integration.datadog_role_ready, system.http_request.

FieldTypeRequiredDescription
eventsarray of AuditEventNo
next_cursorstringNo

Type: string. One of success, failure, denied.

FieldTypeRequiredDescription
bucketsarray of AuditDailySummaryNo

Type: string. One of user, company, operator, machine_user, machine_key, pat, plan, subscription, integration, agent, quota_override, system, organization.

Type: string. One of local, google, github, machine.

FieldTypeRequiredDescription
access_tokenstringNo
csrf_tokenstringNo
userUserNo
FieldTypeRequiredDescription
configarray of integerYes
created_atstringNo
deleted_atstringNo
idstringNo
logo_urlstringNoURL of the company logo. Absent until a logo is uploaded.
namestringYesAt most 100 characters.
organization_idstringNoOrganizationID is the organization that owns the company.
owner_user_idstringNo
planPlanNo
plan_idstringNo
recordRecordStatusNoHow far the company’s workspace has applied its latest configuration. Returned when reading one company, and only when its workspace reports it.
updated_atstringNo
FieldTypeRequiredDescription
company_idstringNo
created_atstringNo
idstringNo
roleRoleNo
updated_atstringNo
userUserNo
user_idstringNo
FieldTypeRequiredDescription
company_idstringNo
created_atstringNo
expires_atstringNo
idstringNo
last_used_atstringNo
namestringNo
prefixstringNo
revoked_atstringNo
tokenstringNo
updated_atstringNo
userUserNo
user_idstringNo
FieldTypeRequiredDescription
keyMachineOperatorKeyNo
tokenstringNo
userUserNo
FieldTypeRequiredDescription
allowed_company_idsarray of stringNo
allowed_permissionsarray of PermissionNo
created_atstringNo
expires_atstringNo
idstringNo
last_used_atstringNo
namestringNo
prefixstringNo
revoked_atstringNo
tokenstringNo
updated_atstringNo
userUserNo
user_idstringNo
FieldTypeRequiredDescription
expires_atstringNo
namestringYesAt most 100 characters.
FieldTypeRequiredDescription
descriptionstringNoAt most 500 characters.
expires_atstringNo
namestringYesAt most 100 characters.
FieldTypeRequiredDescription
namestringYesAt most 100 characters.
FieldTypeRequiredDescription
allowed_company_idsarray of stringNo
allowed_permissionsarray of PermissionNo
expires_atstringNo
namestringYesAt most 100 characters.
FieldTypeRequiredDescription
discount_codestringNo
display_namestringYesAt most 100 characters.
plan_idstringYes
starterStarterYes
FieldTypeRequiredDescription
errorstringNo
excessarray of stringNo
missingbooleanNoMissing means the agent holds none of its tier’s permissions, which is what a role removed by hand looks like.
pendingbooleanNoPending means the role was granted moments ago and has not taken effect yet.
settings_urlstringNoWhere a person changes the role, so a problem names its own fix.
tierstringNo
FieldTypeRequiredDescription
api_keystringYes
app_keystringYes
sitestringYes
FieldTypeRequiredDescription
labelstringNo
namestringNo
tierstringNo
urlstringNo
FieldTypeRequiredDescription
accessDatadogAccessNoWhat the agent may actually do, as Datadog reported it at the last sync.
agent_keystringNo
display_namestringNo
emailstringNo
has_keybooleanNo
key_last4stringNo
last_errorstringNo
statusstringNo
tierstringNoTierLabel is the same tier in the words the console shows.
tier_labelstringNo
updated_atstringNo
FieldTypeRequiredDescription
availablebooleanNo
connectedbooleanNo
connected_atstringNo
org_namestringNo
org_public_idstringNo
reconcileReconcileStatusNoReconcile is what the loop last made of this integration, so the console states whether a provider is still applying something or a person is being waited on.
rolesarray of DatadogRoleSummaryNoRoles lets the console link to what agents may do rather than describing it second-hand.
service_accountsarray of DatadogServiceAccountStatusNo
sitestringNo
sitesarray of stringNoOffered so nobody has to type a region hostname correctly.
statusstringNo
FieldTypeRequiredDescription
tokenstringYesAt most 128 characters.
FieldTypeRequiredDescription
codestringNo
detailsstringNo
errorstringNo
FieldTypeRequiredDescription
emailstringYesAt most 255 characters.
FieldTypeRequiredDescription
accountstringNoAccount is where the app is installed. A repository is named in a config that a person wrote and reads back later, so “not found” is only actionable beside the account it was looked for in.
errorstringNo
excessarray of stringNoExcess is anything on the deny list the installation granted. The app should never hold these, so their presence means the installation was given more than Crewlet asks for.
grantedmap of stringNoGranted is the permission set on the minted token. GitHub narrows a request silently, so this is what the agent has rather than what was asked for.
reposarray of stringNoRepos the token actually reached, which can be fewer than the agent names if the installation does not cover them.
settings_urlstringNoSettingsURL is where a person changes what the installation grants, so a problem names its own fix.
shortarray of stringNoShort names tier permissions the installation cannot provide, so an agent limited by the installation rather than by its tier is visible.
tierstringNo
unreachablearray of stringNoUnreachable names repositories the agent’s configuration asks for that the installation does not cover. Crewlet cannot widen an installation, so these are reported for the tenant to fix.
FieldTypeRequiredDescription
accessGitHubAccessNoWhat the agent can actually do, proven by minting a token.
agent_keystringNo
dedicated_app_namestringNo
dedicated_app_slugstringNo
dedicated_install_urlstringNo
dedicated_installedbooleanNo
dedicated_settings_urlstringNoDedicatedSettingsURL is where an owner deletes the app. GitHub publishes no API for that, so an app outlives every disconnect until somebody removes it by hand, and the console says so.
identity_modestringNo
last_errorstringNo
reposarray of stringNo
statusstringNo
tierstringNo
tier_labelstringNo
updated_atstringNo
FieldTypeRequiredDescription
installation_idintegerYes
FieldTypeRequiredDescription
agent_keystringYes
installation_idintegerYes
FieldTypeRequiredDescription
deliveringbooleanNoDelivering is true once the engine holds the secret its apps sign with. Without it every delivery is rejected as unsigned.
last_errorstringNoLastError names what stopped the last attempt, in the terms of what somebody has to do about it.
urlstringNoURL is the address the apps post to, so a person comparing it against GitHub’s own delivery log has the same string.
FieldTypeRequiredDescription
agent_keystringYes
agent_namestringYes
FieldTypeRequiredDescription
accountstringNo
agentsarray of GitHubAgentStatusNo
availablebooleanNo
connectedbooleanNo
connected_atstringNo
dedicated_availablebooleanNo
eventsGitHubEventsStatusNoEvents is how GitHub reaches the company’s agents. Reported beside the seats because a perfectly provisioned agent that nothing delivers to still does no work.
install_urlstringNoInstallURL is where an administrator installs or reconfigures the app, empty when the deployment has no app configured.
permissionsmap of stringNoPermissions is what the installation holds, so the console can show the ceiling every agent is bounded by.
reconcileReconcileStatusNoReconcile is what the loop last made of this integration, so the console states whether a provider is still applying something or a person is being waited on.
repository_selectionstringNoRepositorySelection is “all” or “selected”, so the console can say whether agents are limited by the installation itself.
settings_urlstringNo
statusstringNo
suspendedbooleanNo
tiersarray of GitHubTierSummaryNo
FieldTypeRequiredDescription
labelstringNo
permissionsmap of stringNo
tierstringNo
FieldTypeRequiredDescription
errorstringNo
grantedarray of stringNoGranted is what the account’s token carries, read back from GitLab: a token is narrowed silently, so this is what it has rather than what was asked for.
groupstringNoGroup is where the accounts live, so a project that is not found is reported beside the place it was looked for.
rolestringNoRole is the tier’s own name for what this agent should hold.
settings_urlstringNoSettingsURL is where a person changes what the group grants.
shortarray of stringNoShort names scopes the tier needs that the token did not get.
unreachablearray of stringNoUnreachable names projects the agent is configured for that the group does not contain.
FieldTypeRequiredDescription
base_urlstringYesBaseURL is the instance the group lives on, so a self-managed tenant is not a different integration. Defaulted by the console to gitlab.com.
groupstringYesGroup is the top-level group’s path or numeric id.
tokenstringYes
FieldTypeRequiredDescription
deliveringbooleanNoDelivering is true once GitLab is registered and the engine holds the secret it signs with. Both halves, because either one alone delivers nothing.
last_errorstringNoLastError names what stopped the last attempt, in the terms of what somebody has to do about it.
settings_urlstringNoSettingsURL is where a person inspects the hook and its recent deliveries.
urlstringNoURL is the address the group posts to, so a person comparing it against GitLab’s own delivery log has the same string.
verified_atstringNoVerifiedAt is when the hook was last seen in the group.
FieldTypeRequiredDescription
errorstringNo
excessstringNo
grantedstringNo
pendingbooleanNo
projectstringNo
rolestringNo
settings_urlstringNo
shortstringNo
FieldTypeRequiredDescription
accessGitLabAccessNoAccess is what the agent may actually do, as GitLab reported it at the last pass.
agent_keystringNo
emailstringNo
has_tokenbooleanNoHasToken says the agent holds a usable credential without revealing anything about it.
last_errorstringNo
namestringNo
projectsarray of GitLabProjectSeatNo
statusstringNo
tierstringNoTier is the stored value and TierLabel the same tier in the words the console shows.
tier_labelstringNo
token_expires_atstringNo
updated_atstringNo
usernamestringNo
FieldTypeRequiredDescription
availablebooleanNo
base_urlstringNo
connectedbooleanNo
connected_atstringNo
eventsGitLabEventsStatusNoEvents is how the group reaches the company’s agents. Reported beside the seats because a perfectly provisioned agent that nothing delivers to still does no work.
group_namestringNo
group_pathstringNo
planstringNoPlan is the namespace’s subscription, carried for context. Free caps a top-level group at 100 service accounts; paid tiers do not.
reconcileReconcileStatusNoReconcile is what the loop last made of this integration, so the console states whether a provider is still applying something or a person is being waited on.
service_accountsarray of GitLabServiceAccountStatusNo
settings_urlstringNoSettingsURL is where a person manages the group’s members.
statusstringNo
tiersarray of GitLabTierSummaryNoTiers is the contract each role carries.
FieldTypeRequiredDescription
labelstringNo
rolestringNo
scopesarray of stringNo
tierstringNo
FieldTypeRequiredDescription
available_centsintegerNo
codestringNo
currencystringNo
errorstringNo
required_centsintegerNo
FieldTypeRequiredDescription
emailstringYes
passwordstringYes
FieldTypeRequiredDescription
company_idstringNo
created_atstringNo
expires_atstringNo
idstringNo
last_used_atstringNo
namestringNo
prefixstringNo
revoked_atstringNo
updated_atstringNo
userUserNo
user_idstringNo
FieldTypeRequiredDescription
action_urlstringNo
manifeststringNo
statestringNo
FieldTypeRequiredDescription
created_atstringNo
deleted_atstringNo
idstringNo
namestringNo
roleOrgRoleNo
updated_atstringNo
FieldTypeRequiredDescription
avatar_urlstringNo
companyCompanyNoCompany that owns a machine user, loaded with the row so a user listing can name it without a second query. Always nil on human rows.
company_idstringNoMachine users only: the company the machine belongs to and the admin who created it. Unset for humans; never changes.
created_atstringNo
created_byUserNoThe admin who created a machine user, included in machine user listings. Unset for humans.
created_by_user_idstringNo
deleted_atstringNoWhen the account was deleted. A deleted account no longer exists; disabled_at instead freezes one that still does.
descriptionstringNoDescription is the optional free-form blurb shown next to a machine user’s name on the management page (e.g. “deploy bot”, “CI runner”). Empty for humans. At most 500 characters.
disabled_atstringNoWhen the account was disabled; unset while enabled. Every credential it holds (sessions, personal API tokens, machine keys) is refused until it is enabled again, and none is revoked.
emailstringNoAt most 255 characters.
first_namestringYesAt most 100 characters.
idstringNo
is_verifiedbooleanNo
keyMachineOperatorKeyNoThe machine user’s most recent key, revoked or expired ones included, in machine user listings. Unset for humans.
kindUserKindNo
last_namestringNoAt most 50 characters.
mfa_enabled_atstringNo
mfa_promptbooleanNoMFAPrompt: the console should ask the account to turn TOTP on.
mfa_requiredbooleanNoMFARequired: the account owns or administers an organization with a paid plan or a connected integration, so sensitive actions answer 403 mfa_required until TOTP is on.
providerAuthProviderNo
updated_atstringNo
FieldTypeRequiredDescription
messagestringNo
FieldTypeRequiredDescription
mfa_requiredbooleanNo
mfa_ticketstringNo
FieldTypeRequiredDescription
codestringYesAt most 32 characters.
FieldTypeRequiredDescription
codestringYesCode is a six-digit one-time code or a recovery code. At most 32 characters.
ticketstringYesAt most 256 characters.
FieldTypeRequiredDescription
codestringYes
FieldTypeRequiredDescription
created_atstringNo
organization_idstringNo
roleOrgRoleNo
updated_atstringNo
user_idstringNo

Type: string. One of owner, admin, billing, member.

Type: string. One of company:read, company:update, company:delete, integrations:read, integrations:write, operators:read, operators:write, operators:transfer_ownership, billing:read, billing:write, billing:audit_read, invoice:read, invoice:refund_request, transaction:read, audit:read, audit:export, audit:stream.

FieldTypeRequiredDescription
allowed_company_idsarray of stringNo
allowed_permissionsarray of PermissionNo
created_atstringNo
expires_atstringNo
idstringNo
last_used_atstringNo
namestringNo
prefixstringNo
revoked_atstringNo
updated_atstringNo
userUserNo
user_idstringNo
FieldTypeRequiredDescription
base_price_annual_centsintegerNo
base_price_monthly_centsintegerNo
codestringNo
created_atstringNo
currencystringNo
display_namestringNo
event_overage_rate_per_1k_centsintegerNo
feature_flagsarray of integerNo
hard_capbooleanNo
idstringNo
included_event_units_annualintegerNo
included_event_units_monthlyintegerNo
is_activebooleanNo
max_agentsintegerNo
max_integrations_activeintegerNo
max_machine_keysintegerNo
max_operatorsintegerNo
sla_tierPlanSLATierNo
sla_uptime_percent_e2integerNo
support_tierPlanSupportTierNo
tierPlanTierNo
updated_atstringNo
visibilityPlanVisibilityNo

Type: string. One of none, standard, high, premium, custom.

Type: string. One of community, standard, priority, dedicated, named_tam.

Type: string. One of free, starter, pro, max, enterprise.

Type: string. One of public, private, internal.

FieldTypeRequiredDescription
codestringNo
retryablebooleanNo
FieldTypeRequiredDescription
failureProvisioningFailureNo
slowbooleanNoSlow turns true when provisioning has taken longer than expected.
started_atstringNo
stateWorkspaceStateNo
stepsarray of ProvisioningStepNo
updated_atstringNo
workspace_idstringNo
FieldTypeRequiredDescription
idProvisioningStepIDNo
statusStepStatusNo

Type: string. One of reserve, starter, start, ready.

FieldTypeRequiredDescription
action_urlstringNo
actorstringNo
detailstringNo
disconnectingbooleanNoDisconnecting is true from the moment somebody asks for the integration to be taken away, which is before the loop has run and set a phase. Without it the console shows a connected integration for as long as it takes the first pass to start.
last_attempt_atstringNo
last_errorstringNoLastError is why the last pass failed, empty when it did not.
next_attempt_atstringNoNextAttemptAt lets the console count down to a real event rather than to a timer of its own.
outcomestringNoOutcome is settled, waiting, or blocked.
phasestringNoPhase is where the integration got to, and Actor is who has to act for it to move on. Detail and ActionURL are filled only when that actor is a person, and are what the console shows instead of a generic warning.
settled_atstringNo

Type: string. One of pending, synced.

FieldTypeRequiredDescription
generationintegerNoVersion of the company’s configuration; it increases with every change.
observed_generationintegerNoLatest configuration version the workspace has applied.
stateRecordStateNopending until the workspace applies the latest version, then synced.
FieldTypeRequiredDescription
recovery_codesarray of stringNo
FieldTypeRequiredDescription
passwordstringYesAt least 8 characters. At most 72 characters.
tokenstringYesAt most 128 characters.

Type: string. One of owner, admin, member, viewer.

FieldTypeRequiredDescription
disabledbooleanNo
FieldTypeRequiredDescription
emailstringYesAt most 255 characters.
first_namestringYesAt most 50 characters.
last_namestringYesAt most 50 characters.
passwordstringYesBcrypt silently truncates passwords over 72 bytes, so we cap at 72. At least 8 characters. At most 72 characters.
FieldTypeRequiredDescription
authorize_urlstringNo
FieldTypeRequiredDescription
agent_keystringNo
last_errorstringNo
slack_app_idstringNo
statusstringNo
updated_atstringNo
FieldTypeRequiredDescription
availablebooleanNo
connectedbooleanNo
connected_atstringNo
enterprise_idstringNo
has_user_tokenbooleanNo
managed_appsarray of SlackManagedAppStatusNo
reconcileReconcileStatusNoReconcile is what the loop last made of this integration, so the console states whether a provider is still applying something or a person is being waited on.
scopesarray of stringNo
statusstringNo
team_idstringNo
team_namestringNo
token_expires_atstringNo

Type: string. One of software, content, operations, empty.

Type: string. One of pending, active, done, failed.

FieldTypeRequiredDescription
otpauth_uristringNo
secretstringNo
FieldTypeRequiredDescription
configarray of integerNo
namestringNoAt least 1 character. At most 100 characters.
FieldTypeRequiredDescription
avatar_urlstringNo
first_namestringNoAt least 1 character. At most 50 characters.
last_namestringNoAt least 1 character. At most 50 characters.
FieldTypeRequiredDescription
roleRoleYes
FieldTypeRequiredDescription
avatar_urlstringNo
companyCompanyNoCompany that owns a machine user, loaded with the row so a user listing can name it without a second query. Always nil on human rows.
company_idstringNoMachine users only: the company the machine belongs to and the admin who created it. Unset for humans; never changes.
created_atstringNo
created_byUserNoThe admin who created a machine user, included in machine user listings. Unset for humans.
created_by_user_idstringNo
deleted_atstringNoWhen the account was deleted. A deleted account no longer exists; disabled_at instead freezes one that still does.
descriptionstringNoDescription is the optional free-form blurb shown next to a machine user’s name on the management page (e.g. “deploy bot”, “CI runner”). Empty for humans. At most 500 characters.
disabled_atstringNoWhen the account was disabled; unset while enabled. Every credential it holds (sessions, personal API tokens, machine keys) is refused until it is enabled again, and none is revoked.
emailstringNoAt most 255 characters.
first_namestringYesAt most 100 characters.
idstringNo
is_verifiedbooleanNo
keyMachineOperatorKeyNoThe machine user’s most recent key, revoked or expired ones included, in machine user listings. Unset for humans.
kindUserKindNo
last_namestringNoAt most 50 characters.
mfa_enabled_atstringNo
providerAuthProviderNo
updated_atstringNo

Type: string. One of human, machine.

Type: string. One of pending, provisioning, ready, suspended, quarantined, deleting, deleted, purged.

FieldTypeRequiredDescription
company_idstringNo
created_atstringNo
display_namestringNo
idstringNo
organization_idstringNo
regionstringNoRegion is the jurisdiction the workspace runs in, for example us.
roleRoleNoRole is the account’s operator role in the company.
slugstringNoSlug is the immutable DNS form of the id.
starterStarterNo
stateWorkspaceStateNo
trial_ends_atstringNo
updated_atstringNo

Part of Crewlet. Generated from the OpenAPI document of the API, version 0.1.0.