Solutions
Apple device management
Manage every Mac, iPhone, and iPad.
Windows device management
Patch apps and manage every Windows setting.
Linux device management
Manage Linux devices with full visibility and control.
Endpoint governance
Secure every extension, package, and AI tool running on your devices.
Device management for Europe
Keep device data in the EU. Manage Windows, macOS, Linux, and mobile devices from one independent platform.
Aviation
Keep the airframe, swap the engine. Device management for aviation.
Pharma 4.0
Device management with change control for life sciences.
Extend Fleet
Integrate your favorite tools with Fleet.
More
Apple device management
Manage every Mac, iPhone, and iPad.
Windows device management
Patch apps and manage every Windows setting.
Linux device management
Manage Linux devices with full visibility and control.
Endpoint governance
Secure every extension, package, and AI tool running on your devices.
Device management for Europe
Keep device data in the EU.
Aviation
Keep the airframe, swap the engine. Device management for aviation.
Pharma 4.0
Device management with change control for life sciences.
Extend Fleet
Integrate your favorite tools with Fleet.
REST API
On this page:
On this page
On this page
Use the Fleet APIs to automate Fleet.
This page includes a list of available resources and their API routes.
Unless otherwise specified, endpoints that accept a request body limit its size to the configured FLEET_SERVER_DEFAULT_MAX_REQUEST_BODY_SIZE (default 1MiB).
All API requests to the Fleet server require API token authentication unless noted in the documentation. API tokens are tied to your Fleet user account.
To get an API token, retrieve it from "My account" > "Get API token" in the Fleet UI (/profile). Or, you can send a request to the login API endpoint to get your token.
Then, use that API token to authenticate all subsequent API requests by sending it in the "Authorization" request header, prefixed with "Bearer ":
Authorization: Bearer <your token>For SSO and MFA users, email/password login is disabled. The API token can instead be retrieved from the "My account" page in the UI (/profile). On this page, choose "Get API token".
Authenticates the user with the specified credentials and returns a new API token. Use the token returned from this endpoint to authenticate further API requests.
Each successful request creates a new session with its own token. The token_expires_at field shows when the token expires, based on the Fleet server's session duration setting (default: 5 days).
For API-only users, token expiration isn't enforced. The response still includes
token_expires_at, but the token remains valid after that time.
POST /api/v1/fleet/login
Logging in via the API is not supported for SSO and MFA users. The API token can instead be retrieved from the "My account" page in the UI (/profile). On this page, choose "Get API token".
| Name | Type | In | Description |
|---|---|---|---|
| string | body | Required. The user's email. | |
| password | string | body | Required. The user's plain text password. |
POST /api/v1/fleet/login
{
"email": "[email protected]",
"password": "VArCjNW7CfsxGp67"
}Status: 200
{
"user": {
"created_at": "2026-10-15T06:57:31Z",
"updated_at": "2026-10-15T06:57:31Z",
"id": 1,
"name": "Jane Doe",
"email": "[email protected]",
"force_password_reset": false,
"gravatar_url": "",
"sso_enabled": false,
"mfa_enabled": false,
"global_role": "admin",
"api_only": false,
"last_login_at": "2026-10-16T01:18:38Z",
"last_activity_at": "2026-10-16T01:19:18Z",
"teams": [],
"fleets": []
},
"available_teams": [],
"token": "{your token}",
"token_expires_at": "2026-10-16T01:21:24.714672055Z",
"available_fleets": []
}Status: 401 Unauthorized
{
"message": "Authentication failed",
"errors": [
{
"name": "base",
"reason": "Authentication failed"
}
],
"uuid": "1272014b-902b-4b36-bcdb-75fde5eac1fc"
}Status: 202 Accepted
{
"message": "We sent an email to you. Please click the magic link in the email to sign in.",
}Status: 429 Too Many Requests
Header: retry-after: N
This response includes a header
retry-afterthat indicates how many more seconds you are blocked before you can try again.
{
"message": "limit exceeded, retry after: Ns",
"errors": [
{
"name": "base",
"reason": "limit exceeded, retry after: Ns"
}
]
}Logs out the authenticated user.
POST /api/v1/fleet/logout
POST /api/v1/fleet/logout
Status: 200
Sends a password reset email to the specified email. Requires that SMTP or SES is configured for your Fleet server.
POST /api/v1/fleet/forgot_password
| Name | Type | In | Description |
|---|---|---|---|
| string | body | Required. The email of the user requesting the reset password link. |
POST /api/v1/fleet/forgot_password
{
"email": "[email protected]"
}Status: 200
Status: 500
{
"message": "Unknown Error",
"errors": [
{
"name": "base",
"reason": "email not configured"
}
]
}POST /api/v1/fleet/change_password
Changes the password for the authenticated user.
| Name | Type | In | Description |
|---|---|---|---|
| old_password | string | body | Required. The user's old password. |
| new_password | string | body | Required. The user's new password. |
POST /api/v1/fleet/change_password
{
"old_password": "VArCjNW7CfsxGp67",
"new_password": "zGq7mCLA6z4PzArC"
}Status: 200
Status: 422 Unprocessable entity
{
"message": "Validation Failed",
"errors": [
{
"name": "old_password",
"reason": "old password does not match"
}
]
}Resets a user's password. Which user is determined by the password reset token used. The password reset token can be found in the password reset email sent to the desired user.
POST /api/v1/fleet/reset_password
| Name | Type | In | Description |
|---|---|---|---|
| new_password | string | body | Required. The new password. |
| new_password_confirmation | string | body | Required. Confirmation for the new password. |
| password_reset_token | string | body | Required. The token provided to the user in the password reset email. |
POST /api/v1/fleet/reset_password
{
"new_password": "abc123",
"new_password_confirmation": "abc123",
"password_reset_token": "UU5EK0JhcVpsRkY3NTdsaVliMEZDbHJ6TWdhK3oxQ1Q="
}Status: 200
Retrieves the user data for the authenticated user.
GET /api/v1/fleet/me
| Name | Type | In | Description |
|---|---|---|---|
| include_ui_settings | boolean | query | If set to true, includes the columns the user hides on the Hosts page (default: false). |
GET /api/v1/fleet/me
Status: 200
{
"user": {
"created_at": "2020-11-13T22:57:12Z",
"updated_at": "2020-11-16T23:49:41Z",
"id": 1,
"name": "Jane Doe",
"email": "[email protected]",
"global_role": "admin",
"enabled": true,
"force_password_reset": false,
"gravatar_url": "",
"sso_enabled": false,
"teams": [],
"fleets": []
},
"available_teams" : [
{
"id": 1,
"name": "Workstations",
"description": "Employee workstations"
}
],
"available_fleets" : [
{
"id": 1,
"name": "Workstations",
"description": "Employee workstations"
}
]
}Resets the password of the authenticated user. Requires that force_password_reset is set to true prior to the request.
POST /api/v1/fleet/perform_required_password_reset
POST /api/v1/fleet/perform_required_password_reset
{
"new_password": "sdPz8CV5YhzH47nK"
}Status: 200
{
"user": {
"created_at": "2020-11-13T22:57:12Z",
"updated_at": "2020-11-17T00:09:23Z",
"id": 1,
"name": "Jane Doe",
"email": "[email protected]",
"enabled": true,
"force_password_reset": false,
"gravatar_url": "",
"sso_enabled": false,
"global_role": "admin",
"teams": [],
"fleets": []
}
}Gets the current SSO configuration.
GET /api/v1/fleet/sso
GET /api/v1/fleet/sso
Status: 200
{
"settings": {
"idp_name": "IDP Vendor 1",
"idp_image_url": "",
"sso_enabled": false
}
}POST /api/v1/fleet/sso
A successful response contains an HTTP cookie __Host-FLEETSSOSESSIONID that needs to be sent on the POST /api/v1/fleet/sso/callback request (this HTTP cookie is used to identify the SSO login session).
| Name | Type | In | Description |
|---|---|---|---|
| relay_url | string | body | Required. The relative url to be navigated to after successful sign in. |
POST /api/v1/fleet/sso
{
"relay_url": "/hosts/manage"
}Status: 200
Example response cookie in the HTTP Set-Cookie header:
Set-Cookie: __Host-FLEETSSOSESSIONID=slI727JZ+j0FvyBRLyD/gri1rxtwpaZT; Path=/; Max-Age=300; HttpOnly; SecureStatus: 500
{
"message": "Unknown Error",
"errors": [
{
"name": "base",
"reason": "InitiateSSO getting metadata: Get \"https://idp.example.org/idp-meta.xml\": dial tcp: lookup idp.example.org on [2001:558:feed::1]:53: no such host"
}
]
}This is the callback endpoint that the identity provider will use to send security assertions to Fleet. This is where Fleet receives and processes the response from the identify provider.
POST /api/v1/fleet/sso/callback
The __Host-FLEETSSOSESSIONID HTTP cookie must be set for non-IdP initiated SSO login requests. The value for this cookie is returned in the POST /api/v1/fleet/sso request.
For IdP-initiated SSO logins the cookie doesn't need to be set.
| Name | Type | In | Description |
|---|---|---|---|
| SAMLResponse | string | body | Required. The SAML response from the identity provider. |
| __Host-FLEETSSOSESSIONID | string | cookie | HTTP Cookie returned in the POST /api/v1/fleet/sso request. This is not set/required for IdP initiated SSO logins |
POST /api/v1/fleet/sso/callback
{
"SAMLResponse": "<SAML response from IdP>"
}Example session cookie set in the Cookie request header:
Cookie: __Host-FLEETSSOSESSIONID=slI727JZ+j0FvyBRLyD/gri1rxtwpaZTStatus: 200
Returns a list of the activities that have been performed in Fleet. For a comprehensive list of activity types and detailed information, please see the audit logs page.
GET /api/v1/fleet/activities
| Name | Type | In | Description |
|---|---|---|---|
| page | integer | query | Page number of the results to fetch. |
| per_page | integer | query | Results per page. Maximum is 10,000 records. If no pagination parameters are specified, defaults to 10,000. |
| order_key | string | query | What to order results by. Allowed fields are id, created_at, user_id, activity_type, user_name, user_email, fleet_initiated, and streamed. |
| order_direction | string | query | Requires order_key. The direction of the order given the order key. Options include "asc" and "desc". Default is "asc". |
| after | string | query | The value to get results after. This needs order_key defined, as that's the column that would be used. |
| query | string | query | Search query keywords. Searchable fields include actor_full_name and actor_email. |
| activity_type | string | query | Indicates the activity type to filter by. See available activity types in Global audit logs. |
| start_created_at | string | query | Filters to include only activities that happened after this date. If not specified, set to the earliest possible date. |
| end_created_at | string | query | Filters to include only activities that happened before this date. If not specified, set to now. |
GET /api/v1/fleet/activities?page=0&per_page=10&order_key=created_at&order_direction=desc
{
"activities": [
{
"created_at": "2023-07-27T14:35:08Z",
"id": 25,
"actor_full_name": "Anna Chao",
"actor_id": 3,
"actor_gravatar": "",
"actor_email": "",
"type": "installed_software",
"fleet_initiated": false,
"details": {
"status": "installed",
"host_id": 1272,
"host_display_name": "MacBook Pro",
"policy_id": null,
"policy_name": null,
"install_uuid": "23c18ea1-8cd7-4af4-a1d8-f2666993a66b",
"self_service": false,
"software_title": "zoom.us.app",
"software_package": "ZoomInstallerIT.pkg"
}
},
{
"created_at": "2021-07-29T14:40:27Z",
"id": 21,
"actor_full_name": "name",
"actor_id": 1,
"actor_gravatar": "",
"actor_email": "[email protected]",
"type": "created_team",
"type": "created_fleet",
"fleet_initiated": false,
"details": {
"team_id": 2,
"fleet_id": 2,
"team_name": "Apples",
"fleet_name": "Apples"
}
},
{
"created_at": "2023-07-27T14:35:08Z",
"id": 25,
"type": "installed_software",
"fleet_initiated": true,
"details": {
"status": "installed",
"host_id": 1272,
"host_display_name": "MacBook Pro",
"policy_id": 24,
"policy_name": "[Install software] Zoom",
"install_uuid": "077970ab-0ed6-4573-9cdc-ca9ef9015283",
"self_service": false,
"software_title": "zoom.us.app",
"software_package": "ZoomInstallerIT.pkg"
}
}
],
"meta": {
"has_next_results": false,
"has_previous_results": false
}
}
GET /api/v1/fleet/policies/:id/automation_activities
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The policy ID. |
| status | string | path | Optional filter by automation status. Either "success" or "error" |
| query | string | path | Search query to filter by. Can search by host's name. |
| page | integer | query | Page number of the results to fetch. |
| per_page | integer | query | Results per page. Maximum is 10,000 records. If no pagination parameters are specified, defaults to 10,000. |
| order_key | string | query | What to order results by. Allowed fields are id, created_at, and activity_type. |
| order_direction | string | query | Requires order_key. The direction of the order given the order key. Options include "asc" and "desc". Default is "asc". |
| after | string | query | The value to get results after. This needs order_key defined, as that's the column that would be used. |
GET /api/v1/fleet/policies/12/automation_activities?query=Anna's%20MacBook
Status: 200
{
"activities": [
{
"created_at": "2023-07-27T14:35:08Z",
"id": 412,
"actor_full_name": "Fleet",
"actor_id": null,
"actor_gravatar": "",
"actor_email": "",
"type": "failed_webhook_policy_automation",
"fleet_initiated": true,
"details": {
"policy_id": 42,
"policy_name": "Gatekeeper enabled"
},
"host_id": 10,
"host_display_name": "Anna's MacBook Pro",
"status": "error",
"output": null
},
{
"created_at": "2023-07-27T14:34:22Z",
"id": 410,
"actor_full_name": "Anna Chao",
"actor_id": 3,
"actor_gravatar": "",
"actor_email": "[email protected]",
"type": "ran_script",
"fleet_initiated": false,
"details": {
"host_id": 10,
"host_display_name": "Anna's MacBook Pro",
"script_name": "remediate-gatekeeper.sh",
"script_execution_id": "d6cffa75-b5b5-41ef-9230-15073c8a88cf",
"policy_id": 42,
"policy_name": "Gatekeeper enabled"
},
"host_id": 10,
"host_display_name": "Anna's MacBook Pro",
"status": "success",
"output": "Gatekeeper enabled\n"
},
{
"created_at": "2023-07-27T14:33:01Z",
"id": 407,
"actor_full_name": "Fleet",
"actor_id": null,
"actor_gravatar": "",
"actor_email": "",
"type": "installed_software",
"fleet_initiated": true,
"details": {
"host_id": 11,
"host_display_name": "Marco's Windows",
"install_uuid": "23c18ea1-8cd7-4af4-a1d8-f2666993a66b",
"software_title": "1Password",
"software_package": "1Password.msi",
"policy_id": 42,
"policy_name": "Gatekeeper enabled"
},
"host_id": 11,
"host_display_name": "Marco's Windows",
"status": "error",
"output": "Installing software...\nFailed\nExit code: 1"
},
{
"created_at": "2023-07-27T14:31:47Z",
"id": 404,
"actor_full_name": "Fleet",
"actor_id": null,
"actor_gravatar": "",
"actor_email": "",
"type": "installed_app_store_app",
"fleet_initiated": true,
"details": {
"host_id": 10,
"host_display_name": "Anna's MacBook Pro",
"software_title": "Logic Pro",
"app_store_id": "1234567",
"command_uuid": "98765432-1234-1234-1234-1234567890ab",
"policy_id": 42,
"policy_name": "Gatekeeper enabled"
},
"host_id": 10,
"host_display_name": "Anna's MacBook Pro",
"status": "success",
"output": null
}
],
"meta": {
"has_next_results": false,
"has_previous_results": false
}
}Clears a policy's pass/fail results. Fleet does this automatically when you edit the policy's query or swap in a different script, software package, or VPP app (see Resetting a policy's automation status); use this endpoint to do it in a custom automation. Immediately sets passing_host_count and failing_host_count to 0 and wipes membership records so the counts remain 0 until hosts re-report. Pass the host_id query parameter to instead reset only a single host's result for the policy.
POST /api/v1/fleet/policies/:policy_id/reset
| Name | Type | In | Description |
|---|---|---|---|
| policy_id | integer | path | Required. The policy's ID. |
| host_id | integer | query | When set, resets only this host's result for the policy instead of resetting all hosts. |
POST /api/v1/fleet/policies/123/reset?host_id=42
Status: 200
| Status | Description |
|---|---|
| 403 | The authenticated user does not have write access to the policy. |
| 404 | No policy with the given policy_id exists. |
Connect Fleet to a certificate authority (CA). Fleet currently supports DigiCert, EJBCA, Okta, Microsoft NDES, Hydrant, Smallstep, and any custom SCEP or EST CA. Okta uses NDES under the hood, so Okta CAs use the same ndes_scep_proxy object as Microsoft NDES.
POST /api/v1/fleet/certificate_authorities
Only one of the objects is allowed in a single request.
| Name | Type | In | Description |
|---|---|---|---|
| digicert | object | body | See digicert |
| ndes_scep_proxy | object | body | Used for both Microsoft NDES and Okta CAs (Okta uses NDES under the hood). See ndes_scep_proxy |
| custom_scep_proxy | object | body | See custom_scep_proxy |
| custom_est_proxy | object | body | See custom_est_proxy |
| hydrant | object | body | See hydrant |
| google_cas | object | body | See google_cas |
| smallstep | object | body | See smallstep |
| ejbca | object | body | See ejbca |
Object with the following structure:
| Name | Type | Description |
|---|---|---|
| name | string | Required. Name of the certificate authority that will be used in variables in configuration profiles. Only letters, numbers, and underscores are allowed. |
| url | string | Required DigiCert instance URL, used as base URL for DigiCert API requests. |
| api_token | string | Required API token used to authenticate requests to DigiCert. |
| profile_id | string | Required The ID of certificate profile in DigiCert. |
| certificate_common_name | string | Required The certificate's common name. Supports these built-in variables: $FLEET_VAR_HOST_UUID, $FLEET_VAR_HOST_HARDWARE_SERIAL, $FLEET_VAR_HOST_PLATFORM, $FLEET_VAR_HOST_END_USER_IDP_USERNAME, $FLEET_VAR_HOST_END_USER_IDP_USERNAME_LOCAL_PART, $FLEET_VAR_HOST_END_USER_IDP_FULL_NAME, $FLEET_VAR_HOST_END_USER_IDP_GROUPS, $FLEET_VAR_HOST_END_USER_IDP_DEPARTMENT, $FLEET_VAR_HOST_END_USER_IDP_EXTERNAL_ID, and the legacy $FLEET_VAR_HOST_END_USER_EMAIL_IDP. |
| certificate_user_principal_names | array | Use with type digicert. The certificate's user principal names (UPN) attribute in Subject Alternative Name (SAN). Supports the same variables as certificate_common_name. |
| certificate_seat_id | string | Required The ID of the DigiCert seat. Seats are license units in DigiCert. Supports the same variables as certificate_common_name. |
Used to connect both Microsoft NDES and Okta CAs, since Okta uses NDES under the hood.
Object with the following structure:
| Name | Type | Description |
|---|---|---|
| url | string | Required. The URL of the NDES SCEP endpoint. |
| admin_url | string | Required. The URL of the NDES admin endpoint. |
| password | string | Required. The password for the NDES admin endpoint. |
| username | string | Required. The username for the NDES admin endpoint. |
Object with the following structure:
| Name | Type | Description |
|---|---|---|
| name | string | Required. Name of the certificate authority that will be used in variables in configuration profiles. Only letters, numbers, and underscores are allowed. |
| url | string | Required. URL of the Simple Certificate Enrollment Protocol (SCEP) server |
| challenge | string | Required. Static challenge password used to authenticate requests to SCEP server. |
Object with the following structure:
| Name | Type | Description |
|---|---|---|
| name | string | Required. Name of the certificate authority that will be used in variables in configuration profiles. Only letters, numbers, and underscores are allowed. |
| url | string | Required. The EST (Enrollment Over Secure Transport) endpoint's URL. |
| username | string | Required. The username used to authenticate with the EST endpoint. |
| password | string | Required. The password used to authenticate with the EST endpoint. |
Object with the following structure:
| Name | Type | Description |
|---|---|---|
| name | string | Required. Name of the certificate authority. Only letters, numbers, and underscores are allowed. |
| url | string | Required. The EST (Enrollment Over Secure Transport) endpoint provided by Hydrant. |
| client_id | string | Required. The client ID provided by Hydrant. |
| client_secret | string | Required. The client secret provided by Hydrant. |
Object with the following structure:
| Name | Type | Description |
|---|---|---|
| name | string | Required. Name of the certificate authority. Only letters, numbers, and underscores are allowed. |
| project | string | Required. The Google Cloud project ID that contains the CA pool. |
| location | string | Required. The Google Cloud location of the CA pool. |
| ca_pool | string | Required. The name of the CA pool with an issuing CA. |
| api_key_json | string | Required. The service account JSON key with the CA Service Certificate Manager role. |
Object with the following structure:
| Name | Type | Description |
|---|---|---|
| url | string | Required. The SCEP URL from Smallstep. |
| challenge_url | string | Required. The Webhook URL from Smallstep. |
| username | string | Required. The Challenge Basic Authentication Username from Smallstep. |
| password | string | Required. The Challenge Basic Authentication Password from Smallstep. |
Object with the following structure:
| Name | Type | Description |
|---|---|---|
| name | string | Required. Name of the certificate authority that will be used in variables in configuration profiles. Only letters, numbers, and underscores are allowed. The name can't be NDES or the name of another certificate authority of any type, in any case. |
| url | string | Required. URL of your EJBCA instance, used as base URL for EJBCA REST API requests (for example, https://ejbca.example.com:8443). Must be an https URL without a username or password. |
| client_p12 | string | Required. Base64-encoded PKCS#12 (.p12) file with the client certificate and private key that Fleet uses to authenticate to EJBCA with mutual TLS. Must be under 1 MB and the certificate can't be expired. |
| password | string | Required. The password of the PKCS#12 file. |
| trust_ca_bundle | string | PEM-encoded CA certificates that sign the HTTPS certificate of your EJBCA instance: the root CA and any intermediate CAs. The order doesn't matter. If it's empty, Fleet trusts public CAs. |
| certificate_authority_name | string | Required. Name of the CA in EJBCA that issues the certificates (for example, ManagementCA). |
| certificate_profile_name | string | Required. Name of the certificate profile in EJBCA. |
| end_entity_profile_name | string | Required. Name of the end entity profile in EJBCA. |
| certificate_common_name | string | Required. The certificate's common name. Supports the same built-in variables as digicert. |
| username_template | string | The username of the end entity that EJBCA creates for each host. Supports the same variables as certificate_common_name. Defaults to certificate_common_name. |
| certificate_user_principal_names | array | The certificate's user principal names (UPN) attribute in Subject Alternative Name (SAN). Supports the same variables as certificate_common_name. Only one item is allowed. |
When Fleet adds or edits an EJBCA CA, it checks that EJBCA accepts the client certificate, and that the CA and, when EJBCA can look it up, the certificate profile exist. It can't check the end entity profile.
POST /api/v1/fleet/certificate_authorities
{
"digicert": {
"name": "WIFI_CERTIFICATE",
"url": "https://one.digicert.com",
"api_token": "********",
"profile_id": "b416e058-1bdc-4844-9c3f-7c71d58d0eff",
"certificate_common_name": "$FLEET_VAR_HOST_HARDWARE_SERIAL",
"certificate_user_principal_names": [
"$FLEET_VAR_HOST_HARDWARE_SERIAL"
],
"certificate_seat_id": "$FLEET_VAR_HOST_END_USER_EMAIL_IDP"
}
}Status: 200
{
"id": 1,
"name": "WIFI_CERTIFICATE",
"type": "digicert"
}POST /api/v1/fleet/certificate_authorities
{
"ejbca": {
"name": "EJBCA_WIFI",
"url": "https://ejbca.example.com:8443",
"client_p12": "MIIJ...",
"password": "********",
"trust_ca_bundle": "-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----\n",
"certificate_authority_name": "ManagementCA",
"certificate_profile_name": "ENDUSER",
"end_entity_profile_name": "WIFI_DEVICES",
"certificate_common_name": "$FLEET_VAR_HOST_HARDWARE_SERIAL",
"username_template": "$FLEET_VAR_HOST_HARDWARE_SERIAL",
"certificate_user_principal_names": [
"$FLEET_VAR_HOST_END_USER_IDP_USERNAME"
]
}
}Status: 200
{
"id": 7,
"name": "GOOGLE_WIFI",
"type": "google_cas"
},
{
"id": 8,
"name": "EJBCA_WIFI",
"type": "ejbca"
}Add a certificate template to deploy a certificate to all hosts on the fleet. Fleet currently supports adding certificates for Android that are issued from a custom SCEP certificate authority.
POST /api/v1/fleet/certificates
| Name | Type | In | Description |
|---|---|---|---|
| name | string | body | Required. The name of the certificate. Name can be used as certificate alias to reference in configuration profiles. |
| fleet_id | string | body | Available in Fleet Premium. The ID of the fleet to add profiles to. |
| certificate_authority_id | integer | body | Required. The certificate authority (CA) ID to issue certificate from. Currently, only custom SCEP CA is supported. To get ID use List certificate authorities. |
| subject_name | string | body | Required The certificate's subject name (SN). Separate subject fields with a comma (,). For example: "CN=john@example.com,O=Acme Inc.". |
| subject_alternative_name | string | body | The certificate's subject alternative name (SAN). Separate SAN fields with a comma (,). Each field is a key-value pair. See supported keys. Example: DNS=wifi.example.com, UPN=$FLEET_VAR_HOST_END_USER_IDP_USERNAME. |
POST /api/v1/fleet/certificates
{
"name": "wifi-certificate",
"team_id": 1,
"fleet_id": 1,
"certificate_authority_id": 1,
"subject_name": "CN=$FLEET_VAR_HOST_END_USER_IDP_USERNAME, OU=$FLEET_VAR_HOST_UUID, ST=$FLEET_VAR_HOST_HARDWARE_SERIAL",
"subject_alternative_name": "DNS=example.com, UPN=$FLEET_VAR_HOST_END_USER_IDP_USERNAME"
}Status: 200
{
"certificate_authority_id": 1,
"id": 1,
"name": "wifi-certificate",
"subject_name": "CN=$FLEET_VAR_HOST_END_USER_IDP_USERNAME, OU=$FLEET_VAR_HOST_UUID, ST=$FLEET_VAR_HOST_HARDWARE_SERIAL",
"subject_alternative_name": "DNS=example.com, UPN=$FLEET_VAR_HOST_END_USER_IDP_USERNAME"
}PATCH /api/v1/fleet/certificate_authorities/:id
When editing a CA, specify one object and only its fields that you want to update.
When you change a DigiCert CA's certificate_common_name, certificate_user_principal_names, or certificate_seat_id, Fleet reissues the certificate to every host with a configuration profile that uses this CA, in all fleets. Changing only other fields, like url or api_token, doesn't reissue certificates.
When you change an EJBCA CA's certificate_authority_name, certificate_profile_name, end_entity_profile_name, certificate_common_name, username_template, or certificate_user_principal_names, Fleet reissues the certificate to every host with a configuration profile that uses this CA, in all fleets. Only changing other fields, like url or trust_ca_bundle, doesn't reissue certificates.
To replace the client certificate of an EJBCA CA, send client_p12 and password together. Fleet keeps the stored client certificate until EJBCA accepts the new one. Fleet never returns client_p12 or password, and ignores either one when it's ********. Fleet checks the connection to EJBCA when you change url, client_p12, trust_ca_bundle, certificate_authority_name, or certificate_profile_name.
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The certificate authority (CA) ID in Fleet. You can see your CAs IDs using the List certificate authorities endpoint. |
| digicert | object | body | See digicert |
| ndes_scep_proxy | object | body | Used for both Microsoft NDES and Okta CAs (Okta uses NDES under the hood). See ndes_scep_proxy |
| custom_scep_proxy | object | body | See custom_scep_proxy |
| custom_est_proxy | object | body | See custom_est_proxy |
| hydrant | object | body | See hydrant |
| smallstep | object | body | See smallstep |
| ejbca | object | body | See ejbca |
See Connect certificate authority above for the structure of each CA object.
PATCH /api/v1/fleet/certificate_authorities/1
{
"digicert": {
"certificate_common_name": "$FLEET_VAR_HOST_HARDWARE_SERIAL",
}
}Status: 200
GET /api/v1/fleet/certificate_authorities
GET /api/v1/fleet/certificate_authorities
Status: 200
{
"certificate_authorities": [
{
"id": 3,
"name": "DIGICERT_PROD",
"type": "digicert"
},
{
"id": 7,
"name": "EJBCA_WIFI",
"type": "ejbca",
"mtls_cert_expires_at": "2027-10-15T09:21:10Z"
},
{
"id": 2,
"name": "DIGICERT_STAGE",
"type": "digicert"
},
{
"id": 5,
"name": "HYDRANT_WIFI_STAGE",
"type": "hydrant"
},
{
"id": 1,
"name": "NDES_VPN",
"type": "ndes_scep_proxy"
},
{
"id": 4,
"name": "SCEP_CERTIFICATE_PROD",
"type": "custom_scep_proxy"
},
{
"id": 5,
"name": "SECTIGO_WIFI",
"type": "custom_est_proxy"
},
{
"id": 6,
"name": "SMALLSTEP_WIFI",
"type": "smallstep"
}
]
}Get details of the certificate authority. Secrets, like the API token of a DigiCert CA or the client certificate and password of an EJBCA CA, are masked or not returned.
GET /api/v1/fleet/certificate_authorities/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | body | Required. The ID of certificate authority. |
GET /api/v1/fleet/certificate_authorities/1
Status: 200
{
"id": 1,
"type": "digicert",
"name": "WIFI_CERTIFICATE",
"url": "https://one.digicert.com",
"api_token": "********",
"profile_id": "b416e058-1bdc-4844-9c3f-7c71d58d0eff",
"certificate_common_name": "$FLEET_VAR_HOST_HARDWARE_SERIAL",
"certificate_user_principal_names": [
"$FLEET_VAR_HOST_HARDWARE_SERIAL"
],
"certificate_seat_id": "$FLEET_VAR_HOST_END_USER_EMAIL_IDP"
},
{
"id": 7,
"type": "google_cas",
"name": "GOOGLE_WIFI",
"project": "my-project",
"location": "us-central1",
"ca_pool": "my-ca-pool",
"api_key_json": "********"
}GET /api/v1/fleet/certificate_authorities/7
Status: 200
{
"id": 7,
"type": "ejbca",
"name": "EJBCA_WIFI",
"url": "https://ejbca.example.com:8443",
"trust_ca_bundle": "-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----\n",
"certificate_authority_name": "ManagementCA",
"certificate_profile_name": "ENDUSER",
"end_entity_profile_name": "WIFI_DEVICES",
"certificate_common_name": "$FLEET_VAR_HOST_HARDWARE_SERIAL",
"username_template": "$FLEET_VAR_HOST_HARDWARE_SERIAL",
"certificate_user_principal_names": [
"$FLEET_VAR_HOST_END_USER_IDP_USERNAME"
],
"mtls_cert_expires_at": "2027-10-15T09:21:10Z",
"created_at": "2026-10-15T09:21:10Z",
"updated_at": "2026-10-15T09:21:10Z"
}List certificates added to Fleet.
GET /api/v1/fleet/certificates
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | integer | query | Available in Fleet Premium. The fleet ID to filter certificate templates. If not specified, this defaults to "Unassigned". |
| page | integer | query | Page number of the results to fetch. |
| per_page | integer | query | Results per page. |
| order_key | string | query | What to order results by. Allowed field is id. |
| order_direction | string | query | Requires order_key. The direction of the order given the order key. Options include "asc" and "desc". Default is "asc". |
| after | string | query | The value to get results after. This needs order_key defined, as that's the column that would be used. |
This endpoint accepts the node key from Fleet's Android agent for authentication in addition to default authentication with a Bearer token.
The Authorization header must be formatted as follows:
Authorization: Node key <node_key>OR
Authorization: Bearer <token>When you pass a node key in the authorization header the server will look up the host and replace
the $FLEET_* variables with the values associated to that host. If you use a regular bearer token
the $FLEET_* variables will not be replaced.
GET /api/v1/fleet/certificates/
Authorization: Node key 24dd9ebf-02cd-4d4c-888a-5caa441ee5d5OR
Authorization: Bearer sunVIQ+wqYQvJlXf1aqYTt8LrlUGKBigNdWmdH5bhT1MHStatus: 200
{
"certificates": [
{
"id": 1,
"name": "wifi-certificate",
"certificate_authority_id": "1",
"certificate_authority_name": "PRODUCTION_SCEP_SERVER",
"subject_name": "CN=$FLEET_VAR_HOST_END_USER_IDP_USERNAME, OU=$FLEET_VAR_HOST_UUID, ST=$FLEET_VAR_HOST_HARDWARE_SERIAL",
"subject_alternative_name": "DNS=example.com, UPN=$FLEET_VAR_HOST_END_USER_IDP_USERNAME",
"created_at": "2025-11-04T00:00:00Z"
},
{
"id": 2,
"name": "vpn-certificate",
"certificate_authority_id": "1",
"certificate_authority_name": "PRODUCTION_SCEP_SERVER",
"subject_name": "CN=$FLEET_VAR_HOST_END_USER_IDP_USERNAME, OU=$FLEET_VAR_HOST_UUID",
"created_at": "2025-11-04T00:00:00Z"
}
],
"meta": {
"has_next_results": false,
"has_previous_results": false
}
}Get details of the certificate added to Fleet.
GET /api/v1/fleet/certificates/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The ID of the certificate. |
| host_id | integer | query | ID of the host. If included, variables in subject_name, and subject_alternative_name will be replaced with host's values. |
This endpoint accepts the node key from Fleet's Android agent for authentication in addition to default authentication with a Bearer token.
The Authorization header must be formatted as follows:
Authorization: Node key <node_key>OR
Authorization: Bearer <token>When you pass a node key in the authorization header the server will look up the host and replace
the $FLEET_* variables with the values associated to that host. If you use a regular bearer token
the $FLEET_* variables will not be replaced.
GET /api/v1/fleet/certificates/1
Authorization: Node key 24dd9ebf-02cd-4d4c-888a-5caa441ee5d5OR
Authorization: Bearer sunVIQ+wqYQvJlXf1aqYTt8LrlUGKBigNdWmdH5bhT1MHStatus: 200
{
"certificate_authority_id": 2,
"certificate_authority_name": "PRODUCTION_SCEP_SERVER",
"created_at": "2025-11-04T00:00:00Z",
"id": 1,
"name": "wifi-certificate",
"subject_name": "[email protected], O=Fleet Inc",
"subject_alternative_name": "DNS=example.com, UPN=$FLEET_VAR_HOST_END_USER_IDP_USERNAME"
}When the CA is deleted, the issued certificates will remain on existing hosts.
DELETE /api/v1/fleet/certificate_authorities/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The certificate authority (CA) ID in Fleet. You can see your CAs IDs using the List certificate authorities endpoint. |
DELETE /api/v1/fleet/certificate_authorities/1
Status: 204
Deletes the certificate template added to Fleet. When a certificate template is deleted from Fleet, the certificate will be uninstalled from the hosts.
DELETE /api/v1/fleet/certificates/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The certificate ID in Fleet. You can see your certificate IDs using the List certificate templates endpoint. |
DELETE /api/v1/fleet/certificates/1
Status: 204
Requests a certificate from a certificate authority (CA). Currently, this endpoint is only supported for Hydrant, custom EST, NDES and Okta (Okta uses NDES under the hood), and Google CAS CAs.
For NDES and Okta CAs, the CSR must include a one-time challenge in its challengePassword attribute. To get one in a script, use the $FLEET_VAR_NDES_SCEP_CHALLENGE variable.
For Google CAS CAs, the CSR must instead contain exactly one UPN and no other named SANs (email, DNS, URI, IP). Google CAS rejects CSRs that mix named SANs with the UPN. The UPN must match the username returned by the IdP or the host's recorded end user, compared case-insensitively.
By default, the certificate field in the response is a PEM-encoded PKCS7 envelope (-----BEGIN PKCS7-----/-----END PKCS7-----). Set return_pem_certificate to true to receive a standard PEM CERTIFICATE block instead.
As an alternative to API token authentication, you can send an HTTP signature in the request header. A request authenticated this way must name the end user Fleet has recorded for that host. Hosts with no recorded end user are rejected. Turn this off with integrations.certificates_disable_host_end_user_binding.
Available in Fleet Premium. IdP credentials are only accepted for an introspection endpoint listed in integrations.certificates_idp_introspection_urls. While that list is empty, requests that include IdP credentials are rejected. Once it has entries, every request must include IdP credentials. See Update configuration. To restore the behavior of earlier Fleet versions while you migrate, set the server.allow_request_certificate_any_idp server setting.
When IdP verification or host end user binding runs, the CSR must contain exactly one email address and exactly one user principal name (UPN). The email must match the username returned by the IdP, and the UPN must be that email or its complete local part (for [email protected], either [email protected] or bob), compared case-insensitively. A CSR with a different UPN, an empty UPN, or more than one email or UPN is rejected.
POST /api/v1/fleet/certificate_authorities/:id/request_certificate
| Name | Type | In | Description |
|---|---|---|---|
| id | string | path | Required. The certificate authority (CA) ID in Fleet. You can see your CAs IDs using the List certificate authorities endpoint. |
| csr | string | body | Required The signed certificate signing request (CSR). |
| idp_oauth_url | string | body | OAuth introspection URL from your identity provider (IdP). Must exactly match an entry in integrations.certificates_idp_introspection_urls. Required if idp_token or idp_client_id is specified, or if that list has entries. |
| idp_token | string | body | Active session token from your identity provider (IdP). Required if idp_oauth_url or idp_client_id is specified, or if integrations.certificates_idp_introspection_urls has entries. |
| idp_client_id | string | body | Client ID for which the token was issued from your identity provider (IdP). Required if idp_oauth_url or idp_token is specified, or if integrations.certificates_idp_introspection_urls has entries. When integrations.certificates_idp_client_ids has entries, must exactly match one of them. |
| return_pem_certificate | boolean | body | If true, the issued certificate is returned as a PEM-encoded CERTIFICATE block instead of the default PEM-encoded PKCS7 envelope. Defaults to false. |
POST /api/v1/fleet/certificate_authorities/5/request_certificate
{
"csr": "-----BEGIN CERTIFICATE REQUEST-----\nMIIC/jCCAeYCAQAwITEfMB0GA1UEAwwWQ2lzY29Vc2VyTmV0d29ya0FjY2VzczCC\nASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALJZtbxathh+RfK+Z613ar4E\nYSIem8yAvv2JZJtopjD3noy1yF+nGRyF/ocm+FhYvjR5u7teJXlcv24tAAHuWL4U\nuPIql0Slakjdsfl098salkj324lkjmtElWDi6XRjUIXEj1zyCnZTCxGmyHcYB/+f3fyv/\ngZ8SkPqocNOCpX6cSW8hxOlaF9aZUC+xMHRdjQgxQ79hleb5K/n2gCJjiW1sV0Es\nRg+MX0cbPCpahpzlvIAkzA7TTUTOd7ZN+V0GW0fH86uMstrqeW2QUuZmSDC9fNyj\nQhk6n5iURaHXdFjSmyrhW5AVvw1nIblHodhUtD6J+g9kjhBg1frss3ndQtnNrnMC\nAwEAAaCBlzCkldflkjc098dlkj2KoZIhvcNAQkOMYGGMIGDMIGABgNVHREEeTB3ggljaXNjby5j\nb22BEWthYW53YXJAY2lzY28uY29thjRJRDpGbGVldERNOkdVSUQ6Y2FkMTM4OTEt\nMzU3Ni00NzhmLTk1MzAtZmM1Y2VlZTEzZTkwoCEGCisGAQQBgjcUAgOgEwwRa2Fh\nbndhckBjaXNjby5jb20wDQYJKoZIhvcNAQELBQADggEBAH2U6Or14b4O22YjM22k\nXI9QDC5P+sDczcLjivv4MyXQL1ks8R6B1nXCrOmiLPPLaZ09f+UkeMnyuGAxW8Ce\n6LTKquwvlifZ+5TjyANz0I/d9ETLQF2MTphEZd4ySNLtq2RwYyDOBKaxMdW0sUsd\n6M3WyAuTBVgBkTVIqbMJBzFsgXSrr2a0LJEHszOO2BN3yT5muDQsKPJ1uXL7tNUv\n16pGaYpQZR8yGAmWyISHhAyLaJ1N1R8L77SLxdd/Sj7RunNNxqFqaEgIJMgsyu08\nGharLkQcIoW7qPHZuaLa54xMF/s/vfKH6rgGbbCAgw9kw8Klt+6H3OH1FSMeRfZ/\nDWs=\n-----END CERTIFICATE REQUEST-----",
"idp_oauth_url": "https://idp.oauth.com/introspection",
"idp_token": "88683de5858044aaacaf4046aeeef778044aaacaf4046",
"idp_client_id": "1o2czkDnUVwTqSOc747"
}Status: 200
{
"certificate": "-----BEGIN PKCS7-----\nMIIGmAYJKoZIhvcNAQcCoIIGiTCCBoUCAQExADALBgkqhkiG9w0BBwGgggZtMIIG\naTCCBVGgAwIBAgITHQAAAAQszG7Pr1bRVwABAAAABDANBgkqhkiG9w0BAQsFADBd\nMRMwEQYKCZImiZPyLGQBGRYDY29tMRcwFQYKCZImiZPyLGQBGRYHZXhhbXBsZTEt\nMCsGA1UEAxMkRXhhbXBsZSBJc3N1aW5nIENBIDEgLSBDQSBDb21wYXJ0bWVudDAe\nFw0yNjA0MzAxNjMwMDBaFw0yNjA3MjkxNjMwMDBaMBcxFTATBgNVBAMMDGZsZWV0\naWUtdXNlcjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALMrkHOVZWVG\nv9PqU20NgpWed9MdRtMc8406GGWQJ3Rj9/8Jcy8LOx1d5/XWLKK5VbN2c1hD/a26\nqkgHtDMfzRXnv5oFybkhaI5tlc9yhQmJVFI2RIBsSkZvIlX+SNWV2RuiyVHyGbjh\nzi3wZen1s0aOeXMMHdD5FVEngX4Fz3TuTb/Z8romrsSmWb32fQyQxola9/xe0IAn\nXZocrxi4xPjNKQbEN/2+gQ/MRJx+c+xnV3MVIrXn+8Av8MMBsXhCDlmT2QrpRezN\nAwWwRni9yKOb0sZMtTDrsCOgAmWsj0Qxf/ASMPh7xbozXK4ubf5ombYxEdwGgYl/\nIKQUKvBKYMMCAwEAAaA=\n-----END PKCS7-----\n"
}{
"csr": "-----BEGIN CERTIFICATE REQUEST-----\nMIIC/jCCAeYCAQAwITEfMB0GA1UEAwwWQ2lzY29Vc2VyTmV0d29ya0FjY2VzczCC\n...\n-----END CERTIFICATE REQUEST-----",
"return_pem_certificate": true
}Status: 200
{
"certificate": "-----BEGIN CERTIFICATE-----\nMIIC5DCCAcwCCQChs1cFRAzRCTANBgkqhkiG9w0BAQsFADA0MTIwMAYDVQQDDClD\ndXN0b21lclVzZXJOZXR3b3JrQWNjZXNzOmJvYkBleGFtcGxlLmNvbTAeFw0yNTA5\nMDgxODM0MzNaFw0yODA2MDUxODM0MzNaMDQxMjAwBgNVBAMMKUN1c3RvbWVyVXNl\nck5ldHdvcmtBY2Nlc3M6Ym9iQGV4YW1wbGUuY29tMIIBIjANBgkqhkiG9w0BAQEF\nAAOCAQ8AMIIBCgKCAQEAuojcu8UBxTjpz5krPX4KmWNAmWvJ4U7yh8pGXOp6kngz\n1iRmGkBYdr0CQXlkrASejqglbdDfaRt3hz8S4raIlKyiU59gFK6f2Lory54ndzJw\nhVeNGqpLrnW1T763zvjcSKaASfVzdnsa66v6pZQte2fZAk7+q5o9ezyirSQmTuks\ndxXAZ5OiDafFwzXlanGZIvCsHBTJtbi881/QU701aTdFFrxLd+jsiaFhKSoQQcL5\nt0zu96cPS2dJivxpaogZ1f8dispWeRiMbt3njaxfWazm4RqvwvDouTSstqUxTzC8\n28Kbh7bnxPcSiuajnf35q53juhTLmB2CKEf0m1eqEwIDAQABMA0GCSqGSIb3DQEB\nCwUAA4IBAQCp75tK8cxR6A0Sfu3vg7TMPD3MkGrpdgh2giAVoCa4hOxOdHl/nYgu\nfPHodsRUfXi1SXo/77jLldGOLE6Ro447FMgrN94mRkaFUZbuLC5z2VciF9x1fdus\nIFfASIFnb4Zw24F2RDBbbGqXqRrA/1m1fWjHTb20+8rHeZW+FCJmxQrL27OG7n/n\nqDr8QmfNwTm8l72FBvUIz1xisuba5nXNAEc6rxTFw6WhPq5fgtBlVZCm55h87hHd\nQbzDGlkIXf+nypg9kwk3fDQ7VY9hrqc74wAefbIkvUSTk9rNaoncxI5Mod/imyan\ngCioUdMGd7M/dpEDDXKJNyI6lfscpG1D\n-----END CERTIFICATE-----\n"
}Content-Digest: sha-512=:WZDPaVn/7XgHaAy8pmojAkGWoRx2UFChF41A2svX+T\aPm+AbwAgBWnrIiYllu7BNNyealdVLvRwEmTHWXvJwew==
Signature: sig1=:e8UJ5wMiRaonlth5ERtE8GIiEH7Akcr493nQ07VPNo6y3qvjdK\t0fo8VHO8xXDjmtYoatGYBGJVlMfIp06eVMEyNW2I4vN7XDAz7m5v1108vGzaDljr\d0H8+SJ28g7bzn6h2xeL/8q+qUwahWA/JmC8aOC9iVnwbOKCc0WSrLgWQwTY6VLp4\2Qt7jjhYT5W7/wCvfK9A1VmHH1lJXsV873Z6hpxesd50PSmO+xaNeYvDLvVdZlhtw\5PCtUYzKjHqwmaQ6DEuM8udRjYsoNqp2xZKcuCO1nKc0V3RjpqMZLuuyVbHDAbCzr\ 0pg2d2VM/OC33JAU7meEjjaNz+d7LWPg==:
Signature-Input: sig1=("@method" "@authority" "@path" "@query" \"content-digest" "content-type" "content-length")\;created=1618884475;keyid="test-key-rsa-pss"{
"csr": "-----BEGIN CERTIFICATE REQUEST-----\nMIIC/jCCAeYCAQAwITEfMB0GA1UEAwwWQ2lzY29Vc2VyTmV0d29ya0FjY2VzczCC\nASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALJZtbxathh+RfK+Z613ar4E\nYSIem8yAvv2JZJtopjD3noy1yF+nGRyF/ocm+FhYvjR5u7teJXlcv24tAAHuWL4U\nuPIql0Slakjdsfl098salkj324lkjmtElWDi6XRjUIXEj1zyCnZTCxGmyHcYB/+f3fyv/\ngZ8SkPqocNOCpX6cSW8hxOlaF9aZUC+xMHRdjQgxQ79hleb5K/n2gCJjiW1sV0Es\nRg+MX0cbPCpahpzlvIAkzA7TTUTOd7ZN+V0GW0fH86uMstrqeW2QUuZmSDC9fNyj\nQhk6n5iURaHXdFjSmyrhW5AVvw1nIblHodhUtD6J+g9kjhBg1frss3ndQtnNrnMC\nAwEAAaCBlzCkldflkjc098dlkj2KoZIhvcNAQkOMYGGMIGDMIGABgNVHREEeTB3ggljaXNjby5j\nb22BEWthYW53YXJAY2lzY28uY29thjRJRDpGbGVldERNOkdVSUQ6Y2FkMTM4OTEt\nMzU3Ni00NzhmLTk1MzAtZmM1Y2VlZTEzZTkwoCEGCisGAQQBgjcUAgOgEwwRa2Fh\nbndhckBjaXNjby5jb20wDQYJKoZIhvcNAQELBQADggEBAH2U6Or14b4O22YjM22k\nXI9QDC5P+sDczcLjivv4MyXQL1ks8R6B1nXCrOmiLPPLaZ09f+UkeMnyuGAxW8Ce\n6LTKquwvlifZ+5TjyANz0I/d9ETLQF2MTphEZd4ySNLtq2RwYyDOBKaxMdW0sUsd\n6M3WyAuTBVgBkTVIqbMJBzFsgXSrr2a0LJEHszOO2BN3yT5muDQsKPJ1uXL7tNUv\n16pGaYpQZR8yGAmWyISHhAyLaJ1N1R8L77SLxdd/Sj7RunNNxqFqaEgIJMgsyu08\nGharLkQcIoW7qPHZuaLa54xMF/s/vfKH6rgGbbCAgw9kw8Klt+6H3OH1FSMeRfZ/\nDWs=\n-----END CERTIFICATE REQUEST-----",
"idp_oauth_url": "https://idp.oauth.com/introspection",
"idp_token": "88683de5858044aaacaf4046aeeef778044aaacaf4046",
"idp_client_id": "1o2czkDnUVwTqSOc747",
"return_pem_certificate": true
}Status: 200
{
"certificate": "-----BEGIN CERTIFICATE-----\nMIIC5DCCAcwCCQChs1cFRAzRCTANBgkqhkiG9w0BAQsFADA0MTIwMAYDVQQDDClD\ndXN0b21lclVzZXJOZXR3b3JrQWNjZXNzOmJvYkBleGFtcGxlLmNvbTAeFw0yNTA5\nMDgxODM0MzNaFw0yODA2MDUxODM0MzNaMDQxMjAwBgNVBAMMKUN1c3RvbWVyVXNl\nck5ldHdvcmtBY2Nlc3M6Ym9iQGV4YW1wbGUuY29tMIIBIjANBgkqhkiG9w0BAQEF\nAAOCAQ8AMIIBCgKCAQEAuojcu8UBxTjpz5krPX4KmWNAmWvJ4U7yh8pGXOp6kngz\n1iRmGkBYdr0CQXlkrASejqglbdDfaRt3hz8S4raIlKyiU59gFK6f2Lory54ndzJw\nhVeNGqpLrnW1T763zvjcSKaASfVzdnsa66v6pZQte2fZAk7+q5o9ezyirSQmTuks\ndxXAZ5OiDafFwzXlanGZIvCsHBTJtbi881/QU701aTdFFrxLd+jsiaFhKSoQQcL5\nt0zu96cPS2dJivxpaogZ1f8dispWeRiMbt3njaxfWazm4RqvwvDouTSstqUxTzC8\n28Kbh7bnxPcSiuajnf35q53juhTLmB2CKEf0m1eqEwIDAQABMA0GCSqGSIb3DQEB\nCwUAA4IBAQCp75tK8cxR6A0Sfu3vg7TMPD3MkGrpdgh2giAVoCa4hOxOdHl/nYgu\nfPHodsRUfXi1SXo/77jLldGOLE6Ro447FMgrN94mRkaFUZbuLC5z2VciF9x1fdus\nIFfASIFnb4Zw24F2RDBbbGqXqRrA/1m1fWjHTb20+8rHeZW+FCJmxQrL27OG7n/n\nqDr8QmfNwTm8l72FBvUIz1xisuba5nXNAEc6rxTFw6WhPq5fgtBlVZCm55h87hHd\nQbzDGlkIXf+nypg9kwk3fDQ7VY9hrqc74wAefbIkvUSTk9rNaoncxI5Mod/imyan\ngCioUdMGd7M/dpEDDXKJNyI6lfscpG1D\n-----END CERTIFICATE-----\n"
}Resends a certificate for the specified host. Currently, only Android certificates are supported.
POST /api/v1/fleet/hosts/:id/certificates/:certificate_template_id/resend
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The host's ID. |
| certificate_template_id | string | path | Required. The ID of the certificate to resend to the host. |
POST /api/v1/fleet/hosts/233/certificates/322/resend
Status: 202
Returns time-series data for a dashboard chart, as a list of per-bucket distinct host counts over a recent window.
The available metrics are:
uptime: the number of hosts online (checking in to Fleet) during each bucket.cve: Available in Fleet Premium. The number of hosts with vulnerabilities in tracked software during each bucket. Use severity_min and severity_max to limit the chart to a CVSS score range.GET /api/v1/fleet/charts/:metric
| Name | Type | In | Description |
|---|---|---|---|
| metric | string | path | Required. The chart metric. One of uptime or cve. The cve metric requires Fleet Premium. |
| days | integer | query | Number of days of history to return. Must be between 1 and 31. Default is 7. |
| resolution | integer | query | Bucket size in hours. Must be 0 or a positive divisor of 24 (for example 1, 2, 3, 4, 6, 8, 12, 24). 0 (the default) uses the metric's default resolution. |
| tz_offset | integer | query | The client's UTC offset in minutes, as returned by JavaScript's Date.getTimezoneOffset() (positive is west of UTC). Used to align bucket boundaries to the client's local time. |
| fleet_id | integer | query | Available in Fleet Premium. Scopes results to the specified fleet. Use 0 to scope to "Unassigned" (no fleet) hosts. |
| label_ids | string | query | Comma-separated list of label IDs. Limits the chart to hosts that belong to any of these labels. |
| platforms | string | query | Comma-separated list of host platforms to include (for example darwin,windows,linux,chrome). |
| include_host_ids | string | query | Comma-separated list of host IDs. Limits the chart to only these hosts. |
| exclude_host_ids | string | query | Comma-separated list of host IDs to exclude from the chart. |
| software_filters | string | query | cve metric only. Comma-separated list of software categories to include: os, browsers, office, adobe. Omit to include all categories. |
| has_known_exploit | boolean | query | cve metric only. If true, only include CVEs with a known exploit (present in the CISA Known Exploited Vulnerabilities catalog). |
| epss_min | number | query | cve metric only. Minimum EPSS probability, from 0.0 to 1.0. |
| epss_max | number | query | cve metric only. Maximum EPSS probability, from 0.0 to 1.0. |
| severity_min | number | query | cve metric only. Minimum CVSS version 3.x base score, from 0.0 to 10.0. Omit for no lower bound. |
| severity_max | number | query | cve metric only. Maximum CVSS version 3.x base score, from 0.0 to 10.0. Omit for no upper bound. |
| exclude_vulnerabilities | string | query | cve metric only. Comma-separated list of CVEs (for example CVE-2024-1234) to exclude from the chart. |
Omitting
severity_minorseverity_maxremoves that bound entirely, which isn't the same as passing the full0.0to10.0range. Fleet doesn't have vulnerability metadata for every CVE, andseverity_min,severity_max,epss_min,epss_max, andhas_known_exploitall need it. Vulnerabilities without metadata are included only when none of these filters is set.
| Name | Type | Description |
|---|---|---|
| metric | string | The requested metric. |
| visualization | string | The metric's default visualization (line or checkerboard). |
| total_hosts | integer | The number of hosts matching the host filters, used as the denominator when the chart is displayed as a percentage. |
| resolution | string | The bucket size of the returned data (for example hourly, 3-hour, or daily). |
| days | integer | The number of days of history returned. |
| filters | object | The filters that were applied to the request. |
| data | array | The time series. Each element has a timestamp (RFC3339, the start of the bucket) and a value (the host count). |
Status: 200
{
"metric": "cve",
"visualization": "line",
"total_hosts": 1164,
"resolution": "3-hour",
"days": 7,
"filters": {
"software_filters": ["browsers", "adobe"],
"has_known_exploit": true,
"severity_min": 9.0,
"severity_max": 10.0
},
"data": [
{
"timestamp": "2026-06-08T00:00:00Z",
"value": 488
},
{
"timestamp": "2026-06-08T03:00:00Z",
"value": 502
}
]
}Download the SAML IdP signing certificate for Okta conditional access. Okta uses this certificate to verify SAML assertions signed by Fleet.
GET /api/v1/fleet/conditional_access/idp/signing_cert
None.
GET /api/v1/fleet/conditional_access/idp/signing_cert
Status: 200
Returns a PEM-encoded X.509 certificate file with Content-Type: application/x-pem-file.
Download the macOS configuration profile (.mobileconfig) for Okta conditional access. This profile configures SCEP enrollment and client certificate authentication on macOS hosts.
GET /api/v1/fleet/conditional_access/idp/apple/profile
None.
GET /api/v1/fleet/conditional_access/idp/apple/profile
Status: 200
Returns an Apple configuration profile file with Content-Type: application/x-apple-aspen-config.
Available in Fleet Premium.
Get the Windows configuration profiles (SyncML) for Okta conditional access. Requires a global admin, maintainer, technician, or GitOps user.
Before uploading scep_profile, replace <!-- Replace with a global enroll secret --> with a custom variable that holds a global enroll secret (recommended), or with the secret itself. Fleet rejects the profile until you do.
The profiles require Windows 11 Pro, Enterprise, or Education. Windows Home isn't supported.
GET /api/v1/fleet/conditional_access/idp/windows/profiles
None.
GET /api/v1/fleet/conditional_access/idp/windows/profiles
Status: 200
{
"scep_profile": "<!-- Fleet conditional access for Okta: SCEP certificate (user store) -->\n<Add>...</Exec>",
"browser_profile": "<!-- Fleet conditional access for Okta: Chrome and Edge auto-select the certificate for the mTLS endpoint -->\n<Add>...</Replace>"
}| Field | Description |
|---|---|
| scep_profile | Profile that enrolls the conditional access certificate into the signed-in user's certificate store. |
| browser_profile | Profile that configures Chrome and Edge to present the certificate to Okta. Optional: without it, the browser asks the end user to pick the certificate. |
Disconnects Fleet from Entra. This won't unblock end users failing policies. Learn how to unblock end users.
DELETE /api/v1/fleet/conditional-access/microsoft
None.
Status: 200
Available in Fleet Premium.
Connects Fleet to Google to mark company-owned iOS, iPadOS, and Android hosts as managed, for conditional access with Google. Fleet checks the service account's domain-wide delegation with Google before saving anything.
If Google is already connected, this replaces the settings and the key. To change only some of them, use Update Google.
POST /api/v1/fleet/conditional_access/google
| Name | Type | In | Description |
|---|---|---|---|
| customer_id | string | body | Required. Your Google customer ID, with its leading C (for example, C01234abc). Find it in the Google Admin console under Account > Account settings. |
| admin_email | string | body | Required. The email of the Google Workspace admin Fleet uses to mark hosts as managed. |
| service_account_key | object | body | Required. The service account JSON key, with domain-wide delegation for the https://www.googleapis.com/auth/cloud-identity.devices scope. Fleet stores it encrypted and never returns it. |
POST /api/v1/fleet/conditional_access/google
{
"customer_id": "C01234abc",
"admin_email": "[email protected]",
"service_account_key": {
"type": "service_account",
"project_id": "fleet-conditional-access",
"private_key_id": "<private key id>",
"private_key": "-----BEGIN PRIVATE KEY-----\n<private key>\n-----END PRIVATE KEY-----\n",
"client_email": "fleet-conditional-access@fleet-conditional-access.iam.gserviceaccount.com",
"client_id": "<client id>",
"token_uri": "https://oauth2.googleapis.com/token",
"universe_domain": "googleapis.com"
}
}Status: 200
{
"customer_id": "C01234abc",
"admin_email": "[email protected]",
"service_account_key_configured": true,
"state": "connected",
"error_message": null
}Nothing is saved.
Status: 422
{
"message": "Validation Failed",
"errors": [
{
"name": "service_account_key",
"reason": "Couldn't connect to Google: <Google's reason>"
}
]
}The settings and the key are saved, and state is "registration_failed". To try again, send the same request, or Update Google with an empty body.
Status: 502
Available in Fleet Premium.
Returns the Google conditional access settings and the connection status. The service account key is never returned.
GET /api/v1/fleet/conditional_access/google
None.
GET /api/v1/fleet/conditional_access/google
Status: 200
{
"customer_id": "C01234abc",
"admin_email": "[email protected]",
"service_account_key_configured": true,
"state": "connected",
"error_message": null
}state is one of:
"": Google isn't configured. customer_id and admin_email are ""."pending": Fleet is connecting."connected": Fleet marks hosts as managed in Google."delegation_failed": Google refused the service account. Fleet only calls Google when it marks or unmarks a host, so this shows up the next time a host registers, or is deleted, unenrolled, or has its Google device ID removed. Fleet then checks again every 5 minutes, and error_message has Google's reason. Hosts that are already marked stay marked."registration_failed": Fleet couldn't register with fleetdm.com. error_message has the reason."deleted": A delete didn't finish. Delete Google again.Available in Fleet Premium.
Changes the Google conditional access settings. Fields you leave out keep their value, so you can change the admin email without sending the key, or replace the key on its own. Fleet checks the result with Google before saving anything.
Changing admin_email or service_account_key doesn't change which hosts are marked. Changing customer_id connects Fleet to a different Google Workspace: hosts register again there, and hosts stay marked in the previous Google Workspace.
An empty request body tries a connection that didn't complete again.
PATCH /api/v1/fleet/conditional_access/google
| Name | Type | In | Description |
|---|---|---|---|
| customer_id | string | body | Your Google customer ID, with its leading C. |
| admin_email | string | body | The email of the Google Workspace admin Fleet uses to mark hosts as managed. |
| service_account_key | object | body | The service account JSON key. |
PATCH /api/v1/fleet/conditional_access/google
{
"admin_email": "[email protected]"
}Status: 200
{
"customer_id": "C01234abc",
"admin_email": "[email protected]",
"service_account_key_configured": true,
"state": "connected",
"error_message": null
}Use Connect Google instead.
Status: 400
Available in Fleet Premium.
Disconnects Fleet from Google and deletes the service account key. This won't unmark hosts: they stay marked as managed in Google. Learn how to disable Google conditional access.
DELETE /api/v1/fleet/conditional_access/google
None.
DELETE /api/v1/fleet/conditional_access/google
Status: 200
Nothing is deleted. Try again.
Status: 502
File carving allows you to request files (and sets of files) and their full contents from hosts.
To initiate a file carve using the Fleet API, use the live report endpoint to run a query against the carves table.
Any failure when uploading a file block (like a network error) will result in a failed carved file. Block uploads are retried up to three times before failing.
To learn more about executing a file carve in Fleet, head to the file carving guide.
Retrieves a list of the non expired carves. Carve contents remain available for 24 hours after the first data is provided from the osquery client.
GET /api/v1/fleet/carves
| Name | Type | In | Description |
|---|---|---|---|
| page | integer | query | Page number of the results to fetch. |
| per_page | integer | query | Results per page. |
| order_key | string | query | What to order results by. Can be any field listed in the results array example below. |
| order_direction | string | query | Requires order_key. The direction of the order given the order key. Valid options are "asc" or "desc". Default is "asc". |
| after | string | query | The value to get results after. This needs order_key defined, as that's the column that would be used. |
| expired | boolean | query | Include expired carves (default: false) |
GET /api/v1/fleet/carves
Status: 200
{
"carves": [
{
"id": 1,
"created_at": "2021-02-23T22:52:01Z",
"host_id": 7,
"name": "macbook-pro.local-2021-02-23T22:52:01Z-fleet_distributed_query_30",
"block_count": 1,
"block_size": 2000000,
"carve_size": 2048,
"carve_id": "c6958b5f-4c10-4dc8-bc10-60aad5b20dc8",
"request_id": "fleet_distributed_query_30",
"session_id": "065a1dc3-40ad-441c-afff-80c2ad7dac28",
"expired": false,
"max_block": 0
},
{
"id": 2,
"created_at": "2021-02-23T22:53:03Z",
"host_id": 7,
"name": "macbook-pro.local-2021-02-23T22:53:03Z-fleet_distributed_query_31",
"block_count": 2,
"block_size": 2000000,
"carve_size": 3400704,
"carve_id": "2b9170b9-4e11-4569-a97c-2f18d18bec7a",
"request_id": "fleet_distributed_query_31",
"session_id": "f73922ed-40a4-4e98-a50a-ccda9d3eb755",
"expired": false,
"max_block": 1,
"error": "S3 multipart carve upload: EntityTooSmall: Your proposed upload is smaller than the minimum allowed object size"
}
]
}Retrieves the specified carve.
GET /api/v1/fleet/carves/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The desired carve's ID. |
GET /api/v1/fleet/carves/1
Status: 200
{
"carve": {
"id": 1,
"created_at": "2021-02-23T22:52:01Z",
"host_id": 7,
"name": "macbook-pro.local-2021-02-23T22:52:01Z-fleet_distributed_query_30",
"block_count": 1,
"block_size": 2000000,
"carve_size": 2048,
"carve_id": "c6958b5f-4c10-4dc8-bc10-60aad5b20dc8",
"request_id": "fleet_distributed_query_30",
"session_id": "065a1dc3-40ad-441c-afff-80c2ad7dac28",
"expired": false,
"max_block": 0
}
}Retrieves the specified carve block. This endpoint retrieves the data that was carved.
GET /api/v1/fleet/carves/:id/block/:block_id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The desired carve's ID. |
| block_id | integer | path | Required. The desired carve block's ID. |
GET /api/v1/fleet/carves/1/block/0
Status: 200
{
"data": "aG9zdHMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA..."
}The Fleet server exposes API endpoints that handle the configuration of Fleet as well as endpoints that manage enroll secret operations. These endpoints require prior authentication, you so you'll need to log in before calling any of the endpoints documented below.
Returns the Fleet certificate.
GET /api/v1/fleet/config/certificate
None.
GET /api/v1/fleet/config/certificate
Status: 200
{
"certificate_chain": "<certificate_chain>"
}Returns all information about the Fleet's configuration.
The agent_options, sso_settings and smtp_settings fields are only returned for admin and GitOps users with global access (see the Role-based access guide).
auth is read-only. auth.mdm_apple_one_time_enroll_secrets reports the mdm.apple_one_time_enroll_secrets server configuration and is only returned when that setting is enabled.
mdm.apple_settings.configuration_profiles, mdm.windows_settings.configuration_profiles, mdm.setup_experience, mdm.volume_purchasing_program, and scripts only include the settings applied using Fleet's YAML. To list the settings added in the UI or API, use the List configuration profiles, GET endpoints from Setup experience, List Volume Purchasing Program (VPP) tokens, or List scripts instead.
auth is read-only and only returned when one of its settings is enabled. auth.mdm_windows_one_time_enroll_secrets reports the mdm.windows_one_time_enroll_secrets server configuration.
GET /api/v1/fleet/config
None.
GET /api/v1/fleet/config
Status: 200
{
"org_info": {
"org_name": "fleet",
"org_logo_url_dark_mode": "",
"org_logo_url_light_mode": "",
"org_logo_url": "",
"org_logo_url_light_background": "",
"contact_url": "https://fleetdm.com/company/contact"
},
"server_settings": {
"server_url": "https://instance.fleet.com",
"enable_analytics": true,
"live_query_disabled": false,
"query_reports_disabled": false,
"ai_features_disabled": false,
"mcp_disabled": false
},
"smtp_settings": {
"enable_smtp": false,
"configured": false,
"sender_address": "",
"server": "",
"port": 587,
"authentication_type": "authtype_username_password",
"user_name": "",
"password": "********",
"enable_ssl_tls": true,
"authentication_method": "authmethod_plain",
"domain": "",
"verify_ssl_certs": true,
"enable_start_tls": true
},
"sso_settings": {
"entity_id": "",
"issuer_uri": "",
"idp_image_url": "",
"metadata": "",
"metadata_url": "",
"idp_name": "",
"enable_sso": false,
"enable_sso_idp_login": false,
"enable_jit_provisioning": false,
"sso_server_url": ""
},
"conditional_access": {
"microsoft_entra_tenant_id": "",
"microsoft_entra_connection_configured": false,
"okta_idp_id": "0ogmbinlfy9hvGs7cx492",
"okta_assertion_consumer_service_url": "https://example.okta.com/sso/saml2/0ogmbinlfy9hvGs7cx492",
"okta_audience_uri": "https://www.okta.com/saml2/service-provider/asdhjlksoewpoasn",
"okta_certificate": "-----BEGIN CERTIFICATE-----\nMIIC...\n-----END CERTIFICATE-----",
"bypass_disabled": false,
"google": {
"service_account_key_configured": true,
"state": "connected",
"error_message": null
}
},
"host_expiry_settings": {
"host_expiry_enabled": false,
"host_expiry_window": 0
},
"activity_expiry_settings": {
"activity_expiry_enabled": false,
"activity_expiry_window": 0,
"preserve_host_activities_on_reenrollment": false
},
"features": {
"enable_host_users": true,
"enable_software_inventory": true,
"additional_queries": null
},
"mdm": {
"android_enabled_and_configured": true,
"windows_enabled_and_configured": true,
"windows_entra_tenant_ids": [
"fec37e96-3615-4e37-8fac-445d5328af3c"
],
"windows_entra_client_ids": [
"8c8e3fd4-9b2c-4d3e-8f10-2233445566aa"
],
"microsoft_graph_credential_invalid": false,
"enable_turn_on_windows_mdm_manually": false,
"apple_require_hardware_attestation": false,
"only_allow_apple_business_enrollment": false,
"enable_profile_validation": true,
"name_template": "",
"macos_updates": {
"minimum_version": "12.3.1",
"deadline": "2022-01-01",
"update_new_hosts": true
},
"ios_updates": {
"minimum_version": "17.0.1",
"deadline": "2024-08-01"
},
"ipados_updates": {
"minimum_version": "17.0.1",
"deadline": "2024-08-01"
},
"windows_updates": {
"deadline_days": 5,
"grace_period_days": 1
},
"macos_settings": {
"custom_settings": [
{
"path": "path/to/profile1.mobileconfig",
"labels": ["Label 1", "Label 2"]
}
]
},
"apple_settings": {
"configuration_profiles": [
{
"path": "path/to/profile1.mobileconfig",
"labels": ["Label 1", "Label 2"]
},
{
"path": "path/to/declaration.json",
"labels": ["Label 1", "Label 2"]
}
],
"enable_disk_encryption": true,
"enable_escrow_disk_encryption_key": true,
"assets": [
{
"path": "path/to/assets/asset.json"
}
],
"managed_local_account_settings": {
"enabled": true
},
"end_user_local_account_type": "admin"
},
"windows_settings": {
"custom_settings": [
{
"path": "path/to/profile2.xml",
"labels": ["Label 3", "Label 4"]
}
],
"configuration_profiles": [
{
"path": "path/to/profile2.xml",
"labels": ["Label 3", "Label 4"]
}
],
"enable_disk_encryption": true,
"require_bitlocker_pin": true,
"enable_managed_local_account": true
},
"linux_settings": {
"enable_escrow_disk_encryption_key": true
},
"scripts": ["path/to/script.sh"],
"end_user_authentication": {
"entity_id": "",
"metadata": "",
"metadata_url": "",
"idp_name": ""
},
"macos_migration": {
"enable": false,
"mode": "voluntary",
"webhook_url": "https://webhook.example.com"
},
"macos_setup": {
"bootstrap_package": "",
"enable_end_user_authentication": false,
"macos_setup_assistant": "path/to/config.json",
"enable_release_device_manually": false,
"manual_agent_install": false,
"enable_managed_local_account": false,
"end_user_local_account_type": "admin"
},
"setup_experience": {
"bootstrap_package": "",
"macos_enable_bootstrap_package_during_manual_enrollment": false,
"macos_enable_bootstrap_package_during_migration": false,
"enable_end_user_authentication": false,
"apple_setup_assistant": "path/to/config.json",
"enable_release_device_manually": false,
"manual_agent_install": false,
"enable_managed_local_account": false,
"end_user_local_account_type": "admin"
},
"client_url": "https://instance.fleet.com",
"apple_account_provisioning": {
"oauth_idp_token_url": "https://fleet-example.okta.com/oauth2/v1/token",
"oauth_idp_client_id": "Ooa12345abcdeFGHI678",
"oauth_idp_client_secret": "********"
}
},
"agent_options": {
"spec": {
"config": {
"options": {
"pack_delimiter": "/",
"logger_tls_period": 10,
"distributed_plugin": "tls",
"disable_distributed": false,
"logger_tls_endpoint": "/api/v1/osquery/log",
"distributed_interval": 10,
"distributed_tls_max_attempts": 3
},
"decorators": {
"load": [
"SELECT uuid AS host_uuid FROM system_info;",
"SELECT hostname AS hostname FROM system_info;"
]
}
},
"overrides": {},
"command_line_flags": {}
}
},
"license": {
"tier": "premium",
"organization": "fleet",
"device_count": 500000,
"expiration": "2031-10-16T00:00:00Z",
"note": ""
},
"logging": {
"debug": false,
"json": false,
"result": {
"plugin": "firehose",
"config": {
"region": "us-east-1",
"status_stream": "",
"result_stream": "result-topic"
}
},
"status": {
"plugin": "filesystem",
"config": {
"status_log_file": "foo_status",
"result_log_file": "",
"enable_log_rotation": false,
"enable_log_compression": false
}
}
},
"vulnerability_settings": {
"databases_path": ""
},
"gitops": {
"gitops_mode_enabled": false,
"repository_url": ""
},
"webhook_settings": {
"host_status_webhook": {
"enable_host_status_webhook": true,
"destination_url": "https://server.com",
"host_percentage": 5,
"days_count": 7
},
"failing_policies_webhook":{
"enable_failing_policies_webhook":true,
"destination_url": "https://server.com",
"policy_ids": [1, 2, 3],
"host_batch_size": 1000
},
"vulnerabilities_webhook":{
"enable_vulnerabilities_webhook":true,
"destination_url": "https://server.com",
"host_batch_size": 1000
},
"activities_webhook":{
"enable_activities_webhook":true,
"destination_url": "https://server.com"
}
},
"integrations": {
"google_calendar": [
{
"domain": "example.com",
"api_key_json": {
"type": "service_account",
"project_id": "fleet-in-your-calendar",
"private_key_id": "<private key id>",
"private_key": "-----BEGIN PRIVATE KEY-----\n<private key>\n-----END PRIVATE KEY-----\n",
"client_email": "fleet-calendar-events@fleet-in-your-calendar.iam.gserviceaccount.com",
"client_id": "<client id>",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/fleet-calendar-events%40fleet-in-your-calendar.iam.gserviceaccount.com",
"universe_domain": "googleapis.com"
}
}
],
"google_workspace": [
{
"domain": "example.com",
"impersonated_user_email": "[email protected]",
"api_key_json": {
"type": "service_account",
"project_id": "fleet-idp-sync",
"private_key_id": "<private key id>",
"private_key": "-----BEGIN PRIVATE KEY-----\n<private key>\n-----END PRIVATE KEY-----\n",
"client_email": "[email protected]",
"client_id": "<client id>",
"token_uri": "https://oauth2.googleapis.com/token",
"universe_domain": "googleapis.com"
}
}
],
"google_conditional_access": {
"customer_id": "C01234abc",
"admin_email": "[email protected]",
"api_key_json": "********"
},
"jira": [],
"zendesk": [],
"certificates_idp_introspection_urls": [],
"certificates_idp_client_ids": [],
"certificates_disable_host_end_user_binding": false
},
"logging": {
"debug": false,
"json": false,
"result": {
"plugin": "filesystem",
"config": {
"status_log_file": "/var/folders/xh/bxm1d2615tv3vrg4zrxq540h0000gn/T/osquery_status",
"result_log_file": "/var/folders/xh/bxm1d2615tv3vrg4zrxq540h0000gn/T/osquery_result",
"enable_log_rotation": false,
"enable_log_compression": false
}
},
"status": {
"plugin": "filesystem",
"config": {
"status_log_file": "/var/folders/xh/bxm1d2615tv3vrg4zrxq540h0000gn/T/osquery_status",
"result_log_file": "/var/folders/xh/bxm1d2615tv3vrg4zrxq540h0000gn/T/osquery_result",
"enable_log_rotation": false,
"enable_log_compression": false
}
}
},
"update_interval": {
"osquery_detail": 3600000000000,
"osquery_policy": 3600000000000
},
"vulnerabilities": {
"cpe_database_url": "",
"disable_schedule": false,
"cve_feed_prefix_url": "",
"databases_path": "",
"disable_data_sync": false,
"periodicity": 3600000000000,
"recent_vulnerability_max_age": 2592000000000000
},
"max_software_package_size": 10737418240,
"staged_upload_available": false,
"auth": {
"mdm_apple_one_time_enroll_secrets": true
}
}Modifies the Fleet's configuration with the supplied information.
PATCH /api/v1/fleet/config
mdm.apple_settings.configuration_profiles, mdm.windows_settings.configuration_profiles, mdm.setup_experience, mdm.volume_purchasing_program, and scripts only include the settings applied using Fleet's YAML. To list the settings added in the UI or API, use List configuration profiles, the GET endpoints from Setup experience, List Volume Purchasing Program (VPP) tokens, or List scripts instead.
| Name | Type | In | Description |
|---|---|---|---|
| org_info | object | body | See org_info. |
| server_settings | object | body | See server_settings. |
| smtp_settings | object | body | See smtp_settings. |
| sso_settings | object | body | See sso_settings. |
| host_expiry_settings | object | body | See host_expiry_settings. |
| activity_expiry_settings | object | body | See activity_expiry_settings. |
| agent_options | objects | body | The agent_options spec that is applied to all hosts. |
| fleet_desktop | object | body | See fleet_desktop. |
| webhook_settings | object | body | See webhook_settings. |
| integrations | object | body | See integrations. |
| gitops | object | body | See gitops. |
| mdm | object | body | See mdm. |
| conditional_access | object | body | See conditional_access. |
| features | object | body | See features. |
| scripts | array | body | A list of script files to add so they can be executed at a later time. |
| yara_rules | array | body | A list of YARA rule files to add. |
| force | boolean | query | Whether to force-apply the agent options even if there are validation errors. |
| dry_run | boolean | query | Whether to validate the configuration and return any validation errors without applying changes. |
PATCH /api/v1/fleet/config
{
"scripts": []
}Status: 200
{
"org_info": {
"org_name": "Fleet Device Management",
"org_logo_url_dark_mode": "https://fleetdm.com/logo.png",
"org_logo_url_light_mode": "https://fleetdm.com/logo-light.png",
"org_logo_url": "https://fleetdm.com/logo.png",
"org_logo_url_light_background": "https://fleetdm.com/logo-light.png",
"contact_url": "https://fleetdm.com/company/contact"
},
"server_settings": {
"server_url": "https://instance.fleet.com",
"enable_analytics": true,
"live_query_disabled": false,
"query_reports_disabled": false,
"ai_features_disabled": false,
"mcp_disabled": false
},
"smtp_settings": {
"enable_smtp": true,
"configured": true,
"sender_address": "",
"server": "localhost",
"port": 1025,
"authentication_type": "authtype_username_none",
"user_name": "",
"password": "********",
"enable_ssl_tls": true,
"authentication_method": "authmethod_plain",
"domain": "",
"verify_ssl_certs": true,
"enable_start_tls": true
},
"sso_settings": {
"entity_id": "",
"issuer_uri": "",
"idp_image_url": "",
"metadata": "",
"metadata_url": "",
"idp_name": "",
"enable_sso": false,
"enable_sso_idp_login": false,
"enable_jit_provisioning": false,
"sso_server_url": "https://instance.fleet.com"
},
"conditional_access": {
"microsoft_entra_tenant_id": "<TENANT ID>",
"microsoft_entra_connection_configured": true,
"okta_idp_id": "0ogmbinlfy9hvGs7cx492",
"okta_assertion_consumer_service_url": "https://example.okta.com/sso/saml2/0ogmbinlfy9hvGs7cx492",
"okta_audience_uri": "https://www.okta.com/saml2/service-provider/asdhjlksoewpoasn",
"okta_certificate": "-----BEGIN CERTIFICATE-----\nMIIC...\n-----END CERTIFICATE-----",
"bypass_disabled": false
},
"host_expiry_settings": {
"host_expiry_enabled": false,
"host_expiry_window": 0
},
"activity_expiry_settings": {
"activity_expiry_enabled": false,
"activity_expiry_window": 0,
"preserve_host_activities_on_reenrollment": false
},
"features": {
"enable_host_users": true,
"enable_software_inventory": true,
"additional_queries": null
},
"license": {
"tier": "free",
"expiration": "0001-01-01T00:00:00Z"
},
"mdm": {
"enabled_and_configured": false,
"android_enabled_and_configured": false,
"windows_enabled_and_configured": false,
"windows_entra_tenant_ids": [
"26ac824d-0d5e-4f0c-a202-1c29d5a48e43"
],
"windows_entra_client_ids": [
"8c8e3fd4-9b2c-4d3e-8f10-2233445566aa"
],
"microsoft_graph_credential_invalid": false,
"enable_turn_on_windows_mdm_manually": false,
"apple_require_hardware_attestation": false,
"only_allow_apple_business_enrollment": false,
"enable_profile_validation": true,
"enable_recovery_lock_password": true,
"macos_updates": {
"minimum_version": "12.3.1",
"deadline": "2022-01-01",
"update_new_hosts": true
},
"ios_updates": {
"minimum_version": "17.0.1",
"deadline": "2024-08-01"
},
"ipados_updates": {
"minimum_version": "17.0.1",
"deadline": "2024-08-01"
},
"windows_updates": {
"deadline_days": 5,
"grace_period_days": 1
},
"macos_settings": {
"custom_settings": [
{
"path": "path/to/profile1.mobileconfig",
"labels_exclude_any": ["Label 1", "Label 2"]
},
{
"path": "path/to/profile2.json",
"labels_include_all": ["Label 3", "Label 4"]
},
{
"path": "path/to/profile3.json",
"labels_include_any": ["Label 5", "Label 6"]
}
]
},
"apple_settings": {
"configuration_profiles": [
{
"path": "path/to/profile1.mobileconfig",
"labels_exclude_any": ["Label 1", "Label 2"]
},
{
"path": "path/to/profile2.json",
"labels_include_all": ["Label 3", "Label 4"]
},
{
"path": "path/to/profile3.json",
"labels_include_any": ["Label 5", "Label 6"]
},
],
"enable_disk_encryption": true,
"enable_escrow_disk_encryption_key": true,
"assets": [
{
"path": "path/to/assets/asset.json"
}
],
"managed_local_account_settings": {
"enabled": true
},
"end_user_local_account_type": "admin"
},
"windows_settings": {
"custom_settings": [
{
"path": "path/to/profile3.xml",
"labels_exclude_any": ["Label 1", "Label 2"]
}
],
"configuration_profiles": [
{
"path": "path/to/profile3.xml",
"labels_exclude_any": ["Label 1", "Label 2"]
}
],
"enable_disk_encryption": true,
"require_bitlocker_pin": true,
"enable_managed_local_account": true
},
"linux_settings": {
"enable_escrow_disk_encryption_key": true
},
"end_user_authentication": {
"entity_id": "",
"metadata": "",
"metadata_url": "",
"idp_name": ""
},
"macos_migration": {
"enable": false,
"mode": "voluntary",
"webhook_url": "https://webhook.example.com"
},
"macos_setup": {
"bootstrap_package": "",
"enable_end_user_authentication": false,
"enable_managed_local_account": false,
"end_user_local_account_type": "admin",
"lock_end_user_info": true,
"macos_setup_assistant": "path/to/config.json"
},
"setup_experience": {
"bootstrap_package": "",
"enable_end_user_authentication": false,
"enable_managed_local_account": false,
"end_user_local_account_type": "admin",
"lock_end_user_info": true,
"apple_setup_assistant": "path/to/config.json"
},
"windows_automatic_enrollment": {
"default_fleet": "Workstations"
},
"apple_server_url": "https://instance.fleet.com"
},
"agent_options": {
"config": {
"options": {
"pack_delimiter": "/",
"logger_tls_period": 10,
"distributed_plugin": "tls",
"disable_distributed": false,
"logger_tls_endpoint": "/api/v1/osquery/log",
"distributed_interval": 10,
"distributed_tls_max_attempts": 3
},
"decorators": {
"load": [
"SELECT uuid AS host_uuid FROM system_info;",
"SELECT hostname AS hostname FROM system_info;"
]
}
},
"overrides": {},
"command_line_flags": {}
},
"vulnerability_settings": {
"databases_path": ""
},
"fleet_desktop": {
"transparency_url": "https://fleetdm.com/better",
"alternative_browser_host": "fleet-desktop.example.com",
"sso_enabled": false
},
"gitops": {
"gitops_mode_enabled": false,
"repository_url": ""
},
"webhook_settings": {
"host_status_webhook": {
"enable_host_status_webhook": true,
"destination_url": "https://server.com",
"host_percentage": 5,
"days_count": 7
},
"failing_policies_webhook":{
"enable_failing_policies_webhook":true,
"destination_url": "https://server.com",
"policy_ids": [1, 2, 3],
"host_batch_size": 1000
},
"vulnerabilities_webhook":{
"enable_vulnerabilities_webhook":true,
"destination_url": "https://server.com",
"host_batch_size": 1000
},
"activities_webhook":{
"enable_activities_webhook":true,
"destination_url": "https://server.com"
}
},
"integrations": {
"google_calendar": [
{
"domain": "",
"api_key_json": null
}
],
"google_workspace": [
{
"domain": "",
"impersonated_user_email": "",
"api_key_json": null
}
],
"google_conditional_access": {
"customer_id": "C01234abc",
"admin_email": "[email protected]",
"api_key_json": "********"
},
"jira": [
{
"url": "https://jiraserver.com",
"username": "some_user",
"password": "sec4et!",
"project_key": "jira_project",
"enable_software_vulnerabilities": false
}
],
"zendesk": [],
"certificates_idp_introspection_urls": ["https://company.okta.com/oauth2/v1/introspect"],
"certificates_idp_client_ids": ["0oa1b2c3d4e5f6g7h8i9"],
"certificates_disable_host_end_user_binding": false
},
"logging": {
"debug": false,
"json": false,
"result": {
"plugin": "firehose",
"config": {
"region": "us-east-1",
"status_stream": "",
"result_stream": "result-topic"
}
},
"status": {
"plugin": "filesystem",
"config": {
"status_log_file": "foo_status",
"result_log_file": "",
"enable_log_rotation": false,
"enable_log_compression": false
}
}
},
"scripts": []
}| Name | Type | Description |
|---|---|---|
| org_name | string | The organization name. |
| org_logo_url_dark_mode | string | The URL for the organization logo displayed on top of dark backgrounds. |
| org_logo_url_light_mode | string | The URL for the organization logo displayed in Fleet on top of light backgrounds. |
| contact_url | string | A URL or file URI that can be used by end users to contact the organization. |
org_logo_urlandorg_logo_url_light_backgroundare deprecated. They are maintained for backwards compatibility. Please useorg_logo_url_dark_modeandorg_logo_url_light_modeinstead.
{
"org_info": {
"org_name": "Fleet Device Management",
"org_logo_url_dark_mode": "https://fleetdm.com/logo.png",
"org_logo_url_light_mode": "https://fleetdm.com/logo-light.png",
"org_logo_url": "https://fleetdm.com/logo.png",
"org_logo_url_light_background": "https://fleetdm.com/logo-light.png",
"contact_url": "https://fleetdm.com/company/contact"
}
}| Name | Type | Description |
|---|---|---|
| server_url | string | The Fleet server URL. |
| enable_analytics | boolean | Whether to send anonymous usage statistics. Always enabled for Fleet Premium customers. |
| live_reporting_disabled | boolean | Whether the live reporting capabilities are disabled. |
| discard_reports_data | boolean | Whether storing report results are disabled. |
| ai_features_disabled | boolean | Whether AI features are disabled. |
| mcp_disabled | boolean | Available in Fleet Premium. Whether Fleet's built-in MCP server is turned off. |
| report_cap | integer | The maximum number of results to store per report before the report is clipped. If the number of hosts is higher than this cap, Fleet uses the number of hosts instead, so a report that returns one result per host is never clipped. This cap doesn't change the per-host limit: Fleet doesn't store a host's results if the host returns more than 1,000 rows. If increasing this cap, we recommend enabling reports for one report at time and monitoring your infrastructure. (Default: 1000) |
Note: If
server_urlchanges, hosts that enrolled to the old URL will need to re-enroll, or they will no longer communicate with Fleet. Before re-enrolling Android hosts, you'll need to turn Android MDM off and back on to point Google to the newserver_url.
{
"server_settings": {
"server_url": "https://localhost:8080",
"enable_analytics": true,
"live_reporting_disabled": false,
"discard_reports_data": false,
"ai_features_disabled": false,
"mcp_disabled": false
}
}| Name | Type | Description |
|---|---|---|
| enable_smtp | boolean | Whether SMTP is enabled for the Fleet app. |
| sender_address | string | The sender email address for the Fleet app. An invitation email is an example of the emails that may use this sender address |
| server | string | The SMTP server for the Fleet app. |
| port | integer | The SMTP port for the Fleet app. |
| authentication_type | string | The authentication type used by the SMTP server. Options include "authtype_username_password" or "none" |
| user_name | string | The username used to authenticate requests made to the SMTP server. |
| password | string | The password used to authenticate requests made to the SMTP server. |
| enable_ssl_tls | boolean | Whether or not SSL and TLS are enabled for the SMTP server. |
| authentication_method | string | The authentication method used to make authenticate requests to SMTP server. Options include "authmethod_plain", "authmethod_cram_md5", and "authmethod_login". |
| domain | string | The domain for the SMTP server. |
| verify_ssl_certs | boolean | Whether or not SSL certificates are verified by the SMTP server. Turn this off (not recommended) if you use a self-signed certificate. |
| enable_start_tls | boolean | Detects if STARTTLS is enabled in your SMTP server and starts to use it. |
The Fleet server relies on the host operating system's trust store to validate TLS certificates. If your email server uses a private or self-signed certificate, you’ll need to add the certificate to the OS trust store on the server running Fleet. Fleet doesn't currently support uploading custom CA certificates via the UI or API.
{
"smtp_settings": {
"enable_smtp": true,
"sender_address": "",
"server": "localhost",
"port": 1025,
"authentication_type": "none",
"user_name": "",
"password": "",
"enable_ssl_tls": true,
"authentication_method": "authmethod_plain",
"domain": "",
"verify_ssl_certs": true,
"enable_start_tls": true
}
}| Name | Type | Description |
|---|---|---|
| enable_sso | boolean | Whether or not SSO is enabled for the Fleet application. If this value is true, you must also include most of the SSO settings parameters below. |
| entity_id | string | The required entity ID is a URI that you use to identify Fleet when configuring the identity provider. Must be 5 or more characters. |
| issuer_uri | string | The URI you provide here must exactly match the Entity ID field used in the identity provider configuration. |
| idp_image_url | string | An optional link to an image such as a logo for the identity provider. |
| metadata_url | string | A URL that references the identity provider metadata. If available from the identity provider, this is the preferred means of providing metadata. Must be either https or http |
| metadata | string | Metadata provided by the identity provider. Either metadata or a metadata_url must be provided. |
| enable_sso_idp_login | boolean | Determines whether Identity Provider (IdP) initiated login for Single sign-on (SSO) is enabled for the Fleet application. |
| enable_jit_provisioning | boolean | Available in Fleet Premium. When enabled, allows just-in-time user provisioning. |
| sso_server_url | boolean | Update this URL if you want your Fleet users (admins, maintainers, observers) to login via SSO using a URL that's different than the base URL of your Fleet instance. If not configured, login via SSO will use the base URL of the Fleet instance. |
{
"sso_settings": {
"enable_sso": false,
"entity_id": "",
"issuer_uri": "",
"idp_image_url": "",
"metadata_url": "",
"metadata": "",
"idp_name": "",
"enable_sso_idp_login": false,
"enable_jit_provisioning": false,
"sso_server_url": ""
}
}| Name | Type | Description |
|---|---|---|
| host_expiry_enabled | boolean | When enabled, allows automatic cleanup of hosts that have not communicated with Fleet in some number of days. |
| host_expiry_window | integer | If a host has not communicated with Fleet in the specified number of days, it will be removed. Must be greater than 0 if host_expiry_enabled is set to true. |
{
"host_expiry_settings": {
"host_expiry_enabled": true,
"host_expiry_window": 7
}
}| Name | Type | Description |
|---|---|---|
| activity_expiry_enabled | boolean | When enabled, allows automatic cleanup of activities (and associated live report data) older than the specified number of days. Activities linked to a host are preserved until the host is deleted. |
| activity_expiry_window | integer | The number of days to retain activity records, if activity expiry is enabled. |
| preserve_host_activities_on_reenrollment | boolean | When enabled, preserves host activities after a wipe and re-enrollment. Supported for company-owned (AB) Apple hosts and Android hosts. Delete activities > Max activity age still applies. (Default: false on new Fleet instances. Fleet sets it to true when you upgrade an existing instance, so that prior behavior is preserved.) |
{
"activity_expiry_settings": {
"activity_expiry_enabled": true,
"activity_expiry_window": 90,
"preserve_host_activities_on_reenrollment": true,
}
}Available in Fleet Premium.
| Name | Type | Description |
|---|---|---|
| transparency_url | string | The URL used to display transparency information to users of Fleet Desktop. |
| alternative_browser_host | string | The hostname used to navigate Fleet Desktop traffic through. |
| sso_enabled | boolean | Whether end users must sign in via SSO before accessing Fleet Desktop. Requires an IdP configured. |
sso_enableddoesn't enforce SSO while a host (macOS, Windows, or Linux) is completing setup experience. To require SSO during setup, use setup_experience.enable_end_user_authentication.
{
"fleet_desktop": {
"transparency_url": "https://fleetdm.com/better",
"alternative_browser_host": "fleet-desktop.example.com",
"sso_enabled": false
}
}Available in Fleet Premium.
| Name | Type | Description |
|---|---|---|
| gitops_mode_enabled | boolean | Whether to enable "GitOps mode", which restricts making changes via the UI that would be overridden by running fleetctl-gitops. (Default: false) |
| repository_url | string | The URL for the repository where changes are managed, for Fleet instances using GitOps. Users will be sent here when GitOps mode is enabled. |
{
"gitops": {
"gitops_mode_enabled": true,
"repository_url": "https://github.com/exampleorg/it-and-security"
}
}| Name | Type | Description |
|---|---|---|
| interval | string | How often policy webhooks/tickets and host status webhooks are triggered, formatted as number + unit of measurement (e.g. "90m"). Can be specified in seconds ("s"), minutes ("m"), or hours ("h"). (Default: "24h") |
| host_status_webhook | array | See webhook_settings.host_status_webhook. |
| failing_policies_webhook | array | See webhook_settings.failing_policies_webhook. |
| vulnerabilities_webhook | array | See webhook_settings.vulnerabilities_webhook. |
| activities_webhook | array | See webhook_settings.activities_webhook. |
webhook_settings.host_status_webhook is an object with the following structure:
| Name | Type | Description |
|---|---|---|
| enable_host_status_webhook | boolean | Whether or not the host status webhook is enabled. |
| destination_url | string | The URL to deliver the webhook request to. |
| host_percentage | integer | The minimum percentage of hosts that must fail to check in to Fleet in order to trigger the webhook request. |
| days_count | integer | The minimum number of days that the configured host_percentage must fail to check in to Fleet in order to trigger the webhook request. |
webhook_settings.failing_policies_webhook is an object with the following structure:
| Name | Type | Description |
|---|---|---|
| enable_failing_policies_webhook | boolean | Whether or not the failing policies webhook is enabled. |
| destination_url | string | The URL to deliver the webhook requests to. |
| policy_ids | array | List of policy IDs to enable failing policies webhook. |
| host_batch_size | integer | Maximum number of hosts to batch on failing policy webhook requests. The default, 0, means no batching (all hosts failing a policy are sent on one request). |
webhook_settings.vulnerabilities_webhook is an object with the following structure:
| Name | Type | Description |
|---|---|---|
| enable_vulnerabilities_webhook | boolean | Whether or not the vulnerabilities webhook is enabled. |
| destination_url | string | The URL to deliver the webhook requests to. |
| host_batch_size | integer | Maximum number of hosts to batch on vulnerabilities webhook requests. The default, 0, means no batching (all vulnerable hosts are sent on one request). |
webhook_settings.activities_webhook is an object with the following structure:
| Name | Type | Description |
|---|---|---|
| enable_activities_webhook | boolean | Whether or not the activity feed webhook is enabled. |
| destination_url | string | The URL to deliver the webhook requests to. |
{
"webhook_settings": {
"host_status_webhook": {
"enable_host_status_webhook": true,
"destination_url": "https://server.com",
"host_percentage": 5,
"days_count": 7
},
"failing_policies_webhook":{
"enable_failing_policies_webhook": true,
"destination_url": "https://server.com",
"policy_ids": [1, 2, 3],
"host_batch_size": 1000
},
"vulnerabilities_webhook":{
"enable_vulnerabilities_webhook":true,
"destination_url": "https://server.com",
"host_batch_size": 1000
},
"activities_webhook":{
"enable_activities_webhook":true,
"destination_url": "https://server.com"
}
}
}| Name | Type | Description |
|---|---|---|
| jira | array | See integrations.jira. |
| zendesk | array | See integrations.zendesk. |
| google_calendar | array | See integrations.google_calendar. |
| google_workspace | array | See integrations.google_workspace. |
| google_conditional_access | object | See integrations.google_conditional_access. |
integrations.jira is an array of objects with the following structure:
| Name | Type | Description |
|---|---|---|
| enable_software_vulnerabilities | boolean | Whether or not Jira integration is enabled for software vulnerabilities. Only one vulnerability automation can be enabled at a given time (enable_vulnerabilities_webhook and enable_software_vulnerabilities). |
| enable_failing_policies | boolean | Whether or not Jira integration is enabled for failing policies. Only one failing policy automation can be enabled at a given time (enable_failing_policies_webhook and enable_failing_policies). |
| url | string | The URL of the Jira server to integrate with. |
| username | string | The Jira username to use for this Jira integration. |
| api_token | string | The API token of the Jira username to use for this Jira integration. Atlassian API tokens expire after one year at most, so you'll have to create a new token and update this integration every year. |
| project_key | string | The Jira project key to use for this integration. Jira tickets will be created in this project. |
Note that when making changes to the
integrations.jiraarray, all integrations must be provided (not just the one being modified). This is because the endpoint will consider missing integrations as deleted.
integrations.zendesk is an array of objects with the following structure:
| Name | Type | Description |
|---|---|---|
| enable_software_vulnerabilities | boolean | Whether or not Zendesk integration is enabled for software vulnerabilities. Only one vulnerability automation can be enabled at a given time (enable_vulnerabilities_webhook and enable_software_vulnerabilities). |
| enable_failing_policies | boolean | Whether or not Zendesk integration is enabled for failing policies. Only one failing policy automation can be enabled at a given time (enable_failing_policies_webhook and enable_failing_policies). |
| url | string | The URL of the Zendesk server to integrate with. |
| string | The Zendesk user email to use for this Zendesk integration. | |
| api_token | string | The Zendesk API token to use for this Zendesk integration. |
| group_id | integer | The Zendesk group id to use for this integration. Zendesk tickets will be created in this group. |
Note that when making changes to the
integrations.zendeskarray, all integrations must be provided (not just the one being modified). This is because the endpoint will consider missing integrations as deleted.
integrations.google_calendar is an array of objects with the following structure:
| Name | Type | Description |
|---|---|---|
| domain | string | The domain for the Google Workspace service account to be used for this calendar integration. |
| api_key_json | object | The private key JSON downloaded when generating the service account API key to be used for this calendar integration. |
Available in Fleet Premium.
integrations.google_workspace is an array of objects with the following structure. When set, Fleet syncs identity provider (IdP) host vitals from your Google Workspace directory, and SCIM provisioning is ignored.
| Name | Type | Description |
|---|---|---|
| domain | string | Your Google Workspace primary domain whose directory is synced. |
| impersonated_user_email | string | A Google Workspace admin the service account impersonates via domain-wide delegation. |
| api_key_json | object | The service account JSON key (with domain-wide delegation enabled) used to authenticate to the Google Workspace directory. |
Available in Fleet Premium.
integrations.google_conditional_access is an object with the following structure. When set, Fleet marks company-owned iOS, iPadOS, and Android hosts as managed in Google, so Google Context-Aware Access can block sign-in from hosts that aren't managed by Fleet. Only global admins and GitOps users can set it. Learn more in the Conditional access: Google guide.
| Name | Type | Description |
|---|---|---|
| customer_id | string | Your Google customer ID (for example, C01234abc). Find it in the Google Admin console under Account > Account settings. |
| admin_email | string | The email of the Google Workspace admin Fleet uses to mark hosts as managed. |
| api_key_json | object | The service account JSON key, with domain-wide delegation for the https://www.googleapis.com/auth/cloud-identity.devices scope. If omitted, Fleet keeps the key that's already uploaded. Returned as "********" when a key is uploaded. |
If integrations.google_conditional_access is omitted or null, the settings don't change. To turn it off, use Delete Google. You can also set it with Connect Google and Update Google.
The connection status is in the read-only google object in conditional_access.
{
"integrations": {
"jira": [
{
"enable_software_vulnerabilities": false,
"enable_failing_policies": true,
"url": "https://jiraserver.com",
"username": "some_user",
"api_token": "<TOKEN>",
"project_key": "jira_project",
}
],
"zendesk": [],
"google_calendar": [
{
"domain": "https://domain.com",
"api_key_json": "<API KEY JSON>"
}
],
"google_workspace": [
{
"domain": "example.com",
"impersonated_user_email": "[email protected]",
"api_key_json": "<API KEY JSON>"
}
],
"google_conditional_access": {
"customer_id": "C01234abc",
"admin_email": "[email protected]",
"api_key_json": "<API KEY JSON>"
}
}
}Available in Fleet Premium.
| Name | Type | Description |
|---|---|---|
| okta_idp_id | string | The IdP ID found in Okta after creating an IdP in Security > Identity Providers > SAML 2.0 IdP |
| okta_assertion_consumer_service_url | string | The assertion consumer service URL found in Okta after creating an IdP in Security > Identity Providers > SAML 2.0 IdP |
| okta_audience_uri | string | The audience URI found in Okta after creating an IdP in Security > Identity Providers > SAML 2.0 IdP |
| okta_certificate | string | The certificate provided by Okta during the Set Up Authenticator workflow |
| bypass_disabled | boolean | Disables the per-policy setting to allow bypassing Okta conditional access. (Default: false.) |
When updating conditional access config, all conditional_access fields must either be empty or included in the request.
In responses, conditional_access.google is a read-only object with the Google connection status: service_account_key_configured, state, and error_message. See Get Google for the possible values. It's ignored in requests. To change the Google settings, use integrations.google_conditional_access.
{
"conditional_access": {
"okta_idp_id": "0ogmbinlfy9hvGs7cx492",
"okta_assertion_consumer_service_url": "https://example.okta.com/sso/saml2/0ogmbinlfy9hvGs7cx492",
"okta_audience_uri": "https://www.okta.com/saml2/service-provider/asdhjlksoewpoasn",
"okta_certificate": "-----BEGIN CERTIFICATE-----\nMIIC...\n-----END CERTIFICATE-----",
"bypass_disabled": false
}
}| Name | Type | Description |
|---|---|---|
| windows_enabled_and_configured | boolean | Enables Windows MDM support. |
| windows_entra_tenant_ids | array | Available in Fleet Premium. IDs of Microsoft Entra tenants to connect to Fleet, to enable automatic (Autopilot) and manual enrollment by end users (Settings > Accounts > Access work or school on Windows). Not needed to enroll hosts with Fleet's agent (fleetd). Find your Tenant ID, on Microsoft Entra ID > Home. |
| windows_entra_client_ids | array | Available in Fleet Premium. Microsoft Entra application (client) IDs for the applications used to enroll Windows hosts via Microsoft Entra. Set this when you set up Entra enrollment: Microsoft Entra issues v2 access tokens whose audience is the application's client ID, so Fleet needs the client ID to authorize enrollment. Find your Application (client) ID on Microsoft Entra ID > App registrations > your MDM application > Overview. |
| microsoft_graph_credential_invalid | boolean | Available in Fleet Premium. Read-only. true when at least one Microsoft Graph credential has been rejected by Microsoft Entra or denied by Microsoft Graph, so Windows Autopilot devices are no longer syncing. Resolve it by supplying a new client secret, or granting admin consent, with Modify Microsoft Graph credentials. Fleet computes this field, so it's ignored if you try to set it. |
| enable_turn_on_windows_mdm_manually | boolean | Available in Fleet Premium. Specifies whether or not to require end users to manually turn on MDM in Settings > Access work or school. If false, MDM is automatically turned on for all Windows hosts that aren't connected to any MDM solution. |
| windows_require_bitlocker_pin | boolean | Deprecated at this level. Use windows_settings.require_bitlocker_pin instead. |
| windows_require_bitlocker_pin | boolean | Available in Fleet Premium. End users on Windows hosts that are "Unassigned" will be required to set a BitLocker PIN if set to true. enable_disk_encryption must be set to true. When the PIN is set, it's required to unlock Windows host during startup. |
| apple_require_hardware_attestation | boolean | Available in Fleet Premium. Specifies whether or not to require Apple hosts with supported hardware (Apple Silicon Macs, and iPhones and iPads with an A11 Bionic or later chip running iOS/iPadOS 16 or later) to complete a device attestation challenge verifying that the hardware serial matches a known host record from ABM as part of DEP enrollment. Hosts without supported hardware (for example, Intel Macs) enroll with SCEP and aren't attested, unless only_allow_apple_business_enrollment is also enabled. In that case, they can't enroll. |
| only_allow_apple_business_enrollment | boolean | Available in Fleet Premium. Specifies whether or not to allow only Apple hosts that are assigned to Fleet in Apple Business (AB) to turn on MDM, through Automated Device Enrollment (ADE). When enabled, manual enrollment, over-the-air (OTA) enrollment, and account-driven user enrollment (BYOD) are blocked. Fleet also stops renewing MDM certificates for enrolled hosts that aren't in AB, so those hosts lose MDM when their certificate expires. If apple_require_hardware_attestation is also enabled, only hosts with supported hardware can enroll (SCEP isn't used as a fallback), and enrolled hosts without supported hardware also stop renewing. |
| enable_profile_validation | boolean | Specifies whether or not to check that recognized settings in Apple and Windows configuration profiles have values of the expected type when profiles are added or edited. Settings and payload types Fleet doesn't recognize are always allowed. Default is true. Set to false to skip this check. |
| enable_recovery_lock_password | boolean | Available in Fleet Premium. Unassigned hosts will have Recovery Lock password enabled if set to true. |
| name_template | string | Available in Fleet Premium. Naming convention applied to "Unassigned" macOS, iOS, and iPadOS hosts. Supports the built-in host identity and IdP end-user variables and custom ($FLEET_SECRET_*) variables; certificate authority variables aren't supported. See the Update host name template endpoint for the full list. An empty string clears the template. To set the template for a fleet, use that endpoint. |
| macos_updates | object | See mdm.macos_updates. |
| ios_updates | object | See mdm.ios_updates. |
| ipados_updates | object | See mdm.ipados_updates. |
| windows_updates | object | See mdm.window_updates. |
| macos_migration | object | See mdm.macos_migration. |
| setup_experience | object | See mdm.setup_experience. |
| macos_settings | object | See mdm.macos_settings. |
| apple_settings | object | See mdm.apple_settings. |
| windows_settings | object | See mdm.windows_settings. |
| linux_settings | object | See mdm.linux_settings. |
| apple_server_url | string | Update this URL if you're self-hosting Fleet and you want your hosts to talk to this URL for MDM features. (If not configured, hosts will use the base URL of the Fleet instance.) |
| windows_automatic_enrollment | object | See mdm.windows_automatic_enrollment. |
Note: If
apple_server_urlchanges and Apple (macOS, iOS, iPadOS) hosts already have MDM turned on, the end users will have to turn MDM off and back on to use MDM features.
Note: If
apple_require_hardware_attestationis enabled and Apple attestation servers are down, Apple Silicon Macs and supported iPhones and iPads will not be able to enroll.
Note: If
only_allow_apple_business_enrollmentis enabled, the Get manual enrollment profile and Get Over-the-Air (OTA) enrollment profile endpoints return an error.
Available in Fleet Premium.
mdm.macos_updates is an object with the following structure:
| Name | Type | Description |
|---|---|---|
| minimum_version | string | The minimum required macOS version. Hosts that are "Unassigned" and have MDM turned on will be prompted to update when their OS is below this version. Accepts a version number (e.g., "15.4.1") or "latest". Pair with deadline for version numbers or deadline_days for "latest". |
| deadline | string | Hosts that are "Unassigned" and have MDM turned on will be forced to update their OS after this deadline (7PM local time). Required when minimum_version is a version number. Cannot be used with automatic options. |
| deadline_days | integer | Hosts that are "Unassigned" and have MDM turned on will be forced to update their OS the specified number of days after Apple releases an update. Required when minimum_version is "latest". Cannot be used with a version number. |
| update_new_hosts | string | macOS hosts that automatically enroll (ADE) are updated to Apple's latest version during macOS Setup Assistant. For backwards compatibility, if not specified, and deadline and minimum_version are set, update_new_hosts is set to true. Otherwise, update_new_hosts defaults to false. |
Available in Fleet Premium.
mdm.ios_updates is an object with the following structure:
| Name | Type | Description |
|---|---|---|
| minimum_version | string | The minimum required iOS version. Hosts that are "Unassigned" and have MDM turned on will be prompted to update when their OS is below this version. Accepts a version number (e.g., "15.4.1") or "latest". Pair with deadline for version numbers or deadline_days for "latest". |
| deadline | string | Hosts that are "Unassigned" will be forced to update their OS after this deadline (7PM local time). Required when minimum_version is a version number. Cannot be used with automatic options. |
| deadline_days | integer | Hosts that are "Unassigned" and have MDM turned on will be forced to update their OS the specified number of days after Apple releases an update. Required when minimum_version is "latest". Cannot be used with a version number. |
Available in Fleet Premium.
mdm.ipados_updates is an object with the following structure:
| Name | Type | Description |
|---|---|---|
| minimum_version | string | The minimum required iPadOS version. Hosts that are "Unassigned" and have MDM turned on will be prompted to update when their OS is below this version. Accepts a version number (e.g., "15.4.1") or "latest". Pair with deadline for version numbers or deadline_days for "latest". |
| deadline | string | Hosts that are "Unassigned" will be forced to update their OS after this deadline (7PM local time). Required when minimum_version is a version number. Cannot be used with automatic options. |
| deadline_days | integer | Hosts that are "Unassigned" and have MDM turned on will be forced to update their OS the specified number of days after Apple releases an update. Required when minimum_version is "latest". Cannot be used with a version number. |
Available in Fleet Premium.
mdm.windows_updates is an object with the following structure:
| Name | Type | Description |
|---|---|---|
| deadline_days | integer | Hosts that are "Unassigned" and have MDM turned on will have this number of days before updates are installed on Windows. |
| grace_period_days | integer | Hosts that are "Unassigned" and have MDM turned on will have this number of days before Windows restarts to install updates. |
Available in Fleet Premium.
mdm.macos_migration is an object with the following structure:
| Name | Type | Description |
|---|---|---|
| enable | boolean | Whether to enable the end user migration workflow for devices migrating from your old MDM solution. |
| mode | string | The end user migration workflow mode for devices migrating from your old MDM solution. Options are "voluntary" or "forced". |
| webhook_url | string | The webhook url configured to receive requests to unenroll devices migrating from your old MDM solution. |
Available in Fleet Premium.
mdm.setup_experience is an object with the following structure:
| Name | Type | Description |
|---|---|---|
| enable_end_user_authentication | boolean | If set to true, end user authentication will be required during automatic MDM enrollment of new macOS devices. Settings for your IdP provider must also be configured. |
| enable_managed_local_account | boolean | Available in Fleet Premium. During Setup experience, a managed local account will be created on eligible hosts if set to true. |
| end_user_local_account_type | string | Available in Fleet Premium. Specifies the type of local end user account created. (Default: "admin") enable_managed_local_account must be true. |
| lock_end_user_info | boolean | If set to true, end user can't edit the local account's Account Name and Full Name in macOS Setup Assistant. These fields will be locked to values from your IdP. (Default: true) |
mdm.macos_settings is an object with the following structure:
| Name | Type | Description |
|---|---|---|
| custom_settings | array | Only intended to be used by Fleet's YAML. To add macOS configuration profiles using Fleet's API, use the Create configuration profile endpoint instead. |
mdm.apple_settings is an object with the following structure:
| Name | Type | Description |
|---|---|---|
| custom_settings | array | Only intended to be used by Fleet's YAML. To add macOS configuration profiles using Fleet's API, use the Create configuration profile endpoint instead. |
| enable_disk_encryption | boolean | Hosts that belong to this fleet will have disk encryption enabled if set to true. |
| enable_escrow_disk_encryption_key | boolean | Specifies whether Fleet stores the disk encryption recovery key without prompting users to turn on disk encryption. Set to true when a third-party tool handles enforcement. Supported for macOS and Linux hosts. |
| managed_local_account_settings | object | Settings for the managed local account. |
| managed_local_account_settings.enabled | boolean | Whether to create the managed local account (default: false). |
| end_user_local_account_type | string | The end user account type. Requires managed_local_account_settings.enabled to be true. Options: "admin", "standard", "none" (default: "admin"). |
mdm.windows_settings is an object with the following structure:
| Name | Type | Description |
|---|---|---|
| custom_settings | array | Only intended to be used by Fleet's YAML. To add Windows configuration profiles using Fleet's API, use the Create configuration profile endpoint instead. |
| enable_managed_local_account | boolean | Whether to create the managed local account (default: false). |
mdm.windows_automatic_enrollment is an object with the following structure:
| Name | Type | Description |
|---|---|---|
| default_fleet | string | The name of the fleet that new MDM enrolled Windows hosts will be placed in. Empty string (default) places hosts in "No fleet". |
mdm.linux_settings is an object with the following structure:
| Name | Type | Description |
|---|---|---|
| enable_escrow_disk_encryption_key | boolean | Specifies whether Fleet stores the disk encryption recovery key without prompting users to turn on disk encryption. Set to true when a third-party tool handles enforcement. Supported for macOS and Linux hosts. |
mdm.end_user_authentication is an object with the following structure:
| Name | Type | Description |
|---|---|---|
| entity_id | string | Required. The entity ID is a URI that you use to identify Fleet when configuring the identity provider. Must be 5 or more characters. |
| idp_name | string | Required. A human friendly name for the identity provider that will provide single sign-on authentication. |
| metadata_url | string | A URL that references the identity provider metadata. If available from the identity provider, this is the preferred means of providing metadata. Must be either https or http. |
| metadata | string | Metadata provided by the identity provider. Either metadata or a metadata_url must be provided. |
{
"mdm": {
"windows_enabled_and_configured": false,
"enable_turn_on_windows_mdm_manually": false,
"apple_require_hardware_attestation": false,
"only_allow_apple_business_enrollment": false,
"enable_recovery_lock_password": true,
"macos_updates": {
"minimum_version": "12.3.1",
"deadline": "2022-01-01",
"update_new_hosts": true
},
"windows_updates": {
"deadline_days": 5,
"grace_period_days": 1
},
"apple_settings": {
"configuration_profiles": [
{
"path": "path/to/profile1.mobileconfig",
"labels": ["Label 1", "Label 2"]
},
{
"path": "path/to/profile2.json",
"labels": ["Label 3", "Label 4"]
},
],
"enable_disk_encryption": true,
"enable_escrow_disk_encryption_key": true,
"assets": [
{
"path": "path/to/assets/asset.json"
}
],
"managed_local_account_settings": {
"enabled": true
}
},
"windows_settings": {
"configuration_profiles": [
{
"path": "path/to/profile3.xml",
"labels": ["Label 1", "Label 2"]
}
],
"enable_disk_encryption": true,
"require_bitlocker_pin": true,
"enable_managed_local_account": true
},
"linux_settings": {
"enable_escrow_disk_encryption_key": true,
},
"end_user_authentication": {
"entity_id": "",
"metadata": "",
"metadata_url": "",
"idp_name": ""
},
"macos_migration": {
"enable": false,
"mode": "voluntary",
"webhook_url": "https://webhook.example.com"
},
"setup_experience": {
"bootstrap_package": "",
"enable_end_user_authentication": false,
"lock_end_user_info": true,
"apple_setup_assistant": "path/to/config.json"
},
"windows_automatic_enrollment": {
"default_fleet": "Workstations"
}
}
}| Name | Type | Description |
|---|---|---|
| enable_host_users | boolean | Whether to enable the users feature in Fleet. (Default: true) |
| enable_software_inventory | boolean | Whether to enable the software inventory feature in Fleet. (Default: true) |
| additional_queries | object | additional_queries adds extra host details. This information will be updated at the same time as other host details and is returned by the API when host objects are returned. (Default: null) |
| historical_data | object | Per-dataset toggles for historical data collection used by the dashboard charts. See Historical data below. |
features.historical_data controls whether each dashboard chart's
historical data is collected. Both sub-keys default to true. A dataset
is collected for a given host only when both the global sub-key AND the
host's fleet sub-key are true.
| Name | Type | Description |
|---|---|---|
| uptime | boolean | Whether to collect host activity samples. (Default: true) |
| vulnerabilities | boolean | Whether to collect per-host software vulnerability data. (Default: true) |
{
"features": {
"enable_host_users": true,
"enable_software_inventory": true,
"additional_queries": {
"time": "SELECT * FROM time",
"macs": "SELECT mac FROM interface_details"
},
"historical_data": {
"uptime": true,
"vulnerabilities": false
}
}
}Returns the valid global enroll secrets.
GET /api/v1/fleet/spec/enroll_secret
None.
GET /api/v1/fleet/spec/enroll_secret
Status: 200
{
"spec": {
"secrets": [
{
"secret": "vhPzPOnCMOMoqSrLxKxzSADyqncayacB",
"created_at": "2021-11-12T20:24:57Z"
},
{
"secret": "jZpexWGiXmXaFAKdrdttFHdJBqEnqlVF",
"created_at": "2021-11-12T20:24:57Z"
}
]
}
}Upload a custom logo to display in the top navigation, setup experience window, and MDM migration dialog.
You need to send a request of type
multipart/form-data.
PUT /api/v1/fleet/logo
| Name | Type | In | Description |
|---|---|---|---|
| logo | file | body | The logo image to upload. For best results, use a square logo at least 150px x 150px. |
| mode | string | query | Either "light" for the logo displayed in light mode, "dark" for the logo displayed in dark mode, or "all" to replace both light and dark mode logos. (Default: "all".) |
PUT /api/v1/fleet/logo?mode=light
icon="fleet-logo-150x150.png"Status: 204
Delete a custom logo added via Update organization logo. This will revert to using the Fleet logo.
DELETE /api/v1/fleet/logo
| Name | Type | In | Description |
|---|---|---|---|
| logo | file | body | The logo image to upload. For best results, use a square logo at least 150px x 150px. |
| mode | string | query | Either "light" for the logo displayed in light mode, "dark" for the logo displayed in dark mode, or "all" to replace both light and dark mode logos. (Default: "all".) |
DELETE /api/v1/fleet/logo?mode=light
Status: 204
Replaces all existing global enroll secrets.
POST /api/v1/fleet/spec/enroll_secret
| Name | Type | In | Description |
|---|---|---|---|
| spec | object | body | Required. Attribute "secrets" must be a list of enroll secrets |
Replace all global enroll secrets with a new enroll secret.
POST /api/v1/fleet/spec/enroll_secret
{
"spec": {
"secrets": [
{
"secret": "KuSkYFsHBQVlaFtqOLwoUIWniHhpvEhP"
}
]
}
}Status: 200
{}Delete all global enroll secrets.
POST /api/v1/fleet/spec/enroll_secret
{
"spec": {
"secrets": []
}
}Status: 200
{}Returns the fleet's enroll secrets.
GET /api/v1/fleet/fleets/:id/secrets
None.
GET /api/v1/fleet/fleets/1/secrets
Status: 200
{
"secrets": [
{
"created_at": "2021-06-16T22:05:49Z",
"secret": "aFtH2Nq09hrvi73ErlWNQfa7M53D3rPR",
"team_id": 1,
"fleet_id": 1
}
]
}Replaces all existing enroll secrets for a fleet.
PATCH /api/v1/fleet/fleets/:id/secrets
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The fleet's id. |
| secrets | array | body | Required. A list of enroll secrets |
Replace all of a fleet's existing enroll secrets with a new enroll secret
PATCH /api/v1/fleet/fleets/2/secrets
{
"secrets": [
{
"secret": "n07v32y53c237734m3n201153c237"
}
]
}Status: 200
{
"secrets": [
{
"secret": "n07v32y53c237734m3n201153c237",
"created_at": "0001-01-01T00:00:00Z"
}
]
}Delete all of a fleet's existing enroll secrets
PATCH /api/v1/fleet/fleets/2/secrets
{
"secrets": []
}Status: 200
{
"secrets": null
}Get version and build information from the Fleet server.
GET /api/v1/fleet/version
None.
GET /api/v1/fleet/version
Status: 200
{
"version": "3.9.0-93-g1b67826f-dirty",
"branch": "version",
"revision": "1b67826fe4bf40b2f45ec53e01db9bf467752e74",
"go_version": "go1.15.7",
"build_date": "2021-03-27",
"build_user": "zwass"
}Hosts have a set of timestamps usually named with an "_at" suffix, such as created_at, enrolled_at, etc. Before we go through each of them and what they mean, we need to understand a bit more about how the host data structure is represented in the database.
The table hosts is the main one. It holds the core data for a host. A host doesn't exist if there is no row for it in
this table. This table also holds most of the timestamps, but it doesn't hold all of the host data. This is an important
detail as we'll see below.
There's adjacent tables to this one that usually follow the name convention host_<extra data descriptor>. Examples of
this are: host_additional that holds additional query results, host_software that links a host with many rows from
the software table.
created_at: the time the row in the database was created, which usually corresponds to the first enrollment of the host.updated_at: the last time the row in the database for the hosts table was updated.detail_updated_at: the last time Fleet updated host data (this includes updates to host associated tables, e.g. host_users). This only changes when the host's detail queries run, which is less frequent than policy queries, so it lags behind events (like a policy automation) that were triggered by a policy check alone.label_updated_at: the last time Fleet updated the label membership for the hostlast_enrolled_at: the last time the host enrolled to Fleet.policy_updated_at: the last time we updated the policy results for the host. Policies can be checked, and policy automations triggered, much more often than the policy update interval (learn more).seen_time: the last time the host contacted the fleet server, regardless of what operation it was for.software_updated_at: the last time software changed for the host in any way.last_restarted_at: the last time that the host was restarted.GET /api/v1/fleet/hosts
query,device_mapping,populate_software, andpopulate_end_userscan overload the Fleet server when combined with large page lengths (per_page). When using them use a lowerper_page(e.g.50).
| Name | Type | In | Description |
|---|---|---|---|
| page | integer | query | Page number of the results to fetch. |
| per_page | integer | query | Results per page. |
| order_key | string | query | What to order results by. Can be any column in the hosts table. |
| after | string | query | The value to get results after. This needs order_key defined, as that's the column that would be used. Note: Use page instead of after |
| order_direction | string | query | Requires order_key. The direction of the order given the order key. Options include "asc" and "desc". Default is "asc". |
| status | string | query | Indicates the status of the hosts to return. Can either be 'new', 'online', 'offline', 'mia', 'missing' or 'enrolled'. 'enrolled' returns every host except those pending MDM enrollment. |
| query | string | query | Search query keywords. Searchable fields include hostname, hardware_serial, uuid, ipv4, and end user email addresses. |
| additional_info_filters | string | query | A comma-delimited list of fields to include in each host's additional object. This query is populated by the additional_queries in the features section of the configuration YAML. |
| fleet_id | integer | query | Available in Fleet Premium. Filters to only include hosts in the specified fleet. Use 0 to filter by "Unassigned" hosts. |
| policy_id | integer | query | The ID of the policy to filter hosts by. |
| policy_response | string | query | Requires policy_id. Valid options are 'passing' or 'failing'. |
| software_version_id | integer | query | The ID of the software version to filter hosts by. |
| software_title_id | integer | query | The ID of the software title to filter hosts by. |
| software_installer_id | integer | query | Requires software_title_id. The ID of a specific package of the title to filter hosts by. Use for multi-package titles to filter by one installer. |
| app_store_app_version_id | integer | query | Requires software_title_id. The ID of a specific admin-created App Store app version of the title to filter hosts by. iOS, iPadOS, and Android only. |
| software_status | string | query | The status of the software install to filter hosts by. One of: pending_install, failed_install, installed, pending_uninstall, failed_uninstall, pending, or failed. Mutually exclusive with software_version_id, and must be supplied if software_title_id is set. |
| os_version_id | integer | query | The ID of the operating system version to filter hosts by. |
| os_name | string | query | The name of the operating system to filter hosts by. os_version must also be specified with os_name. See note below for filtering Windows hosts. |
| os_version | string | query | The version of the operating system to filter hosts by. os_name must also be specified with os_version. See note below for filtering Windows hosts. |
| vulnerability | string | query | The cve to filter hosts by (including "cve-" prefix, case-insensitive). |
| device_mapping | boolean | query | Indicates whether device_mapping should be included for each host. |
| mdm_id | integer | query | The ID of the mobile device management (MDM) solution to filter hosts by (that is, filter hosts that use a specific MDM provider and URL). |
| mdm_name | string | query | The name of the mobile device management (MDM) solution to filter hosts by (that is, filter hosts that use a specific MDM provider). |
| mdm_enrollment_status | string | query | The mobile device management (MDM) enrollment status to filter hosts by. Valid options are 'manual', 'manual-personal', 'personal', 'automatic', 'enrolled', 'pending', or 'unenrolled'. 'pending' only includes Apple (macOS, iOS, iPadOS) hosts in Apple Business (AB) that are not yet enrolled to Fleet. |
| connected_to_fleet | boolean | query | Filter hosts that are talking to this Fleet server for MDM features. In rare cases, hosts can be enrolled to one Fleet server but talk to a different Fleet server for MDM features. In this case, the value would be false. Always false for Linux hosts. |
| macos_settings | string | query | Filters the hosts by the status of the mobile device management (MDM) profiles applied to hosts. Valid options are 'verified', 'verifying', 'pending', or 'failed'. Note: If this filter is used in Fleet Premium without a fleet ID filter, the results include only "Unassigned" hosts. |
| munki_issue_id | integer | query | The ID of the munki issue (a Munki-reported error or warning message) to filter hosts by (that is, filter hosts that are affected by that corresponding error or warning message). |
| low_disk_space | integer | query | Available in Fleet Premium. Filters the hosts to only include hosts with less GB of disk space available than this value. Must be a number between 1-100. |
| disable_failing_policies | boolean | query | If true, hosts will return failing policies as 0 regardless of whether there are any that failed for the host. This is meant to be used when increased performance is needed in exchange for the extra information. |
| macos_settings_disk_encryption | string | query | Filters the hosts by disk encryption status. Valid options are 'verified', 'verifying', 'action_required', 'enforcing', 'failed', or 'removing_enforcement'. |
| bootstrap_package | string | query | Available in Fleet Premium. Filters the hosts by the status of the MDM bootstrap package on the host. Valid options are 'installed', 'pending', or 'failed'. |
| os_settings | string | query | Filters the hosts by the status of the operating system settings applied to the hosts. Valid options are 'verified', 'verifying', 'pending', or 'failed'. Note: If this filter is used in Fleet Premium without a fleet ID filter, the results include only "Unassigned" hosts. |
| os_settings_disk_encryption | string | query | Filters the hosts by disk encryption status. Valid options are 'verified', 'verifying', 'action_required', 'enforcing', 'failed', or 'removing_enforcement'. Note: If this filter is used in Fleet Premium without a fleet ID filter, the results include only "Unassigned" hosts. |
| populate_software | string | query | If false (or omitted), omits installed software details for each host. If "without_vulnerability_details", include a list of installed software for each host, including which CVEs apply to the installed software versions. true adds vulnerability description, CVSS score, and other details when using Fleet Premium. For vulnerability details across many hosts, use without_vulnerability_details and the Get vulnerability endpoint, which returns details once per vulnerability instead of once per host. |
| populate_policies | boolean | query | If true, the response will include policy data for each host, including Fleet-maintained policies. |
| populate_users | boolean | query | If true, the response will include user data for each host. |
| populate_end_users | boolean | query | If true, the response will include end user data for each host, including identity provider (IdP) details and other emails. other_emails uses the same data as device_mapping, so you don't need both. |
| populate_labels | boolean | query | If true, the response will include labels for each host. |
| include_device_status | boolean | query | If true, the response will include lock and wipe status (mdm.device_status) and mdm.pending_action information for each host. |
| profile_uuid | string | query | Requires profile_status. The UUID of the profile to download. |
| profile_status | string | query | Requires profile_uuid. Valid options are 'verified', 'verifying', 'pending', or 'failed'. |
| dep_profile_error | boolean | query | If true, the response will only include Apple MDM hosts with DEP profile assignment errors(mdm.dep_profile_error: true). |
| dep_assign_profile_response | string | query | Filters the hosts by DEP profile assignment status. Valid options are 'SUCCESS', 'FAILED', 'THROTTLED' or 'NOT_ACCESSIBLE'. Only Apple hosts which are, or were assigned to Fleet in ABM will be returned. |
software_idis deprecated as of Fleet 4.42. It is maintained for backwards compatibility. Please use thesoftware_version_idinstead.
If software_title_id is specified, an additional top-level key "software_title" is returned with the software title object corresponding to the software_title_id. See List software response payload for details about this object.
If software_version_id is specified, an additional top-level key "software" is returned with the software object corresponding to the software_version_id. See List software versions response payload for details about this object.
If additional_info_filters is not specified, no additional information will be returned.
If mdm_id is specified, an additional top-level key "mobile_device_management_solution" is returned with the information corresponding to the mdm_id.
If mdm_id, mdm_name, mdm_enrollment_status, os_settings, or os_settings_disk_encryption is specified, then Windows Servers are excluded from the results.
If munki_issue_id is specified, an additional top-level key munki_issue is returned with the information corresponding to the munki_issue_id.
If after is being used with created_at or updated_at, the table must be specified in order_key. Those columns become h.created_at and h.updated_at.
If include_device_status is set to true, device_status and pending_action are included in the MDM information for each host. device_status indicates the current lock/wipe state of the device with possible values: unlocked, locked, locking, unlocking, wiped, wiping. pending_action indicates if a lock, unlock, wipe, or unenroll command is pending with possible values: lock, unlock, wipe, unenroll, or an empty string (no pending action). unenroll is only used for personally-owned (BYOD) Android hosts, where turning off MDM removes the work profile. While it's pending, device_status stays unlocked.
To filter hosts by platform (macOS, Windows, Linux), use the "List label's hosts" API endpoint. Find the label ID by filtering in the Hosts page of the Fleet UI and copying the ID from the URL (for example: 7 for /hosts/manage/labels/7).
To filter Windows hosts using os_name and os_version, set os_name to the full operating system name without the build number, and set os_version to the build number. For example, if the Operating system field in host details shows Windows 11 Home Single Language 23H2 10.0.22631.5335, query with os_name=Microsoft Windows 11 Home Single Language 23H2 and os_version=10.0.22631.5335. For macOS and Linux hosts, os_name is the OS name (for example, macOS or Ubuntu) and os_version is the version number (for example, 15.2 or 20.04.3 LTS).
GET /api/v1/fleet/hosts?page=0&per_page=100&order_key=hostname&query=2ce&populate_software=true&populate_policies=true&populate_users=true&populate_end_users=true&populate_labels=true&include_device_status=true
{
"page": 0,
"per_page": 100,
"order_key": "hostname"
}Status: 200
{
"hosts": [
{
"created_at": "2020-11-05T05:09:44Z",
"updated_at": "2020-11-05T06:03:39Z",
"id": 1,
"detail_updated_at": "2020-11-05T05:09:45Z",
"group_tag": "Marketing-Laptops",
"last_restarted_at": "2020-11-01T03:01:45Z",
"software_updated_at": "2020-11-05T05:09:44Z",
"label_updated_at": "2020-11-05T05:14:51Z",
"policy_updated_at": "2023-06-26T18:33:15Z",
"last_enrolled_at": "2023-02-26T22:33:12Z",
"seen_time": "2020-11-05T06:03:39Z",
"hostname": "Annas-MacBook-Pro.local",
"uuid": "392547dc-0000-0000-a87a-d701ff75bc65",
"platform": "darwin",
"osquery_version": "5.15.0",
"os_version": "macOS 15.2",
"build": "24C101",
"platform_like": "darwin",
"code_name": "",
"uptime": 8305000000000,
"memory": 2084032512,
"cpu_type": "arm64e",
"cpu_subtype": "ARM64E",
"cpu_brand": "Apple M1",
"cpu_physical_cores": 8,
"cpu_logical_cores": 8,
"hardware_vendor": "Apple Inc.",
"hardware_model": "MacBookPro17,1",
"hardware_marketing_name": "MacBook Pro (13-inch, M1, 2020)",
"hardware_version": "",
"hardware_serial": "C0124FXASD6G",
"computer_name": "Anna's MacBook Pro",
"timezone": null,
"display_name": "Anna's MacBook Pro",
"public_ip": "123.45.678.910",
"primary_ip": "192.12.345.678",
"primary_mac": "36:34:a5:6b:7b:5c",
"distributed_interval": 10,
"config_tls_refresh": 10,
"logger_tls_period": 8,
"status": "offline",
"display_text": "Annas-MacBook-Pro.local",
"team_id": null,
"fleet_id": null,
"team_name": null,
"fleet_name": null,
"gigs_disk_space_available": 174.98,
"percent_disk_space_available": 71,
"gigs_total_disk_space": 246,
"disk_encryption_enabled": true,
"additional": {},
"pack_stats": [
{
"pack_id": 0,
"pack_name": "Global",
"type": "global",
"query_stats": [
{
"scheduled_query_name": "Get recently added or removed USB drives",
"scheduled_query_id": 5535,
"query_name": "Get recently added or removed USB drives",
"discard_data": false,
"last_fetched": null,
"automations_enabled": false,
"description": "Returns a record every time a USB device is plugged in or removed",
"pack_name": "Global",
"average_memory": 434176,
"denylisted": false,
"executions": 2,
"interval": 86400,
"last_executed": "2023-11-28T00:02:07Z",
"output_size": 891,
"system_time": 10,
"user_time": 6,
"wall_time": 0
}
]
}
],
"issues": {
"failing_policies_count": 1,
"critical_vulnerabilities_count": 2, // Fleet Premium only
"total_issues_count": 3
},
"geolocation": {
"country_iso": "US",
"city_name": "New York",
"geometry": {
"type": "point",
"coordinates": [40.6799, -74.0028]
}
},
"mdm": {
"encryption_key_available": false,
"enrollment_status": "Pending",
"is_personal_enrollment": false,
"dep_profile_error": true,
"name": "Fleet",
"server_url": "https://example.fleetdm.com/mdm/apple/mdm",
"device_status": "unlocked",
"pending_action": ""
},
"software": [
{
"id": 1,
"name": "glibc",
"version": "2.12",
"source": "rpm_packages",
"ai_tool": false,
"generated_cpe": "cpe:2.3:a:gnu:glibc:2.12:*:*:*:*:*:*:*",
"last_opened_at": "2021-08-18T21:14:00Z",
"vulnerabilities": [
{
"cve": "CVE-2009-5155",
"details_link": "https://nvd.nist.gov/vuln/detail/CVE-2009-5155",
"cvss_score": 7.5, // Fleet Premium only
"epss_probability": 0.01537, // Fleet Premium only
"cisa_known_exploit": false, // Fleet Premium only
"cve_published": "2022-01-01T12:32:00Z", // Fleet Premium only
"cve_description": "In the GNU C Library (aka glibc or libc6) before 2.28, parse_reg_exp in posix/regcomp.c misparses alternatives, which allows attackers to cause a denial of service (assertion failure and application exit) or trigger an incorrect result by attempting a regular-expression match.", // Fleet Premium only
"resolved_in_version": "2.28" // Fleet Premium only
}
],
"installed_paths": ["/usr/lib/some-path-1"]
}
],
"policies": [
{
"id": 1,
"name": "Gatekeeper enabled",
"query": "SELECT 1 FROM gatekeeper WHERE assessments_enabled = 1;",
"description": "Checks if gatekeeper is enabled on macOS devices",
"resolution": "Fix with these steps...",
"platform": "darwin",
"response": "fail",
"fleet_maintained": true,
"critical": false
}
],
"users": [
{
"uid": 0,
"username": "root",
"type": "",
"groupname": "root",
"shell": "/bin/bash"
},
{
"uid": 1,
"username": "bin",
"type": "",
"groupname": "bin",
"shell": "/sbin/nologin"
}
],
"end_users": [
{
"idp_info_updated_at": "2025-03-20T02:02:17Z",
"idp_id": "f26f8649-1e25-42c5-be71-1b1e6de56d3d",
"idp_username": "[email protected]",
"idp_full_name": "Anna Chao",
"idp_department": "Product",
"idp_groups": [
"Product",
"Designers"
],
"other_emails": [
{
"email": "[email protected]",
"source": "google_chrome_profiles"
}
]
}
],
"labels": [
{
"created_at": "2021-08-19T02:02:17Z",
"updated_at": "2021-08-19T02:02:17Z",
"id": 6,
"name": "All Hosts",
"description": "All hosts which have enrolled in Fleet",
"query": "SELECT 1;",
"platform": "",
"label_type": "builtin",
"label_membership_type": "dynamic"
},
{
"created_at": "2021-08-19T02:02:17Z",
"updated_at": "2021-08-19T02:02:17Z",
"id": 9,
"name": "CentOS Linux",
"description": "All CentOS hosts",
"query": "SELECT 1 FROM os_version WHERE platform = 'centos' OR name LIKE '%centos%'",
"platform": "",
"label_type": "builtin",
"label_membership_type": "dynamic"
},
{
"created_at": "2021-08-19T02:02:17Z",
"updated_at": "2021-08-19T02:02:17Z",
"id": 12,
"name": "All Linux",
"description": "All Linux distributions",
"query": "SELECT 1 FROM osquery_info WHERE build_platform LIKE '%ubuntu%' OR build_distro LIKE '%centos%';",
"platform": "",
"label_type": "builtin",
"label_membership_type": "dynamic"
}
]
}
]
}Note: the response above assumes a GeoIP database is configured, otherwise the
geolocationobject won't be included.
Note:
disk_encryption_enabledis omitted when Fleet doesn't know the host's disk encryption status, such as when the host hasn't reported it yet. It's also omitted for Linux hosts that report their root volume as unencrypted, because Fleet can't confirm that a Linux host's disk is unencrypted.
group_tag is the Windows Autopilot group tag. It's only returned for hosts synced from a tenant's Autopilot registry. See Connect Fleet to Microsoft Graph.
Response payload with the mdm_id filter provided:
{
"hosts": [...],
"mobile_device_management_solution": {
"server_url": "http://some.url/mdm",
"name": "MDM Vendor Name",
"id": 999
}
}Response payload with the munki_issue_id filter provided:
{
"hosts": [...],
"munki_issue": {
"id": 1,
"name": "Could not retrieve managed install primary manifest",
"type": "error"
}
}GET /api/v1/fleet/hosts/count
| Name | Type | In | Description |
|---|---|---|---|
| order_key | string | query | What to order results by. Can be any column in the hosts table. |
| order_direction | string | query | Requires order_key. The direction of the order given the order key. Options include "asc" and "desc". Default is "asc". |
| after | string | query | The value to get results after. This needs order_key defined, as that's the column that would be used. |
| status | string | query | Indicates the status of the hosts to return. Can either be 'new', 'online', 'offline', 'mia', 'missing' or 'enrolled'. 'enrolled' returns every host except those pending MDM enrollment. |
| query | string | query | Search query keywords. Searchable fields include hostname, hardware_serial, uuid, ipv4, and end user email addresses. |
| fleet_id | integer | query | Available in Fleet Premium. Filters the hosts to only include hosts in the specified fleet. |
| policy_id | integer | query | The ID of the policy to filter hosts by. |
| policy_response | string | query | Requires policy_id. Valid options are 'passing' or 'failing'. |
| software_version_id | integer | query | The ID of the software version to filter hosts by. |
| software_title_id | integer | query | The ID of the software title to filter hosts by. |
| software_installer_id | integer | query | Requires software_title_id. The ID of a specific package of the title to filter hosts by. Use for multi-package titles to filter by one installer. |
| app_store_app_version_id | integer | query | Requires software_title_id. The ID of a specific admin-created App Store app version of the title to filter hosts by. iOS, iPadOS, and Android only. |
| os_version_id | integer | query | The ID of the operating system version to filter hosts by. |
| os_name | string | query | The name of the operating system to filter hosts by. os_version must also be specified with os_name |
| os_version | string | query | The version of the operating system to filter hosts by. os_name must also be specified with os_version |
| vulnerability | string | query | The cve to filter hosts by (including "cve-" prefix, case-insensitive). |
| label_id | integer | query | A valid label ID. Can only be used in combination with order_key, order_direction, after, status, query and fleet_id. |
| mdm_id | integer | query | The ID of the mobile device management (MDM) solution to filter hosts by (that is, filter hosts that use a specific MDM provider and URL). |
| mdm_name | string | query | The name of the mobile device management (MDM) solution to filter hosts by (that is, filter hosts that use a specific MDM provider). |
| mdm_enrollment_status | string | query | The mobile device management (MDM) enrollment status to filter hosts by. Valid options are 'manual', 'personal', 'manual-personal', 'automatic', 'enrolled', 'pending', or 'unenrolled'. 'pending' only includes Apple (macOS, iOS, iPadOS) hosts in Apple Business (AB) that are not yet enrolled to Fleet. |
| macos_settings | string | query | Filters the hosts by the status of the mobile device management (MDM) profiles applied to hosts. Valid options are 'verified', 'verifying', 'pending', or 'failed'. Note: If this filter is used in Fleet Premium without a fleet ID filter, the results include only "Unassigned" hosts. |
| munki_issue_id | integer | query | The ID of the munki issue (a Munki-reported error or warning message) to filter hosts by (that is, filter hosts that are affected by that corresponding error or warning message). |
| low_disk_space | integer | query | Available in Fleet Premium. Filters the hosts to only include hosts with less GB of disk space available than this value. Must be a number between 1-100. |
| macos_settings_disk_encryption | string | query | Filters the hosts by disk encryption status. Valid options are 'verified', 'verifying', 'action_required', 'enforcing', 'failed', or 'removing_enforcement'. |
| bootstrap_package | string | query | Available in Fleet Premium. Filters the hosts by the status of the MDM bootstrap package on the host. Valid options are 'installed', 'pending', or 'failed'. Note: If this filter is used in Fleet Premium without a fleet ID filter, the results include only "Unassigned" hosts. |
| os_settings | string | query | Filters the hosts by the status of the operating system settings applied to the hosts. Valid options are 'verified', 'verifying', 'pending', or 'failed'. Note: If this filter is used in Fleet Premium without a fleet ID filter, the results include only "Unassigned" hosts. |
| os_settings_disk_encryption | string | query | Filters the hosts by disk encryption status. Valid options are 'verified', 'verifying', 'action_required', 'enforcing', 'failed', or 'removing_enforcement'. Note: If this filter is used in Fleet Premium without a fleet ID filter, the results include only "Unassigned" hosts. |
If additional_info_filters is not specified, no additional information will be returned.
If mdm_id, mdm_name or mdm_enrollment_status is specified, then Windows Servers are excluded from the results.
GET /api/v1/fleet/hosts/count?page=0&per_page=100&order_key=hostname&query=2ce
{
"page": 0,
"per_page": 100,
"order_key": "hostname"
}Status: 200
{
"count": 123
}Returns the count of all hosts organized by status. online_count includes all hosts currently enrolled in Fleet. offline_count includes all hosts that haven't checked into Fleet recently. mia_count includes all hosts that haven't been seen by Fleet in more than 30 days. new_count includes the hosts that have been enrolled to Fleet in the last 24 hours.
For iOS, iPadOS, and Android hosts, which don't run osquery, online/offline is derived from the most recent of nano_enrollments.last_seen_at (Apple, active enrollments only) or host_seen_times.seen_time, falling back to detail_updated_at when neither is present — within a ~1-hour window, instead of the per-host osquery check-in interval used by other platforms.
GET /api/v1/fleet/host_summary
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | integer | query | Available in Fleet Premium. The ID of the fleet whose host counts should be included. Defaults to all fleets. |
| platform | string | query | Platform to filter by when counting. Defaults to all platforms. |
| low_disk_space | integer | query | Available in Fleet Premium. Returns the count of hosts with less GB of disk space available than this value. Must be a number between 1-100. |
GET /api/v1/fleet/host_summary?fleet_id=1&low_disk_space=32
Status: 200
{
"team_id": 1,
"fleet_id": 1,
"totals_hosts_count": 2408,
"online_count": 2267,
"offline_count": 141,
"mia_count": 0,
"missing_30_days_count": 0,
"new_count": 0,
"all_linux_count": 1204,
"low_disk_space_count": 12,
"dep_assign_error_count": 7,
"builtin_labels": [
{
"id": 6,
"name": "All Hosts",
"description": "All hosts which have enrolled in Fleet",
"label_type": "builtin"
},
{
"id": 7,
"name": "macOS",
"description": "All macOS hosts",
"label_type": "builtin"
},
{
"id": 8,
"name": "Ubuntu Linux",
"description": "All Ubuntu hosts",
"label_type": "builtin"
},
{
"id": 9,
"name": "CentOS Linux",
"description": "All CentOS hosts",
"label_type": "builtin"
},
{
"id": 10,
"name": "MS Windows",
"description": "All Windows hosts",
"label_type": "builtin"
},
{
"id": 11,
"name": "Red Hat Linux",
"description": "All Red Hat Enterprise Linux hosts",
"label_type": "builtin"
},
{
"id": 12,
"name": "All Linux",
"description": "All Linux distributions",
"label_type": "builtin"
},
{
"id": 13,
"name": "iOS",
"description": "All iOS hosts",
"label_type": "builtin"
},
{
"id": 14,
"name": "iPadOS",
"description": "All iPadOS hosts",
"label_type": "builtin"
},
{
"id": 15,
"name": "Fedora Linux",
"description": "All Fedora hosts",
"label_type": "builtin"
},
{
"id": 16,
"name": "Android",
"description": "All Android hosts",
"label_type": "builtin"
}
],
"platforms": [
{
"platform": "chrome",
"hosts_count": 1234
},
{
"platform": "darwin",
"hosts_count": 1234
},
{
"platform": "ios",
"hosts_count": 1234
},
{
"platform": "ipados",
"hosts_count": 1234
},
{
"platform": "rhel",
"hosts_count": 1234
},
{
"platform": "ubuntu",
"hosts_count": 12044
},
{
"platform": "windows",
"hosts_count": 12044
},
{
"platform": "Android",
"hosts_count": 200
}
]
}Returns the information of the specified host.
GET /api/v1/fleet/hosts/:id
For iOS, iPadOS, and Android hosts, google_device_id is the host's device ID in Google. It's "" until it's set with Update host's Google device ID.
If you're hitting this endpoint often (e.g. every hour) for a large number of hosts (e.g. 1k+) the best practice is to set the
exclude_softwaretotrueto prevent overloading the Fleet server.
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The host's id. |
| exclude_software | boolean | query | If true, the response will not include a list of installed software for the host. |
| exclude_fleet_maintained_policies | boolean | query | If true, will omit Fleet-maintained policies from the policies list. |
GET /api/v1/fleet/hosts/121
Status: 200
{
"host": {
"created_at": "2021-08-19T02:02:22Z",
"updated_at": "2021-08-19T21:14:58Z",
"id": 1,
"detail_updated_at": "2021-08-19T21:07:53Z",
"group_tag": "Marketing-Laptops",
"last_restarted_at": "2020-11-01T03:01:45Z",
"software_updated_at": "2020-11-05T05:09:44Z",
"label_updated_at": "2021-08-19T21:07:53Z",
"policy_updated_at": "2023-06-26T18:33:15Z",
"last_enrolled_at": "2021-08-19T02:02:22Z",
"last_mdm_checked_in_at": "2023-02-26T22:33:12Z",
"last_mdm_enrolled_at": "2023-02-26T22:33:12Z",
"mdm_enrollment_hardware_attested": false,
"seen_time": "2021-08-19T21:14:58Z",
"refetch_requested": false,
"hostname": "Annas-MacBook-Pro.local",
"uuid": "309a4b7d-0000-0000-8e7f-26ae0815ede8",
"platform": "darwin",
"osquery_version": "5.15.0",
"orbit_version": "1.22.0",
"fleet_desktop_version": "1.22.0",
"scripts_enabled": true,
"os_version": "macOS 15.2",
"patch_deadline_at": "2026-11-10T17:00:00Z",
"build": "24C101",
"platform_like": "darwin",
"code_name": "",
"uptime": 210671000000000,
"memory": 16788398080,
"cpu_type": "arm64e",
"cpu_subtype": "ARM64E",
"cpu_brand": "Apple M1",
"cpu_physical_cores": 8,
"cpu_logical_cores": 8,
"hardware_vendor": "Apple Inc.",
"hardware_model": "MacBookPro17,1",
"hardware_marketing_name": "MacBook Pro (13-inch, M1, 2020)",
"hardware_version": "",
"hardware_serial": "C0124FXASD6G",
"computer_name": "Anna's MacBook Pro",
"timezone": null,
"display_name": "Anna's MacBook Pro",
"public_ip": "123.45.678.910",
"primary_ip": "172.27.0.6",
"primary_mac": "02:42:ac:1b:00:06",
"distributed_interval": 10,
"config_tls_refresh": 10,
"logger_tls_period": 10,
"team_id": null,
"fleet_id": null,
"pack_stats": null,
"team_name": null,
"fleet_name": null,
"gigs_disk_space_available": 174.98,
"percent_disk_space_available": 71,
"gigs_total_disk_space": 246,
"disk_encryption_enabled": true,
"status": "online",
"display_text": "Annas-MacBook-Pro.local",
"apple_business_source": "Apple",
"additional": {},
"issues": {
"failing_policies_count": 1,
"failing_unhidden_policies_count": 1, // Available in Fleet Premium
"hidden_policies_count": 0, // Available in Fleet Premium
"critical_vulnerabilities_count": 2, // Available in Fleet Premium
"total_issues_count": 3
},
"batteries": [
{
"cycle_count": 999,
"health": "Normal"
}
],
"geolocation": {
"country_iso": "US",
"city_name": "New York",
"geometry": {
"type": "point",
"coordinates": [40.6799, -74.0028]
}
},
"maintenance_window": {
"starts_at": "2024-06-18T13:27:18-04:00",
"timezone": "America/New_York"
},
"users": [
{
"uid": 0,
"username": "root",
"type": "",
"groupname": "root",
"shell": "/bin/sh"
},
{
"uid": 1,
"username": "annachao",
"type": "",
"groupname": "staff",
"shell": "/bin/zsh"
}
],
"end_users": [
{
"idp_info_updated_at": "2025-03-20T02:02:17Z",
"idp_id": "f26f8649-1e25-42c5-be71-1b1e6de56d3d",
"idp_username": "[email protected]",
"idp_full_name": "Anna Chao",
"idp_department": "Product",
"idp_groups": [
"Product",
"Designers"
],
"other_emails": [
{
"email": "[email protected]",
"source": "google_chrome_profiles"
},
{
"email": "[email protected]",
"source": "custom"
}
]
}
],
"labels": [
{
"created_at": "2021-08-19T02:02:17Z",
"updated_at": "2021-08-19T02:02:17Z",
"id": 6,
"name": "All Hosts",
"description": "All hosts which have enrolled in Fleet",
"query": "SELECT 1;",
"platform": "",
"label_type": "builtin",
"label_membership_type": "dynamic"
},
{
"created_at": "2021-08-19T02:02:17Z",
"updated_at": "2021-08-19T02:02:17Z",
"id": 9,
"name": "macOS",
"description": "All macOS hosts",
"query": "select 1 from os_version where platform = 'darwin';",
"platform": "",
"label_type": "builtin",
"label_membership_type": "dynamic"
},
{
"created_at": "2021-08-19T02:02:17Z",
"updated_at": "2021-08-19T02:02:17Z",
"id": 12,
"name": "Hosts with Chrome installed",
"description": "",
"query": "SELECT * FROM apps WHERE name LIKE \"%Chrome%\"",
"platform": "",
"label_type": "regular",
"label_membership_type": "dynamic"
}
],
"packs": [],
"policies": [
{
"id": 2,
"name": "SomeQuery2",
"query": "SELECT * FROM bar;",
"description": "this is another query",
"resolution": "fix with these other steps...",
"platform": "darwin",
"response": "fail",
"critical": false
},
{
"id": 3,
"name": "SomeQuery3",
"query": "SELECT * FROM baz;",
"description": "",
"resolution": "",
"platform": "",
"response": "",
"critical": false
},
{
"id": 1,
"name": "SomeQuery",
"query": "SELECT * FROM foo;",
"description": "this is a query",
"resolution": "fix with these steps...",
"platform": "windows,linux",
"response": "pass",
"critical": false
}
],
"software": [
{
"id": 321,
"name": "macOSApp",
"version": "1.0",
"source": "apps",
"ai_tool": false,
"bundle_identifier": "com.some.app",
"last_opened_at": "2021-08-18T21:14:00Z",
"generated_cpe": "",
"vulnerabilities": null,
"installed_paths": ["/usr/lib/some-path-2"]
},
{
"id": 322,
"name": "Windows",
"version": "1.0",
"source": "programs",
"ai_tool": false,
"upgrade_code": "{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}",
"last_opened_at": "2021-08-18T21:14:00Z",
"generated_cpe": "",
"vulnerabilities": null,
"installed_paths": ["/usr/lib/some-path-2"]
},
{
"id": 323,
"name": "gopls",
"version": "v0.21.1",
"source": "go_binaries",
"release": "go1.26.1",
"generated_cpe": "",
"vulnerabilities": null,
"installed_paths": ["/Users/alice/go/bin/gopls"]
}
],
"mdm": {
"encryption_key_available": true,
"enrollment_status": "On (manual)",
"is_personal_enrollment": false,
"name": "Fleet",
"connected_to_fleet": true,
"server_url": "https://acme.com/mdm/apple/mdm",
"device_status": "unlocked",
"pending_action": "",
"bootstrap_token_escrowed": true,
"macos_settings": {
"disk_encryption": "verified",
"action_required": null
},
"apple_settings": {
"disk_encryption": "verified",
"action_required": null
},
"macos_setup": {
"bootstrap_package_status": "installed",
"detail": "",
"bootstrap_package_name": "test.pkg"
},
"setup_experience": {
"bootstrap_package_status": "installed",
"detail": "",
"bootstrap_package_name": "test.pkg"
},
"os_settings": {
"disk_encryption": {
"status": "verified",
"detail": "",
"action_required": null
},
"host_name": {
"status": "verified",
"detail": ""
}
},
"profiles": [
{
"profile_uuid": "954ec5ea-a334-4825-87b3-937e7e381f24",
"name": "profile1",
"status": "verifying",
"operation_type": "install",
"scope": "device",
"managed_local_account": "",
"detail": "",
"self_service": true,
"hidden": false
},
{
"profile_uuid": "954ec5ea-a334-4825-87b3-937e7e381234",
"name": "profile2",
"status": "verifying",
"operation_type": "install",
"scope": "device",
"managed_local_account": "",
"detail": "",
"self_service": false,
"hidden": true
},
{
"profile_uuid": "954ec5ea-a334-4825-87b3-937e7e385678",
"name": "profile3",
"status": null,
"operation_type": "",
"scope": "device",
"managed_local_account": "",
"detail": "",
"self_service": true,
"hidden": false
}
]
}
}
}A profile with "status": null is a self-service profile the host can install but hasn't yet. Once the end user or an IT admin installs it, status follows the same values as any other profile.
GET /api/v1/fleet/hosts/121
Status: 200
{
"host": {
"created_at": "2021-08-19T02:02:22Z",
"updated_at": "2021-08-19T21:14:58Z",
"id": 1,
"detail_updated_at": "2021-08-19T21:07:53Z",
"last_restarted_at": "2020-11-01T03:01:45Z",
"software_updated_at": "2020-11-05T05:09:44Z",
"label_updated_at": "2021-08-19T21:07:53Z",
"policy_updated_at": "2023-06-26T18:33:15Z",
"last_enrolled_at": "2021-08-19T02:02:22Z",
"last_mdm_checked_in_at": "2023-02-26T22:33:12Z",
"last_mdm_enrolled_at": "2023-02-26T22:33:12Z",
"mdm_enrollment_hardware_attested": true,
"seen_time": "2021-08-19T21:14:58Z",
"refetch_requested": false,
"hostname": "Annas-iPhone",
"uuid": "00008110-001A2B3C4D5E6F78",
"udid": "00008110-001A2B3C4D5E6F78",
"platform": "ios",
"osquery_version": "",
"orbit_version": "1.22.0",
"fleet_desktop_version": null,
"scripts_enabled": false,
"os_version": "iOS 17.4.1",
"os_update_minimum_version": "15.1",
"os_update_deadline": "2025-07-01",
"build": "21E236",
"platform_like": "darwin",
"code_name": "",
"uptime": 210671000000000,
"memory": 6442450944,
"cpu_type": "arm64",
"cpu_subtype": "ARM64E",
"cpu_brand": "Apple A16 Bionic",
"cpu_physical_cores": 6,
"cpu_logical_cores": 6,
"hardware_vendor": "Apple Inc.",
"hardware_model": "iPhone15,2",
"hardware_version": "iPhone 15 Pro",
"hardware_serial": "F2LXX1XXXXXX",
"google_device_id": "c3d1a9e2-7b4f-4e8a-9f1d-2a6b8c0e4f12",
"computer_name": "Anna's iPhone",
"timezone": null,
"display_name": "Anna's iPhone",
"public_ip": "123.45.678.910",
"primary_ip": "192.168.1.42",
"primary_mac": "a4:83:e7:12:34:56",
"distributed_interval": 10,
"config_tls_refresh": 10,
"logger_tls_period": 10,
"team_id": null,
"fleet_id": null,
"pack_stats": null,
"team_name": null,
"fleet_name": null,
"gigs_disk_space_available": 54.3,
"percent_disk_space_available": 43,
"gigs_total_disk_space": 128,
"app_analytics_enabled": true,
"accessibility_settings": {
"bold_text_enabled": false,
"grayscale_enabled": false,
"increase_contrast_enabled": false,
"reduce_motion_enabled": true,
"reduce_transparency_enabled": false,
"text_size": 4,
"touch_accommodations_enabled": false,
"voice_over_enabled": false,
"zoom_enabled": false
},
"awaiting_configuration": false,
"battery_level": 0.82,
"bluetooth_mac": "a4:83:e7:12:34:57",
"cellular_technology": "GSM",
"data_roaming_enabled": false,
"device_properties_attestation": [
"MIIC6zCCAnKgAwIBAgIGAZ+onLUpMAoGCCqGSM49BAMDMFIxLjAsBgNVBAMMJUFwcGxl",
"MIICSTCCAc6gAwIBAgIUcDHgQKbmtGvw4vNNVWqEVNBCXnEwCgYIKoZIzj0EAwMwUTEt"
],
"diagnostic_submission_enabled": true,
"eas_device_identifier": "3E2A1F9C4D7B6E8A2C5D1F0E3B4A7C9D",
"is_cloud_backup_enabled": true,
"is_device_locator_service_enabled": true,
"is_do_not_disturb_in_effect": false,
"is_mdm_lost_mode_enabled": false,
"is_network_tethered": false,
"itunes_store_account_hash": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2",
"itunes_store_account_is_active": true,
"last_cloud_backup_date": "2023-02-25T14:22:10Z",
"mdm_options": {
"activation_lock_allowed_while_supervised": true,
"bootstrap_token_allowed": true,
"prompt_user_to_allow_bootstrap_token_for_authentication": false
},
"model_number": "MNEP3LL/A",
"modem_firmware_version": "2.01.00",
"organization_info": {
"organization_name": "Acme Corp",
"organization_address": "123 Main St, New York, NY 10001",
"organization_phone": "+1-800-555-0100",
"organization_email": "[email protected]",
"organization_magic": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
},
"personal_hotspot_enabled": false,
"push_token": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6",
"service_subscriptions": [
{
"carrier_settings_version": "42.0",
"current_carrier_network": "Verizon",
"current_mcc": "311",
"current_mnc": "480",
"eid": "89049032004008882600890049000003",
"iccid": "89014103211118510720",
"imei": "352099001761481",
"is_data_preferred": true,
"is_roaming": false,
"is_voice_preferred": true,
"label": "Primary",
"label_id": "com.apple.subscriberLabel.primary",
"meid": "35209900176148",
"phone_number": "+1-123-456-7890",
"slot": "CTSubscriptionSlotOne",
"subscriber_carrier_network": "Verizon"
}
],
"supplemental_build_version": "21E236",
"supplemental_os_version_extra": "(a)",
"wifi_mac": "a4:83:e7:12:34:58",
"disk_encryption_enabled": true,
"status": "online",
"display_text": "Annas-iPhone",
"additional": {},
"issues": {
"failing_policies_count": 1,
"failing_unhidden_policies_count": 1, // Available in Fleet Premium
"hidden_policies_count": 0, // Available in Fleet Premium
"critical_vulnerabilities_count": 2, // Available in Fleet Premium
"total_issues_count": 3
},
"batteries": [
{
"cycle_count": 187,
"health": "Normal"
}
],
"geolocation": {
"country_iso": "US",
"city_name": "New York",
"geometry": {
"type": "point",
"coordinates": [40.6799, -74.0028]
}
},
"maintenance_window": {
"starts_at": "2024-06-18T13:27:18−04:00",
"timezone": "America/New_York"
},
"users": [
{
"uid": 501,
"username": "annachao",
"type": "",
"groupname": "mobile",
"shell": ""
}
],
"end_users": [
{
"idp_info_updated_at": "2025-03-20T02:02:17Z",
"idp_id": "f26f8649-1e25-42c5-be71-1b1e6de56d3d",
"idp_username": "[email protected]",
"idp_full_name": "Anna Chao",
"idp_department": "Product",
"idp_groups": [
"Product",
"Designers"
],
"other_emails": [
{
"email": "[email protected]",
"source": "managed_apple_id"
},
{
"email": "[email protected]",
"source": "custom"
}
]
}
],
"labels": [
{
"created_at": "2021-08-19T02:02:17Z",
"updated_at": "2021-08-19T02:02:17Z",
"id": 6,
"name": "All Hosts",
"description": "All hosts which have enrolled in Fleet",
"query": "SELECT 1;",
"platform": "",
"label_type": "builtin",
"label_membership_type": "dynamic"
},
{
"created_at": "2021-08-19T02:02:17Z",
"updated_at": "2021-08-19T02:02:17Z",
"id": 9,
"name": "iOS",
"description": "All iOS hosts",
"query": "SELECT 1 FROM osquery_info WHERE build_platform = 'ios';",
"platform": "ios",
"label_type": "builtin",
"label_membership_type": "dynamic"
},
{
"created_at": "2021-08-19T02:02:17Z",
"updated_at": "2021-08-19T02:02:17Z",
"id": 12,
"name": "Hosts with Gmail installed",
"description": "",
"query": "SELECT * FROM apps WHERE name LIKE \"%Gmail%\"",
"platform": "ios",
"label_type": "regular",
"label_membership_type": "dynamic"
}
],
"packs": [],
"policies": [
{
"id": 2,
"name": "Passcode required (iOS)",
"query": "SELECT 1 FROM managed_policies WHERE domain = 'com.apple.mobiledevice.passwordpolicy' AND name = 'forcePIN' AND value = 1 LIMIT 1;",
"description": "Checks that a passcode is enforced on the device.",
"resolution": "Go to Settings > Face ID & Passcode > Turn Passcode On.",
"platform": "ios",
"response": "fail",
"critical": false
},
{
"id": 3,
"name": "SomeQuery3",
"query": "SELECT * FROM baz;",
"description": "",
"resolution": "",
"platform": "",
"response": "",
"critical": false
},
{
"id": 1,
"name": "OS version up to date (iOS)",
"query": "SELECT 1 FROM os_version WHERE version >= '17.4.1';",
"description": "Checks that the device is running the latest iOS version.",
"resolution": "Go to Settings > General > Software Update and install the latest update.",
"platform": "ios",
"response": "pass",
"critical": false
}
],
"software": [
{
"id": 321,
"name": "Gmail",
"version": "6.0.240414",
"source": "ios_apps",
"ai_tool": false,
"bundle_identifier": "com.google.Gmail",
"last_opened_at": "2021-08-18T21:14:00Z",
"generated_cpe": "",
"vulnerabilities": null,
"installed_paths": ["/var/containers/Bundle/Application/"]
},
{
"id": 322,
"name": "Slack",
"version": "23.10.10",
"source": "ios_apps",
"ai_tool": false,
"bundle_identifier": "com.tinyspeck.chatlyio",
"last_opened_at": "2021-08-18T21:14:00Z",
"generated_cpe": "",
"vulnerabilities": null,
"installed_paths": ["/var/containers/Bundle/Application/"]
}
],
"mdm": {
"encryption_key_available": false,
"enrollment_status": "On (automatic)",
"name": "Fleet",
"connected_to_fleet": true,
"server_url": "https://acme.com/mdm/apple/mdm",
"device_status": "unlocked",
"pending_action": "",
"macos_settings": {
"disk_encryption": null,
"action_required": null
},
"apple_settings": {
"disk_encryption": null,
"action_required": null
},
"macos_setup": {
"bootstrap_package_status": "installed",
"detail": "",
"bootstrap_package_name": ""
},
"setup_experience": {
"bootstrap_package_status": "installed",
"detail": "",
"bootstrap_package_name": ""
},
"os_settings": {
"disk_encryption": {
"status": null,
"detail": ""
}
},
"profiles": [
{
"profile_uuid": "954ec5ea-a334-4825-87b3-937e7e381f24",
"name": "iOS Restrictions Profile",
"status": "verifying",
"operation_type": "install",
"scope": "device",
"managed_local_account": "",
"detail": ""
}
]
}
}
}GET /api/v1/fleet/hosts/121
Status: 200
{
"host": {
"created_at": "2021-08-19T02:02:22Z",
"updated_at": "2021-08-19T21:14:58Z",
"id": 1,
"detail_updated_at": "2021-08-19T21:07:53Z",
"last_restarted_at": "0001-01-01T00:00:00Z",
"software_updated_at": "2020-11-05T05:09:44Z",
"label_updated_at": "2021-08-19T21:07:53Z",
"policy_updated_at": "2023-06-26T18:33:15Z",
"last_enrolled_at": "2021-08-19T02:02:22Z",
"last_mdm_checked_in_at": "2023-02-26T22:33:12Z",
"last_mdm_enrolled_at": "2023-02-26T22:33:12Z",
"mdm_enrollment_hardware_attested": false,
"seen_time": "2021-08-19T21:14:58Z",
"refetch_requested": false,
"hostname": "Anna Chao's Google Pixel 9",
"uuid": "9ec4265a507780e710ce2a1f66587a35ac95796e9e8835112f98f7dd3265ba67",
"platform": "android",
"osquery_version": "",
"orbit_version": null,
"fleet_desktop_version": null,
"scripts_enabled": null,
"os_version": "Android 16 (2026-05-01)",
"os_update_minimum_version": null,
"os_update_deadline": null,
"build": "",
"platform_like": "",
"code_name": "",
"uptime": 0,
"memory": 8589934592,
"cpu_type": "caiman",
"cpu_subtype": "",
"cpu_brand": "",
"cpu_physical_cores": 0,
"cpu_logical_cores": 0,
"hardware_vendor": "google",
"hardware_model": "Google Pixel 9",
"hardware_version": "",
"hardware_serial": "3B241102E5",
"google_device_id": "8f2e6b1c-4d3a-4c9e-b7a5-1e0f9d2c3b4a",
"computer_name": "Anna Chao's Google Pixel 9",
"timezone": null,
"display_name": "Anna Chao's Google Pixel 9",
"public_ip": "",
"primary_ip": "",
"primary_mac": "",
"distributed_interval": 0,
"config_tls_refresh": 0,
"logger_tls_period": 0,
"team_id": null,
"fleet_id": null,
"pack_stats": null,
"team_name": null,
"fleet_name": null,
"gigs_disk_space_available": 92.4,
"percent_disk_space_available": 72,
"gigs_total_disk_space": 128,
"adb_enabled": false,
"api_level": 36,
"bootloader_version": "caiman-1.0-13984080",
"device_kernel_version": "6.1.124-android16-11-g8b6a1e0f4f9a-ab13984080",
"encryption_type": "ACTIVE",
"imei": "351756051523999",
"manufacturer": "Google",
"passcode_protected": true,
"play_protect_enabled": true,
"security_posture": "AT_RISK",
"security_posture_details": [
{
"security_risk": "UNKNOWN_OS",
"advice": [
"This device is running an unrecognized version of Android. Install a certified build from the device manufacturer."
]
}
],
"security_update_version": "2026-05-01",
"system_update_status": "UP_TO_DATE",
"telephony_infos": [
{
"phone_number": "+15551234567",
"carrier_name": "Verizon",
"iccid": "89014103211118510720",
"activation_state": "ACTIVATED",
"config_mode": "ADMIN_CONFIGURED"
}
],
"status": "online",
"display_text": "Anna Chao's Google Pixel 9",
"issues": {
"failing_policies_count": 0,
"failing_unhidden_policies_count": 0, // Available in Fleet Premium
"hidden_policies_count": 0, // Available in Fleet Premium
"critical_vulnerabilities_count": 0, // Available in Fleet Premium
"total_issues_count": 0
},
"batteries": [],
"end_users": [
{
"idp_info_updated_at": "2025-03-20T02:02:17Z",
"idp_id": "f26f8649-1e25-42c5-be71-1b1e6de56d3d",
"idp_username": "[email protected]",
"idp_full_name": "Anna Chao",
"idp_department": "Product",
"idp_groups": [
"Product",
"Designers"
],
"other_emails": []
}
],
"labels": [
{
"created_at": "2021-08-19T02:02:17Z",
"updated_at": "2021-08-19T02:02:17Z",
"id": 6,
"name": "All Hosts",
"description": "All hosts which have enrolled in Fleet",
"query": "SELECT 1;",
"platform": "",
"label_type": "builtin",
"label_membership_type": "dynamic"
},
{
"created_at": "2021-08-19T02:02:17Z",
"updated_at": "2021-08-19T02:02:17Z",
"id": 14,
"name": "Android",
"description": "All Android hosts",
"query": "",
"platform": "android",
"label_type": "builtin",
"label_membership_type": "manual"
}
],
"packs": [],
"policies": [],
"software": [
{
"id": 411,
"name": "Gmail",
"version": "2026.05.04.123456789",
"source": "android_apps",
"ai_tool": false,
"application_id": "com.google.android.gm",
"generated_cpe": "",
"vulnerabilities": null,
"installed_paths": []
},
{
"id": 412,
"name": "Slack",
"version": "26.05.10.0",
"source": "android_apps",
"ai_tool": false,
"application_id": "com.Slack",
"generated_cpe": "",
"vulnerabilities": null,
"installed_paths": []
}
],
"mdm": {
"encryption_key_available": false,
"enrollment_status": "On (automatic)",
"is_personal_enrollment": false,
"name": "Fleet",
"connected_to_fleet": true,
"server_url": "https://acme.com",
"device_status": "unlocked",
"pending_action": "",
"os_settings": {
"disk_encryption": {
"status": null,
"detail": ""
}
},
"profiles": [
{
"profile_uuid": "g954ec5ea-a334-4825-87b3-937e7e381f24",
"name": "Android Wi-Fi Profile",
"status": "verified",
"operation_type": "install",
"scope": null,
"managed_local_account": null,
"detail": ""
}
]
}
}
}mdm.os_settings.host_name reports the host name template enforcement status for a macOS, iOS, or iPadOS host. Its status is one of pending, verifying, verified, or failed, and detail carries the error message when the status is failed. The object is omitted entirely for hosts that aren't enforced (no template set on the host's fleet or on "Unassigned", non-MDM hosts, and personal (BYOD) enrollments).
mdm.os_settings.disk_encryption.action_required names what the end user can do about a disk encryption problem, and is only present when there is something they can do. On Windows it is create_pin when BitLocker policy requires a startup PIN the end user hasn't set, and restart when Fleet is waiting for a pending restart before turning protection back on. On macOS it is log_out or rotate_key. It's absent when status is action_required for a reason the end user can't fix, such as a TPM that isn't ready or a policy that forbids the key protector Fleet needs.
mdm.bootstrap_token_escrowed indicates whether Fleet has escrowed a bootstrap token for the macOS host. The bootstrap token authorizes certain MDM operations, such as remote wipe and installing OS updates, without requiring a user with a secure token to be logged in. This field is only present for macOS hosts.
Entries in mdm.profiles that represent an Android certificate carry a certificate_template_id, plus retrying, retry_count, and max_retries. When a host reports a failed certificate install, Fleet automatically re-delivers the certificate up to max_retries times, which puts it back into an in-progress status while detail still holds the reported error. retrying is true for the duration of that window, and retry_count is how many retries have been used. A manual resend also sets retry_count, so only retrying identifies an automatic retry. These four fields are omitted for every other kind of profile, and the retry fields are also omitted when operation_type is remove, since removals are never retried.
browser and extension_for fields are included when set and when empty. extension_for shows the browser or Visual Studio Code fork associated with the extension, allowing for differentiation between e.g. an extension installed on Visual Studio Code and one installed on Cursor. browser is deprecated, and only shows this information for browser plugins.
issues.failing_policies_count counts all failing policies, including those marked hidden. issues.failing_unhidden_policies_count (Available in Fleet Premium) counts only failing policies that aren't hidden. issues.hidden_policies_count (Available in Fleet Premium) counts all policies marked hidden, whether they're passing or failing.
release is included when set. For rpm_packages, it's the package release (for example, 1.212.el6). For go_binaries, it's the version of the Go toolchain the binary was built with (for example, go1.26.1). Fleet uses it to detect Go standard library vulnerabilities, so the same binary version built with two toolchains is listed as two versions. generated_cpe is empty for Go binaries. Their vulnerabilities come from the Go vulnerability database instead of NVD.
Note: the response above assumes a GeoIP database is configured, otherwise the
geolocationobject won't be included.
Note:
disk_encryption_enabledis omitted when Fleet doesn't know the host's disk encryption status, such as when the host hasn't reported it yet. It's also omitted for Linux hosts that report their root volume as unencrypted, because Fleet can't confirm that a Linux host's disk is unencrypted.
Note:
patch_deadline_atis the next time Fleet patches apps on the host at the fleet's patch deadline. It'snullwhen no patch is waiting for a deadline, and for hosts that aren't macOS.
Note:
installed_pathsmay be blank depending on installer package. For example, on Linux, RPM-installed packages do not provide installed path information.
Note:
signature_informationis set for macOS apps (source: apps) and Homebrew formulae (source: homebrew_packages). Apps get one entry per bundle. Homebrew formulae get one entry per Mach-O executable in the formula'sbinandsbindirectories, withexecutable_pathandexecutable_sha256. For those entries,team_identifieris empty andhash_sha256isnull. Homebrew hashes require fleetd 1.63.0.- Currently, the following are supported only for iOS/iPadOS:
accessibility_settings,app_analytics_enabled,awaiting_configuration,battery_level,bluetooth_mac,cellular_technology,data_roaming_enabled,device_properties_attestation,diagnostic_submission_enabled,eas_device_identifier,is_cloud_backup_enabled,is_device_locator_service_enabled,is_do_not_disturb_in_effect,is_mdm_lost_mode_enabled,is_network_tethered,itunes_store_account_hash,itunes_store_account_is_active,last_cloud_backup_date,mdm_options,model_number,modem_firmware_version,organization_info,personal_hotspot_enabled,push_token,service_subscriptions,supplemental_build_version,supplemental_os_version_extra,udid, andwifi_mac.- These iOS/iPadOS vitals are collected via Apple's
DeviceInformationMDM command. A property the device doesn't report is omitted from the response rather than returned asnull. The exception ismdm_options, which is returned as an empty object when the device reports it with nothing set.cellular_technologyis one ofNone,GSM,CDMA, orGSM and CDMA. This will beunknownif Apple adds a value in the future that Fleet doesn't recognize.device_properties_attestationis an array of base64-encoded DER certificates forming a chain, leaf first. The chain is anchored to Apple's Enterprise Attestation Root CA, which is not itself included in the array.- Currently, the following are supported only for Android:
adb_enabled,api_level,bootloader_version,device_kernel_version,encryption_type,imei,manufacturer,meid,passcode_protected,play_protect_enabled,security_posture,security_posture_details,security_update_version,system_update_status, andtelephony_infos.- These Android vitals are collected from the status reports Fleet receives from the Android Management API (AMAPI). A vital the device doesn't report is omitted from the response rather than returned as
null. A host that hasn't sent a status report yet returns none of them, and a device whose Android version doesn't report a given vital omits just that one.telephony_infos,imei, andmeidare never returned for a personal (BYOD) enrollment. AMAPI only reports them for fully managed devices in the first place, and Fleet gates the response on its own enrollment record so they stay hidden after a BYOD host unenrolls.telephony_infosholds one entry per SIM card, so a dual-SIM host reports more than one, and it requires Android 6 or above. Itsactivation_stateandconfig_modedescribe eSIMs on Android 15 and above only. A host reports eitherimeiormeiddepending on its radio, never both.security_posture_details[].adviceholds AMAPI's default, non-localized admin-facing message for each risk. Fleet has no device locale to select a localized variant with, so the localized messages aren't returned.encryption_type,security_posture,system_update_status,security_posture_details[].security_risk,telephony_infos[].activation_state, andtelephony_infos[].config_modecarry AMAPI's raw enum values, such asACTIVE,AT_RISK,UP_TO_DATE,UNKNOWN_OS,ACTIVATED, andADMIN_CONFIGURED. AMAPI's "no data" sentinels (*_UNSPECIFIEDandUPDATE_STATUS_UNKNOWN) are omitted from the response instead of being returned.security_update_versionis the host's Android security patch level. It's also folded intoos_version, for exampleAndroid 16 (2026-05-01).
Note:
orbit_version: nullmeans this agent is not a fleetd agentfleet_desktop_version: nullmeans this agent is not a fleetd agent, or this agent is version <=1.23.0 which is not collecting the desktop versionfleet_desktop_version: ""means this agent is a fleetd agent but does not have fleet desktopscripts_enabled: nullmeans this agent is not a fleetd agent, or this agent is version <=1.23.0 which is not collecting the scripts enabled info
Note: Get human-device mapping is deprecated as of Fleet 4.67.0. It is maintained for backwards compatibility. Please use the Get host endpoint to get human-device mapping.
Note:
mdm.enrollment_statusis one of the following:
"On (automatic)": enrolled via Apple's automatic enrollment (ADE), Windows Autopilot, or as a fully managed Android device."On (manual)": enrolled with a manual enrollment profile as a company-owned device."On (personal)": enrolled with a Managed Apple Account (Account-driven User Enrollment) or an Android work profile as a personal (BYOD) device."On (manual - personal)": enrolled with a manual enrollment profile as a personal (BYOD) device."Pending": in Apple Business (AB) or Windows Autopilot, but not yet enrolled to Fleet."Off": not enrolled.null: Fleet has no MDM information for this host.
Note:
mdm.is_personal_enrollmentreports whether the last MDM enrollment Fleet recorded for the host was personal (BYOD). Unlikemdm.enrollment_status, it is not cleared when the host unenrolls, so it staystruefor an unenrolled Android or Apple mobile host. On macOS and Windows, MDM state is re-reported by the agent, which resets the field once the enrollment profile is gone.
Note: For iOS, iPadOS, and Android hosts with
mdm.enrollment_statusset to "On (personal)", hardware_serialand uuidrepresent a temporary enrollment ID. For Android work profile, this is what Google calls an enterprise-specific ID.
Returns the information of the host specified using the hostname, uuid, or hardware_serial as an identifier.
GET /api/v1/fleet/hosts/identifier/:identifier
If you're hitting this endpoint often (e.g. every hour) for a large number of hosts (e.g. 1k+) the best practice is to set the
exclude_softwaretotrueto prevent overloading the Fleet server.
If hostname is specified when there is more than one host with the same hostname, the endpoint returns the first matching host.
In Fleet, hostnames are fully qualified domain names (FQDNs).
hostname(e.g. johns-macbook-air.local) is not the same asdisplay_name(e.g. John's MacBook Air).
Note: GitOps users don't have host read access. For them, this endpoint returns the host's
idand nothing else, rather than an error like Get host does.
| Name | Type | In | Description |
|---|---|---|---|
| identifier | string | path | Required. The host's hostname, uuid, or hardware_serial. |
| exclude_software | boolean | query | If true, the response will not include a list of installed software for the host. |
| exclude_fleet_maintained_policies | boolean | query | If true, will omit Fleet-maintained policies from the policies list. |
GET /api/v1/fleet/hosts/identifier/392547dc-0000-0000-a87a-d701ff75bc65
Status: 200
{
"host": {
"created_at": "2022-02-10T02:29:13Z",
"updated_at": "2022-10-14T17:07:11Z",
"id": 33,
"detail_updated_at": "2022-10-14T17:07:12Z",
"label_updated_at": "2022-10-14T17:07:12Z",
"policy_updated_at": "2022-10-14T17:07:12Z",
"last_enrolled_at": "2022-02-10T02:29:13Z",
"last_mdm_checked_in_at": "2023-02-26T22:33:12Z",
"last_mdm_enrolled_at": "2023-02-26T22:33:12Z",
"mdm_enrollment_hardware_attested": false,
"software_updated_at": "2020-11-05T05:09:44Z",
"seen_time": "2022-10-14T17:45:41Z",
"refetch_requested": false,
"hostname": "23cfc9caacf0",
"uuid": "392547dc-0000-0000-a87a-d701ff75bc65",
"platform": "ubuntu",
"osquery_version": "5.5.1",
"os_version": "Ubuntu 20.04.3 LTS",
"os_update_minimum_version": "15.1",
"os_update_deadline": "2025-07-01",
"patch_deadline_at": null,
"build": "",
"platform_like": "debian",
"code_name": "focal",
"uptime": 20807520000000000,
"memory": 1024360448,
"cpu_type": "x86_64",
"cpu_subtype": "63",
"cpu_brand": "DO-Regular",
"cpu_physical_cores": 1,
"cpu_logical_cores": 1,
"hardware_vendor": "",
"hardware_model": "",
"hardware_marketing_name": "",
"hardware_version": "",
"hardware_serial": "",
"computer_name": "23cfc9caacf0",
"timezone": null,
"public_ip": "",
"primary_ip": "172.27.0.6",
"primary_mac": "02:42:ac:1b:00:06",
"distributed_interval": 10,
"config_tls_refresh": 60,
"logger_tls_period": 10,
"team_id": 2,
"fleet_id": 2,
"team_name": null,
"fleet_name": null,
"gigs_disk_space_available": 19.29,
"percent_disk_space_available": 74,
"gigs_total_disk_space": 192,
"issues": {
"failing_policies_count": 1,
"failing_unhidden_policies_count": 1, // Fleet Premium only
"hidden_policies_count": 0, // Fleet Premium only
"critical_vulnerabilities_count": 2, // Fleet Premium only
"total_issues_count": 3
},
"batteries": [
{
"cycle_count": 999,
"health": "Normal"
}
],
"geolocation": {
"country_iso": "US",
"city_name": "New York",
"geometry": {
"type": "point",
"coordinates": [40.6799, -74.0028]
}
},
"pack_stats": [
{
"pack_id": 1,
"pack_name": "Global",
"type": "global",
"query_stats": [
{
"scheduled_query_name": "Get running processes (with user_name)",
"scheduled_query_id": 49,
"query_name": "Get running processes (with user_name)",
"pack_name": "Global",
"pack_id": 1,
"average_memory": 260000,
"denylisted": false,
"executions": 1,
"interval": 86400,
"last_executed": "2022-10-14T10:00:01Z",
"output_size": 198,
"system_time": 20,
"user_time": 80,
"wall_time": 0
}
]
}
],
"labels": [
{
"created_at": "2021-09-14T05:11:02Z",
"updated_at": "2021-09-14T05:11:02Z",
"id": 12,
"name": "All Linux",
"description": "All Linux distributions",
"query": "SELECT 1 FROM osquery_info WHERE build_platform LIKE '%ubuntu%' OR build_distro LIKE '%centos%';",
"platform": "",
"label_type": "builtin",
"label_membership_type": "dynamic"
}
],
"packs": [
{
"created_at": "2021-09-17T05:28:54Z",
"updated_at": "2021-09-17T05:28:54Z",
"id": 1,
"name": "Global",
"description": "Global pack",
"disabled": false,
"type": "global",
"labels": null,
"label_ids": null,
"hosts": null,
"host_ids": null,
"teams": null,
"fleet": null,
"team_ids": null,
"fleet_ids": null
}
],
"policies": [
{
"id": 142,
"name": "Full disk encryption enabled (macOS)",
"query": "SELECT 1 FROM disk_encryption WHERE user_uuid IS NOT '' AND filevault_status = 'on' LIMIT 1;",
"description": "Checks to make sure that full disk encryption (FileVault) is enabled on macOS devices.",
"author_id": 31,
"author_name": "",
"author_email": "",
"team_id": null,
"fleet_id": null,
"resolution": "To enable full disk encryption, on the failing device, select System Preferences > Security & Privacy > FileVault > Turn On FileVault.",
"platform": "darwin,linux",
"created_at": "2022-09-02T18:52:19Z",
"updated_at": "2022-09-02T18:52:19Z",
"response": "fail",
"critical": false
}
],
"software": [
{
"id": 16923,
"name": "Automat",
"version": "0.8.0",
"source": "python_packages",
"ai_tool": false,
"browser": "",
"extension_for": "",
"generated_cpe": "",
"vulnerabilities": null,
"installed_paths": ["/usr/lib/some_path/"]
}
],
"mdm": {
"encryption_key_available": false,
"enrollment_status": null,
"is_personal_enrollment": false,
"name": "",
"server_url": null,
"device_status": "unlocked",
"pending_action": "lock",
"macos_settings": {
"disk_encryption": null,
"action_required": null
},
"apple_settings": {
"disk_encryption": null,
"action_required": null
},
"macos_setup": {
"bootstrap_package_status": "installed",
"detail": ""
},
"setup_experience": {
"bootstrap_package_status": "installed",
"detail": ""
},
"os_settings": {
"disk_encryption": {
"status": null,
"detail": "",
"action_required": null
}
},
"profiles": [
{
"profile_uuid": "954ec5ea-a334-4825-87b3-937e7e381f24",
"name": "profile1",
"status": "verifying",
"operation_type": "install",
"scope": "device",
"managed_local_account": "",
"detail": "",
"self_service": true
}
]
}
}
}GET /api/v1/fleet/hosts/identifier/392547dc-0000-0000-a87a-d701ff75bc65
Status: 200
{
"host": {
"created_at": "2022-02-10T02:29:13Z",
"updated_at": "2022-10-14T17:07:11Z",
"id": 33,
"detail_updated_at": "2022-10-14T17:07:12Z",
"label_updated_at": "2022-10-14T17:07:12Z",
"policy_updated_at": "2022-10-14T17:07:12Z",
"last_enrolled_at": "2022-02-10T02:29:13Z",
"last_mdm_checked_in_at": "2023-02-26T22:33:12Z",
"last_mdm_enrolled_at": "2023-02-26T22:33:12Z",
"mdm_enrollment_hardware_attested": true,
"software_updated_at": "2020-11-05T05:09:44Z",
"seen_time": "2022-10-14T17:45:41Z",
"refetch_requested": false,
"hostname": "Johns-iPhone",
"uuid": "00008110-001A2B3C4D5E6F78",
"platform": "ios",
"google_device_id": "c3d1a9e2-7b4f-4e8a-9f1d-2a6b8c0e4f12",
"osquery_version": "",
"os_version": "iOS 17.4.1",
"build": "21E236",
"platform_like": "darwin",
"code_name": "",
"uptime": 20807520000000000,
"memory": 6442450944,
"cpu_type": "arm64",
"cpu_subtype": "ARM64E",
"cpu_brand": "Apple A16 Bionic",
"cpu_physical_cores": 6,
"cpu_logical_cores": 6,
"hardware_vendor": "Apple Inc.",
"hardware_model": "iPhone15,2",
"hardware_version": "iPhone 15 Pro",
"hardware_serial": "F2LXX1XXXXXX",
"google_device_id": "c3d1a9e2-7b4f-4e8a-9f1d-2a6b8c0e4f12",
"computer_name": "John's iPhone",
"timezone": null,
"public_ip": "",
"primary_ip": "192.168.1.42",
"primary_mac": "a4:83:e7:12:34:56",
"distributed_interval": 10,
"config_tls_refresh": 60,
"logger_tls_period": 10,
"team_id": 2,
"fleet_id": 2,
"team_name": null,
"fleet_name": null,
"gigs_disk_space_available": 54.3,
"percent_disk_space_available": 43,
"gigs_total_disk_space": 128,
"app_analytics_enabled": true,
"accessibility_settings": {
"bold_text_enabled": false,
"grayscale_enabled": false,
"increase_contrast_enabled": false,
"reduce_motion_enabled": true,
"reduce_transparency_enabled": false,
"text_size": 4,
"touch_accommodations_enabled": false,
"voice_over_enabled": false,
"zoom_enabled": false
},
"awaiting_configuration": false,
"battery_level": 0.82,
"bluetooth_mac": "a4:83:e7:12:34:57",
"cellular_technology": "GSM",
"data_roaming_enabled": false,
"device_properties_attestation": [
"MIIC6zCCAnKgAwIBAgIGAZ+onLUpMAoGCCqGSM49BAMDMFIxLjAsBgNVBAMMJUFwcGxl",
"MIICSTCCAc6gAwIBAgIUcDHgQKbmtGvw4vNNVWqEVNBCXnEwCgYIKoZIzj0EAwMwUTEt"
],
"diagnostic_submission_enabled": true,
"eas_device_identifier": "3E2A1F9C4D7B6E8A2C5D1F0E3B4A7C9D",
"is_cloud_backup_enabled": true,
"is_device_locator_service_enabled": true,
"is_do_not_disturb_in_effect": false,
"is_mdm_lost_mode_enabled": false,
"is_network_tethered": false,
"itunes_store_account_hash": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2",
"itunes_store_account_is_active": true,
"last_cloud_backup_date": "2023-02-25T14:22:10Z",
"mdm_options": {
"activation_lock_allowed_while_supervised": true,
"bootstrap_token_allowed": true,
"prompt_user_to_allow_bootstrap_token_for_authentication": false
},
"model_number": "MNEP3LL/A",
"modem_firmware_version": "2.01.00",
"organization_info": {
"organization_name": "Acme Corp",
"organization_address": "123 Main St, New York, NY 10001",
"organization_phone": "+1-123-456-7890",
"organization_email": "[email protected]",
"organization_magic": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
},
"personal_hotspot_enabled": false,
"push_token": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6",
"service_subscriptions": [
{
"carrier_settings_version": "42.0",
"current_carrier_network": "Verizon",
"current_mcc": "311",
"current_mnc": "480",
"eid": "89049032004008882600890049000003",
"iccid": "89014103211118510720",
"imei": "352099001761481",
"is_data_preferred": true,
"is_roaming": false,
"is_voice_preferred": true,
"label": "Primary",
"label_id": "com.apple.subscriberLabel.primary",
"meid": "35209900176148",
"phone_number": "+1-555-867-5309",
"slot": "CTSubscriptionSlotOne",
"subscriber_carrier_network": "Verizon"
}
],
"supplemental_build_version": "21E236",
"supplemental_os_version_extra": "(a)",
"wifi_mac": "a4:83:e7:12:34:58",
"issues": {
"failing_policies_count": 1,
"failing_unhidden_policies_count": 1, // Fleet Premium only
"hidden_policies_count": 0, // Fleet Premium only
"critical_vulnerabilities_count": 2, // Fleet Premium only
"total_issues_count": 3
},
"batteries": [
{
"cycle_count": 187,
"health": "Normal"
}
],
"geolocation": {
"country_iso": "US",
"city_name": "New York",
"geometry": {
"type": "point",
"coordinates": [40.6799, -74.0028]
}
},
"pack_stats": [
{
"pack_id": 1,
"pack_name": "Global",
"type": "global",
"query_stats": [
{
"scheduled_query_name": "Get running processes (with user_name)",
"scheduled_query_id": 49,
"query_name": "Get running processes (with user_name)",
"pack_name": "Global",
"pack_id": 1,
"average_memory": 260000,
"denylisted": false,
"executions": 1,
"interval": 86400,
"last_executed": "2022-10-14T10:00:01Z",
"output_size": 198,
"system_time": 20,
"user_time": 80,
"wall_time": 0
}
]
}
],
"labels": [
{
"created_at": "2021-09-14T05:11:02Z",
"updated_at": "2021-09-14T05:11:02Z",
"id": 12,
"name": "All iOS",
"description": "All iOS devices",
"query": "SELECT 1 FROM osquery_info WHERE build_platform = 'ios';",
"platform": "ios",
"label_type": "builtin",
"label_membership_type": "dynamic"
}
],
"packs": [
{
"created_at": "2021-09-17T05:28:54Z",
"updated_at": "2021-09-17T05:28:54Z",
"id": 1,
"name": "Global",
"description": "Global pack",
"disabled": false,
"type": "global",
"labels": null,
"label_ids": null,
"hosts": null,
"host_ids": null,
"teams": null,
"fleet": null,
"team_ids": null,
"fleet_ids": null
}
],
"policies": [
{
"id": 142,
"name": "Passcode required (iOS)",
"query": "SELECT 1 FROM managed_policies WHERE domain = 'com.apple.mobiledevice.passwordpolicy' AND name = 'forcePIN' AND value = 1 LIMIT 1;",
"description": "Checks to make sure that a passcode is required on iOS devices.",
"author_id": 31,
"author_name": "",
"author_email": "",
"team_id": null,
"fleet_id": null,
"resolution": "To enable a passcode, on the failing device, go to Settings > Face ID & Passcode > Turn Passcode On.",
"platform": "ios",
"created_at": "2022-09-02T18:52:19Z",
"updated_at": "2022-09-02T18:52:19Z",
"response": "fail",
"critical": false
}
],
"software": [
{
"id": 16923,
"name": "Gmail",
"version": "6.0.240414",
"source": "ios_apps",
"ai_tool": false,
"browser": "",
"extension_for": "",
"generated_cpe": "",
"vulnerabilities": null,
"installed_paths": ["/var/containers/Bundle/Application/"]
}
],
"mdm": {
"encryption_key_available": false,
"enrollment_status": "On (automatic)",
"name": "Fleet",
"server_url": "https://acme.com/mdm/apple/mdm",
"device_status": "unlocked",
"pending_action": "",
"macos_settings": {
"disk_encryption": null,
"action_required": null
},
"apple_settings": {
"disk_encryption": null,
"action_required": null
},
"macos_setup": {
"bootstrap_package_status": "installed",
"detail": ""
},
"setup_experience": {
"bootstrap_package_status": "installed",
"detail": ""
},
"os_settings": {
"disk_encryption": {
"status": null,
"detail": ""
}
},
"profiles": [
{
"profile_uuid": "954ec5ea-a334-4825-87b3-937e7e381f24",
"name": "iOS Restrictions Profile",
"status": "verifying",
"operation_type": "install",
"scope": "device",
"managed_local_account": "",
"detail": ""
}
]
}
}
}GET /api/v1/fleet/hosts/identifier/392547dc-0000-0000-a87a-d701ff75bc65
Status: 200
{
"host": {
"created_at": "2021-08-19T02:02:22Z",
"updated_at": "2021-08-19T21:14:58Z",
"id": 1,
"detail_updated_at": "2021-08-19T21:07:53Z",
"last_restarted_at": "0001-01-01T00:00:00Z",
"software_updated_at": "2020-11-05T05:09:44Z",
"label_updated_at": "2021-08-19T21:07:53Z",
"policy_updated_at": "2023-06-26T18:33:15Z",
"last_enrolled_at": "2021-08-19T02:02:22Z",
"last_mdm_checked_in_at": "2023-02-26T22:33:12Z",
"last_mdm_enrolled_at": "2023-02-26T22:33:12Z",
"mdm_enrollment_hardware_attested": false,
"seen_time": "2021-08-19T21:14:58Z",
"refetch_requested": false,
"hostname": "Anna Chao's Google Pixel 9",
"uuid": "9ec4265a507780e710ce2a1f66587a35ac95796e9e8835112f98f7dd3265ba67",
"platform": "android",
"osquery_version": "",
"orbit_version": null,
"fleet_desktop_version": null,
"scripts_enabled": null,
"os_version": "Android 16 (2026-05-01)",
"os_update_minimum_version": null,
"os_update_deadline": null,
"build": "",
"platform_like": "",
"code_name": "",
"uptime": 0,
"memory": 8589934592,
"cpu_type": "caiman",
"cpu_subtype": "",
"cpu_brand": "",
"cpu_physical_cores": 0,
"cpu_logical_cores": 0,
"hardware_vendor": "google",
"hardware_model": "Google Pixel 9",
"hardware_version": "",
"hardware_serial": "3B241102E5",
"google_device_id": "8f2e6b1c-4d3a-4c9e-b7a5-1e0f9d2c3b4a",
"computer_name": "Anna Chao's Google Pixel 9",
"timezone": null,
"display_name": "Anna Chao's Google Pixel 9",
"public_ip": "",
"primary_ip": "",
"primary_mac": "",
"distributed_interval": 0,
"config_tls_refresh": 0,
"logger_tls_period": 0,
"team_id": null,
"fleet_id": null,
"pack_stats": null,
"team_name": null,
"fleet_name": null,
"gigs_disk_space_available": 92.4,
"percent_disk_space_available": 72,
"gigs_total_disk_space": 128,
"adb_enabled": false,
"api_level": 36,
"bootloader_version": "caiman-1.0-13984080",
"device_kernel_version": "6.1.124-android16-11-g8b6a1e0f4f9a-ab13984080",
"encryption_type": "ACTIVE",
"imei": "351756051523999",
"manufacturer": "Google",
"passcode_protected": true,
"play_protect_enabled": true,
"security_posture": "AT_RISK",
"security_posture_details": [
{
"security_risk": "UNKNOWN_OS",
"advice": [
"This device is running an unrecognized version of Android. Install a certified build from the device manufacturer."
]
}
],
"security_update_version": "2026-05-01",
"system_update_status": "UP_TO_DATE",
"telephony_infos": [
{
"phone_number": "+15551234567",
"carrier_name": "Verizon",
"iccid": "89014103211118510720",
"activation_state": "ACTIVATED",
"config_mode": "ADMIN_CONFIGURED"
}
],
"status": "online",
"display_text": "Anna Chao's Google Pixel 9",
"issues": {
"failing_policies_count": 0,
"failing_unhidden_policies_count": 0, // Available in Fleet Premium
"hidden_policies_count": 0, // Available in Fleet Premium
"critical_vulnerabilities_count": 0, // Available in Fleet Premium
"total_issues_count": 0
},
"batteries": [],
"end_users": [
{
"idp_info_updated_at": "2025-03-20T02:02:17Z",
"idp_id": "f26f8649-1e25-42c5-be71-1b1e6de56d3d",
"idp_username": "[email protected]",
"idp_full_name": "Anna Chao",
"idp_department": "Product",
"idp_groups": [
"Product",
"Designers"
],
"other_emails": []
}
],
"labels": [
{
"created_at": "2021-08-19T02:02:17Z",
"updated_at": "2021-08-19T02:02:17Z",
"id": 6,
"name": "All Hosts",
"description": "All hosts which have enrolled in Fleet",
"query": "SELECT 1;",
"platform": "",
"label_type": "builtin",
"label_membership_type": "dynamic"
},
{
"created_at": "2021-08-19T02:02:17Z",
"updated_at": "2021-08-19T02:02:17Z",
"id": 14,
"name": "Android",
"description": "All Android hosts",
"query": "",
"platform": "android",
"label_type": "builtin",
"label_membership_type": "manual"
}
],
"packs": [],
"policies": [],
"software": [
{
"id": 411,
"name": "Gmail",
"version": "2026.05.04.123456789",
"source": "android_apps",
"ai_tool": false,
"application_id": "com.google.android.gm",
"generated_cpe": "",
"vulnerabilities": null,
"installed_paths": []
},
{
"id": 412,
"name": "Slack",
"version": "26.05.10.0",
"source": "android_apps",
"ai_tool": false,
"application_id": "com.Slack",
"generated_cpe": "",
"vulnerabilities": null,
"installed_paths": []
}
],
"mdm": {
"encryption_key_available": false,
"enrollment_status": "On (automatic)",
"is_personal_enrollment": false,
"name": "Fleet",
"connected_to_fleet": true,
"server_url": "https://acme.com",
"device_status": "unlocked",
"pending_action": "",
"os_settings": {
"disk_encryption": {
"status": null,
"detail": ""
}
},
"profiles": [
{
"profile_uuid": "g954ec5ea-a334-4825-87b3-937e7e381f24",
"name": "Android Wi-Fi Profile",
"status": "verified",
"operation_type": "install",
"scope": null,
"managed_local_account": null,
"detail": ""
}
]
}
}
}Note: the response above assumes a GeoIP database is configured, otherwise the
geolocationobject won't be included.
Note:
disk_encryption_enabledis omitted when Fleet doesn't know the host's disk encryption status, such as when the host hasn't reported it yet. It's also omitted for Linux hosts that report their root volume as unencrypted, because Fleet can't confirm that a Linux host's disk is unencrypted.
Note:
patch_deadline_atis the next time Fleet patches apps on the host at the fleet's patch deadline. It'snullwhen no patch is waiting for a deadline, and for hosts that aren't macOS.
Note:
installed_pathsmay be blank depending on installer package. For example, on Linux, RPM-installed packages do not provide installed path information.
browser and extension_for fields are included when set and when empty. extension_for will show the browser or Visual Studio Code fork associated with the extension, allowing for differentiation between e.g. an extension installed on Visual Studio Code and one installed on Cursor. browser is deprecated, and only shows this information for browser plugins.
issues.failing_policies_count counts all failing policies, including those marked hidden. issues.failing_unhidden_policies_count (Available in Fleet Premium) counts only failing policies that aren't hidden. issues.hidden_policies_count (Available in Fleet Premium) counts all policies marked hidden, whether they're passing or failing.
release is included when set. For rpm_packages, it's the package release (for example, 1.212.el6). For go_binaries, it's the version of the Go toolchain the binary was built with (for example, go1.26.1). Fleet uses it to detect Go standard library vulnerabilities, so the same binary version built with two toolchains is listed as two versions. generated_cpe is empty for Go binaries. Their vulnerabilities come from the Go vulnerability database instead of NVD.
Note:
- Currently, the following are supported only for iOS/iPadOS:
accessibility_settings,app_analytics_enabled,awaiting_configuration,battery_level,bluetooth_mac,cellular_technology,data_roaming_enabled,device_properties_attestation,diagnostic_submission_enabled,eas_device_identifier,is_cloud_backup_enabled,is_device_locator_service_enabled,is_do_not_disturb_in_effect,is_mdm_lost_mode_enabled,is_network_tethered,itunes_store_account_hash,itunes_store_account_is_active,last_cloud_backup_date,mdm_options,model_number,modem_firmware_version,organization_info,personal_hotspot_enabled,push_token,service_subscriptions,supplemental_build_version,supplemental_os_version_extra,udid, andwifi_mac.- These iOS/iPadOS vitals are collected via Apple's
DeviceInformationMDM command. A property the device doesn't report is omitted from the response rather than returned asnull. The exception ismdm_options, which is returned as an empty object when the device reports it with nothing set.cellular_technologyis one ofNone,GSM,CDMA, orGSM and CDMA. This will beunknownif Apple adds a value in the future that Fleet doesn't recognize.device_properties_attestationis an array of base64-encoded DER certificates forming a chain, leaf first. The chain is anchored to Apple's Enterprise Attestation Root CA, which is not itself included in the array.- Currently, the following are supported only for Android:
adb_enabled,api_level,bootloader_version,device_kernel_version,encryption_type,imei,manufacturer,meid,passcode_protected,play_protect_enabled,security_posture,security_posture_details,security_update_version,system_update_status, andtelephony_infos.- These Android vitals are collected from the status reports Fleet receives from the Android Management API (AMAPI). A vital the device doesn't report is omitted from the response rather than returned as
null. A host that hasn't sent a status report yet returns none of them, and a device whose Android version doesn't report a given vital omits just that one.telephony_infos,imei, andmeidare never returned for a personal (BYOD) enrollment. AMAPI only reports them for fully managed devices in the first place, and Fleet gates the response on its own enrollment record so they stay hidden after a BYOD host unenrolls.telephony_infosholds one entry per SIM card, so a dual-SIM host reports more than one, and it requires Android 6 or above. Itsactivation_stateandconfig_modedescribe eSIMs on Android 15 and above only. A host reports eitherimeiormeiddepending on its radio, never both.security_posture_details[].adviceholds AMAPI's default, non-localized admin-facing message for each risk. Fleet has no device locale to select a localized variant with, so the localized messages aren't returned.encryption_type,security_posture,system_update_status,security_posture_details[].security_risk,telephony_infos[].activation_state, andtelephony_infos[].config_modecarry AMAPI's raw enum values, such asACTIVE,AT_RISK,UP_TO_DATE,UNKNOWN_OS,ACTIVATED, andADMIN_CONFIGURED. AMAPI's "no data" sentinels (*_UNSPECIFIEDandUPDATE_STATUS_UNKNOWN) are omitted from the response instead of being returned.security_update_versionis the host's Android security patch level. It's also folded intoos_version, for exampleAndroid 16 (2026-05-01).
Note:
google_device_idis only returned for iOS, iPadOS, and Android hosts. It's""when the host isn't registered with a device in Google. With Google conditional access connected, Fleet sets it when the end user signs in to Google (iOS and iPadOS) and automatically after enrollment (Android). You can also set it with Update host's Google device ID.
Returns a subset of information about the host specified by token. To get all information about a host, use the "Get host" endpoint.
GET /api/v1/fleet/device/:token
If you're hitting this endpoint often (e.g. every hour) for a large number of hosts (e.g. 1k+) the best practice is to set the
exclude_softwaretotrueto prevent overloading the Fleet server.
This is the API route used by the My device page in Fleet Desktop to display information about the host to the end user.
On a Windows host whose fleet requires a BitLocker startup PIN, mdm.os_settings.disk_encryption carries two extra fields, and only on this endpoint:
fleetd_can_set_pin: whether the host's fleetd is new enough to be handed a PIN. When it's false, the end user has to create the PIN through Windows' Manage BitLocker instead.pin_request: the end user's most recent BitLocker PIN submission, as {"status": "pending" | "delivered" | "set" | "failed", "error": ""}. error carries the agent's reason when the status is failed. The field is absent when there's no submission.This endpoint doesn't require API token authentication. Authentication on macOS, Windows, and Linux is enforced by generating a random UUID that rotates hourly. For iOS/iPadOS, this is the host's hardware UUID.
For iOS/iPadOS hosts, Fleet omits identifying details from the response: uuid, hardware_serial, primary_mac, hostname, computer_name, display_name, display_text, team_name, labels, and MDM profile data all come back empty, and the license object's organization and device_count are stripped.
| Name | Type | In | Description |
|---|---|---|---|
| token | string | path | The host's Fleet Desktop token. For macOS, Windows, and Linux, this is a random UUID that rotates hourly. For iOS and iPadOS, this is the host's hardware UUID. |
| exclude_software | boolean | query | If true, the response will not include a list of installed software for the host. |
| include_hidden_policies | boolean | query | Available in Fleet Premium. If true, the response's policies list will include policies marked hidden. Hidden policies are omitted by default. |
GET /api/v1/fleet/device/abcdef012456789
Status: 200
{
"host": {
"created_at": "2021-08-19T02:02:22Z",
"updated_at": "2021-08-19T21:14:58Z",
"id": 1,
"detail_updated_at": "2021-08-19T21:07:53Z",
"label_updated_at": "2021-08-19T21:07:53Z",
"last_enrolled_at": "2021-08-19T02:02:22Z",
"last_mdm_checked_in_at": "2023-02-26T22:33:12Z",
"last_mdm_enrolled_at": "2023-02-26T22:33:12Z",
"mdm_enrollment_hardware_attested": false,
"seen_time": "2021-08-19T21:14:58Z",
"refetch_requested": false,
"hostname": "Annas-MacBook-Pro.local",
"uuid": "309a4b7d-0000-0000-8e7f-26ae0815ede8",
"platform": "darwin",
"osquery_version": "5.15.0",
"os_version": "macOS 15.2",
"os_update_minimum_version": "15.1",
"os_update_deadline": "2025-07-01",
"build": "24C101",
"platform_like": "darwin",
"code_name": "",
"uptime": 210671000000000,
"memory": 16788398080,
"cpu_type": "arm64e",
"cpu_subtype": "ARM64E",
"cpu_brand": "Apple M1",
"cpu_physical_cores": 8,
"cpu_logical_cores": 8,
"hardware_vendor": "Apple Inc.",
"hardware_model": "MacBookPro17,1",
"hardware_marketing_name": "MacBook Pro (13-inch, M1, 2020)",
"hardware_version": "",
"hardware_serial": "",
"computer_name": "Anna's MacBook Pro",
"timezone": null,
"display_name": "Anna's MacBook Pro",
"public_ip": "123.45.678.910",
"primary_ip": "192.12.345.678",
"primary_mac": "36:34:a5:6b:7b:5c",
"distributed_interval": 10,
"config_tls_refresh": 10,
"logger_tls_period": 10,
"team_id": null,
"fleet_id": null,
"pack_stats": null,
"team_name": null,
"fleet_name": null,
"additional": {},
"gigs_disk_space_available": 174.98,
"percent_disk_space_available": 71,
"gigs_total_disk_space": 246,
"disk_encryption_enabled": true,
"dep_assigned_to_fleet": false,
"status": "online",
"display_text": "Annas-MacBook-Pro.local",
"self_service": true,
"google_conditional_access_sign_in_required": false,
"org_logo_url_dark_mode": "https://example.com/logo.png",
"org_logo_url_light_mode": "https://example.com/logo-light.png",
"org_logo_url": "https://example.com/logo.png",
"org_logo_url_light_background": "https://example.com/logo-light.png",
"conditional_access_bypassed": false,
"issues": {
"failing_policies_count": 2,
"failing_unhidden_policies_count": 1, // Available in Fleet Premium
"hidden_policies_count": 1, // Available in Fleet Premium
"total_issues_count": 2
},
"license": {
"tier": "free",
"expiration": "2031-01-01T00:00:00Z"
},
"global_config": {
"mdm": {
"enabled_and_configured": false,
"only_allow_apple_business_enrollment": false
}
},
"batteries": [
{
"cycle_count": 999,
"health": "Good"
}
],
"users": [
{
"uid": 0,
"username": "root",
"type": "",
"groupname": "root",
"shell": "/bin/sh"
},
{
"uid": 1,
"username": "annachao",
"type": "",
"groupname": "staff",
"shell": "/bin/zsh"
}
],
"labels": [
{
"created_at": "2021-08-19T02:02:17Z",
"updated_at": "2021-08-19T02:02:17Z",
"id": 6,
"name": "All Hosts",
"description": "All hosts which have enrolled in Fleet",
"query": "SELECT 1;",
"platform": "",
"label_type": "builtin",
"label_membership_type": "dynamic"
},
{
"created_at": "2021-08-19T02:02:17Z",
"updated_at": "2021-08-19T02:02:17Z",
"id": 9,
"name": "macOS",
"description": "All macOS hosts",
"query": "select 1 from os_version where platform = 'darwin';",
"platform": "",
"label_type": "builtin",
"label_membership_type": "dynamic"
},
{
"created_at": "2021-08-19T02:02:17Z",
"updated_at": "2021-08-19T02:02:17Z",
"id": 12,
"name": "Hosts with Chrome installed",
"description": "",
"query": "SELECT * FROM apps WHERE name LIKE \"%Chrome%\"",
"platform": "",
"label_type": "regular",
"label_membership_type": "dynamic"
}
],
"software": [
{
"id": 321,
"name": "SomeApp.app",
"version": "1.0",
"source": "apps",
"ai_tool": false,
"browser": "",
"extension_for": "",
"bundle_identifier": "com.some.app",
"last_opened_at": "2021-08-18T21:14:00Z",
"generated_cpe": "",
"vulnerabilities": null
}
],
"packs": [],
"mdm": {
"encryption_key_available": true,
"enrollment_status": "On (manual)",
"is_personal_enrollment": false,
"name": "Fleet",
"connected_to_fleet": true,
"server_url": "https://acme.com/mdm/apple/mdm",
"bootstrap_token_escrowed": true,
"macos_settings": {
"disk_encryption": "verified",
"action_required": null
},
"apple_settings": {
"disk_encryption": "verified",
"action_required": null
},
"macos_setup": {
"bootstrap_package_status": "installed",
"detail": "",
"bootstrap_package_name": "test.pkg"
},
"setup_experience": {
"bootstrap_package_status": "installed",
"detail": "",
"bootstrap_package_name": "test.pkg"
},
"os_settings": {
"disk_encryption": {
"status": "verified",
"detail": "",
"action_required": null,
"fleetd_can_set_pin": true,
"pin_request": {
"status": "set",
"error": ""
}
}
},
"profiles": [
{
"profile_uuid": "954ec5ea-a334-4825-87b3-937e7e381f24",
"name": "profile1",
"status": "verifying",
"operation_type": "install",
"scope": "device",
"managed_local_account": "",
"detail": "",
"self_service": true,
"hidden": false
},
{
"profile_uuid": "954ec5ea-a334-4825-87b3-937e7e385678",
"name": "profile3",
"status": null,
"operation_type": "",
"scope": "device",
"managed_local_account": "",
"detail": "",
"self_service": true,
"hidden": false
}
]
}
}
}A profile with "status": null is a self-service profile the host can install but hasn't yet.
browser and extension_for fields are included when set and when empty. extension_for will show the browser or Visual Studio Code fork associated with the extension, allowing for differentiation between e.g. an extension installed on Visual Studio Code and one installed on Cursor. browser is deprecated, and only shows this information for browser plugins.
issues.failing_policies_count counts all failing policies, including those marked hidden. issues.failing_unhidden_policies_count (Available in Fleet Premium) counts only failing policies that aren't hidden. issues.hidden_policies_count (Available in Fleet Premium) counts all policies marked hidden, whether they're passing or failing, and doesn't depend on include_hidden_policies.
release is included when set. For rpm_packages, it's the package release (for example, 1.212.el6). For go_binaries, it's the version of the Go toolchain the binary was built with (for example, go1.26.1). Fleet uses it to detect Go standard library vulnerabilities, so the same binary version built with two toolchains is listed as two versions. generated_cpe is empty for Go binaries. Their vulnerabilities come from the Go vulnerability database instead of NVD.
global_config.mdm.enabled_and_configuredonly represents Apple MDM, and will return false if Apple MDM is not configured even if other platforms have MDM enabled and configured.
google_conditional_access_sign_in_requiredistruewhen the host is a company-owned iOS or iPadOS host, Google conditional access is connected, and the host isn't registered with Google yet. The Self-service web clip then starts the end user's Google sign-in. It's alwaysfalsefor other hosts.
Note: Android hosts can't be reached through this endpoint. They don't run Fleet Desktop, so they never get a token, and certificate authentication is limited to iOS and iPadOS. To read an Android host's vitals, use "Get host" or "Get host by identifier".
Deletes the specified host from Fleet. Note that a deleted host will fail authentication with the previous node key, and in most osquery configurations will attempt to re-enroll automatically. If the host still has a valid enroll secret, it will re-enroll successfully.
DELETE /api/v1/fleet/hosts/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The host's id. |
DELETE /api/v1/fleet/hosts/121
Status: 200
If the host is registered with Google conditional access, Fleet also unmarks it as managed in Google.
Flags the host details, labels and policies to be refetched the next time the host checks in. Note that we cannot be certain when the host will actually check in. Further requests to the host APIs will indicate that the refetch has been requested through the refetch_requested field on the host object.
Android hosts can't be refetched on demand because they sync data automatically when it changes. This endpoint and Refetch host by Fleet Desktop token return a 400 for Android hosts.
POST /api/v1/fleet/hosts/:id/refetch
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The host's id. |
POST /api/v1/fleet/hosts/121/refetch
Status: 200
Same as Refetch host except with the Fleet Desktop token instead the host ID.
POST /api/v1/fleet/device/:token/refetch
| Name | Type | In | Description |
|---|---|---|---|
| token | string | path | Required. The host's Fleet Desktop token. |
POST /api/v1/fleet/device/6d3e95ca-6783-4d0d-93b8-a5ffdb207867/refetch
Status: 200
Available in Fleet Premium
POST /api/v1/fleet/hosts/transfer
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | integer | body | Required. The ID of the fleet you'd like to assign the host(s) to. |
| hosts | array | body | Required. A list of host IDs. |
POST /api/v1/fleet/hosts/transfer
{
"team_id": 1,
"fleet_id": 1,
"hosts": [3, 2, 4, 6, 1, 5, 7]
}Status: 200
Available in Fleet Premium
POST /api/v1/fleet/hosts/transfer/filter
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | integer | body | Required. The ID of the fleet you'd like to assign the host(s) to. |
| filters | object | body | Required. See filters |
| Name | Type | Description |
|---|---|---|
| query | string | Search query keywords. Searchable fields include hostname, hardware_serial, uuid, and ipv4. |
| status | string | Host status. Can either be new, online, offline, mia or missing. |
| label_id | number | ID of a label to filter by. |
| fleet_id | number | ID of the fleet to filter by. Use 0 to filter by "Unassigned" hosts. |
POST /api/v1/fleet/hosts/transfer/filter
{
"team_id": 1,
"fleet_id": 1,
"filters": {
"status": "online",
"team_id": 2,
"fleet_id": 2,
}
}Status: 200
Turns off MDM for the specified macOS, iOS, iPadOS, or Android host.
On BYOD Android (work profile), Fleet sends a wipe command via the Android Management API. Unlike the delete device command in the Android Management API, the wipe command does not expire after 30 days. That way, Fleet makes sure that the work profile is wiped even if the host is offline for more than 30 days. Until the host comes online and removes the work profile, the Get host endpoint returns
mdm.pending_actionasunenroll, and another request to this endpoint returns a409error.
DELETE /api/v1/fleet/hosts/:id/mdm
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The host's ID in Fleet. |
DELETE /api/v1/fleet/hosts/42/mdm
Status: 204
If the host is registered with Google conditional access, Fleet also unmarks it as managed in Google.
Delete hosts selected by filter or ids.
POST /api/v1/fleet/hosts/delete
| Name | Type | In | Description |
|---|---|---|---|
| ids | array | body | A list of the host IDs you'd like to delete. Required if filters not specified. Only one of ids or filters may be included in the request. |
| filters | object | body | See filters. Required if ids not specified. Only one of ids or filters may be included in the request. |
| Name | Type | Description |
|---|---|---|
| query | string | Search query keywords. Searchable fields include hostname, hardware_serial, uuid, and ipv4. |
| status | string | Host status. Can either be new, online, offline, mia or missing. |
| label_id | number | ID of a label to filter by. |
| fleet_id | number | ID of the fleet to filter by. Use 0 to filter by "Unassigned" hosts. |
Request (using ids):
{
"ids": [1]
}Request (using filters):
{
"filters": {
"status": "online",
"label_id": 1,
"team_id": 1,
"fleet_id": 1,
"query": "abc"
}
}Request (filters is specified and empty, to delete all hosts):
{
"filters": {}
}POST /api/v1/fleet/hosts/delete
{
"filters": {
"status": "online",
"team_id": 1,
"fleet_id": 1
}
}Status: 200
If a host is registered with Google conditional access, Fleet also unmarks it as managed in Google.
PUT /api/v1/fleet/hosts/:id/device_mapping
Updates the email for the data source in the human-device mapping. This source can only have one email.
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The host's id. |
| string | body | Required. The custom email. | |
| source | string | body | The data source to override. Either "custom" or "idp". If "idp", this will update the end user's "idp_username". (Defaults to "custom".) |
PUT /api/v1/fleet/hosts/1/device_mapping
{
"email": "[email protected]"
}Status: 200
{
"host_id": 1,
"device_mapping": [
{
"email": "[email protected]",
"source": "mdm_idp_accounts"
},
{
"email": "[email protected]",
"source": "google_chrome_profiles"
},
{
"email": "[email protected]",
"source": "custom"
}
]
}Available in Fleet Premium.
PUT /api/v1/fleet/hosts/:id/google_device_id
Registers a company-owned iOS, iPadOS, or Android host with its device in Google and marks the device as managed, for conditional access with Google. Fleet marks every Google Workspace account on the device.
You usually don't need this endpoint: Fleet registers hosts when the end user signs in to Google (iOS and iPadOS) and automatically after enrollment (Android).
Requires Google to be connected and a host with the On (automatic) MDM status. Setting the same ID again does nothing. Fleet refuses a different ID than the one already saved, and a device that's registered to another host. Once set, the ID stays until you remove it with Delete host's Google device ID, or the host is deleted or unenrolled.
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The host's id. |
| google_device_id | string | body | Required. The host's device ID in Google. Can't be empty. |
PUT /api/v1/fleet/hosts/1/google_device_id
{
"google_device_id": "c3d1a9e2-7b4f-4e8a-9f1d-2a6b8c0e4f12"
}Status: 200
{
"host_id": 1,
"google_device_id": "c3d1a9e2-7b4f-4e8a-9f1d-2a6b8c0e4f12"
}Status: 409
{
"message": "Validation Failed",
"errors": [
{
"name": "google_device_id",
"reason": "This host already has a different Google device ID."
}
]
}Status: 409
{
"message": "Validation Failed",
"errors": [
{
"name": "google_device_id",
"reason": "This Google device ID is already used by another host."
}
]
}Status: 409
{
"message": "Validation Failed",
"errors": [
{
"name": "google_device_id",
"reason": "This Google device is already registered to another host."
}
]
}Status: 422
{
"message": "Validation Failed",
"errors": [
{
"name": "google_device_id",
"reason": "Google device ID is only supported on iOS, iPadOS, and Android hosts."
}
]
}Status: 422
{
"message": "Validation Failed",
"errors": [
{
"name": "google_device_id",
"reason": "Google conditional access isn't connected. Connect it in Settings > Integrations > Conditional access."
}
]
}Status: 422
{
"message": "Validation Failed",
"errors": [
{
"name": "google_device_id",
"reason": "Google device ID is only supported on company-owned hosts (MDM status: On (automatic))."
}
]
}Also returned, with the reason "This device has no users in Google.", when no Google Workspace account is signed in on the device.
Status: 422
{
"message": "Validation Failed",
"errors": [
{
"name": "google_device_id",
"reason": "Google has no device with this ID."
}
]
}Only checked for Android hosts.
Status: 422
{
"message": "Validation Failed",
"errors": [
{
"name": "google_device_id",
"reason": "Google device ID doesn't match this host's device in Google."
}
]
}Nothing is saved. Try again.
Status: 502
Available in Fleet Premium.
DELETE /api/v1/fleet/hosts/:id/google_device_id
Removes the host's device ID in Google. Fleet unmarks the host as managed in Google within 5 minutes. If the host has no Google device ID, this does nothing.
Removing the ID resets the host. A company-owned iOS or iPadOS host registers again the next time the end user opens Self-service. A company-owned Android host that's still enrolled is registered again automatically. Use it after a device is wiped, since Google gives it a new device ID.
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The host's id. |
DELETE /api/v1/fleet/hosts/1/google_device_id
Status: 204
Retrieves information about a single host's device health.
This report includes a subset of host vitals, and simplified policy and vulnerable software information. Data is cached to preserve performance. To get all up-to-date information about a host, use the "Get host" endpoint.
GET /api/v1/fleet/hosts/:id/health
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The host's id. |
GET /api/v1/fleet/hosts/1/health
Status: 200
{
"host_id": 1,
"health": {
"updated_at": "2023-09-16T18:52:19Z",
"os_version": "CentOS Linux 8.3.2011",
"disk_encryption_enabled": true,
"failing_policies_count": 1,
"failing_critical_policies_count": 1, // Fleet Premium only
"failing_policies": [
{
"id": 123,
"name": "Google Chrome is up to date",
"critical": true, // Fleet Premium only
"resolution": "Follow the Update Google Chrome instructions here: https://support.google.com/chrome/answer/95414?sjid=6534253818042437614-NA"
}
],
"vulnerable_software": [
{
"id": 321,
"name": "Firefox.app",
"version": "116.0.3"
}
]
}
}Note:
disk_encryption_enabledis omitted when Fleet doesn't know the host's disk encryption status, such as when the host hasn't reported it yet. It's also omitted for Linux hosts that report their root volume as unencrypted, because Fleet can't confirm that a Linux host's disk is unencrypted.
Retrieves the end user url for the host's My device page.
GET /api/v1/fleet/hosts/:id/device_url
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The host's id. |
GET /api/v1/fleet/hosts/1/device_url
Status: 200
{
"host_id": 1,
"device_url": "example.com/device/device_id"
}Currently supports Windows and macOS.
Retrieves a host's MDM enrollment status and MDM server URL.
If the host exists but is not enrolled to an MDM server, then this API returns null.
GET /api/v1/fleet/hosts/:id/mdm
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required The id of the host to get the details for |
GET /api/v1/fleet/hosts/32/mdm
Status: 200
{
"enrollment_status": "On (automatic)",
"server_url": "some.mdm.com",
"name": "Some MDM",
"id": 3
}Currently supports Windows and macOS.
Retrieves MDM enrollment summary. Windows servers are excluded from the aggregated data.
GET /api/v1/fleet/hosts/summary/mdm
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | integer | query | Available in Fleet Premium. Filter by fleet. |
| platform | string | query | Filter by platform ("windows" or "darwin") |
A fleet_id of 0 returns the statistics for hosts that are "Unassigned". A null or missing fleet_id returns statistics for all hosts on all fleets.
GET /api/v1/fleet/hosts/summary/mdm?fleet_id=1&platform=windows
Status: 200
{
"counts_updated_at": "2021-03-21T12:32:44Z",
"mobile_device_management_enrollment_status": {
"enrolled_manual_hosts_count": 10,
"enrolled_automated_hosts_count": 200,
"enrolled_personal_hosts_count": 30,
"enrolled_manual_personal_hosts_count": 5,
"unenrolled_hosts_count": 0,
"hosts_count": 245
},
"mobile_device_management_solution": [
{
"id": 2,
"name": "Solution1",
"server_url": "solution1.com",
"hosts_count": 1
},
{
"id": 3,
"name": "Solution2",
"server_url": "solution2.com",
"hosts_count": 1
}
]
}Retrieves a host's MDM enrollment status, MDM server URL, and Munki version.
GET /api/v1/fleet/hosts/:id/macadmins
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required The id of the host to get the details for |
GET /api/v1/fleet/hosts/32/macadmins
Status: 200
{
"macadmins": {
"munki": {
"version": "1.2.3"
},
"munki_issues": [
{
"id": 1,
"name": "Could not retrieve managed install primary manifest",
"type": "error",
"created_at": "2022-08-01T05:09:44Z"
},
{
"id": 2,
"name": "Could not process item Figma for optional install. No pkginfo found in catalogs: release",
"type": "warning",
"created_at": "2022-08-01T05:09:44Z"
}
],
"mobile_device_management": {
"enrollment_status": "On (automatic)",
"server_url": "http://some.url/mdm",
"name": "MDM Vendor Name",
"id": 999
}
}
}Currently supported only on macOS.
Retrieves MDM enrollment status and Munki versions, aggregated across all hosts.
GET /api/v1/fleet/macadmins
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | integer | query | Available in Fleet Premium. Filters the aggregate host information to only include hosts in the specified fleet. |
A fleet_id of 0 returns the statistics for hosts that are "Unassigned". A null or missing fleet_id returns statistics for all hosts on all fleets.
GET /api/v1/fleet/macadmins
Status: 200
{
"macadmins": {
"counts_updated_at": "2021-03-21T12:32:44Z",
"munki_versions": [
{
"version": "5.5",
"hosts_count": 8360
},
{
"version": "5.4",
"hosts_count": 1700
},
{
"version": "5.3",
"hosts_count": 400
},
{
"version": "5.2.3",
"hosts_count": 112
},
{
"version": "5.2.2",
"hosts_count": 50
}
],
"munki_issues": [
{
"id": 1,
"name": "Could not retrieve managed install primary manifest",
"type": "error",
"hosts_count": 2851
},
{
"id": 2,
"name": "Could not process item Figma for optional install. No pkginfo found in catalogs: release",
"type": "warning",
"hosts_count": 1983
}
],
"mobile_device_management_enrollment_status": {
"enrolled_manual_hosts_count": 124,
"enrolled_automated_hosts_count": 124,
"enrolled_personal_hosts_count": 30,
"enrolled_manual_personal_hosts_count": 5,
"unenrolled_hosts_count": 112
},
"mobile_device_management_solution": [
{
"id": 1,
"name": "SimpleMDM",
"hosts_count": 8360,
"server_url": "https://a.simplemdm.com/mdm"
},
{
"id": 2,
"name": "Intune",
"hosts_count": 1700,
"server_url": "https://enrollment.manage.microsoft.com"
}
]
}
}GET /api/v1/fleet/hosts/:id/software
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The host's ID. |
| query | string | query | Search query keywords. Searchable fields include name. |
| available_for_install | boolean | query | If true or 1, only list software that is available for install (added by the user). Default is false. |
| self_service | boolean | query | If true or 1, only lists self-service software. Default is false. |
| vulnerable | boolean | query | If true or 1, only list software that have vulnerabilities. Default is false. |
| page | integer | query | Page number of the results to fetch. |
| per_page | integer | query | Results per page. |
| order_key | string | query | What to order results by. Options include "name". Default is "name". |
| order_direction | string | query | Requires order_key. The direction of the order given the order key. Options include "asc" and "desc". Default is "asc". |
| min_cvss_score | integer | query | Available in Fleet Premium. Filters to include only software with vulnerabilities that have a CVSS version 3.x base score higher than the specified value. |
| max_cvss_score | integer | query | Available in Fleet Premium. Filters to only include software with vulnerabilities that have a CVSS version 3.x base score lower than what's specified. |
| exploit | boolean | query | Available in Fleet Premium. If true, filters to only include software with vulnerabilities that have been actively exploited in the wild (cisa_known_exploit: true). Default is false. |
| source | string | query | Filters to only include software from the specified sources. For example, "apps" for macOS apps or "programs" for Windows apps. To filter by multiple sources, separate them with commas (e.g. ?source=apps,programs). See source values in the software inventory reference. |
| extension_for | string | query | Requires source. Filters browser and IDE extensions to the specified browsers or IDEs. To filter by multiple, separate them with commas. Each value only narrows the source it belongs to. For example, ?source=apps,chrome_extensions,vscode_extensions&extension_for=brave,cursor returns macOS apps, Brave extensions, and Cursor extensions. If no value belongs to a source, all extensions from that source are included. See extension_for values in the software inventory reference. |
| ai_tool | boolean | query | Available in Fleet Premium. If true, filters to only include AI tools (e.g. AI apps, npm packages, MCP servers). Default is false. |
| macos_applications | boolean | query | If true, filters to only include software at the top level of the /Applications folder. This parameter applies only to macOS hosts, and is ignored for hosts on other platforms. Default is false. |
On macOS hosts, last_opened_at is supported for software from the apps source and is the last open time of the most recently installed version of the software. After an update, it may be empty until the software is opened again.
On Windows hosts, last_opened_at is supported for software from the programs source. On Linux hosts, last_opened_at is supported for software from the deb_packages and rpm_packages sources. On Windows and Linux hosts, it represents the last open time of any version.
signature_information is returned for macOS software from the apps and homebrew_packages sources.
For apps, hash_sha256 is the cdhash_sha256 of the bundle.
For homebrew_packages, Fleet returns one entry per Mach-O executable in the formula's bin and sbin directories. Each entry has the executable's executable_path and its executable_sha256. team_identifier is empty and hash_sha256 is null. Scripts and helpers under libexec aren't hashed, so a formula that installs only scripts, such as a Python or Ruby based tool, has one entry with no hashes. A formula's installed_paths lists its Cellar directory once, even when it has several entries. Homebrew hashes require fleetd 1.63.0.
Each entry in installed_versions includes release when set. For rpm_packages, it's the package release (for example, 1.212.el6). For go_binaries, it's the version of the Go toolchain the binary was built with (for example, go1.26.1). Fleet uses it to detect Go standard library vulnerabilities, so the same binary version built with two toolchains is listed as two versions.
software_package.has_uninstall_script is true when the installer has a non-empty uninstall script configured. It's omitted for VPP and in-house apps. For .tgz and script-only (.ps1/.sh/.py) packages the uninstall script is optional, so this field is what tells clients whether uninstall is actually available.
ai_tool is available in Fleet Premium. It's true when Fleet identified the software as an AI tool. Learn more in the software inventory reference. On Fleet Free, it's omitted.
skipped_install is true when the last install was skipped because the app was open and its patch policy has patch_when_closed, notify_before_patching, or patch_deadline enabled. status is failed_install in that case; the field distinguishes a deferred install from a real failure. Omitted otherwise.
For App Store apps, app_store_app.version_id is the ID of the version of the app that the host is scoped to. app_store_app.version_name is that version's name, and it's only included when the app has more than one version on the host's fleet.
GET /api/v1/fleet/hosts/123/software
Status: 200
{
"count": 2,
"software": [
{
"id": 1042,
"name": "gopls",
"icon_url": null,
"source": "go_binaries",
"extension_for": "",
"status": null,
"installed_versions": [
{
"version": "v0.21.1",
"release": "go1.26.1",
"vulnerabilities": ["CVE-2026-56860"],
"installed_paths": [
"/Users/alice/go/bin/gopls"
]
}
],
"display_name": "",
"software_package": null,
"app_store_app": null
},
{
"id": 936,
"name": "Google Chrome",
"icon_url": null,
"source": "apps",
"ai_tool": false,
"extension_for": "",
"status": null,
"installed_versions": [
{
"version": "149.0.7827.54",
"bundle_identifier": "com.google.Chrome",
"vulnerabilities": null,
"installed_paths": [
"/Applications/Google Chrome.app"
],
"signature_information": [
{
"installed_path": "/Applications/Google Chrome.app",
"team_identifier": "EQHXZ8M8AV",
"hash_sha256": "ce484e67c58b18313382e9fe2e225df52fb20b5f",
"executable_sha256": null,
"executable_path": null
}
],
"last_opened_at": "2026-06-04T15:22:36Z"
}
],
"display_name": "",
"software_package": {
"name": "GoogleChrome.pkg",
"automatic_install_policies": null,
"version": "149.0.7827.54",
"platform": "darwin",
"self_service": true,
"has_uninstall_script": true,
"last_install": null,
"last_uninstall": null,
"package_url": null,
"categories": [
"Browsers"
]
},
"app_store_app": null
},
{
"id": 1042,
"name": "git",
"icon_url": null,
"source": "homebrew_packages",
"extension_for": "",
"status": null,
"installed_versions": [
{
"version": "2.46.0",
"bundle_identifier": "",
"vulnerabilities": null,
"installed_paths": [
"/opt/homebrew/Cellar/git"
],
"signature_information": [
{
"installed_path": "/opt/homebrew/Cellar/git",
"team_identifier": "",
"hash_sha256": null,
"executable_sha256": "2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae",
"executable_path": "/opt/homebrew/Cellar/git/2.46.0/bin/git"
},
{
"installed_path": "/opt/homebrew/Cellar/git",
"team_identifier": "",
"hash_sha256": null,
"executable_sha256": "fcde2b2edba56bf408601fb721fe9b5c338d10ee429ea04fae5511b68fbf8fb9",
"executable_path": "/opt/homebrew/Cellar/git/2.46.0/bin/git-shell"
}
],
"last_opened_at": ""
}
],
"display_name": "",
"software_package": null,
"app_store_app": null
}
],
"meta": {
"has_next_results": false,
"has_previous_results": false
}
}GET /api/v1/fleet/device/:token/software
| Name | Type | In | Description |
|---|---|---|---|
| token | string | path | Required. The host's Fleet Desktop token. |
| query | string | query | Search query keywords. Searchable fields include name. |
| available_for_install | boolean | query | If true or 1, only list software that is available for install (added by the user). Default is false. |
| self_service | boolean | query | If true or 1, only lists self-service software. Default is false. |
| vulnerable | boolean | query | If true or 1, only list software that have vulnerabilities. Default is false. |
| page | integer | query | Page number of the results to fetch. |
| per_page | integer | query | Results per page. |
| order_key | string | query | What to order results by. Options include "name". Default is "name". |
| order_direction | string | query | Requires order_key. The direction of the order given the order key. Options include "asc" and "desc". Default is "asc". |
| min_cvss_score | integer | query | Available in Fleet Premium. Filters to include only software with vulnerabilities that have a CVSS version 3.x base score higher than the specified value. |
| max_cvss_score | integer | query | Available in Fleet Premium. Filters to only include software with vulnerabilities that have a CVSS version 3.x base score lower than what's specified. |
| exploit | boolean | query | Available in Fleet Premium. If true, filters to only include software with vulnerabilities that have been actively exploited in the wild (cisa_known_exploit: true). Default is false. |
| source | string | query | Filters to only include software from the specified sources. For example, "apps" for macOS apps or "programs" for Windows apps. To filter by multiple sources, separate them with commas (e.g. ?source=apps,programs). See source values in the software inventory reference. |
| extension_for | string | query | Requires source. Filters browser and IDE extensions to the specified browsers or IDEs. To filter by multiple, separate them with commas. Each value only narrows the source it belongs to. For example, ?source=apps,chrome_extensions,vscode_extensions&extension_for=brave,cursor returns macOS apps, Brave extensions, and Cursor extensions. If no value belongs to a source, all extensions from that source are included. See extension_for values in the software inventory reference. |
| ai_tool | boolean | query | Available in Fleet Premium. If true, filters to only include AI tools (e.g. AI apps, npm packages, MCP servers). Default is false. |
| macos_applications | boolean | query | If true, filters to only include software at the top level of the /Applications folder. This parameter applies only to macOS hosts, and is ignored for hosts on other platforms. Default is false. |
On macOS hosts, last_opened_at is supported for software from the apps source and is the last open time of the most recently installed version of the software. After an update, it may be empty until the software is opened again.
On Windows hosts, last_opened_at is supported for software from the programs source. On Linux hosts, last_opened_at is supported for software from the deb_packages and rpm_packages sources. On Windows and Linux hosts, it represents the last open time of any version.
signature_information is returned for macOS software from the apps and homebrew_packages sources.
For apps, hash_sha256 is the cdhash_sha256 of the bundle.
For homebrew_packages, Fleet returns one entry per Mach-O executable in the formula's bin and sbin directories. Each entry has the executable's executable_path and its executable_sha256. team_identifier is empty and hash_sha256 is null. Scripts and helpers under libexec aren't hashed, so a formula that installs only scripts, such as a Python or Ruby based tool, has one entry with no hashes. A formula's installed_paths lists its Cellar directory once, even when it has several entries. Homebrew hashes require fleetd 1.63.0.
Each entry in installed_versions includes release when set. For rpm_packages, it's the package release (for example, 1.212.el6). For go_binaries, it's the version of the Go toolchain the binary was built with (for example, go1.26.1). Fleet uses it to detect Go standard library vulnerabilities, so the same binary version built with two toolchains is listed as two versions.
software_package.has_uninstall_script is true when the installer has a non-empty uninstall script configured. It's omitted for VPP and in-house apps. For .tgz and script-only (.ps1/.sh/.py) packages the uninstall script is optional, so this field is what tells clients whether uninstall is actually available.
ai_tool is available in Fleet Premium. It's true when Fleet identified the software as an AI tool. Learn more in the software inventory reference. On Fleet Free, it's omitted.
skipped_install is true when the last install was skipped because the app was open and its patch policy has patch_when_closed, notify_before_patching, or patch_deadline enabled. status is failed_install in that case; the field distinguishes a deferred install from a real failure. Omitted otherwise.
GET /api/v1/fleet/device/:token/software
Status: 200
{
"count": 2,
"software": [
{
"id": 1042,
"name": "gopls",
"icon_url": null,
"source": "go_binaries",
"extension_for": "",
"status": null,
"installed_versions": [
{
"version": "v0.21.1",
"release": "go1.26.1",
"vulnerabilities": ["CVE-2026-56860"],
"installed_paths": [
"/Users/alice/go/bin/gopls"
]
}
],
"display_name": "",
"software_package": null,
"app_store_app": null
},
{
"id": 936,
"name": "Google Chrome",
"icon_url": null,
"source": "apps",
"ai_tool": false,
"extension_for": "",
"status": null,
"installed_versions": [
{
"version": "149.0.7827.54",
"bundle_identifier": "com.google.Chrome",
"vulnerabilities": null,
"installed_paths": [
"/Applications/Google Chrome.app"
],
"signature_information": [
{
"installed_path": "/Applications/Google Chrome.app",
"team_identifier": "EQHXZ8M8AV",
"hash_sha256": "ce484e67c58b18313382e9fe2e225df52fb20b5f",
"executable_sha256": null,
"executable_path": null
}
],
"last_opened_at": "2026-06-04T15:22:36Z"
}
],
"display_name": "",
"software_package": {
"name": "GoogleChrome.pkg",
"automatic_install_policies": null,
"version": "149.0.7827.54",
"platform": "darwin",
"self_service": true,
"has_uninstall_script": true,
"last_install": null,
"last_uninstall": null,
"package_url": null,
"categories": [
"Browsers"
]
},
"app_store_app": null
},
{
"id": 1042,
"name": "git",
"icon_url": null,
"source": "homebrew_packages",
"extension_for": "",
"status": null,
"installed_versions": [
{
"version": "2.46.0",
"bundle_identifier": "",
"vulnerabilities": null,
"installed_paths": [
"/opt/homebrew/Cellar/git"
],
"signature_information": [
{
"installed_path": "/opt/homebrew/Cellar/git",
"team_identifier": "",
"hash_sha256": null,
"executable_sha256": "2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae",
"executable_path": "/opt/homebrew/Cellar/git/2.46.0/bin/git"
},
{
"installed_path": "/opt/homebrew/Cellar/git",
"team_identifier": "",
"hash_sha256": null,
"executable_sha256": "fcde2b2edba56bf408601fb721fe9b5c338d10ee429ea04fae5511b68fbf8fb9",
"executable_path": "/opt/homebrew/Cellar/git/2.46.0/bin/git-shell"
}
],
"last_opened_at": ""
}
],
"display_name": "",
"software_package": null,
"app_store_app": null
}
],
"meta": {
"has_next_results": false,
"has_previous_results": false
}
}Returns the list of hosts corresponding to the search criteria in CSV format, ready for download when requested by a web browser.
Some cell values are escaped so that spreadsheet applications treat them as text. Numbers are not modified.
GET /api/v1/fleet/hosts/report
| Name | Type | In | Description |
|---|---|---|---|
| format | string | query | Required, must be "csv" (only supported format for now). |
| columns | string | query | Comma-delimited list of columns to include in the report (returns all columns if none is specified). |
| order_key | string | query | What to order results by. Can be any column in the hosts table. |
| order_direction | string | query | Requires order_key. The direction of the order given the order key. Options include "asc" and "desc". Default is "asc". |
| status | string | query | Indicates the status of the hosts to return. Can either be 'new', 'online', 'offline', 'mia', 'missing' or 'enrolled'. 'enrolled' returns every host except those pending MDM enrollment. |
| query | string | query | Search query keywords. Searchable fields include hostname, hardware_serial, uuid, ipv4, and end user email addresses. |
| fleet_id | integer | query | Available in Fleet Premium. Filters the hosts to only include hosts in the specified fleet. |
| policy_id | integer | query | The ID of the policy to filter hosts by. |
| policy_response | string | query | Requires policy_id. Valid options are 'passing' or 'failing'. Note: If policy_id is specified without including policy_response, this will also return hosts where the policy is not configured to run or failed to run. |
| software_version_id | integer | query | The ID of the software version to filter hosts by. |
| software_title_id | integer | query | The ID of the software title to filter hosts by. |
| software_installer_id | integer | query | Requires software_title_id. The ID of a specific package of the title to filter hosts by. Use for multi-package titles to filter by one installer. |
| app_store_app_version_id | integer | query | Requires software_title_id. The ID of a specific admin-created App Store app version of the title to filter hosts by. iOS, iPadOS, and Android only. |
| os_version_id | integer | query | The ID of the operating system version to filter hosts by. |
| os_name | string | query | The name of the operating system to filter hosts by. os_version must also be specified with os_name |
| os_version | string | query | The version of the operating system to filter hosts by. os_name must also be specified with os_version |
| vulnerability | string | query | The cve to filter hosts by (including "cve-" prefix, case-insensitive). |
| mdm_id | integer | query | The ID of the mobile device management (MDM) solution to filter hosts by (that is, filter hosts that use a specific MDM provider and URL). |
| mdm_name | string | query | The name of the mobile device management (MDM) solution to filter hosts by (that is, filter hosts that use a specific MDM provider). |
| mdm_enrollment_status | string | query | The mobile device management (MDM) enrollment status to filter hosts by. Valid options are 'manual', 'personal', 'manual-personal', 'automatic', 'enrolled', 'pending', or 'unenrolled'. 'pending' only includes Apple (macOS, iOS, iPadOS) hosts in Apple Business (AB) that are not yet enrolled to Fleet. |
| macos_settings | string | query | Filters the hosts by the status of the mobile device management (MDM) profiles applied to hosts. Valid options are 'verified', 'verifying', 'pending', or 'failed'. Note: If this filter is used in Fleet Premium without a fleet ID filter, the results include only hosts that are "Unassigned". |
| munki_issue_id | integer | query | The ID of the munki issue (a Munki-reported error or warning message) to filter hosts by (that is, filter hosts that are affected by that corresponding error or warning message). |
| low_disk_space | integer | query | Available in Fleet Premium. Filters the hosts to only include hosts with less GB of disk space available than this value. Must be a number between 1-100. |
| label_id | integer | query | A valid label ID. Can only be used in combination with order_key, order_direction, status, query and fleet_id. |
| bootstrap_package | string | query | Available in Fleet Premium. Filters the hosts by the status of the MDM bootstrap package on the host. Valid options are 'installed', 'pending', or 'failed'. Note: If this filter is used in Fleet Premium without a fleet ID filter, the results include only hosts that are "Unassigned". |
| disable_failing_policies | boolean | query | If true, hosts will return failing policies as 0 (returned as the issues column) regardless of whether there are any that failed for the host. This is meant to be used when increased performance is needed in exchange for the extra information. |
If mdm_id, mdm_name or mdm_enrollment_status is specified, then Windows Servers are excluded from the results.
GET /api/v1/fleet/hosts/report?software_id=123&format=csv&columns=hostname,primary_ip,platform
Status: 200
created_at,updated_at,id,detail_updated_at,label_updated_at,policy_updated_at,last_enrolled_at,seen_time,refetch_requested,hostname,uuid,platform,osquery_version,os_version,build,platform_like,code_name,uptime,memory,cpu_type,cpu_subtype,cpu_brand,cpu_physical_cores,cpu_logical_cores,hardware_vendor,hardware_model,hardware_marketing_name,hardware_version,hardware_serial,computer_name,primary_ip_id,primary_ip,primary_mac,distributed_interval,config_tls_refresh,logger_tls_period,team_name,fleet_name,gigs_disk_space_available,percent_disk_space_available,gigs_total_disk_space,issues,device_mapping,status,display_text
2022-03-15T17:23:56Z,2022-03-15T17:23:56Z,1,2022-03-15T17:23:56Z,2022-03-15T17:23:56Z,2022-03-15T17:23:56Z,2022-03-15T17:23:56Z,2022-03-15T17:23:56Z,false,foo.local0,a4fc55a1-b5de-409c-a2f4-441f564680d3,debian,,,,,,0s,0,,,,0,0,,,,,,,,,,0,0,0,,,0,0,0,0,,,,
2022-03-15T17:23:56Z,2022-03-15T17:23:56Z,2,2022-03-15T17:23:56Z,2022-03-15T17:23:56Z,2022-03-15T17:23:56Z,2022-03-15T17:23:56Z,2022-03-15T17:22:56Z,false,foo.local1,689539e5-72f0-4bf7-9cc5-1530d3814660,rhel,,,,,,0s,0,,,,0,0,,,,,,,,,,0,0,0,,,0,0,0,0,,,,
2022-03-15T17:23:56Z,2022-03-15T17:23:56Z,3,2022-03-15T17:23:56Z,2022-03-15T17:23:56Z,2022-03-15T17:23:56Z,2022-03-15T17:23:56Z,2022-03-15T17:21:56Z,false,foo.local2,48ebe4b0-39c3-4a74-a67f-308f7b5dd171,linux,,,,,,0s,0,,,,0,0,,,,,,,,,,0,0,0,,,0,0,0,0,,,,Retrieves the disk encryption key for a host.
The host will only return a key if its disk encryption status is "Verified." Get hosts' disk encryption statuses using the List hosts endpoint and os_settings_disk_encryption parameter.
GET /api/v1/fleet/hosts/:id/encryption_key
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required The id of the host to get the disk encryption key for. |
| allow_serial_lookup | boolean | query | Tells Fleet whether or not to fallback to serial lookup for archived encryption keys. Requires global user permission to use. |
GET /api/v1/fleet/hosts/8/encryption_key
Status: 200
{
"host_id": 8,
"encryption_key": {
"key": "5ADZ-HTZ8-LJJ4-B2F8-JWH3-YPBT",
"updated_at": "2022-12-01T05:31:43Z",
"rotation_pending": false
}
}rotation_pending is true while a rotation request is waiting for the host to acknowledge it. key is the current key until the host acknowledges the rotation.
Status: 422 Unprocessable entity
Returned when Fleet has a key for the host but can't decrypt it. For a Windows host that Fleet has asked to escrow a new key, the reason says so, as in this example.
{
"message": "Unprocessable Entity",
"errors": [
{
"name": "base",
"reason": "Couldn't decrypt the disk encryption key. The host will escrow a new one when it comes online."
}
]
}Available in Fleet Premium
Sends an MDM command that rotates the FileVault recovery key for a macOS host. Fleet escrows the new key as soon as the host acknowledges the command. The host doesn't need a user logged in. Until then, Get host's disk encryption key returns the current key with rotation_pending set to true.
Fleet uses the host's current key to authorize the rotation, so the current key must be decryptable by Fleet. If the host reports that the rotation failed, Fleet logs a failed_to_rotate_disk_encryption_key activity and prompts the end user for their password at their next login to escrow a new key.
Requirements:
POST /api/v1/fleet/hosts/:id/encryption_key/rotate
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The ID of the host to rotate the disk encryption key for. |
POST /api/v1/fleet/hosts/8/encryption_key/rotate
Status: 200
Status: 409
Status: 422
Retrieves the Recovery Lock password for a host.
The host will only return a password if its Recovery Lock password status is "Verified."
GET /api/v1/fleet/hosts/:id/recovery_lock_password
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required The id of the host to get the Recovery Lock password for. |
GET /api/v1/fleet/hosts/8/recovery_lock_password
Status: 200
{
"host_id": 8,
"recovery_lock_password": {
"password": "test-123",
"updated_at": "2026-02-01T05:31:43Z"
}
}Available in Fleet Premium
Rotates the Recovery Lock password for a host.
POST /api/v1/fleet/hosts/:id/recovery_lock_password/rotate
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | The host ID to rotate Recovery Lock password for. |
POST /api/v1/fleet/hosts/123/recovery_lock_password/rotate
Status: 200
Available for macOS, iOS, iPadOS, and Windows hosts only. Requires Fleet's MDM to be enabled and configured.
Retrieves the certificates installed on a host.
For macOS hosts, certificates from MDM-delivered profiles containing an ACME payload are retrieved via the MDM CertificateList command on each profile install and re-install (not on a recurring cadence). Hardware-bound ACME certificates that aren't visible to osquery first appear in the response after the host installs or re-installs the delivering profile.
GET /api/v1/fleet/hosts/:id/certificates
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The host's id. |
| page | integer | query | Page number of the results to fetch. |
| per_page | integer | query | Results per page. |
| order_key | string | query | What to order results by. Options include common_name and not_valid_after. Default is common_name |
| order_direction | string | query | Requires order_key. The direction of the order given the order key. Options include "asc" and "desc". Default is "asc". |
| after | string | query | The value to get results after. This needs order_key defined, as that's the column that would be used. |
GET /api/v1/fleet/hosts/8/certificates
Status: 200
{
"certificates": [
{
"id": 3,
"not_valid_after": "2021-08-19T02:02:17Z",
"not_valid_before": "2021-08-19T02:02:17Z",
"certificate_authority": true,
"common_name": "FleetDM",
"key_algorithm": "rsaEncryption",
"key_strength": 2048,
"key_usage": "CRL Sign, Key Cert Sign",
"serial": 1,
"signing_algorithm": "sha256WithRSAEncryption",
"subject": {
"country": "US",
"organization": "Fleet Device Management Inc.",
"organizational_unit": "Fleet Device Management Inc.",
"common_name": "FleetDM"
},
"issuer": {
"country": "US",
"organization": "Fleet Device Management Inc.",
"organizational_unit": "Fleet Device Management Inc.",
"common_name": "FleetDM"
},
"source": "system",
"username": ""
}
],
"meta": {
"has_next_results": false,
"has_previous_results": false
}
}Requires Fleet's MDM properly enabled and configured.
Retrieves a list of the configuration profiles assigned to a host.
GET /api/v1/fleet/hosts/:id/configuration_profiles
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The ID of the host |
GET /api/v1/fleet/hosts/8/configuration_profiles
Status: 200
{
"host_id": 8,
"profiles": [
{
"profile_uuid": "bc84dae7-396c-4e10-9d45-5768bce8b8bd",
"team_id": 0,
"fleet_id": 0,
"name": "Example profile",
"identifier": "com.example.profile",
"created_at": "2023-03-31T00:00:00Z",
"updated_at": "2023-03-31T00:00:00Z",
"checksum": "dGVzdAo=",
"self_service": true,
"hidden": false
}
]
}Available in Fleet Premium
Sends a command to lock the specified macOS, iOS, iPadOS, Linux, Windows, or Android host. The host is locked once it comes online.
To lock a macOS, iOS, or iPadOS host, the host must have MDM turned on. To lock a Windows or Linux host, the host must have scripts enabled.
For iOS and iPadOS, this enables Lost Mode and sends a Device Location MDM command. To see location, use the Get host endpoint.
POST /api/v1/fleet/hosts/:id/lock
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. ID of the host to be locked. |
| view_pin | boolean | query | For macOS hosts, whether to return the unlock PIN. |
POST /api/v1/fleet/hosts/123/lock?view_pin=true
Status: 200
{
"unlock_pin": "123456",
"device_status": "unlocked",
"pending_action": "lock"
}To verify the host successfully locked, you can use the Get host endpoint to retrieve the host's
mdm.device_status.
Available in Fleet Premium
Sends a command to unlock the specified iOS, iPadOS, Windows, or Linux host, or retrieves the unlock PIN for a macOS host.
For iOS and iPadOS, this disables Lost Mode.
POST /api/v1/fleet/hosts/:id/unlock
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. ID of the host to be unlocked. |
POST /api/v1/fleet/hosts/:id/unlock
Status: 200
{
"host_id": 8,
"device_status": "locked",
"pending_action": "unlock"
}To verify the host successfully unlocked, you can use the Get host endpoint to retrieve the host's
mdm.device_status. macOS hosts require enteringunlock_pinto unlock.
Sends a command to wipe the specified macOS, iOS, iPadOS, Linux, Windows, or Android host. The host is wiped once it comes online.
Wiping an Android host is available in both Fleet Free and Fleet Premium. For BYOD hosts, this action only deletes the work profile. For company-owned hosts, this will wipe all data.
Wiping a macOS, iOS, iPadOS, Linux, or Windows host is available in Fleet Premium.
To wipe a macOS, iOS, iPadOS, or Windows host, the host must have MDM turned on. To wipe a Linux host, the host must have scripts enabled.
POST /api/v1/fleet/hosts/:id/wipe
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. ID of the host to be wiped. |
| windows | object | body | Optional metadata used when wiping Windows hosts. The object includes a wipe_type property that can be used for specifying what type of remote wipe to perform. Allowed values are "doWipe" and "doWipeProtected". |
POST /api/v1/fleet/hosts/123/wipe
{ "windows": { "wipe_type": "doWipe" } }Status: 200
{
"device_status": "unlocked",
"pending_action": "wipe"
}To verify the host was successfully wiped, you can use the Get host endpoint to retrieve the host's
mdm.device_status.
Sends an APNs push notification to the specified macOS, iOS, or iPadOS host. This prompts the device to check in with the Fleet server and pick up any pending MDM commands or configuration profiles.
The host must have MDM turned on and be enrolled via Apple MDM. If the host is offline, the push notification will be delivered when the device comes back online.
POST /api/v1/fleet/hosts/:id/apns_ping
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. ID of the host to send the APNs ping to. |
POST /api/v1/fleet/hosts/123/apns_ping
Status: 204
This endpoint sends a blank APNs push notification. It does not enqueue an MDM command. To verify the host checked in after receiving the ping, use the Get host endpoint to check the host's
last_seen_attimestamp.
GET /api/v1/fleet/hosts/:id/activities
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The host's ID. |
| page | integer | query | Page number of the results to fetch. |
| per_page | integer | query | Results per page. Maximum is 10,000 records. If no pagination parameters are specified, defaults to 10,000. |
| order_key | string | query | What to order results by. Allowed fields are id, created_at, user_id, activity_type, user_name, user_email, and fleet_initiated. |
| order_direction | string | query | Requires order_key. The direction of the order given the order key. Options include "asc" and "desc". Default is "asc". |
| after | string | query | The value to get results after. This needs order_key defined, as that's the column that would be used. |
GET /api/v1/fleet/hosts/12/activities
Status: 200
{
"activities": [
{
"created_at": "2025-02-20T10:09:48.551757Z",
"id": 123,
"actor_full_name": "Anna Chao",
"actor_id": 12,
"actor_gravatar": "",
"actor_email": "[email protected]",
"type": "installed_software",
"fleet_initiated": false,
"details": {
"status": "installed",
"host_id": 934,
"policy_id": null,
"policy_name": null,
"install_uuid": "2fddb3d3-d553-4334-89a3-235da50d0ee7",
"self_service": false,
"software_title": "Notion.app",
"software_package": "Notion-4.5.0-arm64.dmg",
"host_display_name": "Marko's MacBook Pro"
}
},
{
"created_at": "2023-07-27T14:35:08Z",
"id": 2,
"actor_full_name": "Anna Chao",
"actor_id": 12,
"actor_gravatar": "",
"actor_email": "[email protected]",
"type": "ran_script",
"fleet_initiated": true,
"details": {
"host_id": 1,
"host_display_name": "Steve's MacBook Pro",
"script_name": "set-timezones.sh",
"script_execution_id": "d6cffa75-b5b5-41ef-9230-15073c8a88cf",
"async": true
}
}
],
"meta": {
"has_next_results": false,
"has_previous_results": false
}
}GET /api/v1/fleet/hosts/:id/activities/upcoming
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The host's id. |
| page | integer | query | Page number of the results to fetch. |
| per_page | integer | query | Results per page. |
GET /api/v1/fleet/hosts/12/activities/upcoming
Status: 200
{
"count": 3,
"activities": [
{
"created_at": "2025-02-20T10:05:43.013218Z",
"uuid": "ce8ed8b1-8e77-413f-936c-4ef2f9b665f8",
"actor_full_name": "Anna Chao",
"actor_id": 12,
"actor_gravatar": "",
"actor_email": "[email protected]",
"type": "installed_software",
"fleet_initiated": false,
"details": {
"status": "pending_install",
"host_id": 934,
"policy_id": null,
"policy_name": null,
"install_uuid": "2fddb3d3-d553-4334-89a3-235da50d0ee7",
"self_service": false,
"override_pre_install_query": false,
"software_title": "Notion.app",
"software_package": "Notion-4.5.0-arm64.dmg",
"host_display_name": "Marko's MacBook Pro"
}
},
{
"created_at": "2023-07-27T14:35:08Z",
"uuid": "d6cffa75-b5b5-41ef-9230-15073c8a88cf",
"actor_full_name": "Marko",
"actor_id": 1,
"actor_gravatar": "",
"actor_email": "[email protected]",
"type": "ran_script",
"fleet_initiated": false,
"details": {
"host_id": 1,
"host_display_name": "Steve's MacBook Pro",
"script_name": "set-timezones.sh",
"script_execution_id": "d6cffa75-b5b5-41ef-9230-15073c8a88cf",
"async": true,
"patch_notification": false
}
},
{
"created_at": "2021-07-27T13:25:21Z",
"uuid": "y3cffa75-b5b5-41ef-9230-15073c8a88cf",
"actor_full_name": "Rachael",
"actor_id": 1,
"actor_gravatar": "",
"actor_email": "[email protected]",
"type": "ran_script",
"fleet_initiated": false,
"details": {
"host_id": 1,
"host_display_name": "Steve's MacBook Pro",
"script_name": "",
"script_execution_id": "y3cffa75-b5b5-41ef-9230-15073c8a88cf",
"async": false,
"patch_notification": false
}
}
],
"meta": {
"has_next_results": false,
"has_previous_results": false
}
}DELETE /api/v1/fleet/hosts/:id/activities/upcoming/:activity_id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The host's ID. |
| activity_id | string | path | Required. The ID of the host's upcoming activity. |
For a pending script run (e.g. the scripts that back lock on Windows/Linux and wipe on Linux), activity_id is the script's execution ID. Get it from the uuid (or details.script_execution_id) field of a "type": "ran_script" entry returned by Get host's upcoming activity.
DELETE /api/v1/fleet/hosts/12/activities/upcoming/81e10a70-730b-4c45-9b40-b14373e04757
Status: 204
Adds manual labels to a host.
POST /api/v1/fleet/hosts/:id/labels
| Name | Type | In | Description |
|---|---|---|---|
| labels | array | body | The list of label names to add to the host. |
POST /api/v1/fleet/hosts/12/labels
{
"labels": ["label1", "label2"]
}Status: 200
Removes manual labels from a host.
DELETE /api/v1/fleet/hosts/:id/labels
| Name | Type | In | Description |
|---|---|---|---|
| labels | array | body | The list of label names to delete from the host. |
DELETE /api/v1/fleet/hosts/12/labels
{
"labels": ["label3", "label4"]
}Status: 200
Runs an ad hoc live report against the specified host and responds with the results.
The live report will stop if the targeted host is offline, or if the query times out. Timeouts happen if the host hasn't responded after the configured FLEET_LIVE_QUERY_REST_PERIOD (default 25 seconds) or if the distributed_interval agent option (default 10 seconds) is higher than the FLEET_LIVE_QUERY_REST_PERIOD.
POST /api/v1/fleet/hosts/:id/query
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The target host ID. |
| query | string | body | Required. The query SQL. |
POST /api/v1/fleet/hosts/123/query
{
"query": "SELECT model, vendor FROM usb_devices;"
}Status: 200
{
"host_id": 123,
"query": "SELECT model, vendor FROM usb_devices;",
"status": "online", // "online" or "offline"
"error": null,
"rows": [
{
"model": "USB2.0 Hub",
"vendor": "VIA Labs, Inc."
}
]
}Note that if the host is online and the query times out, this endpoint will return an error and rows will be null. If the host is offline, no error will be returned, and rows will benull.
Runs an ad hoc live report against a host, specified using the hostname, uuid, or hardware_serial as an identifier, and responds with the results.
The live report will stop if the targeted host is offline, or if the query times out. Timeouts happen if the host hasn't responded after the configured FLEET_LIVE_QUERY_REST_PERIOD (default 25 seconds) or if the distributed_interval agent option (default 10 seconds) is higher than the FLEET_LIVE_QUERY_REST_PERIOD.
POST /api/v1/fleet/hosts/identifier/:identifier/query
| Name | Type | In | Description |
|---|---|---|---|
| identifier | integer or string | path | Required. The host's hardware_serial, uuid, osquery_host_id, hostname, or node_key. |
| query | string | body | Required. The query SQL. |
POST /api/v1/fleet/hosts/identifier/392547dc-0000-0000-a87a-d701ff75bc65/query
{
"query": "SELECT model, vendor FROM usb_devices;"
}Status: 200
{
"host_id": 123,
"query": "SELECT model, vendor FROM usb_devices;",
"status": "online", // "online" or "offline"
"error": null,
"rows": [
{
"model": "USB2.0 Hub",
"vendor": "VIA Labs, Inc."
}
]
}Note that if the host is online and the query times out, this endpoint will return an error and rows will be null. If the host is offline, no error will be returned, and rows will be null.
Grant a blocked host access for a single login. Requires Okta conditional access configured with bypass enabled.
POST /api/v1/fleet/device/:token/bypass_conditional_access
| Name | Type | In | Description |
|---|---|---|---|
| token | string | path | Required. The host's Fleet Desktop token. |
POST /api/v1/fleet/device/abcdef012456789/bypass_conditional_access
Status: 200
Available in Fleet Premium.
Remotely clear the passcode on a host. Requires iOS/iPadOS host to have sent its unlock token during MDM check-in.
POST /api/v1/fleet/hosts/:id/clear_passcode
| Name | Type | In | Description |
|---|---|---|---|
| id | number | path | Required. The Fleet host ID of the ADE-enrolled host to clear the passcode for. |
POST /api/v1/fleet/hosts/123/clear_passcode
Status: 200
{
"command_uuid": "84F7F777-803E-40BB-8B47-2C0DC8B0118A",
"request_type": "ClearPasscode",
"platform": "ios"
}Available in Fleet Premium
Rotates the managed local account password for a macOS or Windows host.
On macOS, Fleet generates the new password and sends it to the host in an MDM command. On Windows, Fleet asks fleetd to generate a new password, set it, and send it back, so the rotation completes on the host's next check-in.
POST /api/v1/fleet/hosts/:id/managed_account_password/rotate
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | The host ID to rotate the managed local account password for. |
POST /api/v1/fleet/hosts/123/managed_account_password/rotate
Status: 204
Retrieves the managed account password for a macOS host.
On macOS, a password is returned only while its managed account password status is "Verified". On Windows, a password is returned whenever one has been escrowed, including after a failed rotation, in which case it is the last password the host reported.
GET /api/v1/fleet/hosts/:id/managed_account_password
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required The ID of the host to get the managed account password for. |
GET /api/v1/fleet/hosts/8/managed_account_password
Status: 200
{
"host_id": 8,
"managed_account_password": {
"password": "test-123",
"updated_at": "2026-02-01T05:31:43Z"
}
}Available in Fleet Premium
Release multiple hosts from Apple Business (AB) by calling Apple's Disown Device API.
This permanently removes the host from your AB, and cannot be added back automatically. This action can't be undone.
POST /api/v1/fleet/hosts/release_ab
| Name | Type | In | Description |
|---|---|---|---|
| ids | array | body | Required. A list of host IDs to release from Apple Business |
POST /api/v1/fleet/hosts/release_ab
{
"ids": [1, 42, 57]
}200
{
"results": [
{
"host_id": 1,
"status": "success"
},
{
"host_id": 42,
"status": "success"
},
{
"host_id": 57,
"status": "failed",
"error": "Host is not enrolled in Apple Business"
}
]
}Add a dynamic or manual label.
POST /api/v1/fleet/labels
| Name | Type | In | Description |
|---|---|---|---|
| name | string | body | Required. The label's name. Must be 255 characters or fewer. |
| description | string | body | The label's description. Must be 255 characters or fewer. |
| query | string | body | The query in SQL syntax used to filter the hosts. Only one of either query (to create a dynamic label) or hosts (to create a manual label) can be included in the request. |
| criteria | object | body | Criteria for adding hosts to a host vitals label. See criteria for details. |
| hosts | array | body | The list of host identifiers (hardware_serial or uuid). The label will apply to any host with a matching identifier. Only one of either query (to create a dynamic label), hosts (to create a manual label), or host_ids (to create a manual label) can be included in the request. |
| host_ids | array | body | The list of Fleet host IDs the label will apply to. Only one of either query (to create a dynamic label) or hosts/host_ids (to create a manual label) can be included in the request. |
| platform | string | body | The specific platform for the label to target. Provides an additional filter. Choices for platform are "darwin", "windows", "linux", "ubuntu", and "centos". All platforms are included by default and this option is represented by an empty string. |
If query, criteria, and hosts aren't specified, a manual label with no hosts will be created.
The hostname host identifier is deprecated. Please use host_ids, hardware_serial, or uuid instead.
| Name | Type | Description |
|---|---|---|
| vital | string | The type of host vital to use when creating a host vital label. Can be "end_user_idp_group", "end_user_idp_department", or "custom_host_vital". |
| custom_host_vital_id | integer | The ID of the custom host vital to match on. Required when vital is "custom_host_vital". |
| value | string | Hosts with vital data matching this value will be added to the label. |
POST /api/v1/fleet/labels
{
"name": "macOS hosts (x86_64)",
"description": "Filters macOS hosts with x86_64 architecture",
"query": "SELECT 1 FROM os_version WHERE platform = 'darwin' AND instr(arch, 'x86_64')",
"platform": "darwin"
}Status: 200
{
"label": {
"created_at": "0001-01-01T00:00:00Z",
"updated_at": "0001-01-01T00:00:00Z",
"id": 42,
"name": "macOS hosts (x86_64)",
"description": "Filters macOS hosts with x86_64 architecture",
"query": "SELECT 1 FROM os_version WHERE platform = 'darwin' AND instr(arch, 'x86_64')",
"label_type": "regular",
"label_membership_type": "dynamic",
"display_text": "macOS hosts (x86_64)",
"count": 0,
"host_ids": null,
"author_id": 1,
"team_id": null,
"fleet_id": null
}
}Updates the specified label. Note: Label queries, platforms, and fleets are immutable. To change these, you must delete the label and create a new label.
PATCH /api/v1/fleet/labels/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The label's id. |
| name | string | body | The label's name. Must be 255 characters or fewer. |
| description | string | body | The label's description. Must be 255 characters or fewer. |
| hosts | array | body | If updating a manual label: the list of host identifiers (hardware_serial or uuid). The label will apply to any host with a matching identifier. The provided list fully replaces the previous list. Only one of either hosts or host_ids can be included in the request. |
| host_ids | array | body | If updating a manual label: the list of Fleet host IDs the label will apply to. The provided list fully replaces the previous list. Only one of either hosts or host_ids can be included in the request. |
hosts and host_ids can only be used to update a manual label. Including either one when updating a dynamic label returns an error, even if the list is empty.
The hostname host identifier is deprecated. Please use host_ids, hardware_serial, or uuid instead.
PATCH /api/v1/fleet/labels/21
{
"hosts": ["ABC1234", "XYZ5678"]
}Status: 200
{
"label": {
"created_at": "0001-01-01T00:00:00Z",
"updated_at": "0001-01-01T00:00:00Z",
"id": 21,
"name": "My label",
"description": "Some hosts that I want to manually group together",
"query": "",
"platform": "",
"label_type": "regular",
"label_membership_type": "manual",
"display_text": "My label",
"count": 2,
"host_ids": [42, 43],
"author_id": 1,
"team_id": null,
"fleet_id": null,
"team_name": null,
"fleet_name": null
}
}Returns the specified label.
GET /api/v1/fleet/labels/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The label's id. |
GET /api/v1/fleet/labels/1
Status: 200
{
"label": {
"created_at": "2021-02-09T22:09:43Z",
"updated_at": "2021-02-09T22:15:58Z",
"id": 12,
"name": "Ubuntu",
"description": "Filters ubuntu hosts",
"query": "SELECT 1 FROM os_version WHERE platform = 'ubuntu';",
"label_type": "regular",
"label_membership_type": "dynamic",
"display_text": "Ubuntu",
"count": 0,
"host_ids": null,
"author_id": 1,
"team_id": null,
"fleet_id": null,
"team_name": null,
"fleet_name": null
}
}Returns a list of labels in Fleet, including basic information on each label.
GET /api/v1/fleet/labels/summary
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | string | query | Available in Fleet Premium. Filters to labels belonging to the specified fleet, plus global labels. Specify "global" to show only globally-available labels. If omitted, Fleet returns all global labels, plus all labels for fleets to which the requestor has access. |
GET /api/v1/fleet/labels/summary
Status: 200
{
"labels": [
{
"id": 6,
"name": "All Hosts",
"description": "All hosts which have enrolled in Fleet",
"label_type": "builtin",
"team_id": null,
"fleet_id": null
},
{
"id": 7,
"name": "macOS",
"description": "All macOS hosts",
"label_type": "builtin",
"team_id": null,
"fleet_id": null
},
{
"id": 8,
"name": "Ubuntu Linux",
"description": "All Ubuntu hosts",
"label_type": "builtin",
"team_id": null,
"fleet_id": null
},
{
"id": 9,
"name": "CentOS Linux",
"description": "All CentOS hosts",
"label_type": "builtin",
"team_id": null,
"fleet_id": null
},
{
"id": 10,
"name": "MS Windows",
"description": "All Windows hosts",
"label_type": "builtin",
"team_id": null,
"fleet_id": null
},
{
"id": 11,
"name": "My fleet-specific label",
"description": "This one goes to eleven, but only on one fleet",
"label_type": "regular",
"team_id": 1,
"fleet_id": 1
}
]
}Returns a list of labels.
GET /api/v1/fleet/labels
| Name | Type | In | Description |
|---|---|---|---|
| include_host_counts | boolean | query | Whether or not to calculate host counts for each label. Default is true. See "additional notes" for more information. |
| order_key | string | query | What to order results by. Can be any column in the labels table. |
| order_direction | string | query | Requires order_key. The direction of the order given the order key. Options include "asc" and "desc". Default is "asc". |
| after | string | query | The value to get results after. This needs order_key defined, as that's the column that would be used. |
| fleet_id | string | query | Available in Fleet Premium. Filters to labels belonging to the specified fleet, plus global labels. Specify "global" to show only globally-available labels. If omitted, Fleet returns all global labels, plus all labels for fleets to which the requestor has access. |
When include_host_counts is true (or omitted), host_count will only be included for labels that are in use by one or more hosts, but count will always be included, even if it is 0. When include_host_counts is false, host_count will always be omitted, and count will be returned as 0 for each label. Setting include_host_counts=false will improve API performance, especially on deployments with large numbers of hosts and labels.
GET /api/v1/fleet/labels
Status: 200
{
"labels": [
{
"created_at": "2021-02-02T23:55:25Z",
"updated_at": "2021-02-02T23:55:25Z",
"id": 6,
"name": "All Hosts",
"description": "All hosts which have enrolled in Fleet",
"query": "SELECT 1;",
"label_type": "builtin",
"label_membership_type": "dynamic",
"host_count": 7,
"display_text": "All Hosts",
"count": 7,
"host_ids": null,
"author_id": 1,
"team_id": null,
"fleet_id": null
},
{
"created_at": "2021-02-02T23:55:25Z",
"updated_at": "2021-02-02T23:55:25Z",
"id": 7,
"name": "macOS",
"description": "All macOS hosts",
"query": "SELECT 1 FROM os_version WHERE platform = 'darwin';",
"platform": "darwin",
"label_type": "builtin",
"label_membership_type": "dynamic",
"host_count": 1,
"display_text": "macOS",
"count": 1,
"host_ids": null,
"author_id": 1,
"team_id": null,
"fleet_id": null
},
{
"created_at": "2021-02-02T23:55:25Z",
"updated_at": "2021-02-02T23:55:25Z",
"id": 8,
"name": "Ubuntu Linux",
"description": "All Ubuntu hosts",
"query": "SELECT 1 FROM os_version WHERE platform = 'ubuntu' OR platform_like LIKE '%ubuntu%';",
"platform": "ubuntu",
"label_type": "builtin",
"label_membership_type": "dynamic",
"host_count": 3,
"display_text": "Ubuntu Linux",
"count": 3,
"host_ids": null,
"author_id": 1,
"team_id": null,
"fleet_id": null
},
{
"created_at": "2021-02-02T23:55:25Z",
"updated_at": "2021-02-02T23:55:25Z",
"id": 9,
"name": "CentOS Linux",
"description": "All CentOS hosts",
"query": "SELECT 1 FROM os_version WHERE platform = 'centos' OR name LIKE '%centos%'",
"label_type": "builtin",
"label_membership_type": "dynamic",
"host_count": 3,
"display_text": "CentOS Linux",
"count": 3,
"host_ids": null,
"author_id": 1,
"team_id": null,
"fleet_id": null
},
{
"created_at": "2021-02-02T23:55:25Z",
"updated_at": "2021-02-02T23:55:25Z",
"id": 10,
"name": "MS Windows",
"description": "All Windows hosts",
"query": "SELECT 1 FROM os_version WHERE platform = 'windows';",
"platform": "windows",
"label_type": "builtin",
"label_membership_type": "dynamic",
"display_text": "MS Windows",
"count": 0,
"host_ids": null,
"author_id": 1,
"team_id": null,
"fleet_id": null
},
{
"created_at": "2025-11-13T06:14:20Z",
"updated_at": "2025-11-13T06:14:20Z",
"id": 4663,
"name": "Team: g-software",
"description": "Workstations used by g-software",
"query": "",
"platform": "",
"label_type": "regular",
"label_membership_type": "manual",
"display_text": "Team: g-software",
"count": 0,
"host_ids": null,
"author_id": 1,
"team_id": 2,
"fleet_id": null
}
]
}Returns a list of the hosts that belong to the specified label.
GET /api/v1/fleet/labels/:id/hosts
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The label's id. |
| page | integer | query | Page number of the results to fetch. |
| per_page | integer | query | Results per page. |
| order_key | string | query | What to order results by. Can be any column in the hosts table. |
| order_direction | string | query | Requires order_key. The direction of the order given the order key. Options include "asc" and "desc". Default is "asc". |
| after | string | query | The value to get results after. This needs order_key defined, as that's the column that would be used. |
| status | string | query | Indicates the status of the hosts to return. Can either be 'new', 'online', 'offline', 'mia', 'missing' or 'enrolled'. 'enrolled' returns every host except those pending MDM enrollment. |
| query | string | query | Search query keywords. Searchable fields include hostname, hardware_serial, uuid, and ipv4. |
| fleet_id | integer | query | Available in Fleet Premium. Filters the hosts to only include hosts in the specified fleet. |
| disable_failing_policies | boolean | query | If "true", hosts will return failing policies as 0 regardless of whether there are any that failed for the host. This is meant to be used when increased performance is needed in exchange for the extra information. |
| mdm_id | integer | query | The ID of the mobile device management (MDM) solution to filter hosts by (that is, filter hosts that use a specific MDM provider and URL). |
| mdm_name | string | query | The name of the mobile device management (MDM) solution to filter hosts by (that is, filter hosts that use a specific MDM provider). |
| mdm_enrollment_status | string | query | The mobile device management (MDM) enrollment status to filter hosts by. Valid options are 'manual', 'personal', 'manual-personal', 'automatic', 'enrolled', 'pending', or 'unenrolled'. 'pending' only includes Apple (macOS, iOS, iPadOS) hosts in Apple Business (AB) that are not yet enrolled to Fleet. |
| macos_settings | string | query | Filters the hosts by the status of the mobile device management (MDM) profiles applied to hosts. Valid options are 'verified', 'verifying', 'pending', or 'failed'. Note: If this filter is used in Fleet Premium without a fleet ID filter, the results include only "Unassigned" hosts. |
| low_disk_space | integer | query | Available in Fleet Premium. Filters the hosts to only include hosts with less GB of disk space available than this value. Must be a number between 1-100. |
| macos_settings_disk_encryption | string | query | Filters the hosts by disk encryption status. Valid options are 'verified', 'verifying', 'action_required', 'enforcing', 'failed', or 'removing_enforcement'. |
| bootstrap_package | string | query | Available in Fleet Premium. Filters the hosts by the status of the MDM bootstrap package on the host. Valid options are 'installed', 'pending', or 'failed'. Note: If this filter is used in Fleet Premium without a fleet ID filter, the results include only "Unassigned" hosts. |
| os_settings | string | query | Filters the hosts by the status of the operating system settings applied to the hosts. Valid options are 'verified', 'verifying', 'pending', or 'failed'. Note: If this filter is used in Fleet Premium without a fleet ID filter, the results include only "Unassigned" hosts. |
| os_settings_disk_encryption | string | query | Filters the hosts by disk encryption status. Valid options are 'verified', 'verifying', 'action_required', 'enforcing', 'failed', or 'removing_enforcement'. Note: If this filter is used in Fleet Premium without a fleet ID filter, the results include only "Unassigned" hosts. |
If mdm_id, mdm_name, mdm_enrollment_status, os_settings, or os_settings_disk_encryption is specified, then Windows Servers are excluded from the results.
GET /api/v1/fleet/labels/6/hosts&query=floobar
Status: 200
{
"hosts": [
{
"created_at": "2021-02-03T16:11:43Z",
"updated_at": "2021-02-03T21:58:19Z",
"id": 2,
"detail_updated_at": "2021-02-03T21:58:10Z",
"label_updated_at": "2021-02-03T21:58:10Z",
"policy_updated_at": "2023-06-26T18:33:15Z",
"last_enrolled_at": "2021-02-03T16:11:43Z",
"software_updated_at": "2020-11-05T05:09:44Z",
"seen_time": "2021-02-03T21:58:20Z",
"refetch_requested": false,
"hostname": "floobar42",
"uuid": "a2064cef-0000-0000-afb9-283e3c1d487e",
"platform": "ubuntu",
"osquery_version": "4.5.1",
"os_version": "Ubuntu 20.4.0",
"build": "",
"platform_like": "debian",
"code_name": "",
"uptime": 32688000000000,
"memory": 2086899712,
"cpu_type": "x86_64",
"cpu_subtype": "142",
"cpu_brand": "Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz",
"cpu_physical_cores": 4,
"cpu_logical_cores": 4,
"hardware_vendor": "",
"hardware_model": "",
"hardware_version": "",
"hardware_serial": "",
"computer_name": "e2e7f8d8983d",
"timezone": null,
"display_name": "e2e7f8d8983d",
"primary_ip": "172.20.0.2",
"primary_mac": "02:42:ac:14:00:02",
"distributed_interval": 10,
"config_tls_refresh": 10,
"logger_tls_period": 10,
"team_id": null,
"fleet_id": null,
"pack_stats": null,
"team_name": null,
"fleet_name": null,
"status": "offline",
"display_text": "e2e7f8d8983d",
"mdm": {
"encryption_key_available": false,
"enrollment_status": null,
"is_personal_enrollment": false,
"name": "",
"server_url": null
}
}
]
}Deletes the label specified by name.
DELETE /api/v1/fleet/labels/:name
| Name | Type | In | Description |
|---|---|---|---|
| name | string | path | Required. The label's name. |
DELETE /api/v1/fleet/labels/ubuntu_label
Status: 200
Deletes the label specified by ID.
DELETE /api/v1/fleet/labels/id/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The label's id. |
DELETE /api/v1/fleet/labels/id/13
Status: 200
Available in Fleet Premium.
Connects an AI tool to Fleet's built-in MCP server. Point an MCP client at this URL, using the Streamable HTTP transport. The request body is an MCP JSON-RPC message.
Only API-only users can use this endpoint. If the user is limited to specific API endpoints, each tool also needs the endpoints it calls. To turn the MCP server off, set server_settings.mcp_disabled with Modify configuration.
POST /api/v1/fleet/mcp
POST /api/v1/fleet/mcp
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Status: 200
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"tools": [
{
"annotations": {
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": true
},
"description": "Get the total count of active systems enrolled in Fleet",
"inputSchema": {
"properties": {},
"required": [],
"type": "object"
},
"name": "get_total_system_count"
}
]
}
}| Status | Description |
|---|---|
| 400 | The MCP server is turned off (server_settings.mcp_disabled). |
| 401 | The API token is missing or invalid. |
| 402 | Fleet Premium is required. |
| 403 | The user isn't an API-only user, the user is limited to specific API endpoints that don't include this one, or the Origin header doesn't match server_settings.server_url. |
| 405 | GET requests aren't supported. |
Add custom macOS setting (
POST /api/v1/fleet/mdm/apple/profiles) API endpoint is deprecated as of Fleet 4.41. It is maintained for backwards compatibility. Please use the below API endpoint instead.
Add a configuration profile to enforce custom settings on macOS and Windows hosts.
You need to send a request of type
multipart/form-data.
This endpoint accepts a maximum request body size of 1.5MiB.
POST /api/v1/fleet/configuration_profiles
| Name | Type | In | Description |
|---|---|---|---|
| profile | file | body | Required. The .mobileconfig and JSON for macOS or XML for Windows file containing the profile. |
| name | string | body | The display name for the profile. If not specified, the name is derived from the profile file (e.g., PayloadDisplayName for .mobileconfig, filename for .xml/.json). |
| description | string | body | An optional description for the profile. |
| fleet_id | string | body | Available in Fleet Premium. The fleet ID for the profile. If specified, the profile is applied to only hosts that are assigned to the specified fleet. If not specified, the profile is applied to only hosts that are "Unassigned". |
| labels_include_all | array | body | Available in Fleet Premium. Target hosts that have all labels, specified by label name, in the array. |
| labels_include_any | array | body | Available in Fleet Premium. Target hosts that have any label, specified by label name, in the array. |
| labels_exclude_any | array | body | Available in Fleet Premium. Target hosts that that don't have any label, specified by label name, in the array. |
| activation | file | body | Available in Fleet Premium. The activation criteria for the profile as a JSON file. Only supported for declaration (DDM) profiles. For all other profile types, this value is null. |
| self_service | boolean | body | Available in Fleet Premium. If true, the profile is opt-in: Fleet doesn't install it automatically, and end users install it from My device > Controls. Only supported for .mobileconfig profiles. Default is false. |
| hidden | boolean | body | Available in Fleet Premium. If true, the profile is hidden by default on My device > Controls. Supported for all profile types. self_service must be false. Default is false. |
labels_exclude_any can be combined with either labels_include_all or labels_include_any, but labels_include_all and labels_include_any cannot be combined with each other. If none are specified, all hosts are targeted.
For a self-service profile, labels decide which hosts can see the profile. The profile is only installed on hosts that opt in.
If the response is Status: 409 Conflict, the body may include additional error details in the case
of duplicate payload display name or duplicate payload identifier (macOS profiles).
Add a new configuration profile to be applied to macOS hosts
assigned to a fleet. Note that in this example the form data specifies fleet_id in addition to
profile.
POST /api/v1/fleet/configuration_profiles
profile="DDM.json"
fleet_id="1"
labels_include_all="Label name 1"
activation="activation.json"Status: 200
{
"profile_uuid": "954ec5ea-a334-4825-87b3-937e7e381f24"
}List custom macOS settings (
GET /api/v1/fleet/mdm/apple/profiles) API endpoint is deprecated as of Fleet 4.41. It is maintained for backwards compatibility. Please use the below API endpoint instead.
Get a list of the configuration profiles in Fleet.
For Fleet Premium, the list can optionally be filtered by fleet ID. If no fleet ID is specified, fleet profiles are excluded from the results (i.e., only profiles that are associated with "Unassigned" are listed).
GET /api/v1/fleet/configuration_profiles
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | string | query | Available in Fleet Premium. The fleet id to filter profiles. |
| page | integer | query | Page number of the results to fetch. |
| per_page | integer | query | Results per page. |
| order_key | string | query | What to order results by. Can be ordered by name, created_at, or uploaded_at. |
| order_direction | string | query | Requires order_key. The direction of the order given the order key. Options include "asc" and "desc". Default is "asc". |
| after | string | query | The value to get results after. This needs order_key defined, as that's the column that would be used. |
List all configuration profiles for macOS and Windows hosts enrolled to Fleet's MDM that are "Unassigned".
GET /api/v1/fleet/configuration_profiles
Status: 200
{
"profiles": [
{
"profile_uuid": "39f6cbbc-fe7b-4adc-b7a9-542d1af89c63",
"team_id": 0,
"name": "Example macOS profile",
"description": "Configures passcode settings",
"platform": "darwin",
"identifier": "com.example.profile",
"created_at": "2023-03-31T00:00:00Z",
"updated_at": "2023-03-31T00:00:00Z",
"checksum": "dGVzdAo=",
"self_service": true,
"hidden": false,
"labels_exclude_any": [
{
"name": "Label name 1",
"id": 1
}
],
"activation": "eyJldmVudCI6..."
},
{
"profile_uuid": "f5ad01cc-f416-4b5f-88f3-a26da3b56a19",
"team_id": 0,
"name": "Example Windows profile",
"payload_display_name": "Windows profile",
"platform": "windows",
"description": "Configures firewall rules",
"created_at": "2023-04-31T00:00:00Z",
"updated_at": "2023-04-31T00:00:00Z",
"checksum": "aCLemVr)",
"self_service": false,
"hidden": true,
"labels_include_all": [
{
"name": "Label name 2",
"broken": true
},
{
"name": "Label name 3",
"id": 3
}
]
}
],
"meta": {
"has_next_results": false,
"has_previous_results": false
}
}If one or more assigned labels are deleted the profile is considered broken (broken: true). It won’t be applied to new hosts.
Download custom macOS setting (
GET /api/v1/fleet/mdm/apple/profiles/:profile_id) API endpoint is deprecated as of Fleet 4.41. It is maintained for backwards compatibility. Please use the API endpoint below instead.
GET /api/v1/fleet/configuration_profiles/:profile_uuid
| Name | Type | In | Description |
|---|---|---|---|
| profile_uuid | string | url | Required The UUID of the profile to download. |
| alt | string | query | If specified and set to "media", downloads the profile. |
GET /api/v1/fleet/configuration_profiles/f663713f-04ee-40f0-a95a-7af428c351a9
Status: 200
{
"profile_uuid": "f663713f-04ee-40f0-a95a-7af428c351a9",
"team_id": 0,
"name": "Example profile",
"payload_display_name": "Windows profile",
"description": "Configures passcode settings",
"platform": "darwin",
"identifier": "com.example.profile",
"created_at": "2023-03-31T00:00:00Z",
"updated_at": "2023-03-31T00:00:00Z",
"checksum": "dGVzdAo=",
"self_service": false,
"hidden": false,
"labels_include_all": [
{
"name": "Label name 1",
"id": 1,
"broken": true
},
{
"name": "Label name 2",
"id": 2
}
],
"activation": "eyJldmVudCI6..."
}GET /api/v1/fleet/configuration_profiles/f663713f-04ee-40f0-a95a-7af428c351a9?alt=media
Status: 200
Note To confirm success, it is important for clients to match content length with the response header (this is done automatically by most clients, including the browser) rather than relying solely on the response status code returned by this endpoint.
Content-Length: 542
Content-Type: application/octet-stream
Content-Disposition: attachment;filename="2023-03-31 Example profile.mobileconfig"<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array/>
<key>PayloadDisplayName</key>
<string>Example profile</string>
<key>PayloadIdentifier</key>
<string>com.example.profile</string>
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadUUID</key>
<string>0BBF3E23-7F56-48FC-A2B6-5ACC598A4A69</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</plist>Available in Fleet Premium.
Update an existing configuration profile. Use this endpoint to change which hosts a profile is applied to (labels/custom targets) and/or to upload a new profile file.
PATCH /api/v1/fleet/configuration_profiles/:profile_uuid
| Name | Type | In | Description |
|---|---|---|---|
| profile_uuid | string | url | Required. The UUID of the configuration profile to update. |
| profile | file | form | A replacement profile file (.mobileconfig, .json, or .xml). See requirements below. |
| labels_include_all | array | body | Target hosts that have all labels, specified by label name, in the array. |
| labels_include_any | array | body | Target hosts that have any label, specified by label name, in the array. |
| labels_exclude_any | array | body | Target hosts that don't have any label, specified by label name, in the array. |
| activation | file | body | Available in Fleet Premium. The activation criteria for the profile as a JSON file. Only supported for declaration (DDM) profiles. For all other profile types, this value is null. |
| self_service | boolean | body | If true, the profile is opt-in. Only supported for .mobileconfig profiles. If omitted, the current value is kept. |
| hidden | boolean | body | If true, the profile is hidden by default on My device > Controls. self_service must be false. If omitted, the current value is kept. |
Only one of labels_include_all, labels_include_any, or labels_exclude_any can be specified. If none are specified, the profile targets all hosts.
Unlike the label fields, self_service and hidden keep their current values when omitted.
Changing self_service from false to true opts in every host that already has the profile, so nothing is removed. Changing it from true to false installs the profile on all targeted hosts that don't have it.
You can upload a new profile file to replace the contents of the existing profile. What the new file must match, and how the profile is renamed, depends on the profile type:
.json): The new file must have the same Identifier as the existing profile. The profile keeps its current name..xml): There's no identifier to match, so the new file's settings can differ completely from the ones it replaces. The profile is renamed to the uploaded file's name, without its extension..json): There's no identifier to match, so the new file's settings can differ completely from the ones it replaces. The profile keeps its current name.If a .mobileconfig or DDM profile doesn't have the required identifier, the request is rejected.
Renaming a profile doesn't change its profile_uuid or which hosts it targets, and doesn't reinstall it on hosts unless the contents changed too. If another configuration profile in the same fleet already uses the new name, the request is rejected with a 409 status.
Requests that only update labels don't include a file, so the profile's name is left unchanged.
Update a configuration profile to target hosts with specific labels.
PATCH /api/v1/fleet/configuration_profiles/f663713f-04ee-40f0-a95a-7af428c351a9
{
"labels_include_all": ["Label name 1", "Label name 2"]
}Status: 200
{
"profile_uuid": "f663713f-04ee-40f0-a95a-7af428c351a9"
}Delete custom macOS setting (
DELETE /api/v1/fleet/mdm/apple/profiles/:profile_id) API endpoint is deprecated as of Fleet 4.41. It is maintained for backwards compatibility. Please use the below API endpoint instead.
DELETE /api/v1/fleet/configuration_profiles/:profile_uuid
| Name | Type | In | Description |
|---|---|---|---|
| profile_uuid | string | url | Required The UUID of the profile to delete. |
DELETE /api/v1/fleet/configuration_profiles/f663713f-04ee-40f0-a95a-7af428c351a9
Status: 200
{
"warning": "Some Windows settings may not be cleanly removed from hosts and will remain at their last configured value. See https://fleetdm.com/learn-more-about/removal-behavior"
}The
warningfield is only returned when deleting a Windows configuration profile. The warning is informational and the profile is successfully deleted regardless. Some settings may remain on hosts at their last configured value but are no longer enforced by Fleet. See Removal behavior for more information.
Resends a configuration profile for the specified host. Currently, macOS, iOS, iPadOS configuration profiles (.mobileconfig) are supported, as well as Windows (.xml) configuration profiles.
When mdm.windows_one_time_enroll_secrets is enabled, resending the "Fleetd enroll secret" profile to a Windows host issues the host a new one-time enroll secret. If the host already has one it hasn't used, Fleet sends that one again. When the setting is disabled, resending this profile returns a 409 error.
POST /api/v1/fleet/hosts/:id/configuration_profiles/:profile_uuid/resend
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The host's ID. |
| profile_uuid | string | path | Required. The UUID of the configuration profile to resend to the host. |
POST /api/v1/fleet/hosts/233/configuration_profiles/fc14a20-84a2-42d8-9257-a425f62bb54d/resend
Status: 202
Available in Fleet Premium.
Installs a self-service (opt-in) configuration profile on the specified host on the end user's behalf. Fleet queues the install and delivers it on the next profile run. Only .mobileconfig profiles with self_service set to true can be installed this way.
POST /api/v1/fleet/hosts/:id/configuration_profiles/:profile_uuid/install
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The host's ID. |
| profile_uuid | string | path | Required. The UUID of the self-service configuration profile to install. |
POST /api/v1/fleet/hosts/233/configuration_profiles/fc14a20-84a2-42d8-9257-a425f62bb54d/install
Status: 202
If the profile isn't self-service, or the host isn't targeted by the profile's labels, the response is Status: 400. If the profile is already installed or installing on the host, the response is Status: 409.
Available in Fleet Premium.
Removes a self-service (opt-in) configuration profile from the specified host on the end user's behalf. Fleet queues the removal and delivers it on the next profile run. The profile stays available for the host to install again.
POST /api/v1/fleet/hosts/:id/configuration_profiles/:profile_uuid/uninstall
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The host's ID. |
| profile_uuid | string | path | Required. The UUID of the self-service configuration profile to uninstall. |
POST /api/v1/fleet/hosts/233/configuration_profiles/fc14a20-84a2-42d8-9257-a425f62bb54d/uninstall
Status: 202
If the profile isn't self-service, the response is Status: 400. If the host hasn't installed the profile, the response is Status: 404.
Modify configuration profiles for a fleet. The provided list of profiles will be the active profiles for the specified fleet. If no fleet (fleet_id or fleet_name) is provided, the profiles are applied for all hosts (Fleet Free) or for hosts that are "Unassigned" (Fleet Premium).
For Apple (macOS, iOS, iPadOS) profiles, Fleet will send only an InstallProfile command (edit) for all existing profiles with the same PayloadIdentifier (specified in the .mobileconfig file). Fleet will send a RemoveProfile command to hosts for all existing profiles that are not part of the list.
For Windows profiles, Fleet applies new profiles or updates when content changes, and deletes profiles no longer in the list. It does not send commands to remove configuration profiles from Windows hosts.
For declaration (DDM) profiles, hosts with new, updated, or removed profiles are marked "Pending," and Fleet sends a DeclarativeManagement command to tell Apple (macOS, iOS, iPadOS) hosts to sync profiles. If declarations are current, no command is sent and the host is not marked "Pending."
For requests with 100+ profiles, requests will take 5+ seconds.
This endpoint accepts a maximum request body size of 25MiB.
POST /api/v1/fleet/configuration_profiles/batch
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | number | query | Available in Fleet Premium The fleet ID to apply the configuration profiles to. Only one of fleet_name or fleet_id may be included in the request. |
| fleet_name | string | query | Available in Fleet Premium The name of the fleet to apply the custom settings to. Only one of fleet_name or fleet_id may be included in the request. |
| dry_run | bool | query | Validate the provided profiles and return any validation errors, but do not apply the changes. |
| configuration_profiles | object | body | Required. See configuration_profiles |
| Name | Type | Description |
|---|---|---|
| profile | string | Base64 encoded configuration profile (.mobileconfig) or declaration (DDM) profile for Apple (macOS, iOS, iPadOS) hosts, JSON profile for Android hosts, or XML profile for Windows hosts. |
| labels_include_all | array | Available in Fleet Premium. Target hosts that have all labels, specified by label name, in the array. |
| labels_include_any | array | Available in Fleet Premium. Target hosts that have any label, specified by label name, in the array. |
| labels_exclude_any | array | Available in Fleet Premium. Target hosts that that don't have any label, specified by label name, in the array. |
| name | string | The display name for the profile. Required for Windows and declaration (DDM) profiles. For .mobileconfig profiles, if not specified, the profile's PayloadDisplayName is used. |
| description | string | An optional description for the profile. |
| activation | string | Available in Fleet Premium. The Base64 encoded activation criteria for the profile. Only supported for declaration (DDM) profiles. For all other profile types, this value is null. |
| self_service | boolean | Specifies if the profile should be opt-in for end users (no forced install). Supported for .mobileconfig profiles. Default is false. |
| hidden | boolean | Specifies if the profile should be hidden from end users on Fleet Desktop. self_service must be set to false (force install of profile) to use this option. |
For each profile, labels_exclude_any can be combined with either labels_include_all or labels_include_any, but labels_include_all and labels_include_any cannot be combined with each other. If neither is set, all hosts on the specified platform are targeted.
display_nameis deprecated. Please usenameinstead.
POST /api/v1/fleet/configuration_profiles/batch?fleet_id=1
{
"configuration_profiles": [
{
"profile": "<base64-encoded DDM profile>",
"name": "Passcode Settings",
"activation": "eyJldmVudCI6...",
"labels_include_any": [
"Apple Silicon macOS hosts"
],
"self_service": true
}
]
}Status: 204
Add an Apple asset declaration to reference in a configuration profile.
You need to send a request of type
multipart/form-data.
This endpoint accepts a maximum request body size of 1.5MiB.
POST /api/v1/fleet/assets
| Name | Type | In | Description |
|---|---|---|---|
| asset | file | body | Required. The JSON asset declaration. The "Type" must be a valid Apple asset declaration type (e.g., "com.apple.asset.data"), and an "Identifier" must be defined. See Apple's documentation for type-specific payload requirements. |
| fleet_id | string | body | Available in Fleet Premium. The fleet ID for the asset. If specified, the asset is available to only the configuration profile(s) that are assigned to the specified fleet. If not specified, the profile is applied to only hosts that are "Unassigned". |
POST /api/v1/fleet/assets
fleet_id="1"
asset="my-asset.json"{
"Type": "com.apple.asset.data",
"Identifier": "EB13EE2B-5D63-4EBA-810F-5B81D07F5017",
"ServerToken": "E180CA9A-F089-4FA3-BBDF-94CC159C4AE8",
"Payload": {
"Reference": {
"DataURL": "https://example.com/asset-data/data/test.txt",
"ContentType": "text/plain"
},
"Authentication": {
"Type": "MDM"
}
}
}Status: 200
{
"asset_uuid": "954ec5ea-a334-4825-87b3-937e7e381f24"
}Get a list of the Apple asset declarations in Fleet.
For Fleet Premium, the list can optionally be filtered by fleet ID. If no fleet ID is specified, fleet assets are excluded from the results (i.e., only assets that are associated with "Unassigned" are listed).
GET /api/v1/fleet/assets
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | string | query | Available in Fleet Premium. The fleet id to filter profiles. |
List all assets available for the "Unassigned" fleet.
GET /api/v1/fleet/assets
Status: 200
{
"assets": [
{
"asset_uuid": "39f6cbbc-fe7b-4adc-b7a9-542d1af89c63",
"asset": "my-asset.json",
"identifier": "com.example.asset1",
"created_at": "2023-03-31T00:00:00Z",
"updated_at": "2023-03-31T00:00:00Z",
"checksum": "dGVzdAo="
},
{
"asset_uuid": "39f6cbbc-fe7b-4adc-b7a9-542d1af89c63",
"asset": "my-asset2.json",
"identifier": "com.example.asset2",
"created_at": "2023-03-31T00:00:00Z",
"updated_at": "2023-03-31T00:00:00Z",
"checksum": "dGVzdAo="
}
]
}Get or download the original Apple asset declaration file that was uploaded to Fleet.
GET /api/v1/fleet/assets/:asset_uuid
| Name | Type | In | Description |
|---|---|---|---|
| asset_uuid | string | url | Required The UUID of the asset to get. |
| alt | string | query | If specified and set to "media", downloads the asset. |
GET /api/v1/fleet/assets/954ec5ea-a334-4825-87b3-937e7e381f24
Status: 200
{
"asset_uuid": "954ec5ea-a334-4825-87b3-937e7e381f24",
"fleet_id": 0,
"asset": "my-asset.json",
"identifier": "com.example.asset1",
"created_at": "2023-03-31T00:00:00Z",
"updated_at": "2023-03-31T00:00:00Z",
"checksum": "dGVzdAo="
}GET /api/v1/fleet/assets/954ec5ea-a334-4825-87b3-937e7e381f24?alt=media
Status: 200
Note To confirm success, it is important for clients to match content length with the response header (this is done automatically by most clients, including the browser) rather than relying solely on the response status code returned by this endpoint.
Content-Length: 542
Content-Type: application/octet-stream
Content-Disposition: attachment;filename="2023-03-31 my-asset.json"{
"Type": "com.apple.asset.data",
"Identifier": "com.example.asset1",
"ServerURL": "https://example.com/assets/my-asset.json"
}Deletes an Apple asset declaration.
If an asset is referenced in a configuration profile, you must delete the configuration profile first before being able to remove the asset.
DELETE /api/v1/fleet/assets/:asset_uuid
| Name | Type | In | Description |
|---|---|---|---|
| asset_uuid | string | url | Required The UUID of the asset to delete. |
DELETE /api/v1/fleet/assets/954ec5ea-a334-4825-87b3-937e7e381f24
Status: 204
Resends a configuration profile for the specified host. Currently, macOS, iOS, iPadOS configuration profiles (.mobileconfig) are supported, as well as Windows (.xml) configuration profiles.
The "Fleetd enroll secret" profile can't be resent with this endpoint when mdm.windows_one_time_enroll_secrets is enabled. It returns a 403 error, because only an admin can issue a new one-time enroll secret.
POST /api/v1/fleet/device/:token/configuration_profiles/:profile_uuid/resend
| Name | Type | In | Description |
|---|---|---|---|
| token | string | path | Required. The host's Fleet Desktop token. |
| profile_uuid | string | path | Required. The UUID of the configuration profile to resend to the host. |
POST /api/v1/fleet/device/abcdef012456789/configuration_profiles/fc14a20-84a2-42d8-9257-a425f62bb54d/resend
Status: 202
Available in Fleet Premium.
Installs a self-service (opt-in) configuration profile on the host. Fleet queues the install and delivers it on the next profile run. Only .mobileconfig profiles with self_service set to true can be installed this way.
POST /api/v1/fleet/device/:token/configuration_profiles/:profile_uuid/install
| Name | Type | In | Description |
|---|---|---|---|
| token | string | path | Required. The host's Fleet Desktop token. |
| profile_uuid | string | path | Required. The UUID of the self-service configuration profile to install. |
POST /api/v1/fleet/device/abcdef012456789/configuration_profiles/fc14a20-84a2-42d8-9257-a425f62bb54d/install
Status: 202
If the profile isn't self-service, or the host isn't targeted by the profile's labels, the response is Status: 400. If the profile is already installed or installing, the response is Status: 409.
Available in Fleet Premium.
Removes a self-service (opt-in) configuration profile from the host. Fleet queues the removal and delivers it on the next profile run. The profile stays available to install again.
POST /api/v1/fleet/device/:token/configuration_profiles/:profile_uuid/uninstall
| Name | Type | In | Description |
|---|---|---|---|
| token | string | path | Required. The host's Fleet Desktop token. |
| profile_uuid | string | path | Required. The UUID of the self-service configuration profile to uninstall. |
POST /api/v1/fleet/device/abcdef012456789/configuration_profiles/fc14a20-84a2-42d8-9257-a425f62bb54d/uninstall
Status: 202
If the profile isn't self-service, the response is Status: 400. If the host hasn't installed the profile, the response is Status: 404.
POST /api/v1/fleet/configuration_profiles/resend/batch
| Name | Type | In | Description |
|---|---|---|---|
| profile_uuid | integer | body | Required. The UUID of the existing configuration profile you'd like to resend. |
| filters | object | body | Required. See filters |
| Name | Type | Description |
|---|---|---|
| profile_status | string | Profile status. Currently, "failed" is supported. |
POST /api/v1/fleet/configuration_profiles/batch/resend
{
"profile_uuid": "f663713f-04ee-40f0-a95a-7af428c351a9",
"filters": {
"profile_status": "failed"
}
}Status: 202
The
PATCH /api/v1/fleet/mdm/apple/settingsAPI endpoint is deprecated as of Fleet 4.45. It is maintained for backward compatibility. Please use the new API endpoint below. You can view archived documentation for the deprecated endpoint.
Available in Fleet Premium
POST /api/v1/fleet/disk_encryption
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | integer | body | The fleet ID to apply the settings to. Settings are applied to "Unassigned" hosts if absent. |
| enable_disk_encryption | boolean | body | Deprecated. Whether disk encryption and/or escrow should be enforced on all platforms. When set to true, enables disk encryption for macOS and Windows hosts, and enables escrow for macOS and Linux hosts. Use per-platform settings instead. |
| windows_require_bitlocker_pin | boolean | Deprecated at this level. Use windows_settings.require_bitlocker_pin instead. |
|
| macos_settings | object | body | See macos_settings below. |
| windows_settings | object | body | See windows_settings below. |
| linux_settings | object | body | See linux_settings below. |
| Name | Type | Description |
|---|---|---|
| enable_disk_encryption | boolean | Whether disk encryption should be enforced on macOS hosts that belong to the fleet (or "Unassigned"). |
| enable_escrow_disk_encryption_key | boolean | Specifies whether Fleet stores the disk encryption recovery key without prompting users to turn on disk encryption. Set to true when a third-party tool handles enforcement. |
| Name | Type | Description |
|---|---|---|
| enable_disk_encryption | boolean | Whether disk encryption should be enforced on Windows hosts that belong to the fleet (or "Unassigned"). |
| require_bitlocker_pin | boolean | End users on Windows hosts that belong to the fleet (or "Unassigned") will be required to set a BitLocker PIN if set to true. windows_settings.enable_disk_encryption must be set to true. When the PIN is set, it's required to unlock Windows host during startup. |
| Name | Type | Description |
|---|---|---|
| enable_escrow_disk_encryption_key | boolean | Specifies whether Fleet stores the disk encryption recovery key without prompting users to turn on disk encryption. Set to true when a third-party tool handles enforcement. |
POST /api/v1/fleet/disk_encryption
Status: 204
Available in Fleet Premium
Get aggregate status counts of disk encryption enforced on macOS and Windows hosts.
The summary can optionally be filtered by fleet ID.
GET /api/v1/fleet/disk_encryption
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | string | query | Available in Fleet Premium. The fleet ID to filter the summary. |
GET /api/v1/fleet/disk_encryption
Status: 200
{
"verified": {"macos": 123, "windows": 123, "linux": 13},
"verifying": {"macos": 123, "windows": 0, "linux": 0},
"action_required": {"macos": 123, "windows": 0, "linux": 37},
"enforcing": {"macos": 123, "windows": 123, "linux": 0},
"failed": {"macos": 123, "windows": 123, "linux": 0},
"removing_enforcement": {"macos": 123, "windows": 0, "linux": 0}
}Available in Fleet Premium
Sets a naming convention for all macOS, iOS, and iPadOS hosts in a fleet (or "Unassigned"). Fleet resolves the template per host, renames the host on the device via an Apple MDM command, and updates the host's name in Fleet.
Sending an empty name_template clears the template. Clearing the template stops enforcement but doesn't rename any host.
POST /api/v1/fleet/host_name_template
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | integer | body | The fleet ID to apply the host name template to. The template is applied to "Unassigned" hosts if the value is absent or 0. |
| name_template | string | body | The host name template. Send an empty string to clear the template. |
The template supports the built-in host identity variables ($FLEET_VAR_HOST_HARDWARE_SERIAL, $FLEET_VAR_HOST_UUID, $FLEET_VAR_HOST_PLATFORM), the IdP end-user variables ($FLEET_VAR_HOST_END_USER_IDP_USERNAME, $FLEET_VAR_HOST_END_USER_IDP_USERNAME_LOCAL_PART, $FLEET_VAR_HOST_END_USER_IDP_GROUPS, $FLEET_VAR_HOST_END_USER_IDP_DEPARTMENT, $FLEET_VAR_HOST_END_USER_IDP_FULL_NAME, $FLEET_VAR_HOST_END_USER_IDP_EXTERNAL_ID), and custom ($FLEET_SECRET_*) variables; each also works in its ${...} form. Certificate authority variables (SCEP challenges and proxy URLs, DigiCert data, certificate renewal IDs, the Platform SSO device registration token) and the deprecated $FLEET_VAR_HOST_END_USER_EMAIL_IDP variable aren't supported and return a 422 — they resolve to secrets or certificate data that are meaningless and unsafe as a host name.
If a host is missing the IdP data a variable needs, that host's rename fails. A referenced custom variable must already exist (an undefined one returns a 422); custom variables are global, and a custom variable's value becomes the host's (publicly visible) name, so it isn't kept hidden as it is in scripts and configuration profiles.
POST /api/v1/fleet/host_name_template
{
"fleet_id": 5,
"name_template": "iPad $FLEET_VAR_HOST_HARDWARE_SERIAL"
}Status: 204
Available in Fleet Premium
Resends the host name template MDM command to a host whose host name status is "failed" or "verified". The host's status returns to "pending" (shown as "Enforcing" in the UI) until the device applies the name again.
POST /api/v1/fleet/hosts/:id/name_template/resend
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The ID of the host to resend to. |
POST /api/v1/fleet/hosts/42/name_template/resend
Status: 202
If the host has no host name template enforced, the response is 404. If the host name status is "pending" or "verifying", the response is 409.
Get macOS settings statistics (
GET /api/v1/fleet/mdm/apple/profiles/summary) API endpoint is deprecated as of Fleet 4.41. It is maintained for backwards compatibility. Please use the below API endpoint instead.
Get aggregate status counts of all OS settings (configuration profiles, Recovery Lock passwords, and disk encryption) enforced on hosts.
For Fleet Premium users, the counts can
optionally be filtered by fleet_id. If no fleet_id is specified, fleet profiles are excluded from the results (i.e., only profiles that are associated with "Unassigned" are listed).
GET /api/v1/fleet/configuration_profiles/summary
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | string | query | Available in Fleet Premium. The fleet ID to filter profiles. |
Get aggregate status counts of profiles for macOS and Windows hosts that are "Unassigned".
GET /api/v1/fleet/configuration_profiles/summary
Status: 200
{
"verified": 123,
"verifying": 123,
"failed": 123,
"pending": 123
}For self-service profiles, the counts include only hosts that opted in. Hosts that can install a self-service profile but haven't aren't counted.
Get status counts of a single OS settings (configuration profile) enforced on hosts.
GET /api/v1/fleet/configuration_profiles/:profile_uuid/status
| Name | Type | In | Description |
|---|---|---|---|
| profile_uuid | string | query | Required. The UUID of configuration profile. |
GET /api/v1/fleet/configuration_profiles/f663713f-04ee-40f0-a95a-7af428c351a9/status
Status: 200
{
"verified": 123,
"verifying": 123,
"failed": 123,
"pending": 123
}For self-service profiles, the counts include only hosts that opted in. Hosts that can install a self-service profile but haven't aren't counted.
Available in Fleet Premium
Sets the custom MDM setup enrollment profile for a fleet or "Unassigned".
POST /api/v1/fleet/enrollment_profiles/automatic
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | integer | json | The fleet ID this custom enrollment profile applies to, or "Unassigned" if omitted. |
| name | string | json | The filename of the uploaded custom enrollment profile. |
| enrollment_profile | object | json | The custom enrollment profile's json, as documented in https://developer.apple.com/documentation/devicemanagement/profile. |
POST /api/v1/fleet/enrollment_profiles/automatic
Status: 200
{
"team_id": 123,
"fleet_id": 123,
"name": "dep_profile.json",
"uploaded_at": "2023-04-04:00:00Z",
"enrollment_profile": {
"is_mandatory": true,
"is_mdm_removable": false
}
}NOTE: The
ConfigurationWebURLandURLvalues in the custom MDM setup enrollment profile are automatically populated. Attempting to populate them with custom values may generate server response errors.
Available in Fleet Premium
Gets the custom MDM setup enrollment profile for a fleet or "Unassigned".
GET /api/v1/fleet/enrollment_profiles/automatic
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | integer | query | The fleet ID for which to return the custom enrollment profile, or "Unassigned" if omitted. |
GET /api/v1/fleet/enrollment_profiles/automatic?fleet_id=123
Status: 200
{
"team_id": 123,
"fleet_id": 123,
"name": "dep_profile.json",
"uploaded_at": "2023-04-04:00:00Z",
"enrollment_profile": {
"is_mandatory": true,
"is_mdm_removable": false
}
}Available in Fleet Premium
Gets the Fleet default MDM setup enrollment profile. This is the profile Fleet registers with Apple for devices in fleets that do not have a custom MDM setup enrollment profile uploaded.
GET /api/v1/fleet/enrollment_profiles/automatic/default
The default profile is a single profile per Fleet instance. It is shared across all fleets and all Apple Business Manager (ABM) tokens and cannot be scoped by fleet_id.
If the default profile has not yet been stored (for example, on a new Fleet instance that has not completed its first automatic enrollment registration), Fleet returns the in-code defaults that will be registered on first use, and updated_at is null.
None.
GET /api/v1/fleet/enrollment_profiles/automatic/default
Status: 200
{
"updated_at": "2026-04-04T00:00:00Z",
"enrollment_profile": {
"profile_name": "Fleet default enrollment profile",
"is_supervised": true,
"is_mdm_removable": false,
"skip_setup_items": []
}
}NOTE: The
ConfigurationWebURLandURLvalues are automatically populated by Fleet at registration time and are not included in this response.
Available in Fleet Premium
Deletes the custom MDM setup enrollment profile assigned to a fleet or "Unassigned".
DELETE /api/v1/fleet/enrollment_profiles/automatic
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | integer | query | The fleet ID for which to delete the custom enrollment profile, or "Unassigned" if omitted. |
DELETE /api/v1/fleet/enrollment_profiles/automatic?fleet_id=123
Status: 204
GET /api/v1/fleet/enrollment_profiles/ota
The returned value is a signed .mobileconfig OTA enrollment profile (see Apple enrollment profile docs). Install this profile on macOS, iOS, or iPadOS hosts to enroll them to a specific fleet in Fleet and turn on MDM features.
If the fleet has Require IdP authentication enabled, the OTA enrollment profile won't work. Use the manual enrollment profile instead.
To enroll macOS hosts, turn on MDM features, and add human-device mapping, use the manual enrollment profile instead.
If the only_allow_apple_business_enrollment setting is enabled, this endpoint returns a 403 error with the message: "Manual enrollment is not available. Only devices assigned through Apple Business can enroll. Please contact your IT administrator."
| Name | Type | In | Description |
|---|---|---|---|
| enroll_secret | string | query | Required. The enroll secret of the fleet this host will be assigned to. |
GET /api/v1/fleet/enrollment_profiles/ota?enroll_secret=foobar
Status: 200
Note: To confirm success, it is important for clients to match content length with the response header (this is done automatically by most clients, including the browser) rather than relying solely on the response status code returned by this endpoint.
Content-Length: 542
Content-Type: application/x-apple-aspen-config; charset=utf-8
Content-Disposition: attachment;filename="fleet-mdm-enrollment-profile.mobileconfig"
X-Content-Type-Options: nosniff<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Inc//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<dict>
<key>URL</key>
<string>https://foo.example.com/api/fleet/ota_enrollment?enroll_secret=foobar</string>
<key>DeviceAttributes</key>
<array>
<string>UDID</string>
<string>VERSION</string>
<string>PRODUCT</string>
<string>SERIAL</string>
</array>
</dict>
<key>PayloadOrganization</key>
<string>Acme Inc.</string>
<key>PayloadDisplayName</key>
<string>Acme Inc. enrollment</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>PayloadUUID</key>
<string>fdb376e5-b5bb-4d8c-829e-e90865f990c9</string>
<key>PayloadIdentifier</key>
<string>com.fleetdm.fleet.mdm.apple.ota</string>
<key>PayloadType</key>
<string>Profile Service</string>
</dict>
</plist>Retrieves an unsigned manual enrollment profile for macOS hosts. Install this profile on macOS hosts to turn on MDM features manually.
To add human-device mapping, add the end user's email to the enrollment profile.
The manual enrollment profile uses Fleet's static SCEP challenge. If mdm.apple_scep_static_challenge_enabled is set to false, this endpoint returns an error.
If the only_allow_apple_business_enrollment setting is enabled, this endpoint returns a 400 error with the message: "Manual enrollment is not available because only Apple Business enrollment is allowed for this organization."
Warning: Do not change or modify this profile. Apple requires values in this profile to remain unchanged. Any values changed block Fleet's ability to renew this profile and result in Fleet losing its ability to manage a device.
GET /api/v1/fleet/enrollment_profiles/manual
GET /api/v1/fleet/enrollment_profiles/manual
Status: 200
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<!-- ... -->
</plist>Available in Fleet Premium
Upload a bootstrap package that will be automatically installed during DEP setup.
You need to send a request of type
multipart/form-data.
This endpoint accepts a maximum request body size of 10GB.
POST /api/v1/fleet/bootstrap
| Name | Type | In | Description |
|---|---|---|---|
| package | file | body | The bootstrap package installer. It must be a signed pkg file. Required unless upload_id is specified. |
| upload_id | string | body | The upload_id from Create staged upload. Use instead of package for a package uploaded directly to GCS. |
| filename | string | body | The package's file name, for example bootstrap-package.pkg. Required with upload_id. |
| fleet_id | string | body | The fleet ID for the package. If specified, the package will be installed to hosts that are assigned to the specified fleet. If not specified, the package will be installed on "Unassigned" hosts. |
| manual_agent_install | boolean | body | If set to true, Fleet's agent (fleetd) won't be installed as part of automatic enrollment (ADE) on macOS hosts, or on hosts that turn on MDM manually if the bootstrap package is installed during manual enrollment. (Default: false) |
Upload a bootstrap package that will be installed to macOS hosts enrolled to MDM that are
assigned to a fleet. Note that in this example the form data specifies fleet_id in addition to
package.
POST /api/v1/fleet/bootstrap
fleet_id="1"
package="bootstrap-package.pkg"Status: 200
Register a bootstrap package that was uploaded to the URL from Create staged upload.
POST /api/v1/fleet/bootstrap
fleet_id="1"
upload_id="9c8c3146-a2ef-450b-9cc6-70b005d8554e"
filename="bootstrap-package.pkg"Status: 200
Available in Fleet Premium
Get information about a bootstrap package that was uploaded to Fleet.
GET /api/v1/fleet/bootstrap/:fleet_id/metadata
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | string | url | Required The fleet ID for the package. Zero (0) can be specified to get information about the bootstrap package for "Unassigned" hosts. |
| for_update | boolean | query | If set to true, the authorization will be for a write action instead of a read. Useful for the write-only gitops role when requesting the bootstrap metadata to check if the package needs to be replaced. |
GET /api/v1/fleet/bootstrap/0/metadata
Status: 200
{
"name": "bootstrap-package.pkg",
"team_id": 0,
"fleet_id": 0,
"sha256": "6bebb4433322fd52837de9e4787de534b4089ac645b0692dfb74d000438da4a3",
"token": "AA598E2A-7952-46E3-B89D-526D45F7E233",
"created_at": "2023-04-20T13:02:05Z"
}In the response above:
token is the value you can use to download a bootstrap packagesha256 is the SHA256 digest of the bytes of the bootstrap package file.Available in Fleet Premium
Delete a fleet's bootstrap package.
DELETE /api/v1/fleet/bootstrap/:fleet_id
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | string | url | Required The fleet ID for the package. Zero (0) can be specified to get information about the bootstrap package for "Unassigned" hosts. |
DELETE /api/v1/fleet/bootstrap/1
Status: 200
Available in Fleet Premium
Download a bootstrap package.
GET /api/v1/fleet/bootstrap
| Name | Type | In | Description |
|---|---|---|---|
| token | string | query | Required The token of the bootstrap package. |
GET /api/v1/fleet/bootstrap?token=AA598E2A-7952-46E3-B89D-526D45F7E233
Status: 200
Status: 200
Content-Type: application/octet-stream
Content-Disposition: attachment
Content-Length: <length>
Body: <blob>Available in Fleet Premium
Get aggregate status counts of bootstrap packages delivered to DEP enrolled hosts.
The summary can optionally be filtered by fleet ID.
GET /api/v1/fleet/bootstrap/summary
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | string | query | The fleet ID to filter the summary. |
GET /api/v1/fleet/bootstrap/summary
Status: 200
{
"installed": 10,
"failed": 1,
"pending": 4
}Available in Fleet Premium
PATCH /api/v1/fleet/setup_experience
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | integer | body | The fleet ID to apply the settings to. Settings are applied to "Unassigned" hosts if absent. |
| enable_end_user_authentication | boolean | body | When enabled, require end users to authenticate with your identity provider (IdP) when they set up their new macOS hosts. |
| lock_end_user_info | boolean | body | When enabled, end user can't edit the local account's Account Name and Full Name in macOS Setup Assistant. These fields will be locked to values from your IdP. (Default: true) |
| require_all_software_macos | boolean | body | If set to true, setup will be canceled on macOS hosts if any software installs fail. |
| require_all_software_windows | boolean | body | If set to true, setup will be canceled on Windows hosts if any software installs fail (the host is blocked at the Windows Enrollment Status Page until the device is reset). If false, the Enrollment Status Page lists the failed software and the end user can continue to the desktop and install it later via self-service. |
| enable_release_device_manually | boolean | body | When enabled, you're responsible for sending the DeviceConfigured command. End users will be stuck in Setup Assistant until this command is sent. |
| manual_agent_install | boolean | body | If set to true, Fleet's agent (fleetd) won't be installed as part of automatic enrollment (ADE) on macOS hosts, or on hosts that turn on MDM manually if the bootstrap package is installed during manual enrollment. (Default: false) |
| macos_enable_bootstrap_package_during_manual_enrollment | boolean | body | If set to true, the bootstrap package is also installed on macOS hosts that turn on MDM manually, rather than automatically via Apple Business. This includes re-enrollment. Requires a bootstrap package. (Default: false) |
| macos_enable_bootstrap_package_during_migration | boolean | body | If set to true, the bootstrap package is installed on macOS hosts assigned to Fleet in Apple Business that migrate from another MDM, including re-enrollment via sudo profiles renew. Requires a bootstrap package. (Default: false) |
| enable_managed_local_account | boolean | body | Available in Fleet Premium. During the Setup experience, a managed local account will be created on macOS hosts if set to true. |
| end_user_local_account_type | string | body | Specifies the type of local end user account created. (Default: "admin") enable_managed_local_account must be true. |
PATCH /api/v1/fleet/setup_experience
{
"team_id": 1,
"fleet_id": 1,
"enable_end_user_authentication": true,
"enable_release_device_manually": true
}Status: 204
Available in Fleet Premium
Upload an EULA that will be shown during the macOS DEP flow or Windows enrollment. If no custom terms are uploaded for Windows, Fleet uses a default terms of service page.
You need to send a request of type
multipart/form-data. For darwin, this endpoint accepts a maximum request body size of 25MiB. For windows, the markdown file must be 512 KB or smaller.
POST /api/v1/fleet/setup_experience/eula
| Name | Type | In | Description |
|---|---|---|---|
| platform | string | body | The platform of the EULA. Options are darwin and windows. Defaults to darwin. Returns 422 if the value is not darwin or windows. |
| eula | file | body | Required. A PDF document containing the EULA (darwin), or a markdown file containing the terms and conditions (windows). |
POST /api/v1/fleet/setup_experience/eula
eula="eula.pdf"Status: 200
Available in Fleet Premium
Get information about the EULA file that was uploaded to Fleet. If no EULA was previously uploaded, this endpoint returns a 404 status code.
GET /api/v1/fleet/setup_experience/eula/metadata
| Name | Type | In | Description |
|---|---|---|---|
| platform | string | query | The platform of the EULA. Options are darwin and windows. Defaults to darwin. Returns 422 if the value is not darwin or windows. |
GET /api/v1/fleet/setup_experience/eula/metadata
Status: 200
{
"name": "eula.pdf",
"token": "AA598E2A-7952-46E3-B89D-526D45F7E233",
"created_at": "2023-04-20T13:02:05Z",
"platform": "darwin"
}In the response above:
token is the value you can use to download an EULAAvailable in Fleet Premium
Delete an EULA file.
DELETE /api/v1/fleet/setup_experience/eula/:token
| Name | Type | In | Description |
|---|---|---|---|
| token | string | path | Required The token of the EULA file. |
DELETE /api/v1/fleet/setup_experience/eula/AA598E2A-7952-46E3-B89D-526D45F7E233
Status: 200
Available in Fleet Premium
Download an EULA file
The response for
Content-Type: application/pdffordarwinandContent-Type: text/markdown; charset=utf-8for Windows.
GET /api/v1/fleet/setup_experience/eula/:token
| Name | Type | In | Description |
|---|---|---|---|
| token | string | path | Required The token of the EULA file. |
GET /api/v1/fleet/setup_experience/eula/AA598E2A-7952-46E3-B89D-526D45F7E233
Status: 200
Status: 200
Content-Type: application/pdf
Content-Disposition: attachment
Content-Length: <length>
Body: <blob>Available in Fleet Premium
List software that can be automatically installed during setup. If install_during_setup is true it will be installed during setup. On Windows and Linux hosts, Fleet checks the software's associated policies first and skips the install when the host passes all of them. Learn more in the Windows and Linux setup experience guide.
GET /api/v1/fleet/setup_experience/software
| Name | Type | In | Description |
|---|---|---|---|
| platform | string | query | Filters software titles available for install by platforms. Options are "macos", "windows", "linux", "ios", "ipados", and "android". Defaults to "macos". To show titles from multiple platforms, separate the platforms with commas (e.g. ?platform=macos,ios,android). |
| fleet_id | integer | query | Available in Fleet Premium. The ID of the fleet to filter software by. If not specified, it will filter only software that's available for "Unassigned" hosts. |
| page | integer | query | Page number of the results to fetch. |
| per_page | integer | query | Results per page. |
| order_key | string | query | What to order results by. Allowed fields are name and hosts_count. Default is hosts_count (descending). |
| order_direction | string | query | Requires order_key. The direction of the order given the order key. Options include "asc" and "desc". Default is "asc". |
GET /api/v1/fleet/setup_experience/software?fleet_id=3
Status: 200
{
"software_titles": [
{
"id": 12,
"name": "Firefox.app",
"icon_url": "/api/latest/fleet/software/titles/12/icon?fleet_id=3",
"software_package": {
"name": "FirefoxInstall.pkg",
"platform": "darwin",
"version": "125.6",
"self_service": true,
"install_during_setup": true
},
"app_store_app": null,
"versions_count": 3,
"source": "apps",
"hosts_count": 48,
"versions": [
{
"id": 123,
"version": "1.12",
"vulnerabilities": ["CVE-2023-1234","CVE-2023-4321","CVE-2023-7654"]
},
{
"id": 124,
"version": "3.4",
"vulnerabilities": ["CVE-2023-1234","CVE-2023-4321","CVE-2023-7654"]
},
{
"id": 12,
"version": "1.13",
"vulnerabilities": ["CVE-2023-1234","CVE-2023-4321","CVE-2023-7654"]
}
]
}
],
"count": 2,
"counts_updated_at": "2024-10-04T10:00:00Z",
"meta": {
"has_next_results": false,
"has_previous_results": false
}
}Available in Fleet Premium
Set software that will be automatically installed during setup. Software that isn't included in the request will be unset.
PUT /api/v1/fleet/setup_experience/software
| Name | Type | In | Description |
|---|---|---|---|
| platform | string | body | Platform to install software for. Either "macos", "windows", "linux", "ios", "ipados", or "android". Defaults to "macos". |
| fleet_id | integer | body | Available in Fleet Premium. The ID of the fleet to set the software for. If not specified, it will set the software for "Unassigned" hosts. |
| software_title_ids | array | body | The ID of software titles to install during setup. |
PUT /api/v1/fleet/setup_experience/software
{
"platform": "linux",
"fleet_id": 1,
"software_title_ids": [3000, 3001]
}Status: 200
{}Available in Fleet Premium
Add a script that will automatically run during macOS setup.
You need to send a request of type
multipart/form-data.
POST /api/v1/fleet/setup_experience/script
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | integer | body | Available in Fleet Premium. The ID of the fleet to add the script to. If not specified, a script will be added for "Unassigned" hosts. |
| script | file | body | The contents of the script to run during setup. |
POST /api/v1/fleet/setup_experience/script
fleet_id="1"
script="myscript.sh"Status: 200
Available in Fleet Premium
Get a script that will automatically run during macOS setup.
GET /api/v1/fleet/setup_experience/script
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | integer | query | Available in Fleet Premium. The ID of the fleet to get the script for. If not specified, script will be returned for "Unassigned" hosts. |
| alt | string | query | If specified and set to "media", downloads the script's contents. |
GET /api/v1/fleet/setup_experience/script?fleet_id=3
Status: 200
{
"id": 1,
"team_id": 3,
"fleet_id": 3,
"name": "setup-experience-script.sh",
"created_at": "2023-07-30T13:41:07Z",
"updated_at": "2023-07-30T13:41:07Z"
}GET /api/v1/fleet/setup_experience/script?fleet_id=3&alt=media
Content-Length: 13
Content-Type: application/octet-stream
Content-Disposition: attachment;filename="2023-09-27 script_1.sh"Status: 200
echo "hello"Available in Fleet Premium
Delete a script that will automatically run during macOS setup.
DELETE /api/v1/fleet/setup_experience/script
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | integer | query | Available in Fleet Premium. The ID of the fleet to get the script for. If not specified, script will be returned for "Unassigned" hosts. |
DELETE /api/v1/fleet/setup_experience/script?fleet_id=3
Status: 200
This endpoint tells Fleet to run a custom MDM command on the targeted macOS, iOS, iPadOS, Windows, or Android hosts the next time they come online.
The MDM command payloads must be base64-encoded.
This endpoint accepts a maximum request body size of 2MiB.
POST /api/v1/fleet/commands/run
| Name | Type | In | Description |
|---|---|---|---|
| command | string | json | A Base64 encoded MDM command. For Apple hosts, this is an XML plist as described in Apple's documentation. For Windows hosts, this is SyncML XML as described in Windows's documentation. For Android hosts, this is the JSON body of the AMAPI issueCommand request. All payloads must be Base64 encoded. Supported formats are standard and raw (unpadded). |
| host_uuids | array | json | An array of host UUIDs enrolled in Fleet on which the command should run. |
Note that the Apple EraseDevice and DeviceLock commands and the Android LOCK and RESET_PASSWORD commands are available in Fleet Premium only.
POST /api/v1/fleet/commands/run
Status: 200
{
"command_uuid": "a2064cef-0000-1234-afb9-283e3c1d487e",
"request_type": "ProfileList"
}The
GET /api/v1/fleet/mdm/apple/commandresultsAPI endpoint, deprecated as of Fleet 4.40, was removed in Fleet 4.93. Use the API endpoint below instead.
This endpoint returns the results for a specific custom MDM command.
In the response, the possible status values for macOS, iOS, and iPadOS hosts are the following:
fleetctl get mdm-command-results --id=<insert-command-id to view the error.fleetctl get mdm-command-results --id=<insert-command-id to view the error.The possible status values for Windows hosts are listed in Microsoft's OMA DM documentation.
The possible status values for Android hosts are the following:
result field contains the full AMAPI Operation response with error details.GET /api/v1/fleet/commands/results
| Name | Type | In | Description |
|---|---|---|---|
| command_uuid | string | query | The unique identifier of the command. |
| host_identifier | string | query | The host's hostname, uuid, or hardware_serial. Returns only results for the specified host. |
GET /api/v1/fleet/commands/results?command_uuid=a2064cef-0000-1234-afb9-283e3c1d487e
Status: 200
{
"results": [
{
"host_uuid": "145cafeb-87c7-4869-84d5-e4118a927746",
"command_uuid": "a2064cef-0000-1234-afb9-283e3c1d487e",
"status": "Acknowledged",
"updated_at": "2023-04-04:00:00Z",
"request_type": "ProfileList",
"hostname": "mycomputer",
"payload": "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjwhRE9DVFlQRSBwbGlzdCBQVUJMSUMgIi0vL0FwcGxlLy9EVEQgUExJU1QgMS4wLy9FTiIgImh0dHA6Ly93d3cuYXBwbGUuY29tL0RURHMvUHJvcGVydHlMaXN0LTEuMC5kdGQiPg0KPHBsaXN0IHZlcnNpb249IjEuMCI+DQo8ZGljdD4NCg0KCTxrZXk+UGF5bG9hZERlc2NyaXB0aW9uPC9rZXk+DQoJPHN0cmluZz5UaGlzIHByb2ZpbGUgY29uZmlndXJhdGlvbiBpcyBkZXNpZ25lZCB0byBhcHBseSB0aGUgQ0lTIEJlbmNobWFyayBmb3IgbWFjT1MgMTAuMTQgKHYyLjAuMCksIDEwLjE1ICh2Mi4wLjApLCAxMS4wICh2Mi4wLjApLCBhbmQgMTIuMCAodjEuMC4wKTwvc3RyaW5nPg0KCTxrZXk+UGF5bG9hZERpc3BsYXlOYW1lPC9rZXk+DQoJPHN0cmluZz5EaXNhYmxlIEJsdWV0b290aCBzaGFyaW5nPC9zdHJpbmc+DQoJPGtleT5QYXlsb2FkRW5hYmxlZDwva2V5Pg0KCTx0cnVlLz4NCgk8a2V5PlBheWxvYWRJZGVudGlmaWVyPC9rZXk+DQoJPHN0cmluZz5jaXMubWFjT1NCZW5jaG1hcmsuc2VjdGlvbjIuQmx1ZXRvb3RoU2hhcmluZzwvc3RyaW5nPg0KCTxrZXk+UGF5bG9hZFNjb3BlPC9rZXk+DQoJPHN0cmluZz5TeXN0ZW08L3N0cmluZz4NCgk8a2V5PlBheWxvYWRUeXBlPC9rZXk+DQoJPHN0cmluZz5Db25maWd1cmF0aW9uPC9zdHJpbmc+DQoJPGtleT5QYXlsb2FkVVVJRDwva2V5Pg0KCTxzdHJpbmc+NUNFQkQ3MTItMjhFQi00MzJCLTg0QzctQUEyOEE1QTM4M0Q4PC9zdHJpbmc+DQoJPGtleT5QYXlsb2FkVmVyc2lvbjwva2V5Pg0KCTxpbnRlZ2VyPjE8L2ludGVnZXI+DQogICAgPGtleT5QYXlsb2FkUmVtb3ZhbERpc2FsbG93ZWQ8L2tleT4NCiAgICA8dHJ1ZS8+DQoJPGtleT5QYXlsb2FkQ29udGVudDwva2V5Pg0KCTxhcnJheT4NCgkJPGRpY3Q+DQoJCQk8a2V5PlBheWxvYWRDb250ZW50PC9rZXk+DQoJCQk8ZGljdD4NCgkJCQk8a2V5PmNvbS5hcHBsZS5CbHVldG9vdGg8L2tleT4NCgkJCQk8ZGljdD4NCgkJCQkJPGtleT5Gb3JjZWQ8L2tleT4NCgkJCQkJPGFycmF5Pg0KCQkJCQkJPGRpY3Q+DQoJCQkJCQkJPGtleT5tY3hfcHJlZmVyZW5jZV9zZXR0aW5nczwva2V5Pg0KCQkJCQkJCTxkaWN0Pg0KCQkJCQkJCQk8a2V5PlByZWZLZXlTZXJ2aWNlc0VuYWJsZWQ8L2tleT4NCgkJCQkJCQkJPGZhbHNlLz4NCgkJCQkJCQk8L2RpY3Q+DQoJCQkJCQk8L2RpY3Q+DQoJCQkJCTwvYXJyYXk+DQoJCQkJPC9kaWN0Pg0KCQkJPC9kaWN0Pg0KCQkJPGtleT5QYXlsb2FkRGVzY3JpcHRpb248L2tleT4NCgkJCTxzdHJpbmc+RGlzYWJsZXMgQmx1ZXRvb3RoIFNoYXJpbmc8L3N0cmluZz4NCgkJCTxrZXk+UGF5bG9hZERpc3BsYXlOYW1lPC9rZXk+DQoJCQk8c3RyaW5nPkN1c3RvbTwvc3RyaW5nPg0KCQkJPGtleT5QYXlsb2FkRW5hYmxlZDwva2V5Pg0KCQkJPHRydWUvPg0KCQkJPGtleT5QYXlsb2FkSWRlbnRpZmllcjwva2V5Pg0KCQkJPHN0cmluZz4wMjQwREQxQy03MERDLTQ3NjYtOTAxOC0wNDMyMkJGRUVBRDE8L3N0cmluZz4NCgkJCTxrZXk+UGF5bG9hZFR5cGU8L2tleT4NCgkJCTxzdHJpbmc+Y29tLmFwcGxlLk1hbmFnZWRDbGllbnQucHJlZmVyZW5jZXM8L3N0cmluZz4NCgkJCTxrZXk+UGF5bG9hZFVVSUQ8L2tleT4NCgkJCTxzdHJpbmc+MDI0MEREMUMtNzBEQy00NzY2LTkwMTgtMDQzMjJCRkVFQUQxPC9zdHJpbmc+DQoJCQk8a2V5PlBheWxvYWRWZXJzaW9uPC9rZXk+DQoJCQk8aW50ZWdlcj4xPC9pbnRlZ2VyPg0KCQk8L2RpY3Q+DQoJPC9hcnJheT4NCjwvZGljdD4NCjwvcGxpc3Q+",
"result": "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjwhRE9DVFlQRSBwbGlzdCBQVUJMSUMgIi0vL0FwcGxlLy9EVEQgUExJU1QgMS4wLy9FTiIgImh0dHA6Ly93d3cuYXBwbGUuY29tL0RURHMvUHJvcGVydHlMaXN0LTEuMC5kdGQiPg0KPHBsaXN0IHZlcnNpb249IjEuMCI+DQo8ZGljdD4NCiAgICA8a2V5PkNvbW1hbmRVVUlEPC9rZXk+DQogICAgPHN0cmluZz4wMDAxX0luc3RhbGxQcm9maWxlPC9zdHJpbmc+DQogICAgPGtleT5TdGF0dXM8L2tleT4NCiAgICA8c3RyaW5nPkFja25vd2xlZGdlZDwvc3RyaW5nPg0KICAgIDxrZXk+VURJRDwva2V5Pg0KICAgIDxzdHJpbmc+MDAwMDgwMjAtMDAwOTE1MDgzQzgwMDEyRTwvc3RyaW5nPg0KPC9kaWN0Pg0KPC9wbGlzdD4="
}
]
}results_metadata contains command-specific metadata.
For VPP InstallApplication command results, results_metadata may include:
software_installed (boolean) - Whether Fleet has reconciled the app as installed on the host.vpp_verify_timeout_seconds (integer) - The VPP install verification timeout, in seconds, used by Fleet when determining whether an acknowledged install should be marked failed.Example VPP InstallApplication command result metadata:
{
"results": [
{
"request_type": "InstallApplication",
"results_metadata": {
"software_installed": false,
"vpp_verify_timeout_seconds": 600
}
}
]
}Note: If the server has not yet received a result for a command, it will return an empty object (
{}).
Fleet deletes old MDM command history on a schedule. Once a command is deleted, its results are no longer returned. Learn more in the MDM commands guide.
GET /api/v1/fleet/mdm/apple/commandsAPI endpoint is deprecated as of Fleet 4.40. It is maintained for backward compatibility. Please use the new API endpoint below. Archived documentation is available for the deprecated endpoint.
This endpoint returns the list of custom MDM commands that have been executed.
Fleet deletes old MDM command history on a schedule, so older commands may not be listed. Learn more in the MDM commands guide.
GET /api/v1/fleet/commands
| Name | Type | In | Description |
|---|---|---|---|
| host_identifier | string | query | Required. The host's hostname, uuid, or hardware_serial. Returns only commands that target the specified host. Omitting host_identifier is deprecated (see the deprecation notice below). Requests w/o it continue to work for backward compatibility but are not recommended; the underlying query is not performant at scale and may time out on large fleets. Support will be removed in Fleet 5. |
| page | integer | query | Page number of the results to fetch. Maximum is 100. |
| per_page | integer | query | Results per page. Default is 10. Maximum is 1,000 records. |
| order_key | string | query | What to order results by. Allowed values: host_uuid, command_uuid, status, updated_at, request_type, hostname. Default is updated_at. |
| order_direction | string | query | Requires order_key. The direction of the order given the order key. Options include "asc" and "desc". Default is "asc". |
| request_type | string | query | The request type to filter commands by. |
| command_status | string | query | Comma-separated string of one of the following options: 'ran', 'pending', or 'failed'. |
| after | string | query | The value to get results after. This needs order_key defined, as that's the column that would be used. |
Currently,
command_statusis only available when host_identifieris provided and the host is macOS, iOS, iPadOS, or Android. Additionally, countis returned only when command_statusispending; for any other values, countwill benull.Apple (macOS, iOS, iPadOS) MDM commands that 'ran' have an 'Acknowledged'
status. Commands that are 'pending' have a 'Pending' or 'NotNow'status. Apple commands that 'failed' have an 'Error'status.Android MDM commands that 'ran' have an 'acknowledged'
status. Commands that are 'pending' have a 'pending'status. Android commands that 'failed' have an 'error'status.Apple (macOS, iOS, iPadOS) InstallProfile and RemoveProfile commands enqueued by Fleet going forward will have a non-
null"name" which represents the profile name. Previously-enqueued(prior to v4.84.0) or manually-enqueued commands will have anullname, as will other types of Apple MDM commands and all Windows and Android commands.
GET /api/v1/fleet/commands?host_identifier=A1B2C3D4-E5F6-7890-1234-567890ABCDEF&per_page=5
Status: 200
{
"meta": {
"has_next_results": true,
"has_previous_results": false
},
"count": null,
"results": [
{
"host_uuid": "A1B2C3D4-E5F6-7890-1234-567890ABCDEF",
"command_uuid": "a3650ec9-6dd0-40e9-b5d8-feffe9939461",
"status": "Acknowledged",
"command_status": "ran",
"updated_at": "2026-03-20T19:45:27Z",
"request_type": "DeclarativeManagement",
"name": null,
"hostname": "Mac-mini.local"
},
{
"host_uuid": "A1B2C3D4-E5F6-7890-1234-567890ABCDEF",
"command_uuid": "97ceaa39-eadc-4953-98a8-2ffe72ab120d",
"status": "Error",
"command_status": "failed",
"updated_at": "2026-03-24T21:37:32Z",
"request_type": "InstallProfile",
"name": null,
"hostname": "Mac-mini.local"
}
]
}Available in Fleet Premium.
Cancels a pending MDM command (lock, wipe, or clear passcode) for the specified Apple host. The command will not be delivered to the host if it hasn't been sent yet.
Only Apple (macOS, iOS, iPadOS) DeviceLock, EraseDevice, ClearPasscode, and EnableLostMode command types can be canceled. Commands that have already been acknowledged or errored can't be canceled. Canceling a pending command isn't supported yet for Windows or Android hosts.
DELETE /api/v1/fleet/hosts/:id/commands/:command_uuid
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The host's ID. |
| command_uuid | string | path | Required. The UUID of the pending MDM command to cancel. |
DELETE /api/v1/fleet/hosts/12/commands/81e10a70-730b-4c45-9b40-b14373e04757
Status: 204
| Status | Error code | Description |
|---|---|---|
| 400 | bad_request | The command is not a eligible type (lock, wipe, or clear passcode). |
| 400 | bad_request | The command has already been delivered to the host (not pending). |
| 404 | not_found | The host or command was not found, or the command doesn't belong to the specified host. |
| 403 | forbidden | The user doesn't have permission to cancel commands for this host. |
GET /api/v1/fleet/apns
None.
GET /api/v1/fleet/apns
Status: 200
{
"common_name": "APSP:04u52i98aewuh-xxxx-xxxx-xxxx-xxxx",
"serial_number": "1234567890987654321",
"issuer": "Apple Application Integration 2 Certification Authority",
"renew_date": "2023-09-30T00:00:00Z"
}Available in Fleet Premium
GET /api/v1/fleet/ab_tokens
None.
GET /api/v1/fleet/ab_tokens
Status: 200
{
"ab_tokens": [
{
"id": 1,
"apple_id": "[email protected]",
"org_name": "Fleet Device Management Inc.",
"mdm_server_url": "https://example.com/mdm/apple/mdm",
"mdm_server_uuid": "8b8a8f1e-3c2d-4e5f-9a6b-7c8d9e0f1a2b",
"renew_date": "2023-11-29T00:00:00Z",
"default": true,
"terms_expired": false,
"macos_fleet": {
"name": "💻 Workstations",
"fleet_id": 1
},
"ios_fleet": {
"name": "📱🏢 Company-owned iPhones",
"fleet_id": 2
},
"ipados_fleet": {
"name": "🔳🏢 Company-owned iPads",
"fleet_id": 3
}
}
],
"abm_tokens": [
{
"id": 1,
"apple_id": "[email protected]",
"org_name": "Fleet Device Management Inc.",
"mdm_server_url": "https://example.com/mdm/apple/mdm",
"mdm_server_uuid": "8b8a8f1e-3c2d-4e5f-9a6b-7c8d9e0f1a2b",
"renew_date": "2023-11-29T00:00:00Z",
"default": true,
"terms_expired": false,
"token_invalid": false,
"macos_team": {
"name": "💻 Workstations",
"id": 1
},
"macos_fleet": {
"name": "💻 Workstations",
"id": 1
},
"ios_team": {
"name": "📱🏢 Company-owned iPhones",
"id": 2
},
"ios_fleet": {
"name": "📱🏢 Company-owned iPhones",
"id": 2
},
"ipados_team": {
"name": "🔳🏢 Company-owned iPads",
"id": 3
},
"ipados_fleet": {
"name": "🔳🏢 Company-owned iPads",
"id": 3
},
"byod_team": {
"name": "📱 BYOD iPhones",
"id": 4
},
"byod_fleet": {
"name": "📱 BYOD iPhones",
"id": 4
}
}
]
}Available in Fleet Premium
POST /api/v1/fleet/vpp_tokens
| Name | Type | In | Description |
|---|---|---|---|
| token | file | form | Required. The content token (.vpptoken) file downloaded from Apple Business. |
A new VPP token isn't assigned to any fleet. To assign it, use Update VPP token's fleets.
POST /api/v1/fleet/vpp_tokens
Content-Length: 850
Content-Type: multipart/form-data; boundary=------------------------f02md47480und42y--------------------------f02md47480und42y
Content-Disposition: form-data; name="token"; filename="sToken_for_Acme.vpptoken"
Content-Type: application/octet-stream
<TOKEN_DATA>
--------------------------f02md47480und42yStatus: 202
{
"token": {
"id": 1,
"org_name": "Fleet Device Management Inc.",
"location": "Fleet Device Management Inc.",
"country_code": "us",
"renew_date": "2027-10-20T00:00:00Z",
"created_at": "2026-10-20T14:02:11Z",
"teams": null,
"fleets": null
}
}Available in Fleet Premium
GET /api/v1/fleet/vpp_tokens
None.
GET /api/v1/fleet/vpp_tokens
Status: 200
{
"vpp_tokens": [
{
"id": 1,
"org_name": "Fleet Device Management Inc.",
"location": "https://example.com/mdm/apple/mdm",
"country_code": "us",
"renew_date": "2023-11-29T00:00:00Z",
"created_at": "2022-11-29T14:02:11Z",
"teams": [
{
"name": "💻 Workstations",
"team_id": 1
},
{
"name": "💻🐣 Workstations (canary)",
"team_id": 2
},
{
"name": "📱🏢 Company-owned iPhones",
"team_id": 3
},
{
"name": "🔳🏢 Company-owned iPads",
"team_id": 4
}
],
"fleets": [
{
"name": "💻 Workstations",
"fleet_id": 1
},
{
"name": "💻🐣 Workstations (canary)",
"fleet_id": 2
},
{
"name": "📱🏢 Company-owned iPhones",
"fleet_id": 3
},
{
"name": "🔳🏢 Company-owned iPads",
"fleet_id": 4
}
]
}
]
}Available in Fleet Premium
Update the fleets that have access to a Volume Purchasing Program (VPP) token's App Store apps.
PATCH /api/v1/fleet/vpp_tokens/:id/fleets
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The VPP token's ID. |
| fleets | array | body | The IDs of the fleets that have access to this VPP token's App Store apps. Use 0 for "Unassigned" hosts. To assign the VPP token to all fleets, use an empty array ([]). If null or not specified, the VPP token isn't assigned to any fleet. |
A fleet can have more than one VPP token. A VPP token assigned to all fleets is available in every fleet, including fleets created later, in addition to any other VPP tokens assigned to those fleets. A VPP token can't be assigned to all fleets and specific fleets at the same time.
When a VPP token is removed from a fleet, App Store apps that were added to that fleet from that VPP token are deleted from the fleet.
PATCH /api/v1/fleet/vpp_tokens/1/fleets
{
"fleets": [1, 2]
}Status: 200
{
"token": {
"id": 1,
"org_name": "Fleet Device Management Inc.",
"location": "Fleet Device Management Inc.",
"country_code": "us",
"renew_date": "2027-10-20T00:00:00Z",
"created_at": "2026-10-20T14:02:11Z",
"teams": [
{
"name": "💻 Workstations",
"team_id": 1
},
{
"name": "📱🏢 Company-owned iPhones",
"team_id": 2
}
],
"fleets": [
{
"name": "💻 Workstations",
"fleet_id": 1
},
{
"name": "📱🏢 Company-owned iPhones",
"fleet_id": 2
}
]
}
}Get info about Android Enterprise that's connected to Fleet.
GET /api/v1/fleet/android_enterprise
None.
GET /api/v1/fleet/android_enterprise
Status: 200
{
"android_enterprise_id": "LC0445szuv"
}Delete Android Enterprise that's connected to Fleet. Once deleted, hosts that belong to Android Enterprise will be un-enrolled and Android MDM features will be turned off.
DELETE /api/v1/fleet/android_enterprise
None.
DELETE /api/v1/fleet/android_enterprise
Status: 200
Available in Fleet Premium
List the Microsoft Graph credentials Fleet uses to sync Windows Autopilot devices as pending hosts, along with the sync status for each Microsoft Entra tenant.
Client secrets are write-only. Fleet never returns them.
GET /api/v1/fleet/microsoft_graph_credentials
None.
GET /api/v1/fleet/microsoft_graph_credentials
Status: 200
{
"microsoft_graph_credentials": [
{
"tenant_id": "fec37e96-3615-4e37-8fac-445d5328af3c",
"client_id": "8c8e3fd4-9b2c-4d3e-8f10-2233445566aa",
"credential_invalid": false,
"last_synced_at": "2026-08-11T15:02:16Z",
"last_sync_error": null
}
]
}last_synced_at and last_sync_error are null until the first sync runs. credential_invalid is true when Microsoft Entra rejected the credential or Microsoft Graph denied the request, which means Autopilot devices are no longer syncing.
Available in Fleet Premium
Replaces the stored Microsoft Graph credentials with the supplied list. This endpoint is declarative: a credential whose tenant_id isn't in the list is deleted. Send an empty array to delete all credentials.
Before saving, Fleet verifies each credential that's new or changed by requesting a token and reading one page of Autopilot devices, so an incorrect credential is rejected here instead of failing silently on the next sync. Re-sending an unchanged credential makes no request to Microsoft, saves nothing, and creates no activity.
The app registration needs the DeviceManagementServiceConfig.Read.All application permission, with admin consent granted for your tenant.
Fleet currently supports one Microsoft Graph credential.
PUT /api/v1/fleet/microsoft_graph_credentials
| Name | Type | In | Description |
|---|---|---|---|
| microsoft_graph_credentials | array | body | Required. The complete list of credentials. Credentials that are stored but absent from this list are deleted. |
| microsoft_graph_credentials.tenant_id | string | body | Required. The Microsoft Entra tenant ID. Find your Tenant ID on Microsoft Entra ID > Home. |
| microsoft_graph_credentials.client_id | string | body | Required. The Microsoft Entra application (client) ID. Find your Application (client) ID on Microsoft Entra ID > App registrations > your MDM application > Overview. |
| microsoft_graph_credentials.client_secret | string | body | The client secret for the app registration. Required when adding a credential, and when changing an existing credential's tenant_id or client_id. Omit it to keep the stored secret. Find your Client secret on Microsoft Entra ID > App registrations > your MDM application > Certificates & secrets. |
| dry_run | boolean | body | Validate and verify the credentials against Microsoft Graph without saving them (default: false). |
PUT /api/v1/fleet/microsoft_graph_credentials
{
"microsoft_graph_credentials": [
{
"tenant_id": "fec37e96-3615-4e37-8fac-445d5328af3c",
"client_id": "8c8e3fd4-9b2c-4d3e-8f10-2233445566aa",
"client_secret": "iL78Q~yourClientSecretValue"
}
]
}Status: 200
This endpoint returns a 422 when a tenant or client ID isn't a valid GUID, when client_secret is missing for a new credential, when more than one credential is supplied, or when Microsoft Graph rejects the credential.
Available in Fleet Premium
Get Fleet's Android zero-touch DPC extras JSON to paste into Google's zero-touch enrollment portal. Android MDM must be enabled. Specify a fleet so that hosts enrolled with this configuration are automatically added to that fleet, with its apps and settings applied.
As part of this request, Fleet generates a token w/ 1,000 year expiry for the specified fleet. If a token already exists for the fleet, Fleet doesn't generate a new one.
GET /api/v1/fleet/android_enterprise/zero_touch_configuration
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | integer | query | Available in Fleet Premium. The ID of the fleet that hosts enrolled using this zero-touch configuration will be added to. If not specified, hosts will be added to "Unassigned". |
GET /api/v1/fleet/android_enterprise/zero_touch_configuration?fleet_id=1
Status: 200
{
"android.app.extra.PROVISIONING_ADMIN_EXTRAS_BUNDLE": {
"com.google.android.apps.work.clouddpc.EXTRA_ENROLLMENT_TOKEN": "<token from Fleet>"
}
}Fleet's SCIM (System for Cross-domain Identity Management) API endpoints are used to map end user's identity providers (IdPs) details to their hosts and automatically delete a user's Fleet account when the user is deleted or deactivated in the IdP.
SCIM resource type names (e.g. Users, Groups, Schemas) are defined by the SCIM spec and must be capitalized exactly as shown to work with identity providers. This is why they differ from Fleet's usual lowercase API naming convention.
Available in Fleet Premium
GET /api/v1/fleet/scim/Users
| Name | Type | In | Description |
|---|---|---|---|
| startIndex | integer | query | 1-based index of the first result to return. Defaults to 1. |
| count | integer | query | Number of results per page. Maximum 100. Defaults to 100. |
| filter | string | query | SCIM filter expression. Only userName eq "<value>" and emails[type eq "<type>"].value eq "<value>" are supported. |
GET /api/v1/fleet/scim/Users
Status: 200
{
"schemas": ["urn:ietf:params:scim:api:messages:2.0:ListResponse"],
"totalResults": 1,
"startIndex": 1,
"itemsPerPage": 100,
"Resources": [
{
"schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"],
"id": "1",
"externalId": "ext-123",
"userName": "[email protected]",
"name": {
"givenName": "Jane",
"familyName": "Doe"
},
"emails": [
{
"value": "[email protected]",
"type": "work",
"primary": true
}
],
"active": true,
"groups": [],
"meta": {
"resourceType": "User"
}
}
]
}Available in Fleet Premium
POST /api/v1/fleet/scim/Users
| Name | Type | In | Description |
|---|---|---|---|
| schemas | array | body | Required. Must include "urn:ietf:params:scim:schemas:core:2.0:User". |
| userName | string | body | Required. Unique username (typically an email address). |
| name.givenName | string | body | Required. User's first name. |
| name.familyName | string | body | Required. User's last name. |
| externalId | string | body | Optional. External identifier from the IdP. |
| emails | array | body | Optional. List of email objects with value, type, and primary fields. |
| active | boolean | body | Optional. Whether the user account is active. |
| urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.department | string | body | Optional. User's department. |
POST /api/v1/fleet/scim/Users
{
"schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"],
"userName": "[email protected]",
"externalId": "ext-123",
"name": {
"givenName": "Jane",
"familyName": "Doe"
},
"emails": [
{
"value": "[email protected]",
"type": "work",
"primary": true
}
],
"active": true
}Status: 201
{
"schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"],
"id": "1",
"externalId": "ext-123",
"userName": "[email protected]",
"name": {
"givenName": "Jane",
"familyName": "Doe"
},
"emails": [
{
"value": "[email protected]",
"type": "work",
"primary": true
}
],
"active": true,
"groups": [],
"meta": {
"resourceType": "User"
}
}Available in Fleet Premium
GET /api/v1/fleet/scim/Users/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | string | path | Required. The user's ID. |
GET /api/v1/fleet/scim/Users/1
Status: 200
{
"schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"],
"id": "1",
"externalId": "ext-123",
"userName": "[email protected]",
"name": {
"givenName": "Jane",
"familyName": "Doe"
},
"emails": [
{
"value": "[email protected]",
"type": "work",
"primary": true
}
],
"active": true,
"groups": [
{
"value": "group-1",
"$ref": "Groups/group-1",
"display": "Engineering"
}
],
"meta": {
"resourceType": "User"
}
}Available in Fleet Premium
Replaces all attributes of an existing user. Any attributes not included in the request body are cleared.
PUT /api/v1/fleet/scim/Users/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | string | path | Required. The user's ID. |
| schemas | array | body | Required. Must include "urn:ietf:params:scim:schemas:core:2.0:User". |
| userName | string | body | Required. Unique username. |
| name.givenName | string | body | Required. User's first name. |
| name.familyName | string | body | Required. User's last name. |
| externalId | string | body | Optional. External identifier from the IdP. |
| emails | array | body | Optional. List of email objects with value, type, and primary fields. |
| active | boolean | body | Optional. Whether the user account is active. |
| urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.department | string | body | Optional. User's department. |
PUT /api/v1/fleet/scim/Users/1
{
"schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"],
"userName": "[email protected]",
"name": {
"givenName": "Jane",
"familyName": "Smith"
},
"active": true
}Status: 200
{
"schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"],
"id": "1",
"userName": "[email protected]",
"name": {
"givenName": "Jane",
"familyName": "Smith"
},
"active": true,
"groups": [],
"meta": {
"resourceType": "User"
}
}Available in Fleet Premium
Partially updates a user using SCIM patch operations. Supports add, replace, and remove operations on userName, externalId, active, name.givenName, name.familyName, emails, and urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:department.
PATCH /api/v1/fleet/scim/Users/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | string | path | Required. The user's ID. |
| schemas | array | body | Required. Must include "urn:ietf:params:scim:api:messages:2.0:PatchOp". |
| Operations | array | body | Required. List of patch operations. Each has op, optional path, and value. |
PATCH /api/v1/fleet/scim/Users/1
{
"schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
"Operations": [
{
"op": "replace",
"path": "active",
"value": false
}
]
}Status: 200
{
"schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"],
"id": "1",
"userName": "[email protected]",
"name": {
"givenName": "Jane",
"familyName": "Doe"
},
"active": false,
"groups": [],
"meta": {
"resourceType": "User"
}
}Available in Fleet Premium
DELETE /api/v1/fleet/scim/Users/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | string | path | Required. The user's ID. |
DELETE /api/v1/fleet/scim/Users/1
Status: 204
No content.
Available in Fleet Premium
GET /api/v1/fleet/scim/Groups
| Name | Type | In | Description |
|---|---|---|---|
| startIndex | integer | query | 1-based index of the first result to return. Defaults to 1. |
| count | integer | query | Number of results per page. Maximum 100. Defaults to 100. |
| filter | string | query | SCIM filter expression. Only displayName eq "<value>" is supported. |
| excludedAttributes | string | query | Comma-separated list of attributes to exclude. Use members to omit group member lists. |
GET /api/v1/fleet/scim/Groups
Status: 200
{
"schemas": ["urn:ietf:params:scim:api:messages:2.0:ListResponse"],
"totalResults": 1,
"startIndex": 1,
"itemsPerPage": 100,
"Resources": [
{
"schemas": ["urn:ietf:params:scim:schemas:core:2.0:Group"],
"id": "group-1",
"externalId": "ext-group-123",
"displayName": "Engineering",
"members": [
{
"value": "1",
"type": "User"
}
],
"meta": {
"resourceType": "Group"
}
}
]
}Available in Fleet Premium
POST /api/v1/fleet/scim/Groups
| Name | Type | In | Description |
|---|---|---|---|
| schemas | array | body | Required. Must include "urn:ietf:params:scim:schemas:core:2.0:Group". |
| displayName | string | body | Required. Human-readable group name. Must be unique. |
| externalId | string | body | Optional. External identifier from the IdP. |
| members | array | body | Optional. List of member objects with a value field containing a SCIM user ID. |
POST /api/v1/fleet/scim/Groups
{
"schemas": ["urn:ietf:params:scim:schemas:core:2.0:Group"],
"displayName": "Engineering",
"members": [
{
"value": "1"
}
]
}Status: 201
{
"schemas": ["urn:ietf:params:scim:schemas:core:2.0:Group"],
"id": "group-1",
"displayName": "Engineering",
"members": [
{
"value": "1",
"type": "User"
}
],
"meta": {
"resourceType": "Group"
}
}Available in Fleet Premium
GET /api/v1/fleet/scim/Groups/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | string | path | Required. The group's ID (format: group-<number>). |
| excludedAttributes | string | query | Comma-separated list of attributes to exclude. Use members to omit the member list. |
GET /api/v1/fleet/scim/Groups/group-1
Status: 200
{
"schemas": ["urn:ietf:params:scim:schemas:core:2.0:Group"],
"id": "group-1",
"externalId": "ext-group-123",
"displayName": "Engineering",
"members": [
{
"value": "1",
"type": "User"
}
],
"meta": {
"resourceType": "Group"
}
}Available in Fleet Premium
Replaces all attributes of an existing group. Any attributes not included in the request body are cleared.
PUT /api/v1/fleet/scim/Groups/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | string | path | Required. The group's ID (format: group-<number>). |
| schemas | array | body | Required. Must include "urn:ietf:params:scim:schemas:core:2.0:Group". |
| displayName | string | body | Required. Human-readable group name. Must be unique. |
| externalId | string | body | Optional. External identifier from the IdP. |
| members | array | body | Optional. List of member objects with a value field containing a SCIM user ID. |
PUT /api/v1/fleet/scim/Groups/group-1
{
"schemas": ["urn:ietf:params:scim:schemas:core:2.0:Group"],
"displayName": "Engineering",
"members": [
{
"value": "1"
},
{
"value": "2"
}
]
}Status: 200
{
"schemas": ["urn:ietf:params:scim:schemas:core:2.0:Group"],
"id": "group-1",
"displayName": "Engineering",
"members": [
{
"value": "1",
"type": "User"
},
{
"value": "2",
"type": "User"
}
],
"meta": {
"resourceType": "Group"
}
}Available in Fleet Premium
Partially updates a group using SCIM patch operations. Supports add, replace, and remove operations on displayName, externalId, and members.
PATCH /api/v1/fleet/scim/Groups/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | string | path | Required. The group's ID (format: group-<number>). |
| schemas | array | body | Required. Must include "urn:ietf:params:scim:api:messages:2.0:PatchOp". |
| Operations | array | body | Required. List of patch operations. Each has op, optional path, and value. |
PATCH /api/v1/fleet/scim/Groups/group-1
{
"schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
"Operations": [
{
"op": "add",
"path": "members",
"value": [
{
"value": "3"
}
]
}
]
}Status: 200
{
"schemas": ["urn:ietf:params:scim:schemas:core:2.0:Group"],
"id": "group-1",
"displayName": "Engineering",
"members": [
{
"value": "1",
"type": "User"
},
{
"value": "3",
"type": "User"
}
],
"meta": {
"resourceType": "Group"
}
}Available in Fleet Premium
DELETE /api/v1/fleet/scim/Groups/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | string | path | Required. The group's ID (format: group-<number>). |
DELETE /api/v1/fleet/scim/Groups/group-1
Status: 204
No content.
Available in Fleet Premium
Returns the SCIM schemas supported by Fleet: the core User schema and Group schema.
GET /api/v1/fleet/scim/Schemas
None.
GET /api/v1/fleet/scim/Schemas
Status: 200
{
"schemas": ["urn:ietf:params:scim:api:messages:2.0:ListResponse"],
"totalResults": 2,
"Resources": [
{
"id": "urn:ietf:params:scim:schemas:core:2.0:User",
"name": "User",
"description": "SCIM User"
},
{
"id": "urn:ietf:params:scim:schemas:core:2.0:Group",
"name": "Group",
"description": "SCIM Group"
}
]
}Available in Fleet Premium
Returns Fleet's SCIM service provider configuration, including supported features.
GET /api/v1/fleet/scim/ServiceProviderConfig
None.
GET /api/v1/fleet/scim/ServiceProviderConfig
Status: 200
{
"schemas": ["urn:ietf:params:scim:schemas:core:2.0:ServiceProviderConfig"],
"documentationUri": "https://fleetdm.com/docs/get-started/why-fleet",
"patch": {
"supported": true
},
"filter": {
"supported": true,
"maxResults": 100
},
"bulk": {
"supported": false
},
"changePassword": {
"supported": false
},
"sort": {
"supported": false
},
"etag": {
"supported": false
}
}Available in Fleet Premium
Returns the resource types supported by Fleet's SCIM implementation (User and Group).
GET /api/v1/fleet/scim/ResourceTypes
None.
GET /api/v1/fleet/scim/ResourceTypes
Status: 200
{
"schemas": ["urn:ietf:params:scim:api:messages:2.0:ListResponse"],
"totalResults": 2,
"Resources": [
{
"id": "User",
"name": "User",
"description": "User Account",
"endpoint": "/Users",
"schema": "urn:ietf:params:scim:schemas:core:2.0:User"
},
{
"id": "Group",
"name": "Group",
"description": "Group",
"endpoint": "/Groups",
"schema": "urn:ietf:params:scim:schemas:core:2.0:Group"
}
]
}Available in Fleet Premium
Get details about the most recent SCIM request from your identity provider (IdP). Useful for diagnosing SCIM integration issues.
GET /api/v1/fleet/scim/details
None.
GET /api/v1/fleet/scim/details
Status: 200
{
"last_request": {
"requested_at": "2025-03-11T02:02:17Z",
"status": "success",
"details": ""
}
}Policies are yes or no questions you can ask about your hosts.
Policies in Fleet are defined by osquery queries.
A passing host answers "yes" to a policy if the host returns results for a policy's query.
A failing host answers "no" to a policy if the host does not return results for a policy's query.
For example, a policy might ask "Is Gatekeeper enabled on macOS devices?" This policy's osquery query might look like the following: SELECT 1 FROM gatekeeper WHERE assessments_enabled = 1;
GET /api/v1/fleet/global/policies
| Name | Type | In | Description |
|---|---|---|---|
| page | integer | query | Page number of the results to fetch. |
| per_page | integer | query | Results per page. |
| order_key | string | query | What to order results by. Allowed fields are id, name, team_id, created_at, updated_at, failing_host_count, and passing_host_count. |
| order_direction | string | query | Requires order_key. The direction of the order given the order key. Options include "asc" and "desc". Default is "asc". |
| after | string | query | The value to get results after. This needs order_key defined, as that's the column that would be used. |
| platform | string | query | Filters policies by targeted platform. Accepts "darwin", "windows", "linux", or "chrome". Policies that target all platforms (empty platform field) are always included. |
GET /api/v1/fleet/global/policies
Status: 200
{
"policies": [
{
"id": 1,
"name": "Gatekeeper enabled",
"query": "SELECT 1 FROM gatekeeper WHERE assessments_enabled = 1;",
"description": "Checks if gatekeeper is enabled on macOS devices",
"critical": false,
"hidden": false,
"author_id": 42,
"author_name": "John",
"author_email": "[email protected]",
"team_id": null,
"resolution": "Resolution steps",
"platform": "darwin",
"created_at": "2021-12-15T15:23:57Z",
"updated_at": "2021-12-15T15:23:57Z",
"passing_host_count": 2000,
"failing_host_count": 300,
"host_count_updated_at": "2023-12-20T15:23:57Z",
"labels_include_any": ["Macs on Sonoma"]
},
{
"id": 2,
"name": "Windows machines with encrypted hard disks",
"query": "SELECT 1 FROM bitlocker_info WHERE protection_status = 1;",
"description": "Checks if the hard disk is encrypted on Windows devices",
"critical": true,
"hidden": true,
"author_id": 43,
"author_name": "Alice",
"author_email": "[email protected]",
"team_id": null,
"resolution": "Resolution steps",
"platform": "windows",
"created_at": "2021-12-31T14:52:27Z",
"updated_at": "2022-02-10T20:59:35Z",
"passing_host_count": 2300,
"failing_host_count": 0,
"host_count_updated_at": "2023-12-20T15:23:57Z",
"labels_exclude_any": ["Compliance exclusions", "Workstations (Canary)"]
}
]
}Available in Fleet Premium
GET /api/v1/fleet/fleets/:id/policies
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. Defines what fleet ID to operate on |
| merge_inherited | boolean | query | If true, will return both fleet policies and inherited ("All fleets") policies in the policies list, and will not return a separate inherited_policies list. |
| query | string | query | Search query keywords. Searchable fields include name. |
| page | integer | query | Page number of the results to fetch. |
| per_page | integer | query | Results per page. |
| order_key | string | query | What to order results by. Allowed fields are id, name, team_id, created_at, updated_at, failing_host_count, and passing_host_count. |
| order_direction | string | query | Requires order_key. The direction of the order given the order key. Options include "asc" and "desc". Default is "asc". |
| after | string | query | The value to get results after. This needs order_key defined, as that's the column that would be used. |
| automation_type | string | query | Filters by automation type. Supported values are "software", "scripts", "calendar", "conditional_access", "patch", and "other". |
| platform | string | query | Filters policies by targeted platform. Accepts "darwin", "windows", "linux", or "chrome". Policies that target all platforms (empty platform field) are always included. |
GET /api/v1/fleet/fleets/1/policies
Status: 200
{
"policies": [
{
"id": 1,
"name": "Gatekeeper enabled",
"query": "SELECT 1 FROM gatekeeper WHERE assessments_enabled = 1;",
"description": "Checks if gatekeeper is enabled on macOS devices",
"type": "dynamic",
"critical": true,
"author_id": 42,
"author_name": "John",
"author_email": "[email protected]",
"team_id": 1,
"resolution": "Resolution steps",
"platform": "darwin",
"created_at": "2021-12-16T14:37:37Z",
"updated_at": "2021-12-16T16:39:00Z",
"passing_host_count": 2000,
"failing_host_count": 300,
"host_count_updated_at": "2023-12-20T15:23:57Z",
"calendar_events_enabled": true,
"conditional_access_enabled": true,
"hidden": false,
"labels_include_any": ["Macs on Sonoma"]
},
{
"id": 2,
"name": "Windows machines with encrypted hard disks",
"query": "SELECT 1 FROM bitlocker_info WHERE protection_status = 1;",
"description": "Checks if the hard disk is encrypted on Windows devices",
"critical": false,
"type": "dynamic",
"author_id": 43,
"author_name": "Alice",
"author_email": "[email protected]",
"team_id": 1,
"resolution": "Resolution steps",
"platform": "windows",
"created_at": "2021-12-16T14:37:37Z",
"updated_at": "2021-12-16T16:39:00Z",
"passing_host_count": 2300,
"failing_host_count": 0,
"host_count_updated_at": "2023-12-20T15:23:57Z",
"calendar_events_enabled": false,
"conditional_access_enabled": false,
"hidden": true,
"labels_exclude_any": ["Compliance exclusions", "Workstations (Canary)"],
"run_script": {
"name": "Encrypt Windows disk with BitLocker",
"id": 234
}
},
{
"id": 3,
"name": "macOS - Adobe Acrobat up to date",
"query": "SELECT 1 FROM apps WHERE bundle_identifier = 'com.adobe.Reader' AND version_compare(bundle_short_version, '23.001.20687') >= 0;",
"description": "Checks if the hard disk is encrypted on Windows devices",
"critical": false,
"type": "patch",
"author_id": 43,
"author_name": "Alice",
"author_email": "[email protected]",
"team_id": 1,
"resolution": "Resolution steps",
"platform": "darwin",
"created_at": "2021-12-16T14:37:37Z",
"updated_at": "2021-12-16T16:39:00Z",
"passing_host_count": 2300,
"failing_host_count": 3,
"host_count_updated_at": "2023-12-20T15:23:57Z",
"calendar_events_enabled": false,
"conditional_access_enabled": false,
"hidden": false,
"patch_when_closed": false,
"notify_before_patching": false,
"patch_deadline": true,
"patch_software": {
"software_title_id": 1234,
"name": "Adobe Acrobat Reader.app",
"display_name": "Adobe Acrobat Reader",
"icon_url": "/api/latest/fleet/software/titles/1234/icon?fleet_id=1"
},
"install_software": {
"name": "Adobe Acrobat",
"software_title_id": 1234
}
}
],
"inherited_policies": [
{
"id": 136,
"name": "Arbitrary Test Policy (all platforms) (all fleets)",
"query": "SELECT 1 FROM osquery_info WHERE 1=1;",
"description": "If you're seeing this, mostly likely this is because someone is testing out failing policies in dogfood. You can ignore this.",
"critical": true,
"author_id": 77,
"author_name": "Test Admin",
"author_email": "[email protected]",
"team_id": null,
"resolution": "To make it pass, change \"1=0\" to \"1=1\". To make it fail, change \"1=1\" to \"1=0\".",
"platform": "darwin,windows,linux",
"created_at": "2022-08-04T19:30:18Z",
"updated_at": "2022-08-30T15:08:26Z",
"passing_host_count": 10,
"failing_host_count": 9,
"host_count_updated_at": "2023-12-20T15:23:57Z"
}
]
}GET /api/v1/fleet/fleets/1/policies?merge_inherited=true
Status: 200
{
"policies": [
{
"id": 1,
"name": "Gatekeeper enabled",
"query": "SELECT 1 FROM gatekeeper WHERE assessments_enabled = 1;",
"description": "Checks if gatekeeper is enabled on macOS devices",
"critical": true,
"author_id": 42,
"author_name": "John",
"author_email": "[email protected]",
"team_id": 1,
"resolution": "Resolution steps",
"platform": "darwin",
"created_at": "2021-12-16T14:37:37Z",
"updated_at": "2021-12-16T16:39:00Z",
"passing_host_count": 2000,
"failing_host_count": 300,
"host_count_updated_at": "2023-12-20T15:23:57Z",
"calendar_events_enabled": false,
"conditional_access_enabled": false,
"hidden": false,
"fleet_maintained": false,
"labels_include_any": ["Macs on Sonoma"]
},
{
"id": 2,
"name": "Windows machines with encrypted hard disks",
"query": "SELECT 1 FROM bitlocker_info WHERE protection_status = 1;",
"description": "Checks if the hard disk is encrypted on Windows devices",
"critical": false,
"author_id": 43,
"author_name": "Alice",
"author_email": "[email protected]",
"team_id": 1,
"resolution": "Resolution steps",
"platform": "windows",
"created_at": "2021-12-16T14:37:37Z",
"updated_at": "2021-12-16T16:39:00Z",
"passing_host_count": 2300,
"failing_host_count": 0,
"host_count_updated_at": "2023-12-20T15:23:57Z",
"calendar_events_enabled": false,
"conditional_access_enabled": false,
"hidden": true,
"fleet_maintained": false
},
{
"id": 136,
"name": "Arbitrary Test Policy (all platforms) (all fleets)",
"query": "SELECT 1 FROM osquery_info WHERE 1=1;",
"description": "If you're seeing this, mostly likely this is because someone is testing out failing policies in dogfood. You can ignore this.",
"critical": true,
"author_id": 77,
"author_name": "Test Admin",
"author_email": "[email protected]",
"team_id": null,
"resolution": "To make it pass, change \"1=0\" to \"1=1\". To make it fail, change \"1=1\" to \"1=0\".",
"platform": "darwin,windows,linux",
"created_at": "2022-08-04T19:30:18Z",
"updated_at": "2022-08-30T15:08:26Z",
"passing_host_count": 10,
"failing_host_count": 9,
"host_count_updated_at": "2023-12-20T15:23:57Z",
"fleet_maintained": false
}
]
}GET /api/v1/fleet/policies/count
| Name | Type | In | Description |
|---|---|---|---|
| query | string | query | Search query keywords. Searchable fields include name. |
| platform | string | query | Filters policies by targeted platform. Accepts "darwin", "windows", "linux", or "chrome". Policies that target all platforms (empty platform field) are always included. |
GET /api/v1/fleet/policies/count
Status: 200
{
"count": 43
}Available in Fleet Premium
GET /api/v1/fleet/fleets/:fleet_id/policies/count
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | integer | path | Required. Defines what fleet ID to operate on |
| query | string | query | Search query keywords. Searchable fields include name. |
| merge_inherited | boolean | query | If true, will include inherited ("All fleets") policies in the count. |
| automation_type | string | query | Filters by automation type. Supported values are "software", "scripts", "calendar", "conditional_access", "patch", and "other". |
| platform | string | query | Filters policies by targeted platform. Accepts "darwin", "windows", "linux", or "chrome". Policies that target all platforms (empty platform field) are always included. |
GET /api/v1/fleet/fleets/1/policies/count
Status: 200
{
"count": 43
}GET /api/v1/fleet/global/policies/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The policy's ID. |
GET /api/v1/fleet/global/policies/1
Status: 200
{
"policy": {
"id": 1,
"name": "Gatekeeper enabled",
"query": "SELECT 1 FROM gatekeeper WHERE assessments_enabled = 1;",
"description": "Checks if gatekeeper is enabled on macOS devices",
"critical": false,
"hidden": false,
"author_id": 42,
"author_name": "John",
"author_email": "[email protected]",
"team_id": null,
"resolution": "Resolution steps",
"platform": "darwin",
"created_at": "2021-12-15T15:23:57Z",
"updated_at": "2021-12-15T15:23:57Z",
"passing_host_count": 2000,
"failing_host_count": 300,
"host_count_updated_at": "2023-12-20T15:23:57Z"
}
}Available in Fleet Premium
GET /api/v1/fleet/fleets/:fleet_id/policies/:policy_id
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | integer | path | Required. Defines what fleet ID to operate on |
| policy_id | integer | path | Required. The policy's ID. |
GET /api/v1/fleet/fleets/1/policies/43
Status: 200
{
"policy": {
"id": 43,
"name": "Gatekeeper enabled",
"query": "SELECT 1 FROM gatekeeper WHERE assessments_enabled = 1;",
"description": "Checks if gatekeeper is enabled on macOS devices",
"critical": true,
"type": "dynamic",
"author_id": 42,
"author_name": "John",
"author_email": "[email protected]",
"team_id": 1,
"resolution": "Resolution steps",
"platform": "darwin",
"created_at": "2021-12-16T14:37:37Z",
"updated_at": "2021-12-16T16:39:00Z",
"passing_host_count": 0,
"failing_host_count": 0,
"host_count_updated_at": null,
"calendar_events_enabled": true,
"conditional_access_enabled": false,
"hidden": false,
"fleet_maintained": false,
"labels_include_any": ["Macs on Sonoma"],
"patch_software": {
"display_name": "",
"name": "Adobe Acrobat.app",
"software_title_id": 1234
},
"install_software": {
"name": "Adobe Acrobat.app",
"software_title_id": 1234
},
"run_script": {
"name": "Enable gatekeeper",
"id": 1337
},
"resend_configuration_profile": {
"profile_uuid": "954ec5ea-a334-4825-87b3-937e7e381f24",
"name": "Passcode requirements"
}
}
}POST /api/v1/fleet/global/policies
| Name | Type | In | Description |
|---|---|---|---|
| name | string | body | The policy's name. |
| query | string | body | The policy's query in SQL. |
| description | string | body | The policy's description. |
| resolution | string | body | The resolution steps for the policy. |
| platform | string | body | Comma-separated target platforms, currently supported values are "windows", "linux", "darwin". The default, an empty string means target all platforms. |
| critical | boolean | body | Available in Fleet Premium. Mark policy as critical/high impact. |
| hidden | boolean | body | Available in Fleet Premium. Whether to hide this policy from the Policies page in Fleet Desktop. |
| labels_include_any | array | form | Available in Fleet Premium. Labels, specified by label name, to target with this policy. If specified, the policy will run on hosts that match any of these labels. |
| labels_include_all | array | body | Available in Fleet Premium. Labels, specified by label name, to target with this policy. If specified, the policy will run on hosts that match all of these labels. |
| labels_exclude_any | array | form | Available in Fleet Premium. Labels, specified by label name, to target with this policy. If specified, the policy will not run on hosts that match any of these labels. |
| labels_exclude_all | array | form | Available in Fleet Premium. Labels, specified by label name, to target with this policy. If specified, the policy will not run on hosts that match all of these labels. |
Only one set of label targets (labels_include_any/labels_include_all) and one set of label exclusions (labels_exclude_any/labels_exclude_all) can be specified. If none are set, all hosts on the specified platform are targeted.
POST /api/v1/fleet/global/policies
{
"name": "Gatekeeper enabled",
"query": "SELECT 1 FROM gatekeeper WHERE assessments_enabled = 1;",
"description": "Checks if gatekeeper is enabled on macOS devices",
"resolution": "Resolution steps",
"platform": "darwin",
"critical": true,
"hidden": false
}Status: 200
{
"policy": {
"id": 43,
"name": "Gatekeeper enabled",
"query": "SELECT 1 FROM gatekeeper WHERE assessments_enabled = 1;",
"description": "Checks if gatekeeper is enabled on macOS devices",
"critical": true,
"hidden": false,
"author_id": 42,
"author_name": "John",
"author_email": "[email protected]",
"team_id": null,
"resolution": "Resolution steps",
"platform": "darwin",
"created_at": "2022-03-17T20:15:55Z",
"updated_at": "2022-03-17T20:15:55Z",
"passing_host_count": 0,
"failing_host_count": 0,
"host_count_updated_at": null,
"labels_include_any": ["Macs on Sonoma"]
}
}Available in Fleet Premium
The semantics for creating a fleet policy are the same as for global policies, see Create policy.
POST /api/v1/fleet/fleets/:id/policies
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Defines what fleet ID to operate on. |
| name | string | body | The policy's name. |
| query | string | body | The policy's query in SQL. |
| description | string | body | The policy's description. |
| resolution | string | body | The resolution steps for the policy. |
| platform | string | body | Comma-separated target platforms, currently supported values are "windows", "linux", "darwin". The default, an empty string means target all platforms. |
| critical | boolean | body | Available in Fleet Premium. Mark policy as critical/high impact. Critical policies can never bypass conditional access. |
| type | string | body | The type of the policy. Options are "dynamic" (classic policy with an editable query) or "patch" (tied to patch_software_title_id and automatically updated to include the newest Fleet-maintained app version). If not specified, defaults to "dynamic". |
| patch_software_title_id | integer | body | Available in Fleet Premium. ID of the software title (Fleet-maintained only) to create a patch policy for. Required if type is patch. |
| patch_when_closed | boolean | body | Available in Fleet Premium. Only applies if type is patch. If true, Fleet adds a read-only pre-install condition that skips the automated install while the app is open. Requires continuous_automations_enabled to be true. If false, Fleet installs the update the next time the policy fails, whether or not the app is open. If software_title_id is not specified, install software policy automation won't be added. |
| notify_before_patching | boolean | body | Available in Fleet Premium. Only applies if type is patch. If true, Fleet shows the end user a notification listing the apps that will be patched in 1 hour. A reminder is shown 5 minutes before the install. Requires continuous_automations_enabled to be true. Only supported on macOS hosts with Fleet Desktop installed (available as Fleet-maintained app). If software_title_id is not specified, install software policy automation won't be added. |
| patch_deadline | boolean | body | Available in Fleet Premium. Only applies if type is patch. If true, Fleet patches the app right away when it isn't open. If the app is open, Fleet waits for the next deadline in the fleet's patch deadline settings. 1 hour before the deadline, Fleet shows the end user a notification listing the apps that will close and update. A reminder is shown 5 minutes before the install. Requires continuous_automations_enabled to be true. Only one of patch_when_closed, notify_before_patching, or patch_deadline can be true. Only supported on macOS hosts with Fleet Desktop installed. |
| calendar_events_enabled | boolean | body | Available in Fleet Premium. Whether to trigger calendar events when policy is failing. |
| conditional_access_enabled | boolean | body | Available in Fleet Premium. Whether to block single sign-on for end users whose hosts fail this policy. |
| hidden | boolean | body | Available in Fleet Premium. Whether to hide this policy from the Policies page in Fleet Desktop. Only one of hidden and conditional_access_enabled can be true. |
| software_title_id | integer | body | Available in Fleet Premium. ID of software title to install if the policy fails. If software_title_id is specified and the software has labels_include_any or labels_exclude_any defined, the policy will inherit this target in addition to specified platform. |
| software_package_id | integer | body | Available in Fleet Premium. ID of the specific package to install when the software title has multiple packages. |
| software_installer_id | integer | body | Available in Fleet Premium. ID of a specific package of software_title_id to install on failure. If omitted, defaults to the title's first-added package. |
| script_id | integer | body | Available in Fleet Premium. ID of script to run if the policy fails. |
| profile_uuid | string | body | Available in Fleet Premium. UUID of the configuration profile to resend if the policy fails. The profile must belong to the same fleet. |
| continuous_automations_enabled | boolean | body | Available in Fleet Premium. If enabled, software and script automations will run every time Fleet receives a failing response from a host. If not, all automations run on a host's first failure, and when a host's response changes from pass to fail. If the install software automation does not resolve the policy after 10 attempts, Fleet will wait 24 hours before retrying. |
| labels_include_any | array | form | Labels, specified by label name, to target with this policy. If specified, the policy will run on hosts that match any of these labels. |
| labels_include_all | array | body | Available in Fleet Premium. Labels, specified by label name, to target with this policy. If specified, the policy will run on hosts that match all of these labels. |
| labels_exclude_any | array | form | Available in Fleet Premium. Labels, specified by label name, to target with this policy. If specified, the policy will not run on hosts that match any of these labels. |
| labels_exclude_all | array | form | Available in Fleet Premium. Labels, specified by label name, to target with this policy. If specified, the policy will not run on hosts that match all of these labels. |
patch_when_closed,notify_before_patching, andpatch_deadlineare only supported for patch policies tied to a Fleet-maintained app (patch_software_title_idrefers to a title added via Add Fleet-maintained app). Enabling these options overrides anypre_install_querypreviously set on that software title — see Update package. When this is enabled, Fleet won't retry software install when pre-install condition fails.
Either query or query_id must be provided.
Only one set of label targets (labels_include_any/labels_include_all) and one set of label exclusions (labels_exclude_any/labels_exclude_all) can be specified. If none are set, all hosts on the specified platform are targeted.
POST /api/v1/fleet/fleets/1/policies
{
"name": "Gatekeeper enabled",
"query": "SELECT 1 FROM gatekeeper WHERE assessments_enabled = 1;",
"description": "Checks if gatekeeper is enabled on macOS devices",
"critical": true,
"resolution": "Resolution steps",
"platform": "darwin"
}Status: 200
{
"policy": {
"id": 43,
"name": "Gatekeeper enabled",
"query": "SELECT 1 FROM gatekeeper WHERE assessments_enabled = 1;",
"description": "Checks if gatekeeper is enabled on macOS devices",
"critical": true,
"author_id": 42,
"author_name": "John",
"author_email": "[email protected]",
"team_id": 1,
"fleet_id": 1,
"resolution": "Resolution steps",
"platform": "darwin",
"created_at": "2021-12-16T14:37:37Z",
"updated_at": "2021-12-16T16:39:00Z",
"passing_host_count": 0,
"failing_host_count": 0,
"host_count_updated_at": null,
"calendar_events_enabled": false,
"labels_include_any": ["Macs on Sonoma"],
"install_software": {
"name": "Adobe Acrobat.app",
"software_title_id": 1234,
"software_package_id": 5678
},
"run_script": {
"name": "Enable gatekeeper",
"id": 1337
},
"resend_configuration_profile": {
"profile_uuid": "954ec5ea-a334-4825-87b3-937e7e381f24",
"name": "Passcode requirements"
}
}
}POST /api/v1/fleet/global/policies/delete
| Name | Type | In | Description |
|---|---|---|---|
| ids | array | body | Required. The IDs of the policies to delete. |
POST /api/v1/fleet/global/policies/delete
{
"ids": [ 1 ]
}Status: 200
{
"deleted": 1
}Available in Fleet Premium
POST /api/v1/fleet/fleets/:fleet_id/policies/delete
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | integer | path | Required. Defines what fleet ID to operate on |
| ids | array | body | Required. The IDs of the policies to delete. |
POST /api/v1/fleet/fleets/1/policies/delete
{
"ids": [ 1 ]
}Status: 200
{
"deleted": 1
}PATCH /api/v1/fleet/global/policies/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | The policy's ID. |
| name | string | body | The query's name. |
| query | string | body | The query in SQL. |
| description | string | body | The query's description. |
| resolution | string | body | The resolution steps for the policy. |
| platform | string | body | Comma-separated target platforms, currently supported values are "windows", "linux", "darwin". The default, an empty string means target all platforms. |
| critical | boolean | body | Available in Fleet Premium. Mark policy as critical/high impact. |
| hidden | boolean | body | Available in Fleet Premium. Whether to hide this policy from the Policies page in Fleet Desktop. |
| labels_include_any | array | form | Available in Fleet Premium. Labels, specified by label name, to target with this policy. If specified, the policy will run on hosts that match any of these labels. |
| labels_include_all | array | body | Available in Fleet Premium. Labels, specified by label name, to target with this policy. If specified, the policy will run on hosts that match all of these labels. |
| labels_exclude_any | array | form | Available in Fleet Premium. Labels, specified by label name, to target with this policy. If specified, the policy will not run on hosts that match any of these labels. |
| labels_exclude_all | array | form | Available in Fleet Premium. Labels, specified by label name, to target with this policy. If specified, the policy will not run on hosts that match all of these labels. |
Only one set of label targets (labels_include_any/labels_include_all) and one set of label exclusions (labels_exclude_any/labels_exclude_all) can be specified. If none are set, all hosts on the specified platform are targeted.
PATCH /api/v1/fleet/global/policies/42
{
"name": "Gatekeeper enabled",
"query": "SELECT 1 FROM gatekeeper WHERE assessments_enabled = 1;",
"description": "Checks if gatekeeper is enabled on macOS devices",
"critical": true,
"hidden": false,
"resolution": "Resolution steps",
"platform": "darwin"
}Status: 200
{
"policy": {
"id": 42,
"name": "Gatekeeper enabled",
"query": "SELECT 1 FROM gatekeeper WHERE assessments_enabled = 1;",
"description": "Checks if gatekeeper is enabled on macOS devices",
"critical": true,
"hidden": false,
"author_id": 43,
"author_name": "John",
"author_email": "[email protected]",
"team_id": null,
"resolution": "Resolution steps",
"platform": "darwin",
"created_at": "2022-03-17T20:15:55Z",
"updated_at": "2022-03-17T20:15:55Z",
"passing_host_count": 0,
"failing_host_count": 0,
"host_count_updated_at": null
}
}Available in Fleet Premium
PATCH /api/v1/fleet/fleets/:fleet_id/policies/:policy_id
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | integer | path | The fleet's ID. |
| policy_id | integer | path | The policy's ID. |
| name | string | body | The query's name. |
| query | string | body | The query in SQL. |
| description | string | body | The query's description. |
| resolution | string | body | The resolution steps for the policy. |
| platform | string | body | Comma-separated target platforms, currently supported values are "windows", "linux", "darwin". The default, an empty string means target all platforms. |
| critical | boolean | body | Available in Fleet Premium. Mark policy as critical/high impact. Critical policies can never bypass conditional access. |
| calendar_events_enabled | boolean | body | Available in Fleet Premium. Whether to trigger calendar events when policy is failing. |
| conditional_access_enabled | boolean | body | Available in Fleet Premium. Whether to block single sign-on for end users whose hosts fail this policy. |
| hidden | boolean | body | Available in Fleet Premium. Whether to hide this policy from the Policies page in Fleet Desktop. Only one of hidden and conditional_access_enabled can be true. |
| software_title_id | integer | body | Available in Fleet Premium. ID of software title to install if the policy fails. Set to null to remove the automation. |
| software_package_id | integer | body | Available in Fleet Premium. ID of the specific package to install when the software title has multiple packages. Set to null to clear the pinned package. |
| software_installer_id | integer | body | Available in Fleet Premium. ID of a specific package of software_title_id to install on failure. If omitted, defaults to the title's first-added package. |
| script_id | integer | body | Available in Fleet Premium. ID of script to run if the policy fails. Set to null to remove the automation. |
| profile_uuid | string | body | Available in Fleet Premium. UUID of the configuration profile to resend if the policy fails. Set to null to remove the automation. The profile must belong to the same fleet. |
| continuous_automations_enabled | boolean | body | Available in Fleet Premium. If enabled, software and script automations will run every time Fleet receives a failing response from a host. If not, all automations run on a host's first failure, and when a host's response changes from pass to fail. If the install software automation does not resolve the policy after 10 attempts, Fleet will wait 24 hours before retrying. |
| patch_when_closed | boolean | body | Available in Fleet Premium. Only applies to existing patch policies (type is patch). If true, Fleet adds a read-only pre-install condition that skips the automated install while the app is open. Setting this to true also sets continuous_automations_enabled to true. If false, Fleet installs the update the next time the policy fails, whether or not the app is open. If software_title_id is not specified, install software policy automation won't be added. |
| notify_before_patching | boolean | body | Available in Fleet Premium. Only applies if type is patch. If true, Fleet shows the end user a notification listing the apps that will be updated, waits 1 hour, and then installs. A reminder is shown 5 minutes before the install. Nothing is installed until the end user has been notified and the hour has elapsed. Setting this to true also sets continuous_automations_enabled to true. Only supported on macOS hosts with Fleet Desktop installed. If software_title_id is not specified, install software policy automation won't be added. |
| patch_deadline | boolean | body | Available in Fleet Premium. Only applies to existing patch policies (type is patch). If true, Fleet patches the app right away when it isn't open. If the app is open, Fleet waits for the next deadline in the fleet's patch deadline settings. 1 hour before the deadline, Fleet shows the end user a notification listing the apps that will close and update. A reminder is shown 5 minutes before the install. Setting this to true also sets continuous_automations_enabled to true. Only one of patch_when_closed, notify_before_patching, or patch_deadline can be true. Only supported on macOS hosts with Fleet Desktop installed. |
| labels_include_any | array | form | Labels, specified by label name, to target with this policy. If specified, the policy will run on hosts that match any of these labels. |
| labels_include_all | array | body | Available in Fleet Premium. Labels, specified by label name, to target with this policy. If specified, the policy will run on hosts that match all of these labels. |
| labels_exclude_any | array | form | Available in Fleet Premium. Labels, specified by label name, to target with this policy. If specified, the policy will not run on hosts that match any of these labels. |
| labels_exclude_all | array | form | Available in Fleet Premium. Labels, specified by label name, to target with this policy. If specified, the policy will not run on hosts that match all of these labels. |
Either query or query_id must be provided.
Only one set of label targets (labels_include_any/labels_include_all) and one set of label exclusions (labels_exclude_any/labels_exclude_all) can be specified. If none are set, all hosts on the specified platform are targeted.
Setting patch_when_closed, notify_before_patching, or patch_deadline to false after it was true removes the read-only pre-install condition Fleet added. pre_install_query becomes editable again on the software title.
PATCH /api/v1/fleet/fleets/2/policies/42
{
"name": "Gatekeeper enabled",
"query": "SELECT 1 FROM gatekeeper WHERE assessments_enabled = 1;",
"description": "Checks if gatekeeper is enabled on macOS devices",
"critical": true,
"resolution": "Resolution steps",
"platform": "darwin",
"script_id": 1337
}Status: 200
{
"policy": {
"id": 42,
"name": "Gatekeeper enabled",
"query": "SELECT 1 FROM gatekeeper WHERE assessments_enabled = 1;",
"description": "Checks if gatekeeper is enabled on macOS devices",
"critical": true,
"author_id": 43,
"author_name": "John",
"author_email": "[email protected]",
"resolution": "Resolution steps",
"platform": "darwin",
"team_id": 2,
"created_at": "2021-12-16T14:37:37Z",
"updated_at": "2021-12-16T16:39:00Z",
"passing_host_count": 0,
"failing_host_count": 0,
"host_count_updated_at": null,
"calendar_events_enabled": true,
"conditional_access_enabled": false,
"hidden": false,
"fleet_maintained": false,
"install_software": {
"name": "Adobe Acrobat.app",
"software_title_id": 1234,
"software_package_id": 5678
},
"run_script": {
"name": "Enable gatekeeper",
"id": 1337
},
"resend_configuration_profile": {
"profile_uuid": "954ec5ea-a334-4825-87b3-937e7e381f24",
"name": "Passcode requirements"
}
}
}Resets webhook and ticket policy automations status for all hosts failing the specified policies. On the next automation run, any failing host will be considered newly failing.
POST /api/v1/fleet/automations/reset
| Name | Type | In | Description |
|---|---|---|---|
| policy_ids | array | body | Filters to only run policy automations for the specified policies. |
| fleet_ids | array | body | Available in Fleet Premium. Filters to only run policy automations for hosts in the specified fleets. |
POST /api/v1/fleet/automations/reset
{
"team_ids": [1],
"fleet_ids": [1],
"policy_ids": [1, 2, 3]
}Status: 200
{}Returns a list of reports. To see each report's data, use the get report data endpoint.
GET /api/v1/fleet/reports
| Name | Type | In | Description |
|---|---|---|---|
| order_key | string | query | What to order results by. Can be any column in the reports table. |
| order_direction | string | query | Requires order_key. The direction of the order given the order key. Options include "asc" and "desc". Default is "asc". |
| fleet_id | integer | query | Available in Fleet Premium. The ID of the fleet for the reports to be listed. When omitted, returns global reports. |
| query | string | query | Search query keywords. Searchable fields include name. |
| merge_inherited | boolean | query | Available in Fleet Premium. If true, will include global reports in addition to fleet-level reports when filtering by fleet_id. (If no fleet_id is provided, this parameter is ignored.) |
| platform | string | query | Return reports that are scheduled to run on this platform. One of: "macos", "windows", "linux" (case-insensitive). (Since reports cannot be scheduled to run on "chrome" hosts, it's not a valid value here) |
| page | integer | query | Page number of the results to fetch. |
| per_page | integer | query | Results per page. |
| after | string | query | The value to get results after. This needs order_key defined, as that's the column that would be used. |
GET /api/v1/fleet/reports
Status: 200
{
"queries": [
{
"created_at": "2021-01-04T21:19:57Z",
"updated_at": "2021-01-04T21:19:57Z",
"id": 1,
"name": "report1",
"description": "report",
"query": "SELECT * FROM osquery_info",
"team_id": null,
"interval": 3600,
"platform": "darwin,windows,linux",
"min_osquery_version": "",
"automations_enabled": true,
"logging": "snapshot",
"saved": true,
"observer_can_run": true,
"discard_data": false,
"author_id": 1,
"author_name": "noah",
"author_email": "[email protected]",
"labels_include_any": [],
"packs": [
{
"created_at": "2021-01-05T21:13:04Z",
"updated_at": "2021-01-07T19:12:54Z",
"id": 1,
"name": "Pack",
"description": "Pack",
"platform": "",
"disabled": true
}
],
"stats": {
"system_time_p50": 1.32,
"system_time_p95": 4.02,
"user_time_p50": 3.55,
"user_time_p95": 3.00,
"total_executions": 3920
}
}
],
"reports": [
{
"created_at": "2021-01-04T21:19:57Z",
"updated_at": "2021-01-04T21:19:57Z",
"id": 1,
"name": "report1",
"description": "report",
"query": "SELECT * FROM osquery_info",
"team_id": null,
"interval": 3600,
"platform": "darwin,windows,linux",
"min_osquery_version": "",
"automations_enabled": true,
"logging": "snapshot",
"saved": true,
"observer_can_run": true,
"discard_data": false,
"author_id": 1,
"author_name": "noah",
"author_email": "[email protected]",
"labels_include_any": [],
"packs": [
{
"created_at": "2021-01-05T21:13:04Z",
"updated_at": "2021-01-07T19:12:54Z",
"id": 1,
"name": "Pack",
"description": "Pack",
"platform": "",
"disabled": true
}
],
"stats": {
"system_time_p50": 1.32,
"system_time_p95": 4.02,
"user_time_p50": 3.55,
"user_time_p95": 3.00,
"total_executions": 3920
}
},
{
"created_at": "2021-01-19T17:08:24Z",
"updated_at": "2021-01-19T17:08:24Z",
"id": 3,
"name": "osquery_schedule",
"description": "Report performance stats for each file in the query schedule.",
"query": "select name, interval, executions, output_size, wall_time, (user_time/executions) as avg_user_time, (system_time/executions) as avg_system_time, average_memory, last_executed from osquery_schedule;",
"team_id": null,
"interval": 3600,
"platform": "",
"version": "",
"automations_enabled": true,
"logging": "differential",
"saved": true,
"observer_can_run": true,
"discard_data": true,
"author_id": 1,
"author_name": "noah",
"author_email": "[email protected]",
"labels_include_any": ["macOS 13+"],
"packs": [
{
"created_at": "2021-01-19T17:08:31Z",
"updated_at": "2021-01-19T17:08:31Z",
"id": 14,
"name": "test_pack",
"description": "",
"platform": "",
"disabled": false
}
],
"stats": {
"system_time_p50": null,
"system_time_p95": null,
"user_time_p50": null,
"user_time_p95": null,
"total_executions": null
}
}
],
"meta": {
"has_next_results": true,
"has_previous_results": false
},
"count": 200
}Lists the saved reports that run on a host, along with the first result for each report that saves results.
GET /api/v1/fleet/hosts/:id/reports
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The host's ID. |
| query | string | query | Search query keywords. Searchable fields include name. |
| exclude_no_results | boolean | query | If true, exclude reports that don't save results. Default is false. |
| page | integer | query | Page number of the results to fetch. |
| per_page | integer | query | Results per page. |
| order_key | string | query | What to order results by. Valid options are "name" and "last_fetched". Default is "name". |
| order_direction | string | query | Requires order_key. The direction of the order given the order key. Options include "asc" and "desc". Default is "asc". |
GET /api/v1/fleet/hosts/123/reports
Status: 200
{
"reports": [
{
"id": 31,
"name": "List USB devices",
"description": "Retrieves USB devices and their details.",
"query": "SELECT model, vendor FROM usb_devices;",
"logging": "snapshot",
"discard_data": false,
"total_results_count": 4,
"last_fetched": "2021-01-19T17:08:31Z",
"first_result_columns": {
"model": "USB 2.0 Hub",
"vendor": "VIA Labs, Inc."
}
},
{
"id": 44,
"name": "Get operating system version",
"description": "Retrieves the host's operating system version.",
"query": "SELECT name, version, major, minor, patch FROM os_version;",
"logging": "differential",
"discard_data": false,
"total_results_count": 1,
"last_fetched": "2021-01-20T14:52:09Z",
"first_result_columns": {
"name": "macOS",
"version": "14.2.1",
"major": "14",
"minor": "2",
"patch": "1"
}
},
{
"id": 52,
"name": "Check disk encryption status",
"description": "Checks disk encryption status.",
"query": "SELECT 1 FROM disk_encryption WHERE encrypted = 1;",
"logging": "snapshot",
"discard_data": true,
"total_results_count": 0,
"last_fetched": "2021-01-21T09:30:00Z",
"first_result_columns": null
}
],
"meta": {
"has_next_results": false,
"has_previous_results": false
},
"count": 3
}The report's first row reflects the order returned by the underlying table implementation. Without an
ORDER BYclause in the query, this order is not guaranteed to be consistent across runs — particularly for tables backed by live OS state (e.g. processes, network connections). To ensure a predictable first result, addORDER BY <column>to your query.
Returns the report specified by ID.
GET /api/v1/fleet/reports/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The id of the desired report. |
GET /api/v1/fleet/reports/31
Status: 200
{
"query": {
"created_at": "2021-01-19T17:08:24Z",
"updated_at": "2021-01-19T17:08:24Z",
"id": 31,
"name": "centos_hosts",
"description": "",
"query": "select 1 from os_version where platform = \"centos\";",
"team_id": null,
"interval": 3600,
"platform": "",
"min_osquery_version": "",
"automations_enabled": true,
"logging": "snapshot",
"saved": true,
"observer_can_run": true,
"discard_data": false,
"author_id": 1,
"author_name": "John",
"author_email": "[email protected]",
"labels_include_any": [],
"packs": [
{
"created_at": "2021-01-19T17:08:31Z",
"updated_at": "2021-01-19T17:08:31Z",
"id": 14,
"name": "test_pack",
"description": "",
"platform": "",
"disabled": false
}
],
"stats": {
"system_time_p50": 1.32,
"system_time_p95": 4.02,
"user_time_p50": 3.55,
"user_time_p95": 3.00,
"total_executions": 3920
}
}
}Returns a specific report's data.
GET /api/v1/fleet/reports/:id/report
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The ID of the desired report. |
| fleet_id | integer | query | Filter the report to only include hosts that are associated with the fleet specified. |
| query | string | query | Search query keywords. Matches the host's display name and any result column value. |
| page | integer | query | Page number of the results to fetch. Only applies when per_page is set. |
| per_page | integer | query | Results per page. If omitted, all results are returned and meta is not included. |
| order_key | string | query | What to order results by. Valid options are "last_fetched", "host_name", "host_id", or the name of a result column. Result column values are sorted as strings, and the built-in options take precedence over a result column with the same name. Default is "last_fetched". |
| order_direction | string | query | Requires order_key. The direction of the order given the order key. Options include "asc" and "desc". Default is "desc". |
GET /api/v1/fleet/reports/31/report?per_page=5
Status: 200
{
"query_id": 31,
"report_id": 31,
"report_clipped": false,
"count": 12,
"meta": {
"has_next_results": true,
"has_previous_results": false
},
"results": [
{
"host_id": 1,
"host_name": "foo",
"last_fetched": "2021-01-19T17:08:31Z",
"columns": {
"model": "USB 2.0 Hub",
"vendor": "VIA Labs, Inc."
}
},
{
"host_id": 1,
"host_name": "foo",
"last_fetched": "2021-01-19T17:08:31Z",
"columns": {
"model": "USB Keyboard",
"vendor": "VIA Labs, Inc."
}
},
{
"host_id": 2,
"host_name": "bar",
"last_fetched": "2021-01-19T17:20:00Z",
"columns": {
"model": "USB Receiver",
"vendor": "Logitech"
}
},
{
"host_id": 2,
"host_name": "bar",
"last_fetched": "2021-01-19T17:20:00Z",
"columns": {
"model": "USB Receiver",
"vendor": "Logitech"
}
},
{
"host_id": 2,
"host_name": "bar",
"last_fetched": "2021-01-19T17:20:00Z",
"columns": {
"model": "Display Audio",
"vendor": "Apple Inc."
}
}
]
}count is the total number of results matching the request across all pages.
last_fetched is when Fleet last received the host's results. If the host's results haven't changed, Fleet updates last_fetched about once an hour, so it can trail the host's most recent run by up to an hour.
If a report has no results stored, then results will be an empty array:
{
"query_id": 32,
"report_id": 32,
"report_clipped": false,
"count": 0,
"results": []
}Scheduled reports do not return errors, so only non-error results are included. If you suspect a report may be running into errors, you can use the live report endpoint to get diagnostics.
Returns a specific report's data for a single host.
GET /api/v1/fleet/hosts/:id/reports/:report_id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The ID of the desired host. |
| report_id | integer | path | Required. The ID of the desired report. |
GET /api/v1/fleet/hosts/123/reports/31
Status: 200
{
"query_id": 31,
"report_id": 31,
"host_id": 1,
"host_name": "foo",
"last_fetched": "2021-01-19T17:08:31Z",
"report_clipped": false,
"results": [
{
"columns": {
"model": "USB 2.0 Hub",
"vendor": "VIA Labs, Inc."
}
},
{
"columns": {
"model": "USB Keyboard",
"vendor": "VIA Labs, Inc."
}
},
{
"columns": {
"model": "USB Receiver",
"vendor": "Logitech"
}
}
]
}last_fetched is when Fleet last received the host's results. If the host's results haven't changed, Fleet updates last_fetched about once an hour, so it can trail the host's most recent run by up to an hour.
If a report has no results stored for the specified host, then results will be an empty array:
{
"query_id": 31,
"report_id": 31,
"host_id": 1,
"host_name": "foo",
"last_fetched": "2021-01-19T17:08:31Z",
"report_clipped": false,
"results": []
}Scheduled reports do not return errors, so only non-error results are included in the report. If you suspect a report may be running into errors, you can use the live report endpoint to get diagnostics.
Creates a global report or fleet report.
POST /api/v1/fleet/reports
| Name | Type | In | Description |
|---|---|---|---|
| name | string | body | Required. The name of the report. |
| query | string | body | Required. The SQL query for collecting report data. |
| description | string | body | The query's description. |
| observer_can_run | boolean | body | Whether or not users with the observer role can run the report as a live report. This field is only relevant for the observer role. The observer_plus role can run any report and is not limited by this flag. |
| fleet_id | integer | body | Available in Fleet Premium. The fleet to which the new report should be added. If omitted, the report will be global. |
| interval | integer | body | The amount of time, in seconds, the report waits before running. Can be set to 0 to never run. Default: 0. |
| platform | string | body | The OS platforms where this report will run (other platforms ignored). Comma-separated string. If omitted, runs on all compatible platforms. |
| labels_include_any | array | body | Available in Fleet Premium. Labels, specified by label name, to target with this report. If specified, the report will run on hosts that match any of these labels. |
| labels_include_all | array | body | Available in Fleet Premium. Labels, specified by label name, to target with this report. If specified, the report will run on hosts that match all of these labels. |
| min_osquery_version | string | body | The minimum required osqueryd version installed on a host. If omitted, all osqueryd versions are acceptable. |
| automations_enabled | boolean | body | Whether to send data to the configured log destination according to the report's interval. (Default: false) |
| logging | string | body | The type of log output for this report. Valid values: "snapshot"(default), "differential", or "differential_ignore_removals". |
| discard_data | boolean | body | Whether to skip saving the latest results for each host. If set to true, data is still sent to the configured log destination if automations_enabled. Default: false. |
Only one of labels_include_any or labels_include_all can be specified. If none are specified, all hosts are targeted.
POST /api/v1/fleet/reports
{
"name": "new_report",
"description": "This is a new report.",
"query": "SELECT * FROM osquery_info",
"interval": 3600, // Once per hour
"platform": "darwin,windows,linux",
"min_osquery_version": "",
"automations_enabled": true,
"logging": "snapshot",
"discard_data": false,
"labels_include_any": [
"Hosts with Docker installed"
]
}Status: 200
{
"query": {
"created_at": "0001-01-01T00:00:00Z",
"updated_at": "0001-01-01T00:00:00Z",
"id": 288,
"name": "new_query",
"query": "SELECT * FROM osquery_info",
"description": "This is a new query.",
"team_id": null,
"interval": 3600,
"platform": "darwin,windows,linux",
"min_osquery_version": "",
"automations_enabled": true,
"logging": "snapshot",
"saved": true,
"author_id": 1,
"author_name": "",
"author_email": "",
"observer_can_run": true,
"discard_data": false,
"packs": [],
"labels_include_any": [
"Hosts with Docker installed"
]
},
"report": {
"created_at": "0001-01-01T00:00:00Z",
"updated_at": "0001-01-01T00:00:00Z",
"id": 288,
"name": "new_query",
"query": "SELECT * FROM osquery_info",
"description": "This is a new query.",
"team_id": null,
"interval": 3600,
"platform": "darwin,windows,linux",
"min_osquery_version": "",
"automations_enabled": true,
"logging": "snapshot",
"saved": true,
"author_id": 1,
"author_name": "",
"author_email": "",
"observer_can_run": true,
"discard_data": false,
"packs": [],
"labels_include_any": [
"Hosts with Docker installed"
]
}
}Modifies the report specified by ID.
PATCH /api/v1/fleet/reports/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The ID of the report. |
| name | string | body | The name of the report. |
| query | string | body | The report's SQL query. |
| description | string | body | The report's description. |
| observer_can_run | boolean | body | Whether or not users with the observer role can run the report as a live report. This field is only relevant for the observer role. The observer_plus role can run any query and is not limited by this flag. |
| interval | integer | body | The amount of time, in seconds, the report waits before running. Can be set to 0 to never run. Default: 0. |
| platform | string | body | The OS platforms where this report will run (other platforms ignored). Comma-separated string. If set to "", runs on all compatible platforms. |
| labels_include_any | list | body | Available in Fleet Premium. Labels, specified by label name, to target with this report. If specified, the report will run on hosts that match any of these labels. |
| labels_include_all | array | body | Available in Fleet Premium. Labels, specified by label name, to target with this report. If specified, the report will run on hosts that match all of these labels. |
| min_osquery_version | string | body | The minimum required osqueryd version installed on a host. If omitted, all osqueryd versions are acceptable. |
| automations_enabled | boolean | body | Whether to send data to the configured log destination according to the report's interval. |
| logging | string | body | The type of log output for this query. Valid values: "snapshot"(default), "differential", or "differential_ignore_removals". |
| discard_data | boolean | body | Whether to skip saving the latest results for each host. If set to true, data is still sent to the configured log destination if automations_enabled. |
Only one of labels_include_any or labels_include_all can be specified. If none are specified, all hosts are targeted.
Note that any of the following conditions will cause the existing report's data to be discarded:
- Updating the
query(SQL) field- Updating the filters for targeted hosts (
platform,min_osquery_version,labels_include_any)- Changing
discard_datafromfalsetotrue- Changing
loggingfrom"snapshot"to"differential"or"differential_ignore_removals"
PATCH /api/v1/fleet/reports/2
{
"name": "new_title_for_my_report",
"interval": 3600, // Once per hour,
"platform": "",
"min_osquery_version": "",
"automations_enabled": false,
"discard_data": true,
"labels_include_any": [
"Hosts with Docker installed",
"macOS 13+"
]
}Status: 200
{
"query": {
"created_at": "2021-01-22T17:23:27Z",
"updated_at": "2021-01-22T17:23:27Z",
"id": 288,
"name": "new_title_for_my_query",
"description": "This is a new query.",
"query": "SELECT * FROM osquery_info",
"team_id": null,
"interval": 3600,
"platform": "",
"min_osquery_version": "",
"automations_enabled": false,
"logging": "snapshot",
"saved": true,
"author_id": 1,
"author_name": "noah",
"observer_can_run": true,
"discard_data": true,
"packs": [],
"labels_include_any": [
"Hosts with Docker installed",
"macOS 13+"
]
},
"report": {
"created_at": "2021-01-22T17:23:27Z",
"updated_at": "2021-01-22T17:23:27Z",
"id": 288,
"name": "new_title_for_my_query",
"description": "This is a new query.",
"query": "SELECT * FROM osquery_info",
"team_id": null,
"interval": 3600,
"platform": "",
"min_osquery_version": "",
"automations_enabled": false,
"logging": "snapshot",
"saved": true,
"author_id": 1,
"author_name": "noah",
"observer_can_run": true,
"discard_data": true,
"packs": [],
"labels_include_any": [
"Hosts with Docker installed",
"macOS 13+"
]
}
}Deletes the report specified by name.
DELETE /api/v1/fleet/reports/:name
| Name | Type | In | Description |
|---|---|---|---|
| name | string | path | Required. The name of the report. |
| fleet_id | integer | body | Available in Fleet Premium. The ID of the report's fleet. If omitted, Fleet will search among only global reports. |
DELETE /api/v1/fleet/reports/foo
Status: 200
Deletes the report specified by ID.
DELETE /api/v1/fleet/reports/id/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The ID of the report. |
DELETE /api/v1/fleet/reports/id/28
Status: 200
Deletes the reports specified by ID. Returns the count of reports successfully deleted.
POST /api/v1/fleet/reports/delete
| Name | Type | In | Description |
|---|---|---|---|
| ids | array | body | Required. The IDs of the reports. |
POST /api/v1/fleet/reports/delete
{
"ids": [
2, 24, 25
]
}Status: 200
{
"deleted": 3
}This updated API endpoint replaced
GET /api/v1/fleet/queries/runin Fleet 4.43.0, for improved compatibility with many HTTP clients. The deprecated endpoint is maintained for backwards compatibility.
Runs a live report against the specified hosts and responds with the results.
The live report will stop if the request times out. Timeouts happen if targeted hosts haven't responded after the configured FLEET_LIVE_QUERY_REST_PERIOD (default 25 seconds) or if the distributed_interval agent option (default 10 seconds) is higher than the FLEET_LIVE_QUERY_REST_PERIOD.
POST /api/v1/fleet/reports/:id/run
| Name | Type | In | Description |
|---|---|---|---|
| report_id | integer | path | Required. The ID of the saved report to run. |
| host_ids | array | body | Required. The IDs of the hosts to target. User must be authorized to target all of these hosts. |
POST /api/v1/fleet/reports/123/run
{
"host_ids": [ 1, 4, 34, 27 ]
}{
"query_id": 123,
"report_id": 123,
"targeted_host_count": 4,
"responded_host_count": 2,
"results": [
{
"host_id": 1,
"rows": [
{
"build_distro": "10.12",
"build_platform": "darwin",
"config_hash": "7bb99fa2c8a998c9459ec71da3a84d66c592d6d3",
"config_valid": "1",
"extensions": "active",
"instance_id": "9a2ec7bf-4946-46ea-93bf-455e0bcbd068",
"pid": "23413",
"platform_mask": "21",
"start_time": "1635194306",
"uuid": "4C182AC7-75F7-5AF4-A74B-1E165ED35742",
"version": "4.9.0",
"watcher": "23412"
}
],
"error": null
},
{
"host_id": 2,
"rows": [],
"error": "no such table: os_version"
}
]
}Runs the specified report as a live report on the specified hosts or group of hosts. This starts a new active report, represented in the response as the campaign object.
After you initiate the report, get results via WebSocket.
Warning: If you're building an automation that runs many live reports, rate-limit your requests. Every request starts a new active report, whether you pass
queryorquery_id. While your client retrieves results, the active report holds a Redis connection. When your client closes the connection, Fleet stops the active report right away, but its Redis connection can stay open for up to an hour. If your client keeps the connection open, both stay open too. If you never connect to retrieve results, Fleet stops the active report the first time a targeted host responds after a minute. Creating many active reports, especially without closing them, adds load that can slow down or interrupt Fleet.To close the connection: once you're retrieving results over the WebSocket connection, call
socket.close()as soon as you receive a message with"status": "finished", as shown in the example script in that section.
POST /api/v1/fleet/queries/run
| Name | Type | In | Description |
|---|---|---|---|
| query | string | body | The SQL if using a custom query. |
| query_id | integer | body | The saved query (if any) that will be run. Required if running query as an observer. The observer_can_run property on the query effects which targets are included. |
| selected | object | body | Required. The object includes lists of selected host IDs (selected.hosts), label IDs (selected.labels), and fleet IDs (selected.fleets). When provided, builtin label IDs, custom label IDs and fleet IDs become AND filters. Within each selector, selecting two or more fleets, two or more builtin labels, or two or more custom labels, behave as OR filters. There's one special case for the builtin label "All hosts", if such label is selected, then all other label and fleet selectors are ignored (and all hosts will be selected). If a host ID is explicitly included in selected.hosts, then it is assured that the query will be selected to run on it (no matter the contents of selected.labels and selected.fleets). Use 0 fleet ID to filter by hosts assigned to "Unassigned". See examples below. |
One of query and query_id must be specified.
POST /api/v1/fleet/queries/run
{
"query": "SELECT instance_id FROM system_info",
"selected": {
"hosts": [171]
}
}Status: 200
{
"campaign": {
"created_at": "0001-01-01T00:00:00Z",
"updated_at": "0001-01-01T00:00:00Z",
"Metrics": {
"TotalHosts": 1,
"OnlineHosts": 0,
"OfflineHosts": 1,
"MissingInActionHosts": 0,
"NewHosts": 1
},
"id": 1,
"query_id": 3,
"status": 0,
"user_id": 1
}
}POST /api/v1/fleet/queries/run
{
"query": "SELECT instance_id FROM system_info;",
"selected": {
"labels": [7]
}
}Status: 200
{
"campaign": {
"created_at": "0001-01-01T00:00:00Z",
"updated_at": "0001-01-01T00:00:00Z",
"Metrics": {
"TotalHosts": 102,
"OnlineHosts": 0,
"OfflineHosts": 24,
"MissingInActionHosts": 0,
"NewHosts": 0
},
"id": 2,
"query_id": 3,
"status": 0,
"user_id": 1
}
}Runs the specified saved report as a live report on the targets (selected) specified by name instead of ID. This starts a new active report, represented in the response as the campaign object.
After the report has been initiated, get results via WebSocket.
Warning: If you're building an automation that runs many live reports, rate-limit your requests. Every request starts a new active report, whether you pass
queryorquery_id. While your client retrieves results, the active report holds a Redis connection. When your client closes the connection, Fleet stops the active report right away, but its Redis connection can stay open for up to an hour. If your client keeps the connection open, both stay open too. If you never connect to retrieve results, Fleet stops the active report the first time a targeted host responds after a minute. Creating many active reports, especially without closing them, adds load that can slow down or interrupt live queries for everyone.To close the connection: once you're retrieving results over the WebSocket connection, call
socket.close()as soon as you receive a message with"status": "finished", as shown in the example script in that section.
POST /api/v1/fleet/queries/run_by_identifiers
| Name | Type | In | Description |
|---|---|---|---|
| query | string | body | The SQL of the query. |
| query_id | integer | body | The saved query (if any) that will be run. The observer_can_run property on the query effects which targets are included. |
| selected | object | body | Required. The object includes lists of selected hostnames (selected.hosts), label names (labels). When provided, builtin label names and custom label names become AND filters. Within each selector, selecting two or more builtin labels, or two or more custom labels, behave as OR filters. If a label provided could not be found in the database, a 400 bad request will be returned specifying which label is invalid. There's one special case for the builtin label "All hosts", if such label is selected, then all other label and fleet selectors are ignored (and all hosts will be selected). If a host's hostname is explicitly included in selected.hosts, then it is assured that the query will be selected to run on it (no matter the contents of selected.labels). See examples below. |
One of query and query_id must be specified.
POST /api/v1/fleet/queries/run_by_identifiers
{
"query_id": 1,
"selected": {
"hosts": ["macbook-pro.local"]
}
}Status: 200
{
"campaign": {
"created_at": "0001-01-01T00:00:00Z",
"updated_at": "0001-01-01T00:00:00Z",
"Metrics": {
"TotalHosts": 1,
"OnlineHosts": 0,
"OfflineHosts": 1,
"MissingInActionHosts": 0,
"NewHosts": 1
},
"id": 1,
"query_id": 3,
"status": 0,
"user_id": 1
}
}POST /api/v1/fleet/queries/run_by_identifiers
{
"query": "SELECT instance_id FROM system_info",
"selected": {
"labels": ["All Hosts"]
}
}Status: 200
{
"campaign": {
"created_at": "0001-01-01T00:00:00Z",
"updated_at": "0001-01-01T00:00:00Z",
"Metrics": {
"TotalHosts": 102,
"OnlineHosts": 0,
"OfflineHosts": 24,
"MissingInActionHosts": 0,
"NewHosts": 1
},
"id": 2,
"query_id": 3,
"status": 0,
"user_id": 1
}
}POST /api/v1/fleet/queries/run_by_identifiers
{
"query": "SELECT instance_id FROM system_info",
"selected": {
"labels": ["Windows", "Banana", "Apple"]
}
}Status: 400
{
"message": "Bad request",
"errors": [
{
"name": "base",
"reason": "Invalid label name(s): Banana, Apple."
}
],
"uuid": "303649f4-5e45-4379-bae9-64ec0ef56287"
}You can retrieve the results of a live report using the standard WebSocket API.
Before you retrieve the live report results, you must start an active report by running the live report. Use the Run live report or Run live report by name endpoints to start one.
Note that the active report is automatically cancelled if this method isn't called to start retrieving results within 60 seconds of starting the report.
/api/v1/fleet/results/websocket
| Name | Type | In | Description |
|---|---|---|---|
| token | string | Required. The token used to authenticate with the Fleet API. | |
| campaignID | integer | Required. The ID of the active report (the campaign.id field returned when you started the report). |
const socket = new WebSocket('wss://<your-base-url>/api/v1/fleet/results/websocket');
socket.onopen = () => {
socket.send(JSON.stringify({ type: 'auth', data: { token: <auth-token> } }));
socket.send(JSON.stringify({ type: 'select_campaign', data: { campaign_id: <campaign-id> } }));
};
socket.onmessage = ({ data }) => {
console.log(data);
const message = JSON.parse(data);
if (message.type === 'status' && message.data.status === 'finished') {
socket.close();
}
}o[
{
"type": "auth",
"data": { "token": <insert_token_here> }
}
][
{
"type": "select_campaign",
"data": { "campaign_id": 12 }
}
]// Sends the total number of hosts targeted and segments them by status
[
{
"type": "totals",
"data": {
"count": 24,
"online": 6,
"offline": 18,
"missing_in_action": 0
}
}
]// Sends the expected results, actual results so far, and the status of the live report
[
{
"type": "status",
"data": {
"expected_results": 6,
"actual_results": 0,
"status": "pending"
}
}
]// Sends the result for a given host
[
{
"type": "result",
"data": {
"distributed_query_execution_id": 39,
"host": {
"id": 42,
"hostname": "foobar",
"display_name": "foobar"
},
"rows": [
// query results data for the given host
],
"error": null
}
}
]// Sends the status of "finished" when messages with the results for all expected hosts have been sent
[
{
"type": "status",
"data": {
"expected_results": 6,
"actual_results": 6,
"status": "finished"
}
}
]You can also retrieve live report results with a SockJS client. The script to handle the request and response messages will look similar to the standard WebSocket API script with slight variations. For example, the constructor used for SockJS is SockJS while the constructor used for the standard WebSocket API is WebSocket.
Note that SockJS has been found to be substantially less reliable than the standard WebSockets approach.
/api/v1/fleet/results/
| Name | Type | In | Description |
|---|---|---|---|
| token | string | Required. The token used to authenticate with the Fleet API. | |
| campaignID | integer | Required. The ID of the active report (the campaign.id field returned when you started the report). |
const socket = new SockJS(`<your-base-url>/api/v1/fleet/results`, undefined, {});
socket.onopen = () => {
socket.send(JSON.stringify({ type: 'auth', data: { token: <token> } }));
socket.send(JSON.stringify({ type: 'select_campaign', data: { campaign_id: <campaignID> } }));
};
socket.onmessage = ({ data }) => {
console.log(data);
const message = JSON.parse(data);
if (message.type === 'status' && message.data.status === 'finished') {
socket.close();
}
}o[
{
"type": "auth",
"data": { "token": <insert_token_here> }
}
][
{
"type": "select_campaign",
"data": { "campaign_id": 12 }
}
]// Sends the total number of hosts targeted and segments them by status
[
{
"type": "totals",
"data": {
"count": 24,
"online": 6,
"offline": 18,
"missing_in_action": 0
}
}
]// Sends the expected results, actual results so far, and the status of the live report
[
{
"type": "status",
"data": {
"expected_results": 6,
"actual_results": 0,
"status": "pending"
}
}
]// Sends the result for a given host
[
{
"type": "result",
"data": {
"distributed_query_execution_id": 39,
"host": {
"id": 42,
"hostname": "foobar",
"display_name": "foobar"
},
"rows": [
// query results data for the given host
],
"error": null
}
}
]// Sends the status of "finished" when messages with the results for all expected hosts have been sent
[
{
"type": "status",
"data": {
"expected_results": 6,
"actual_results": 6,
"status": "finished"
}
}
]The schedule API endpoints are deprecated as of Fleet 4.35. They are maintained for backwards compatibility.
Please use the reports endpoints, which as of 4.35 have attributes such as interval and platform that enable scheduling.
Run a script on a host.
The script will be added to the host's list of upcoming activities.
The new script will run after other activities finish. Failure of one activity won't cancel other activities.
By default, script runs time out after 5 minutes. You can modify this default in your agent configuration.
POST /api/v1/fleet/scripts/run
| Name | Type | In | Description |
|---|---|---|---|
| host_id | integer | body | Required. The ID of the host to run the script on. |
| script_id | integer | body | The ID of the existing saved script to run. Only one of either script_id, script_contents, or script_name can be included. |
| script_contents | string | body | The contents of the script to run. Only one of either script_id, script_contents, or script_name can be included. Scripts must be less than 10,000 characters. To run scripts with more than 10k characters, save the script and use script_id or script_name and fleet_id instead. |
| script_name | integer | body | The name of the existing saved script to run. If specified, requires fleet_id. Only one of either script_id, script_contents, or script_name can be included in the request. |
| fleet_id | integer | body | The ID of the fleet the existing saved script belongs to. If specified, requires script_name. Only one of either script_id, script_contents, or script_name can be included in the request. |
Note that if any combination of
script_id,script_contents, andscript_nameare included in the request, this endpoint will respond with an error.
POST /api/v1/fleet/scripts/run
Status: 202
{
"host_id": 1227,
"execution_id": "e797d6c6-3aae-11ee-be56-0242ac120002"
}Gets the result of a script that was executed.
GET /api/v1/fleet/scripts/results/:execution_id
| Name | Type | In | Description |
|---|---|---|---|
| execution_id | string | path | Required. The execution id of the script. |
GET /api/v1/fleet/scripts/results/:execution_id
Status: 200
{
"script_contents": "echo 'hello'",
"exit_code": 0,
"output": "hello",
"message": "",
"hostname": "Test Host",
"host_timeout": false,
"host_id": 1,
"execution_id": "e797d6c6-3aae-11ee-be56-0242ac120002",
"runtime": 20,
"created_at": "2024-09-11T20:30:24Z"
}Note:
exit_codecan benullif Fleet hasn't heard back from the host yet.
Note:
created_atis the creation timestamp of the script execution request.
Run a script on multiple hosts.
The script will be added to each host's list of upcoming activities.
POST /api/v1/fleet/scripts/run/batch
| Name | Type | In | Description |
|---|---|---|---|
| script_id | integer | body | Required. The ID of the existing saved script to run. |
| host_ids | array | body | List of host IDs. Required if filters not specified. Only one of host_ids or filters may be included in the request. |
| filters | object | body | See filters. Required if host_ids not specified. Only one of host_ids or filters may be included in the request. |
| not_before | string | body | UTC time when the script run is scheduled to begin. If omitted, the batch script will begin right away. |
| Name | Type | Description |
|---|---|---|
| query | string | Search query keywords. Searchable fields include hostname, hardware_serial, uuid, and ipv4. |
| status | string | Host status. Can either be new, online, offline, mia or missing. |
| label_id | number | ID of a label to filter by. |
| fleet_id | number | ID of the fleet to filter by. |
Note that if a batch script is scheduled for the future using
not_before, and hosts are targeted usingfilters, the script will run on any hosts matching the filters at the time the batch script was added. To see all targeted hosts, use the List hosts targeted in batch script endpoint.
POST /api/v1/fleet/scripts/run/batch
Request (using host_ids):
{
"script_id": 123,
"host_ids": [1, 2, 3],
"not_before": "2025-07-01T15:00:00Z"
}Request (using filters):
{
"script_id": 123,
"filters": {
"status": "online",
"query": "abc"
}
}Status: 202
{
"batch_execution_id": "e797d6c6-3aae-11ee-be56-0242ac120002"
}Returns a list of batch script executions.
GET /api/v1/fleet/scripts/batch
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | integer | query | Available in Fleet Premium. Filters to batch script runs for the specified fleet. |
| status | string | query | Filters to batch script runs with this status. Either "started", "scheduled", or "finished". |
| page | integer | query | Page number of the results to fetch. |
| per_page | integer | query | Results per page. |
GET /api/v1/fleet/scripts/batch
{
"team_id": 123,
"fleet_id": 123,
"status": "completed"
}Status: 200
{
"batch_executions": [
{
"script_id": 555,
"script_name": "my-script.sh",
"batch_execution_id": "e797d6c6-3aae-11ee-be56-0242ac120002",
"team_id": 123,
"fleet_id": 123,
"not_before": "2025-07-01T15:00:00Z",
"finished_at": "2025-07-06T15:00:00Z",
"started_at": "2025-07-06T14:00:00Z",
"status": "finished",
"canceled": false,
"targeted_host_count": 12599,
"ran_host_count": 12345,
"pending_host_count": 234,
"errored_host_count": 18,
"incompatible_host_count": 3,
"canceled_host_count": 2,
"created_at": "2025-07-01T10:00:00Z"
}
],
"meta": {
"has_next_results": false,
"has_previous_results": false
},
"count": 1
}Returns a summary of a batch-run script, including host counts and current status.
The Get batch script summary endpoint is deprecated as of Fleet 4.73. It is maintained for backwards compatibility. Please use this endpoint instead.
GET /api/v1/fleet/scripts/batch/:batch_execution_id
| Name | Type | In | Description |
|---|---|---|---|
| batch_execution_id | string | path | Required. The ID returned from a batch script run. |
GET /api/v1/fleet/scripts/batch/abc-def
Status: 200
{
"script_id": 555,
"script_name": "my-script.sh",
"team_id": 123,
"fleet_id": 123,
"not_before": "2025-07-01T15:00:00Z",
"finished_at": "2025-07-06T15:00:00Z",
"started_at": "2025-07-06T14:00:00Z",
"status": "finished",
"canceled": false,
"targeted_host_count": 12599,
"ran_host_count": 12345,
"pending_host_count": 234,
"errored_host_count": 18,
"incompatible_host_count": 3,
"canceled_host_count": 2,
"created_at": "2025-07-01T10:00:00Z"
}Returns a list hosts targeted in a batch script run, along with their script execution status.
GET /api/v1/fleet/scripts/batch/:batch_execution_id/host_results
| Name | Type | In | Description |
|---|---|---|---|
| batch_execution_id | string | path | Required. The ID returned from a batch script run. |
| status | string | query | Required. Filters to hosts with this script status. Either "ran", "pending", "errored", "incompatible", or "canceled". |
| page | integer | query | Page number of the results to fetch. |
| per_page | integer | query | Results per page. |
| order_key | string | query | What to order results by. Allowed fields are display_name, hostname, and updated_at. |
| order_direction | string | query | Requires order_key. The direction of the order given the order key. Options include "asc" and "desc". Default is "asc". |
| after | string | query | The value to get results after. This needs order_key defined, as that's the column that would be used. |
GET /api/v1/fleet/scripts/batch/abc-def/host_results?status=ran
Status: 200
{
"hosts": [
{
"id": 123,
"display_name": "Anna's MacBook Pro",
"script_status": "ran",
"script_execution_id": "e797d6c6-3aae-11ee-be56-0242ac120002",
"script_executed_at": "2024-09-11T20:30:24Z",
"script_output_preview": "hello world"
}
],
"meta": {
"has_next_results": false,
"has_previous_results": false
},
"count": 1
}POST /api/v1/fleet/scripts/batch/:batch_execution_id/cancel
POST /api/v1/fleet/scripts/batch/abc-def/cancel
Status: 200
Uploads a script, making it available to run on hosts assigned to the specified fleet (or "Unassigned").
You need to send a request of type
multipart/form-data.
This endpoint accepts a maximum request body size of 1.5MiB.
POST /api/v1/fleet/scripts
| Name | Type | In | Description |
|---|---|---|---|
| script | file | body | Required. The file containing the script. |
| fleet_id | integer | body | Available in Fleet Premium. The fleet ID. If specified, the script will only be available to hosts assigned to this fleet. If not specified, the script will only be available for "Unassigned" hosts. |
Script line endings are automatically converted from CRLF to LF for compatibility with both non-Windows shells and PowerShell.
POST /api/v1/fleet/scripts
fleet_id="1"
script="myscript.sh"Status: 200
{
"script_id": 1227
}Modifies an existing script.
You need to send a request of type
multipart/form-data.
PATCH /api/v1/fleet/scripts/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The ID of the script to modify. |
| script | file | body | Required. The file containing the script. Filename will be ignored. |
PATCH /api/v1/fleet/scripts/1
script="myscript.sh"Status: 200
{
"id": 1,
"team_id": null,
"name": "script_1.sh",
"created_at": "2023-07-30T13:41:07Z",
"updated_at": "2023-07-30T13:41:07Z"
}Deletes an existing script.
DELETE /api/v1/fleet/scripts/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The ID of the script to delete. |
DELETE /api/v1/fleet/scripts/1
Status: 204
GET /api/v1/fleet/scripts
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | integer | query | Available in Fleet Premium. The ID of the fleet to filter scripts by. If not specified, it will filter only scripts that are available for "Unassigned" hosts. |
| page | integer | query | Page number of the results to fetch. |
| per_page | integer | query | Results per page. |
| order_key | string | query | What to order results by. Can be ordered by id, name, created_at, or updated_at. |
| order_direction | string | query | Requires order_key. The direction of the order given the order key. Options include "asc" and "desc". Default is "asc". |
| after | string | query | The value to get results after. This needs order_key defined, as that's the column that would be used. |
GET /api/v1/fleet/scripts
Status: 200
{
"scripts": [
{
"id": 1,
"team_id": null,
"name": "script_1.sh",
"created_at": "2023-07-30T13:41:07Z",
"updated_at": "2023-07-30T13:41:07Z"
},
{
"id": 2,
"team_id": null,
"name": "script_2.sh",
"created_at": "2023-08-30T13:41:07Z",
"updated_at": "2023-08-30T13:41:07Z"
}
],
"meta": {
"has_next_results": false,
"has_previous_results": false
}
}
GET /api/v1/fleet/hosts/:id/scripts
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The host's id. |
| page | integer | query | Page number of the results to fetch. |
| per_page | integer | query | Results per page. |
| order_key | string | query | What to order results by. Can be ordered by name or executed_at. |
| order_direction | string | query | Requires order_key. The direction of the order given the order key. Options include "asc" and "desc". Default is "asc". |
| after | string | query | The value to get results after. This needs order_key defined, as that's the column that would be used. |
GET /api/v1/fleet/hosts/123/scripts
Status: 200
{
"scripts": [
{
"script_id": 3,
"name": "remove-zoom-artifacts.sh",
"last_execution": {
"execution_id": "e797d6c6-3aae-11ee-be56-0242ac120002",
"executed_at": "2021-12-15T15:23:57Z",
"status": "error"
}
},
{
"script_id": 5,
"name": "set-timezone.sh",
"last_execution": {
"id": "e797d6c6-3aae-11ee-be56-0242ac120002",
"executed_at": "2021-12-15T15:23:57Z",
"status": "pending"
}
},
{
"script_id": 8,
"name": "uninstall-zoom.sh",
"last_execution": {
"id": "e797d6c6-3aae-11ee-be56-0242ac120002",
"executed_at": "2021-12-15T15:23:57Z",
"status": "ran"
}
}
],
"meta": {
"has_next_results": false,
"has_previous_results": false
}
}GET /api/v1/fleet/scripts/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The desired script's ID. |
| alt | string | query | If specified and set to "media", downloads the script's contents. |
GET /api/v1/fleet/scripts/123
Status: 200
{
"id": 123,
"team_id": null,
"name": "script_1.sh",
"created_at": "2023-07-30T13:41:07Z",
"updated_at": "2023-07-30T13:41:07Z"
}
GET /api/v1/fleet/scripts/123?alt=media
Content-Length: 13
Content-Type: application/octet-stream
Content-Disposition: attachment;filename="2023-09-27 script_1.sh"Status: 200
echo "hello"Returns the session information for the session specified by ID.
GET /api/v1/fleet/sessions/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The ID of the desired session. |
GET /api/v1/fleet/sessions/1
Status: 200
{
"session_id": 1,
"user_id": 1,
"created_at": "2021-03-02T18:41:34Z"
}Deletes the session specified by ID. When the user associated with the session next attempts to access Fleet, they will be asked to log in.
DELETE /api/v1/fleet/sessions/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The id of the desired session. |
DELETE /api/v1/fleet/sessions/1
Status: 200
Get a list of all software.
GET /api/v1/fleet/software/titles
| Name | Type | In | Description |
|---|---|---|---|
| page | integer | query | Page number of the results to fetch. |
| per_page | integer | query | Results per page. |
| order_key | string | query | What to order results by. Allowed fields are name and hosts_count. Default is hosts_count (descending). |
| order_direction | string | query | Requires order_key. The direction of the order given the order key. Options include "asc" and "desc". Default is "asc". |
| query | string | query | Search query keywords. Searchable fields include title and cve. |
| fleet_id | integer | query | Available in Fleet Premium. Filters the software to only include the software installed on the hosts that are assigned to the specified fleet. Use 0 to filter by "Unassigned" hosts. |
| vulnerable | boolean | query | If true or 1, only list software that has detected vulnerabilities. Default is false. |
| available_for_install | boolean | query | If true or 1, only list software that is available for install (added by the user). Default is false. |
| self_service | boolean | query | If true or 1, only lists self-service software. Default is false. |
| packages_only | boolean | query | Available in Fleet Premium. If true or 1, only lists packages available for install (without app store apps). |
| min_cvss_score | integer | query | Available in Fleet Premium. Filters to include only software with vulnerabilities that have a CVSS version 3.x base score higher than the specified value. |
| max_cvss_score | integer | query | Available in Fleet Premium. Filters to only include software with vulnerabilities that have a CVSS version 3.x base score lower than what's specified. |
| exploit | boolean | query | Available in Fleet Premium. If true, filters to only include software with vulnerabilities that have been actively exploited in the wild (cisa_known_exploit: true). Default is false. |
| source | string | query | Filters to only include software from the specified sources. For example, "apps" for macOS apps or "programs" for Windows apps. To filter by multiple sources, separate them with commas (e.g. ?source=apps,programs). See source values in the software inventory reference. |
| extension_for | string | query | Requires source. Filters browser and IDE extensions to the specified browsers or IDEs. To filter by multiple, separate them with commas. Each value only narrows the source it belongs to. For example, ?source=apps,chrome_extensions,vscode_extensions&extension_for=brave,cursor returns macOS apps, Brave extensions, and Cursor extensions. If no value belongs to a source, all extensions from that source are included. See extension_for values in the software inventory reference. |
| ai_tool | boolean | query | Available in Fleet Premium. If true, filters to only include AI tools (e.g. AI apps, npm packages, MCP servers). Default is false. |
| platform | string | query | Filters software titles available for install by platforms. fleet_id must be specified to filter by platform. Options are: "macos" (alias of "darwin"), "darwin" "windows", "linux", "chrome", "ios", "ipados". To show titles from multiple platforms, separate the platforms with commas (e.g. ?platform=darwin,windows). |
| hash_sha256 | string | query | Filters to only include custom software packages (uploaded installers) with the specified SHA-256 hash. fleet_id must be specified to filter by hash. This allows checking if a specific package already exists before uploading. |
| package_name | string | query | Filters to only include custom software packages (uploaded installers) with the specified package filename. fleet_id must be specified to filter by package name. This allows checking if a specific package already exists before uploading. |
GET /api/v1/fleet/software/titles?fleet_id=3&platform=darwin,windows
Status: 200
{
"counts_updated_at": "2026-06-04T12:34:56Z",
"count": 3,
"software_titles": [
{
"id": 2792,
"name": "Slack",
"icon_url": null,
"source": "apps",
"ai_tool": false,
"extension_for": "",
"browser": "",
"hosts_count": 5,
"versions_count": 4,
"versions": [
{
"id": 515953,
"version": "4.39.88",
"vulnerabilities": null
},
{
"id": 610801,
"version": "4.47.72",
"vulnerabilities": null
}
],
"packages": [
{
"name": "Slack-4.50.128-macOS.pkg",
"automatic_install_policies": null,
"version": "4.50.128",
"platform": "darwin",
"self_service": false,
"package_url": ""
},
{
"name": "Slack-4.51.133-macOS.pkg",
"automatic_install_policies": null,
"version": "4.51.133",
"platform": "darwin",
"self_service": true,
"package_url": ""
}
],
"software_package": {
"name": "Slack-4.50.128-macOS.pkg",
"automatic_install_policies": null,
"version": "4.50.128",
"platform": "darwin",
"self_service": false,
"last_install": null,
"last_uninstall": null,
"package_url": ""
},
"app_store_app": null,
"bundle_identifier": "com.tinyspeck.slackmacgap",
"hash_sha256": "f7e4cba7676dacb03ac4cdbe5a99cc1d80ef751c484a13c6a7cf6a93de4a494e",
"display_name": ""
},
{
"id": 3104,
"name": "gopls",
"icon_url": null,
"source": "go_binaries",
"extension_for": "",
"browser": "",
"hosts_count": 19,
"versions_count": 1,
"versions": [
{
"id": 702113,
"version": "v0.21.1",
"release": "go1.26.1",
"vulnerabilities": ["CVE-2026-56860"]
}
],
"packages": null,
"software_package": null,
"app_store_app": null,
"display_name": ""
},
{
"id": 2618,
"name": "Raycast",
"icon_url": null,
"source": "apps",
"ai_tool": false,
"extension_for": "",
"browser": "",
"hosts_count": 1,
"versions_count": 1,
"versions": [
{
"id": 651354,
"version": "1.104.19",
"vulnerabilities": null
}
],
"packages": null,
"software_package": null,
"app_store_app": null,
"bundle_identifier": "com.raycast.macos",
"display_name": ""
}
],
"meta": {
"has_next_results": false,
"has_previous_results": false
}
}browser and extension_for fields are included when set and when empty. extension_for will show the browser or Visual Studio Code fork associated with the extension, allowing for differentiation between e.g. an extension installed on Visual Studio Code and one installed on Cursor. browser is deprecated, and only shows this information for browser plugins.
ai_tool is available in Fleet Premium. It's true when Fleet identified the software as an AI tool. Learn more in the software inventory reference. On Fleet Free, it's omitted.
Each entry in versions includes release when set. For rpm_packages, it's the package release (for example, 1.212.el6). For go_binaries, it's the version of the Go toolchain the binary was built with (for example, go1.26.1). Fleet uses it to detect Go standard library vulnerabilities, so the same binary version built with two toolchains is listed as two versions.
A software title can have more than one package. The packages array lists all packages added for the title. software_package is kept for backwards compatibility and contains the oldest (first added) package; it's null when no package is available.
For optimal performance, we recommend Fleet Premium users set
without_vulnerability_detailstotruewhenever possible. If set tofalsea large amount of data will be included in the response. If you need vulnerability details, consider using the Get vulnerability endpoint.
A request without pagination parameters returns at most 10,000 versions. Use
pageandper_pageto retrieve the rest;countin the response is the total number of versions matching the request.
Get a list of all software versions.
GET /api/v1/fleet/software/versions
| Name | Type | In | Description |
|---|---|---|---|
| page | integer | query | Page number of the results to fetch. |
| per_page | integer | query | Results per page. If no pagination parameters are specified, defaults to 10,000. |
| order_key | string | query | What to order results by. Allowed fields are name and hosts_count. In Fleet Premium, cve_published, cvss_score, epss_probability, and cisa_known_exploit are also allowed unless without_vulnerability_details is true. Default is hosts_count (descending). |
| order_direction | string | query | Requires order_key. The direction of the order given the order key. Options include "asc" and "desc". Default is "asc". |
| query | string | query | Search query keywords. Searchable fields include name, version, and cve. |
| fleet_id | integer | query | Available in Fleet Premium. Filters the software to only include the software installed on the hosts that are assigned to the specified fleet. Use 0 to filter by "Unassigned" hosts. |
| vulnerable | boolean | query | If true or 1, only list software that has detected vulnerabilities. Default is false. |
| min_cvss_score | integer | query | Available in Fleet Premium. Filters to include only software with vulnerabilities that have a CVSS version 3.x base score higher than the specified value. |
| max_cvss_score | integer | query | Available in Fleet Premium. Filters to only include software with vulnerabilities that have a CVSS version 3.x base score lower than what's specified. |
| exploit | boolean | query | Available in Fleet Premium. If true, filters to only include software with vulnerabilities that have been actively exploited in the wild (cisa_known_exploit: true). Default is false. |
| source | string | query | Filters to only include software from the specified sources. For example, "apps" for macOS apps or "programs" for Windows apps. To filter by multiple sources, separate them with commas (e.g. ?source=apps,programs). See source values in the software inventory reference. |
| extension_for | string | query | Requires source. Filters browser and IDE extensions to the specified browsers or IDEs. To filter by multiple, separate them with commas. Each value only narrows the source it belongs to. For example, ?source=apps,chrome_extensions,vscode_extensions&extension_for=brave,cursor returns macOS apps, Brave extensions, and Cursor extensions. If no value belongs to a source, all extensions from that source are included. See extension_for values in the software inventory reference. |
| ai_tool | boolean | query | Available in Fleet Premium. If true, filters to only include AI tools (e.g. AI apps, npm packages, MCP servers). Default is false. |
| without_vulnerability_details | boolean | query | Available in Fleet Premium. If true only vulnerability name is included in response. If false (or omitted), adds vulnerability description, CVSS score, and other details available in Fleet Premium. See note above on performance. |
| after | string | query | The value to get results after. This needs order_key defined, as that's the column that would be used. |
GET /api/v1/fleet/software/versions
Status: 200
{
"counts_updated_at": "2022-01-01T12:32:00Z",
"count": 2,
"software": [
{
"id": 1,
"name": "glibc",
"display_name": "",
"version": "2.12",
"source": "rpm_packages",
"ai_tool": false,
"release": "1.212.el6",
"vendor": "CentOS",
"arch": "x86_64",
"generated_cpe": "cpe:2.3:a:gnu:glibc:2.12:*:*:*:*:*:*:*",
"vulnerabilities": [
{
"cve": "CVE-2009-5155",
"details_link": "https://nvd.nist.gov/vuln/detail/CVE-2009-5155",
"cvss_score": 7.5,
"epss_probability": 0.01537,
"cisa_known_exploit": false,
"cve_published": "2022-01-01T12:32:00Z",
"cve_description": "In the GNU C Library (aka glibc or libc6) before 2.28, parse_reg_exp in posix/regcomp.c misparses alternatives, which allows attackers to cause a denial of service (assertion failure and application exit) or trigger an incorrect result by attempting a regular-expression match.",
"resolved_in_version": "2.28"
}
],
"hosts_count": 1
},
{
"id": 2,
"name": "1Password – Password Manager",
"display_name": "",
"version": "2.10.0",
"source": "chrome_extensions",
"ai_tool": false,
"browser": "chrome",
"extension_for": "chrome",
"extension_id": "aeblfdkhhhdcdjpifhhbdiojplfjncoa",
"generated_cpe": "cpe:2.3:a:1password:1password:2.19.0:*:*:*:*:chrome:*:*",
"hosts_count": 345,
"vulnerabilities": null
},
{
"id": 3,
"name": "Prettier",
"version": "232.1.0",
"source": "jetbrains_plugins",
"ai_tool": false,
"extension_for": "goland",
"generated_cpe": "cpe:2.3:a:*:prettier:232.1.0:*:*:*:*:node.js:*:*",
"hosts_count": 19,
"vulnerabilities": null
},
{
"id": 4,
"name": "gopls",
"display_name": "",
"version": "v0.21.1",
"source": "go_binaries",
"release": "go1.26.1",
"generated_cpe": "",
"hosts_count": 19,
"vulnerabilities": [
{
"cve": "CVE-2026-56860",
"details_link": "https://nvd.nist.gov/vuln/detail/CVE-2026-56860",
"cvss_score": 7.5,
"epss_probability": 0.00043,
"cisa_known_exploit": false,
"cve_published": "2026-01-15T18:15:00Z",
"cve_description": "Quadratic complexity in resolvePath in net/url when parsing a URL with many dot segments.",
"resolved_in_version": ""
}
]
}
],
"meta": {
"has_next_results": false,
"has_previous_results": false
}
}browser and extension_for fields are included when set and when empty. extension_for will show the browser or Visual Studio Code fork associated with the extension, allowing for differentiation between e.g. an extension installed on Visual Studio Code and one installed on Cursor. browser is deprecated, and only shows this information for browser plugins.
ai_tool is available in Fleet Premium. It's true when Fleet identified the software as an AI tool. Learn more in the software inventory reference. On Fleet Free, it's omitted.
release is included when set. For rpm_packages, it's the package release (for example, 1.212.el6). For go_binaries, it's the version of the Go toolchain the binary was built with (for example, go1.26.1). Fleet uses it to detect Go standard library vulnerabilities, so the same binary version built with two toolchains is listed as two versions. generated_cpe is empty for Go binaries. Their vulnerabilities come from the Go vulnerability database instead of NVD.
Returns a list of all operating systems.
GET /api/v1/fleet/os_versions
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | integer | query | Available in Fleet Premium. Filters response data to the specified fleet. Use 0 to filter by "Unassigned" hosts. |
| platform | string | query | Filters the hosts to the specified platform. One of: "darwin" (macOS), "windows", "linux", "chrome", "ios", "ipados",or"android"`. |
| os_name | string | query | The name of the operating system to filter hosts by. os_version must also be specified with os_name |
| os_version | string | query | The version of the operating system to filter hosts by. os_name must also be specified with os_version |
| max_vulnerabilities | integer | query | Limits the number of vulnerabilities returned per OS version. (If omitted, returns all vulnerabilities.) |
| page | integer | query | Page number of the results to fetch. |
| per_page | integer | query | Results per page. Default is 20. |
| order_key | string | query | What to order results by. Allowed fields are: hosts_count and version. Default is hosts_count (descending). |
| order_direction | string | query | Requires order_key. The direction of the order given the order key. Options include "asc" and "desc". Default is "asc". |
Status: 200
{
"count": 1,
"counts_updated_at": "2023-12-06T22:17:30Z",
"os_versions": [
{
"os_version_id": 123,
"hosts_count": 21,
"name": "Microsoft Windows 11 Pro 23H2 10.0.22621.1234",
"name_only": "Microsoft Windows 11 Pro 23H2",
"version": "10.0.22621.1234",
"platform": "windows",
"generated_cpes": [],
"vulnerabilities_count": 1,
"vulnerabilities": [
{
"cve": "CVE-2022-30190",
"details_link": "https://nvd.nist.gov/vuln/detail/CVE-2022-30190",
"cvss_score": 7.8,// Available in Fleet Premium
"epss_probability": 0.9729,// Available in Fleet Premium
"cisa_known_exploit": false,// Available in Fleet Premium
"cve_published": "2022-06-01T00:15:00Z",// Available in Fleet Premium
"cve_description": "Microsoft Windows Support Diagnostic Tool (MSDT) Remote Code Execution Vulnerability.",// Available in Fleet Premium
"resolved_in_version": ""// Available in Fleet Premium
}
]
}
],
"meta": {
"has_next_results": false,
"has_previous_results": false
}
}Windows and macOS listed vulnerabilities are based on OS version-specific data. Linux vulnerabilities are based on kernel vulnerabilities for hosts running the specified OS version. Both active and inactive kernels on a host are accounted for in kernel vulnerability reporting. Other operating systems do not report vulnerabilities.
Returns information about the specified software. By default, versions are sorted in descending order by the hosts_count field.
GET /api/v1/fleet/software/titles/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The software title's ID. |
| fleet_id | integer | query | Available in Fleet Premium. Filters response data to the specified fleet. Use 0 to filter by "Unassigned" hosts. |
GET /api/v1/fleet/software/titles/2792?fleet_id=3
Status: 200
{
"software_title": {
"id": 2792,
"name": "Slack",
"icon_url": "https://is1-ssl.mzstatic.com/image/thumb/Purple211/v4/90/f7/27/90f727be-835b-54ad-4d9d-8b597e63e321/electron.png/512x512bb.png",
"source": "apps",
"ai_tool": false,
"extension_for": "",
"browser": "",
"hosts_count": 5,
"versions_count": 4,
"versions": [
{
"id": 515953,
"version": "4.39.88",
"vulnerabilities": null,
"hosts_count": 1
},
{
"id": 610801,
"version": "4.47.72",
"vulnerabilities": null,
"hosts_count": 2
}
],
"counts_updated_at": "2026-06-04T17:23:45Z",
"packages": [
{
"team_id": 310,
"title_id": 2792,
"name": "Slack-4.50.128-macOS.pkg",
"icon_url": null,
"version": "4.50.128",
"platform": "darwin",
"uploaded_at": "2026-06-04T17:29:09.155424Z",
"installer_id": 36817,
"install_script": "#!/bin/sh\n\ninstaller -pkg \"$INSTALLER_PATH\" -target /\n",
"pre_install_query": "",
"post_install_script": "",
"uninstall_script": "#!/bin/sh\n\n# Fleet extracts and saves package IDs.\npkg_ids=(\n 'com.tinyspeck.slackmacgap'\n)\n",
"hash_sha256": "f7e4cba7676dacb03ac4cdbe5a99cc1d80ef751c484a13c6a7cf6a93de4a494e",
"status": {
"installed": 0,
"pending_install": 1,
"failed_install": 0,
"pending_uninstall": 0,
"failed_uninstall": 0
},
"self_service": false,
"url": "",
"fleet_maintained_app_id": null,
"automatic_install_policies": null,
"labels_include_any": null,
"labels_exclude_any": null,
"labels_include_all": null,
"categories": null,
"display_name": "",
"patch_policy": null,
"fleet_id": 310
},
{
"team_id": 310,
"title_id": 2792,
"name": "Slack-4.51.133-macOS.pkg",
"icon_url": null,
"version": "4.51.133",
"platform": "darwin",
"uploaded_at": "2026-06-10T09:14:51.482217Z",
"installer_id": 36901,
"install_script": "#!/bin/sh\n\ninstaller -pkg \"$INSTALLER_PATH\" -target /\n",
"pre_install_query": "",
"post_install_script": "",
"uninstall_script": "#!/bin/sh\n\n# Fleet extracts and saves package IDs.\npkg_ids=(\n 'com.tinyspeck.slackmacgap'\n)\n",
"hash_sha256": "a1b2c3d4e5f60718293a4b5c6d7e8f901a2b3c4d5e6f70819203a4b5c6d7e8f9",
"status": {
"installed": 0,
"pending_install": 0,
"failed_install": 0,
"pending_uninstall": 0,
"failed_uninstall": 0
},
"self_service": true,
"url": "",
"fleet_maintained_app_id": null,
"automatic_install_policies": null,
"labels_include_any": null,
"labels_exclude_any": null,
"labels_include_all": [
{
"id": 12,
"name": "IT test team"
}
],
"categories": null,
"display_name": "",
"patch_policy": null,
"fleet_id": 310
}
],
"software_package": {
"team_id": 310,
"title_id": 2792,
"name": "Slack-4.50.128-macOS.pkg",
"icon_url": null,
"version": "4.50.128",
"platform": "darwin",
"uploaded_at": "2026-06-04T17:29:09.155424Z",
"installer_id": 36817,
"install_script": "#!/bin/sh\n\ninstaller -pkg \"$INSTALLER_PATH\" -target /\n",
"pre_install_query": "",
"post_install_script": "",
"uninstall_script": "#!/bin/sh\n\n# Fleet extracts and saves package IDs.\npkg_ids=(\n 'com.tinyspeck.slackmacgap'\n)\n\n# For each package id, get all .app folders associated with the package and remove them.\nfor pkg_id in \"${pkg_ids[@]}\"\ndo\n # Get volume and location of the package.\n volume=$(pkgutil --pkg-info \"$pkg_id\" | grep -i \"volume\" | awk '{if (NF>1) print $NF}')\n location=$(pkgutil --pkg-info \"$pkg_id\" | grep -i \"location\" | awk '{if (NF>1) print $NF}')\n # Check if this package id corresponds to a valid/installed package\n if [[ ! -z \"$volume\" ]]; then\n # Remove individual directories that end with \".app\" belonging to the package.\n # Only process directories that end with \".app\" to prevent Fleet from removing top level directories.\n pkgutil --only-dirs --files \"$pkg_id\" | grep \"\\.app$\" | sed -e 's@^@'\"$volume\"\"$location\"'/@' | tr '\\n' '\\0' | xargs -n 1 -0 rm -rf\n # Remove receipts\n pkgutil --forget \"$pkg_id\"\n else\n echo \"WARNING: volume is empty for package ID $pkg_id\"\n fi\ndone\n",
"hash_sha256": "f7e4cba7676dacb03ac4cdbe5a99cc1d80ef751c484a13c6a7cf6a93de4a494e",
"status": {
"installed": 0,
"pending_install": 1,
"failed_install": 0,
"pending_uninstall": 0,
"failed_uninstall": 0
},
"self_service": false,
"url": "",
"fleet_maintained_app_id": null,
"automatic_install_policies": null,
"labels_include_any": null,
"labels_exclude_any": null,
"labels_include_all": null,
"categories": null,
"display_name": "",
"patch_policy": null,
"fleet_id": 310
},
"app_store_app": null,
"bundle_identifier": "com.tinyspeck.slackmacgap",
"display_name": ""
}
}browser and extension_for fields are included when set and when empty, at the same level as source. extension_for will show the browser or Visual Studio Code fork associated with the extension, allowing for differentiation between e.g. an extension installed on Visual Studio Code and one installed on Cursor. browser is deprecated, and only shows this information for browser plugins.
ai_tool is available in Fleet Premium. It's true when Fleet identified the software as an AI tool. Learn more in the software inventory reference. On Fleet Free, it's omitted.
Each entry in versions includes release when set. For rpm_packages, it's the package release (for example, 1.212.el6). For go_binaries, it's the version of the Go toolchain the binary was built with (for example, go1.26.1). Fleet uses it to detect Go standard library vulnerabilities, so the same binary version built with two toolchains is listed as two versions.
A software title can have more than one package. The packages array lists all packages added for the title, including per-package self_service, categories, and labels (labels_include_any, labels_exclude_any, labels_include_all). software_package is kept for backwards compatibility and contains the oldest (first added) package.
Install, pending, and failed counts in
packages.statusare combined across policy automations, setup experience, and manual installs.
For Fleet-maintained apps, software package objects include three additional fields:
fleet_maintained_app_slug: The Fleet-maintained app's slug (e.g. "google-chrome/darwin"), used to manage the app in GitOps. Available in Fleet Premium.pinned_version: The version the app is pinned to — a specific version (e.g. "149.0.7827.54") or a caret major-version constraint (e.g. "^147"). Omitted when the app automatically updates to the latest version.fleet_maintained_versions: The versions Fleet has cached and that are available to pin or roll back to. Each entry includes id, version, and uploaded_at. For example:"packages": [
{
"name": "GoogleChrome.pkg",
"version": "149.0.7827.54",
"platform": "darwin",
"fleet_maintained_app_id": 12,
"fleet_maintained_app_slug": "google-chrome/darwin",
"pinned_version": "149.0.7827.54",
"fleet_maintained_versions": [
{
"id": 36818,
"version": "149.0.7827.54",
"uploaded_at": "2026-06-04T17:47:23Z"
},
{
"id": 36817,
"version": "148.0.7794.0",
"uploaded_at": "2026-05-21T11:02:55Z"
}
]
}
]For in-house iOS apps, the software_package field is populated with package information.
For Apple App Store and Google Play apps, the software_package field is null and app_store_apps is populated with information from the store.
A software title can have more than one app store apps on the same fleet for iOS, iPadOS, and Android. Each one is a version of the app, and the app_store_apps array lists all of them. Fleet always installs the latest version available in the Apple App Store or Google Play, so versions don't differ by the app version that's installed. Instead, each version carries its own settings: name, self_service, categories, labels (labels_include_any, labels_exclude_any, labels_include_all), automatic update settings, and managed app configuration.
app_store_app is kept for backwards compatibility and contains the first-added version.
For iOS, iPadOS, and Android apps, each version includes configuration, the version's managed app configuration. It's in XML format for iOS and iPadOS apps, and JSON format for Android apps.
If a host is in scope for more than one version, Fleet installs the one that was added first (the earliest created_at).
Install, pending, and failed counts in
app_store_apps.statusare separate for each version.
For example:
{
"app_store_apps": [
{
"id": 41,
"name": "Production",
"app_store_id": "6443476492",
"platform": "ios",
"version": "2.6.0",
"status": {
"installed": 13,
"pending": 0,
"failed": 2
},
"self_service": true,
"automatic_install_policies": null,
"labels_include_any": null,
"labels_exclude_any": [
{
"name": "IT team",
"id": 12
}
],
"labels_include_all": null,
"auto_update_enabled": true,
"auto_update_window_start": "00:00",
"auto_update_window_end": "04:00",
"created_at": "2026-01-28T21:49:04.145909Z",
"categories": [
"🔐 Security"
],
"display_name": "Cloudflare One Agent",
"configuration": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>...<!-- Production config -->"
},
{
"id": 42,
"name": "Test",
"app_store_id": "6443476492",
"platform": "ios",
"version": "2.6.0",
"status": {
"installed": 2,
"pending": 1,
"failed": 0
},
"self_service": false,
"automatic_install_policies": null,
"labels_include_any": [
{
"name": "IT team",
"id": 12
}
],
"labels_exclude_any": null,
"labels_include_all": null,
"auto_update_enabled": false,
"auto_update_window_start": null,
"auto_update_window_end": null,
"created_at": "2026-02-03T10:14:22.882031Z",
"categories": null,
"display_name": "Cloudflare One Agent",
"configuration": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>...<!-- Test config -->"
}
],
"app_store_app": {
"app_store_id": "6443476492",
"platform": "ios",
"name": "Cloudflare One Agent",
"latest_version": "2.6.0",
"status": {
"installed": 13,
"pending": 0,
"failed": 2
},
"self_service": true,
"automatic_install_policies": null,
"labels_include_any": null,
"labels_exclude_any": [
{
"name": "IT team",
"id": 12
}
],
"labels_include_all": null,
"created_at": "2026-01-28T21:49:04.145909Z",
"categories": [
"🔐 Security"
],
"display_name": "Cloudflare One Agent",
"configuration": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>...<!-- Production config -->",
"vpp_token": {
"id": 1,
"org_name": "Fleet Device Management Inc.",
"location": "Fleet Device Management Inc.",
"country_code": "us"
}
}
}For Apple App Store apps, vpp_token is the VPP token the app was added from in the specified fleet. Fleet uses this VPP token for all requests to Apple related to the app in that fleet. For Google Play apps, or if fleet_id isn't specified, vpp_token is null.
Returns information about the specified software version.
GET /api/v1/fleet/software/versions/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The software version's ID. |
| fleet_id | integer | query | Available in Fleet Premium. Filters response data to the specified fleet. Use 0 to filter by "Unassigned" hosts. |
GET /api/v1/fleet/software/versions/12
Status: 200
{
"software": {
"id": 425224,
"name": "Firefox.app",
"display_name": "Firefox",
"version": "117.0",
"bundle_identifier": "org.mozilla.firefox",
"source": "apps",
"ai_tool": false,
"generated_cpe": "cpe:2.3:a:mozilla:firefox:117.0:*:*:*:*:macos:*:*",
"vulnerabilities": [
{
"cve": "CVE-2023-4863",
"details_link": "https://nvd.nist.gov/vuln/detail/CVE-2023-4863",
"created_at": "2024-07-01T00:15:00Z",
"cvss_score": 8.8, // Available in Fleet Premium
"epss_probability": 0.4101, // Available in Fleet Premium
"cisa_known_exploit": true, // Available in Fleet Premium
"cve_published": "2023-09-12T15:15:00Z", // Available in Fleet Premium
"resolved_in_version": "" // Available in Fleet Premium
},
{
"cve": "CVE-2023-5169",
"details_link": "https://nvd.nist.gov/vuln/detail/CVE-2023-5169",
"created_at": "2024-07-01T00:15:00Z",
"cvss_score": 6.5, // Available in Fleet Premium
"epss_probability": 0.00073, // Available in Fleet Premium
"cisa_known_exploit": false, // Available in Fleet Premium
"cve_published": "2023-09-27T15:19:00Z", // Available in Fleet Premium
"resolved_in_version": "118" // Available in Fleet Premium
}
]
}
}browser and extension_for fields are included when set and when empty, at the same level as source. extension_for will show the browser or Visual Studio Code fork associated with the extension, allowing for differentiation between e.g. an extension installed on Visual Studio Code and one installed on Cursor. browser is deprecated, and only shows this information for browser plugins.
release is included when set. For rpm_packages, it's the package release (for example, 1.212.el6). For go_binaries, it's the version of the Go toolchain the binary was built with (for example, go1.26.1). Fleet uses it to detect Go standard library vulnerabilities, so the same binary version built with two toolchains is listed as two versions. generated_cpe is empty for Go binaries. Their vulnerabilities come from the Go vulnerability database instead of NVD.
Retrieves information about the specified operating system (OS) version.
GET /api/v1/fleet/os_versions/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The OS version's ID. |
| fleet_id | integer | query | Available in Fleet Premium. Filters response data to the specified fleet. Use 0 to filter by "Unassigned" hosts. |
| max_vulnerabilities | integer | query | Limits the number of vulnerabilities returned. (If omitted, returns all vulnerabilities.) For Linux OS's, doesn't limit the number of vulnerabilities returned in the kernels array. |
Status: 200
{
"counts_updated_at": "2023-12-06T22:17:30Z",
"os_version": {
"os_version_id": 123,
"hosts_count": 21,
"name": "Microsoft Windows 11 Pro 23H2 10.0.22621.1234",
"name_only": "Microsoft Windows 11 Pro 23H2",
"version": "10.0.22621.1234",
"platform": "windows",
"generated_cpes": [],
"kernels": [], // empty for non-Linux
"vulnerabilities": [
{
"cve": "CVE-2022-30190",
"details_link": "https://nvd.nist.gov/vuln/detail/CVE-2022-30190",
"created_at": "2024-07-01T00:15:00Z",
"cvss_score": 7.8,// Available in Fleet Premium
"epss_probability": 0.9729,// Available in Fleet Premium
"cisa_known_exploit": false,// Available in Fleet Premium
"cve_published": "2022-06-01T00:15:00Z",// Available in Fleet Premium
"cve_description": "Microsoft Windows Support Diagnostic Tool (MSDT) Remote Code Execution Vulnerability.",// Available in Fleet Premium
"resolved_in_version": ""// Available in Fleet Premium
}
]
}
}Windows and macOS listed vulnerabilities are based on OS version-specific data.
Linux vulnerabilities are based on kernel vulnerabilities for hosts running the specified OS version. Both active and inactive kernels on a host are accounted for in kernel vulnerability reporting, so host counts across kernels may sum to more than the count of hosts running a given OS version. Hosts running in a container or paravirtualized environment do not have a kernel of their own.
{
"counts_updated_at": "2023-12-06T22:17:30Z",
"os_version": {
"os_version_id": 321,
"hosts_count": 2,
"name": "Ubuntu 24.04.1 LTS",
"name_only": "Ubuntu",
"version": "24.04.1 LTS",
"platform": "ubuntu",
"generated_cpes": [],
"kernels": [
{
"id": 561703, // the software version ID of the kernel
"version": "6.11.0-26.26~24.04.1",
"vulnerabilities": [
"CVE-2023-53034",
"CVE-2024-53222",
"CVE-2024-58092",
"CVE-2024-58093",
"CVE-2025-21893",
"CVE-2025-21894",
"CVE-2025-21902",
"CVE-2025-21903",
"CVE-2025-21904",
"CVE-2025-21905",
"CVE-2025-21906",
"CVE-2025-21908",
"CVE-2025-21909",
"CVE-2025-21910",
],
"hosts_count": 1
},
{
"id": 568096,
"version": "6.11.0-29.29~24.04.1",
"vulnerabilities": null,
"hosts_count": 2
}
],
"vulnerabilities": [
{
"cve": "CVE-2023-53034",
"details_link": "https://nvd.nist.gov/vuln/detail/CVE-2023-53034",
"created_at": "2023-07-01T00:15:00Z",
"cvss_score": 7.8, // Available in Fleet Premium
"epss_probability": 0.9729, // Available in Fleet Premium
"cisa_known_exploit": false, // Available in Fleet Premium
"cve_published": "2023-06-01T00:15:00Z", // Available in Fleet Premium
"cve_description": "A description", // Available in Fleet Premium
"resolved_in_version": "" // Available in Fleet Premium
}
]
}
}Operating systems other than Windows, macOS, and Linux do not report vulnerabilities.
Available in Fleet Premium.
Get a short-lived URL for uploading a package directly to Google Cloud Storage (GCS), so the package bytes don't pass through the Fleet server. Use this for packages larger than your load balancer or ingress allows, like Cloud Run's 32 MiB limit.
Available when s3_software_installers_gcs_signed_url is on. Get configuration returns staged_upload_available: true when it is.
POST /api/v1/fleet/staged_upload
| Name | Type | In | Description |
|---|---|---|---|
| target | string | body | Required. What the package is for: software_package or bootstrap_package. |
| fleet_id | integer | body | The fleet ID. If not specified, the upload is for "Unassigned". |
| size | integer | body | Required. The package size in bytes. It can't be larger than server_max_installer_size. |
Upload the package to url with a PUT request whose Content-Length matches size, without a Fleet Authorization header. Then pass upload_id and the package's file name as filename to Add package, Update package, or Create bootstrap package in place of the file. The URL expires at expires_at. Staged uploads that aren't registered are deleted after 24 hours.
POST /api/v1/fleet/staged_upload
{
"target": "software_package",
"fleet_id": 1,
"size": 524288000
}Status: 200
{
"upload_id": "9c8c3146-a2ef-450b-9cc6-70b005d8554e",
"url": "https://storage.googleapis.com/fleet-installers/uploads/9c8c3146-a2ef-450b-9cc6-70b005d8554e?X-Amz-Algorithm=AWS4-HMAC-SHA256&...",
"expires_at": "2026-10-02T22:00:00Z"
}Available in Fleet Premium.
Add a package (.pkg, .msi, .exe, .deb, .rpm, .tar.gz, .ipa) to install on Apple (macOS/iOS/iPadOS), Windows, or Linux hosts. Also supports adding a custom script (.sh and .py for macOS and Linux, .ps1 for Windows).
You need to send a request of type
multipart/form-data.
This endpoint accepts a maximum request body size of 10GB.
POST /api/v1/fleet/software/package
| Name | Type | In | Description |
|---|---|---|---|
| software | file | body | Installer package file or custom script file. Required unless upload_id is specified. Supported packages are .pkg, .msi, .exe, .deb, .rpm, .tar.gz, .ipa, .sh, .py, and .ps1. |
| upload_id | string | body | The upload_id from Create staged upload. Use instead of software for a package uploaded directly to GCS. |
| filename | string | body | The package's file name, including its extension. Required with upload_id. |
| fleet_id | integer | body | The fleet ID. Adds a software package to the specified fleet. If not specified, it will add the software for "Unassigned" hosts. |
| install_script | string | body | Script that Fleet runs to install software. If not specified Fleet runs the default install script for each package type if one exists. Required for .tar.gz and .exe (no default script). Not supported for .sh, .py, and .ps1. |
| uninstall_script | string | body | Script that Fleet runs to uninstall software. If not specified Fleet runs the default uninstall script for each package type if one exists. Required for .tar.gz and .exe (no default script). |
| pre_install_query | string | body | Query that is pre-install condition. If the query doesn't return any result, Fleet won't proceed to install. |
| post_install_script | string | body | The contents of the script to run after install. If the specified script fails (exit code non-zero) software install will be marked as failed and rolled back. |
| self_service | boolean | body | Self-service software is optional and can be installed by the end user. |
| labels_include_all | array | body | Target hosts that have all labels, specified by label name, in the array. |
| labels_include_any | array | body | Target hosts that have any label, specified by label name, in the array. |
| labels_exclude_any | array | body | Target hosts that don't have any label, specified by label name, in the array. |
| automatic_install | boolean | body | Specifies whether to create a policy that triggers a software install only on hosts missing the software. Not supported for iOS, iPadOS, Android, or for .sh, .py, and .ps1. |
Only one of labels_include_all, labels_include_any or labels_exclude_any can be specified. If none are specified, all hosts are targeted.
Add the X-Fleet-Scripts-Encoded: base64 header line to parse install_script, uninstall_script, post_install_script, and pre_install_query fields as bas64-encoded rather than as-is.
POST /api/v1/fleet/software/packagefleet_id="1"
self_service="true"
install_script="sudo installer -pkg /temp/FalconSensor-6.44.pkg -target /"
pre_install_query"SELECT 1 FROM macos_profiles WHERE uuid='c9f4f0d5-8426-4eb8-b61b-27c543c9d3db';"
post_install_script"sudo /Applications/Falcon.app/Contents/Resources/falconctl license 0123456789ABCDEFGHIJKLMNOPQRSTUV-WX"
software="FalconSensor-6.44.pkg"
labels_exclude_any="Engineering"
labels_exclude_any="QA"Status: 200
{
"software_package": {
"team_id": 310,
"title_id": 2792,
"name": "Slack-4.50.128-macOS.pkg",
"icon_url": null,
"version": "4.50.128",
"platform": "darwin",
"uploaded_at": "2026-06-04T17:43:46.125681Z",
"installer_id": 36818,
"install_script": "#!/bin/sh\n\ninstaller -pkg \"$INSTALLER_PATH\" -target /\n",
"pre_install_query": "",
"post_install_script": "",
"uninstall_script": "#!/bin/sh\n\n# Fleet extracts and saves package IDs.\npkg_ids=(\n 'com.tinyspeck.slackmacgap'\n)\n\n# For each package id, get all .app folders associated with the package and remove them.\nfor pkg_id in \"${pkg_ids[@]}\"\ndo\n # Get volume and location of the package.\n volume=$(pkgutil --pkg-info \"$pkg_id\" | grep -i \"volume\" | awk '{if (NF>1) print $NF}')\n location=$(pkgutil --pkg-info \"$pkg_id\" | grep -i \"location\" | awk '{if (NF>1) print $NF}')\n # Check if this package id corresponds to a valid/installed package\n if [[ ! -z \"$volume\" ]]; then\n # Remove individual directories that end with \".app\" belonging to the package.\n # Only process directories that end with \".app\" to prevent Fleet from removing top level directories.\n pkgutil --only-dirs --files \"$pkg_id\" | grep \"\\.app$\" | sed -e 's@^@'\"$volume\"\"$location\"'/@' | tr '\\n' '\\0' | xargs -n 1 -0 rm -rf\n # Remove receipts\n pkgutil --forget \"$pkg_id\"\n else\n echo \"WARNING: volume is empty for package ID $pkg_id\"\n fi\ndone\n",
"hash_sha256": "f7e4cba7676dacb03ac4cdbe5a99cc1d80ef751c484a13c6a7cf6a93de4a494e",
"self_service": false,
"url": "",
"fleet_maintained_app_id": null,
"automatic_install_policies": null,
"labels_include_any": null,
"labels_exclude_any": null,
"labels_include_all": null,
"categories": null,
"display_name": "",
"patch_policy": null,
"fleet_id": 310
}
}Available in Fleet Premium.
Update a package to install on macOS, Windows, Linux, iOS, or iPadOS hosts.
You need to send a request of type
multipart/form-data.
This endpoint accepts a maximum request body size of 10GB.
PATCH /api/v1/fleet/software/titles/:id/package
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | ID of the software title being updated. |
| software | file | body | Installer package file or custom script file. Supported packages are .pkg, .msi, .exe, .deb, .rpm, .tar.gz, .ipa, .sh, .py, and .ps1. |
| upload_id | string | body | The upload_id from Create staged upload. Use instead of software to replace the package with one uploaded directly to GCS. |
| filename | string | body | The package's file name, including its extension. Required with upload_id. |
| fleet_id | integer | body | Required. The fleet ID. Updates a software package in the specified fleet. |
| display_name | string | body | Optional override for the default name. |
| categories | array | body | Zero or more self-service category names defined on the fleet, used to group self-service software on your end users' Fleet Desktop > My device page. Each value must match a category that exists on the fleet. Software with no categories will still be shown under All. |
| install_script | string | body | Command that Fleet runs to install software. If not specified Fleet runs the default install command for each package type. Not supported for .sh, .py, and .ps1. |
| uninstall_script | string | body | Script that Fleet runs to uninstall software. If set to an empty string, Fleet runs the default uninstall script for each package type if one exists. Required for .tar.gz and .exe (no default script). |
| pre_install_query | string | body | Query that is pre-install condition. If the query doesn't return any result, the package will not be installed. |
| post_install_script | string | body | The contents of the script to run after install. If the specified script fails (exit code non-zero) software install will be marked as failed and rolled back. |
| self_service | boolean | body | Whether this is optional self-service software that can be installed by the end user. |
| labels_include_all | array | body | Target hosts that have all labels, specified by label name, in the array. |
| labels_include_any | array | body | Target hosts that have any label, specified by label name, in the array. Only one of either labels_include_any or labels_exclude_any can be specified. |
| labels_exclude_any | array | body | Target hosts that don't have any label, specified by label name, in the array. |
| patch | boolean | body | Available for Fleet-maintained apps only. Enables or disables "Patch": a policy that triggers a software install when the installed version is outdated. Set to false to remove the policy (and its managed pre_install_query, if patch_when_closed was enabled). |
| patch_when_closed | boolean | body | Available for Fleet-maintained apps only. Only applies when patch is true. If true (default), Fleet adds a read-only pre-install condition that skips the automated install while the app is open. If false ("Force patch"), Fleet installs the update the next time the policy fails, whether or not the app is open. |
| notify_before_patching | boolean | body | _Available for Fleet-maintained apps only. Only applies when patch is true. If true, Fleet shows the end user a notification listing the apps that will be patched in 1 hour. A reminder is shown 5 minutes before the install. Setting this to true also sets continuous_automations_enabled to true. Only supported on macOS hosts with Fleet Desktop installed (available as Fleet-maintained app). |
| patch_deadline | boolean | body | Available for Fleet-maintained apps only. Only applies when patch is true. If true, Fleet patches the app right away when it isn't open. If the app is open, Fleet notifies the end user and patches it at the next deadline in the fleet's patch deadline settings. Only one of patch_when_closed, notify_before_patching, or patch_deadline can be true. Only supported on macOS hosts with Fleet Desktop installed. |
| version | string | body | Only available for Fleet-maintained apps. Pins the app to a specific or major version. Available versions are listed in the Fleet UI under Actions > Versions. To pin to a major version, use a caret (^) constraint and specify only the major version, without the minor and patch versions. For example, "^147" means Fleet continuously updates to the latest version until the app reaches 148.0. Set version to an empty string ("") to switch back to automatically updating to the latest version found in Fleet's catalog. version can't be changed in the same request as other fields; omit it to leave the current pin unchanged. |
patch,patch_when_closed,notify_before_patching, andpatch_deadlineare only available for Fleet-maintained apps.
Only one of labels_include_all, labels_include_any or labels_exclude_any can be specified. If none are specified, all hosts are targeted.
Changes to the installer package will reset installation counts. Changes to any field other than
self_servicewill cancel pending installs for the old package.
If this software title has a patch policy with
patch_when_closed,notify_before_patching, orpatch_deadlineset totrue(see Update fleet-level policy),pre_install_queryis managed by Fleet and can't be set directly.
Add the X-Fleet-Scripts-Encoded: base64 header line to parse install_script, uninstall_script, post_install_script, and pre_install_query fields as bas64-encoded rather than as-is.
PATCH /api/v1/fleet/software/titles/1/package
fleet_id="1"
software="FalconSensor-6.44.pkg"
self_service="true"
display_name="CrowdStrike agent"
install_script="sudo installer -pkg /temp/FalconSensor-6.44.pkg -target /"
pre_install_query="SELECT 1 FROM macos_profiles WHERE uuid='c9f4f0d5-8426-4eb8-b61b-27c543c9d3db';"
post_install_script="sudo /Applications/Falcon.app/Contents/Resources/falconctl license 0123456789ABCDEFGHIJKLMNOPQRSTUV-WX"Status: 200
{
"software_installer": {
"team_id": 310,
"title_id": 2792,
"name": "Slack-4.45.64-macOS.pkg",
"icon_url": null,
"version": "4.45.64",
"platform": "darwin",
"uploaded_at": "2026-06-04T17:47:23Z",
"installer_id": 36818,
"install_script": "#!/bin/sh\n\ninstaller -pkg \"$INSTALLER_PATH\" -target /\n",
"pre_install_query": "",
"post_install_script": "",
"uninstall_script": "#!/bin/sh\n\n# Fleet extracts and saves package IDs.\npkg_ids=(\n 'com.tinyspeck.slackmacgap'\n)\n\n# For each package id, get all .app folders associated with the package and remove them.\nfor pkg_id in \"${pkg_ids[@]}\"\ndo\n # Get volume and location of the package.\n volume=$(pkgutil --pkg-info \"$pkg_id\" | grep -i \"volume\" | awk '{if (NF>1) print $NF}')\n location=$(pkgutil --pkg-info \"$pkg_id\" | grep -i \"location\" | awk '{if (NF>1) print $NF}')\n # Check if this package id corresponds to a valid/installed package\n if [[ ! -z \"$volume\" ]]; then\n # Remove individual directories that end with \".app\" belonging to the package.\n # Only process directories that end with \".app\" to prevent Fleet from removing top level directories.\n pkgutil --only-dirs --files \"$pkg_id\" | grep \"\\.app$\" | sed -e 's@^@'\"$volume\"\"$location\"'/@' | tr '\\n' '\\0' | xargs -n 1 -0 rm -rf\n # Remove receipts\n pkgutil --forget \"$pkg_id\"\n else\n echo \"WARNING: volume is empty for package ID $pkg_id\"\n fi\ndone\n",
"hash_sha256": "dff5434f8ef573f108ec6a48f19ab56c76985178e152ae45de9a575634f849e2",
"status": {
"installed": 0,
"pending_install": 0,
"failed_install": 0,
"pending_uninstall": 0,
"failed_uninstall": 0
},
"self_service": false,
"url": "",
"fleet_maintained_app_id": null,
"automatic_install_policies": null,
"labels_include_any": null,
"labels_exclude_any": null,
"labels_include_all": null,
"categories": null,
"display_name": "",
"patch_policy": null,
"fleet_id": 310
}
}Available in Fleet Premium.
Icon will be displayed in Fleet and on Fleet Desktop > Self-service. In the UI for the specified team, overriding the default icon built into Fleet, as well as the Apple-sourced icon if the software has an associated VPP app.
You need to send a request of type
multipart/form-data.
PUT /api/v1/fleet/software/titles/:id/icon
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | ID of the software title being updated. |
| fleet_id | integer | query | Required. The fleet ID. Updates a software icon in the specified fleet. |
| icon | file | body | Must be PNG format. It must be square with dimensions between 120x120 px and 1024x1024 px, and 100 KB or smaller. |
| hash_sha256 | string | body | SHA256 hash of an already-uploaded icon to use. If provided, filename is required and icon should be omitted. |
| filename | string | body | Filename to record for the icon image, if hash_sha256 was supplied. |
PUT /api/v1/fleet/software/titles/33/icon?fleet_id=2
icon="crowdstrike-icon-512x512.png"Status: 200
{
"icon_url": "/api/latest/fleet/software/titles/33/icon?fleet_id=2"
}Available in Fleet Premium.
Download the icon added via Update software icon or icon from the Apple App Store (VPP). This endpoint requires authentication.
GET /api/v1/fleet/software/titles/:id/icon
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | ID of the software title to get icon for. |
| fleet_id | integer | query | Required. The fleet ID. |
This endpoint will redirect (302) to the Apple-hosted URL of an icon if an icon override isn't set and a VPP app is added for the title on the host's team.
GET /api/v1/fleet/software/titles/33/icon?fleet_id=2
Status: 200
Status: 200
Content-Type: image/png
Content-Disposition: inline; filename="zoom-icon-512x512.png"
Content-Length: 124567
<BINARY_IMAGE_DATA>Available in Fleet Premium.
Delete a custom icon added via Update software icon. This will revert to using the software title's built-in icon.
DELETE /api/v1/fleet/software/titles/:id/icon
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | ID of the software title being updated. |
| fleet_id | integer | query | Required. The fleet ID. Deletes the software icon in the specified fleet. |
DELETE /api/v1/fleet/software/titles/33/icon?fleet_id=2
Status: 204
Returns the list of Apple App Store (VPP) apps that can be added to the specified fleet from the specified VPP token. If an app is already added to the fleet for a platform, from any VPP token, it's excluded from the list for that platform.
GET /api/v1/fleet/software/app_store_apps
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | integer | query | Required. The fleet ID. |
| vpp_token_id | integer | query | Required if the fleet has more than one VPP token. The ID of the VPP token to list apps from. The VPP token must be assigned to the fleet. Not needed if the fleet has only one VPP token. |
GET /api/v1/fleet/software/app_store_apps?fleet_id=3
Status: 200
{
"app_store_apps": [
{
"name": "Xcode",
"display_name": "",
"icon_url": "https://is1-ssl.mzstatic.com/image/thumb/Purple211/v4/f1/65/1e/a4844ccd-486d-455f-bb31-67336fe46b14/AppIcon-1x_U007emarketing-0-7-0-85-220-0.png/512x512bb.jpg",
"latest_version": "15.4",
"app_store_id": "497799835",
"platform": "darwin"
},
{
"name": "Logic Pro",
"display_name": "",
"icon_url": "https://is1-ssl.mzstatic.com/image/thumb/Purple211/v4/f1/65/1e/a4844ccd-486d-455f-bb31-67336fe46b14/AppIcon-1x_U007emarketing-0-7-0-85-220-0.png/512x512bb.jpg",
"latest_version": "2.04",
"app_store_id": "634148309",
"platform": "ios"
},
{
"name": "Logic Pro",
"display_name": "",
"icon_url": "https://is1-ssl.mzstatic.com/image/thumb/Purple211/v4/f1/65/1e/a4844ccd-486d-455f-bb31-67336fe46b14/AppIcon-1x_U007emarketing-0-7-0-85-220-0.png/512x512bb.jpg",
"latest_version": "2.04",
"app_store_id": "634148309",
"platform": "ipados"
}
]
}Available in Fleet Premium.
Add Apple App Store or Google Play store app. Apple apps must be added in Apple Business (AB) before adding them to Fleet.
You can add more than one version of the same app to a fleet. Fleet always installs the latest version available in the store, so versions don't differ by the app version that's installed. Instead, each version has its own name, self_service, categories, labels, automatic update settings, and managed app configuration. This lets you give different groups of hosts different settings (e.g. a different VPN configuration per IdP group) without creating a separate fleet.
POST /api/v1/fleet/software/app_store_apps
| Name | Type | In | Description |
|---|---|---|---|
| app_store_id | string | body | Required. The ID of the Apple App Store app or Google Play app. |
| fleet_id | integer | body | Required. The fleet ID. Adds app from the store to the specified fleet. |
| name | string | body | The version's name (e.g. "Production"). Must be unique for the software title on the fleet. |
| platform | string | body | The platform of the app (darwin, ios, ipados, or android). Default is darwin. |
| vpp_token_id | integer | body | Required if the fleet has more than one VPP token. The ID of the VPP token to add the Apple App Store app from. The VPP token must be assigned to the fleet. Fleet uses this VPP token for all requests to Apple related to the app in this fleet, like assigning licenses. Not needed if the fleet has only one VPP token. Not supported for Android apps. |
| name | string | body | Admin-provided version name, unique per title per fleet. Defaults to Default version when omitted. Required if the title already has a version with the default name. |
| self_service | boolean | body | Required if platform is Android. Currently supported for macOS and Android apps. Specifies whether the app shows up in self-service and is available for install by the end user. For macOS shows up on Fleet Desktop > My device page, for Android in Google Play Store app in end user's work profile, and for iOS/iPadOS in self-service web app. |
| automatic_install | boolean | body | Specifies whether to create a policy that triggers a software install only on hosts missing the software. Only supported for darwin. |
| categories | array | body | Zero or more self-service category names defined on the fleet, used to group self-service software on your end users' Fleet Desktop > My device page. Each value must match a category that exists on the fleet. Software with no categories will still be shown under All. |
| labels_include_all | array | body | Target hosts that have all labels, specified by label name, in the array. |
| labels_include_any | array | body | Target hosts that have any label, specified by label name, in the array. |
| labels_exclude_any | array | form | Target hosts that don't have any label, specified by label name, in the array. |
| configuration | object | form | The version's managed app configuration. For iOS and iPadOS apps it is in XML format, and for Google Play Store apps it is in JSON format. Currently only supported for iOS, iPadOS, and Android. |
| auto_update_enabled | boolean | body | Whether to enable automatic updates for iOS/iPadOS App Store (VPP) apps. |
| auto_update_window_start | string | body | Update window start time (local time of the device) when automatic updates will take place for iOS/iPadOS App Store (VPP) apps, formatted as HH:MM. Required if auto_update_enabled is true. |
| auto_update_window_end | string | body | Update window end time (local time of the device) when automatic updates will take place for iOS/iPadOS App Store (VPP) apps, formatted as HH:MM. Required if auto_update_enabled is true. |
Only one of labels_include_all, labels_include_any or labels_exclude_any can be specified. If none are specified, all hosts are targeted.
configuration supports all fields from Android application policy except packageName and installType. Configuration keys vary by app. Refer to the app vendor's documentation for available managed configuration options. For example, see Zoom's Android managed configuration or GlobalProtect's Android configuration.
An Apple App Store app can be added to a fleet from only one VPP token per platform. Fleet uses that VPP token for all requests to Apple related to the app in that fleet, like assigning licenses. To add the app from a different VPP token, delete the app from the fleet and add it again.
POST /api/v1/fleet/software/app_store_apps
{
"app_store_id": "497799835",
"categories": ["Productivity"],
"fleet_id": 2,
"platform": "ipados",
"self_service": true
}To add more than one version of the same app, call this endpoint once per version with the same app_store_id and platform, and a different name.
{
"app_store_id": "546505307",
"fleet_id": 2,
"platform": "ios",
"name": "Test",
"labels_include_any": ["Test"],
"configuration": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>...<!-- Test config -->"
}Status: 200
{
"software_title_id": 123,
"name": "Xcode",
"version_id": 41
}Status: 200
{
"software_title_id": 456,
"name": "Slack",
"version_id": 42
}Available in Fleet Premium.
Modify an Apple App Store (VPP) or a Google Play app's options.
A software title can have more than one version of the same App Store app on a fleet. Use version_id to select which version to update — the version's name is a mutable field, not its identifier.
PATCH /api/v1/fleet/software/titles/:title_id/app_store_app
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | integer | body | Required. The fleet ID. Edits Apple App Store or Google Play Store app from the specified fleet. |
| version_id | integer | body | ID of the version of the app to update. Required when the title has more than one version on the fleet. |
| name | string | body | The version's name (e.g. "Production"). Must be unique for the software title on the fleet. |
| display_name | string | body | Optional override for the default name. |
| self_service | boolean | body | Required if platform is Android. Currently supported for macOS and Android apps. Specifies whether the app shows up in self-service and is available for install by the end user. For macOS shows up on Fleet Desktop > My device page, for Android in Google Play Store app in end user's work profile, and for iOS/iPadOS in self-service web app. |
| categories | array | body | Zero or more self-service category names defined on the fleet, used to group self-service software on your end users' Fleet Desktop > My device page. Each value must match a category that exists on the fleet. Software with no categories will still be shown under All. |
| auto_update_enabled | boolean | body | Whether to enable automatic updates for iOS/iPadOS App Store (VPP) apps. |
| auto_update_window_start | string | body | Update window start time (local time of the device) when automatic updates will take place for iOS/iPadOS App Store (VPP) apps, formatted as HH:MM. Required if auto_update_enabled is true. |
| auto_update_window_end | string | body | Update window end time (local time of the device) when automatic updates will take place for iOS/iPadOS App Store (VPP) apps, formatted as HH:MM. Required if auto_update_enabled is true. |
| labels_include_all | array | body | Target hosts that have all labels, specified by label name, in the array. |
| labels_include_any | array | body | Target hosts that have any label, specified by label name, in the array. |
| labels_exclude_any | array | body | Target hosts that don't have any label, specified by label name, in the array. |
| configuration | object | body | The version's managed app configuration. For iOS and iPadOS apps it is in XML format, and for Google Play Store apps it is in JSON format. Currently only supported for iOS, iPadOS, and Android. |
All settings are set per version, so updating one version doesn't change any other version of the same app.
Only one of labels_include_all, labels_include_any or labels_exclude_any can be specified. If none are specified, all hosts are targeted.
configuration only supports managedConfiguration and workProfileWidgets from the Android application policy. Configuration keys vary by app. Refer to the app vendor's documentation for available managed configuration options. For example, see Zoom's Android managed configuration or GlobalProtect's Android configuration.
If a host is in scope for more than one version, Fleet installs the one that was added first. Fleet generates each version's id when it's added, and the response includes the id and a created_at timestamp so you can confirm which version takes precedence.
PATCH /api/v1/fleet/software/titles/3467/app_store_app
{
"fleet_id": 2,
"self_service": true,
"categories": ["Browser"],
"labels_include_any": [
"Product",
"Marketing"
]
}{
"team_id": 2,
"version_id": 42,
"name": "Test",
"labels_include_any": ["Test"],
"configuration": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>...<!-- Test config -->"
}Status: 200
{
"app_store_app": {
"id": 42,
"name": "Test",
"display_name": "",
"icon_url": null,
"app_store_id": 1091189122,
"categories": ["Browser"],
"version": "2.04",
"self_service": true,
"labels_include_any": [
{
"name": "Test",
"id": 17
}
],
"labels_exclude_any": null,
"labels_include_all": null,
"auto_update_enabled": false,
"auto_update_window_start": null,
"auto_update_window_end": null,
"created_at": "2026-08-25T14:22:03Z",
"configuration": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>...<!-- Test config -->",
"automatic_install_policies": [
{
"id": 345,
"name": "[Install software] Logic Pro",
"type": "dynamic"
}
],
"status": {
"installed": 3,
"pending": 1,
"failed": 2
}
}
}List available Fleet-maintained apps.
GET /api/v1/fleet/software/fleet_maintained_apps
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | integer | query | If specified, each app includes the software_title_id if the software has already been added to that fleet. |
| query | string | query | Search query keywords. Searches app name. |
| order_key | string | query | What to order results by. Currently only name is supported. |
| order_direction | string | query | Requires order_key. The direction of the order. Options are "asc" and "desc". Default is "asc". |
| page | integer | query | Page number of the results to fetch. Pagination is by app: an app's macOS and Windows entries are counted as one result and always returned on the same page. |
| per_page | integer | query | Results (apps) per page. |
| platform | string | query | Filter to apps available on a platform. Options are "darwin" (macOS) and "windows". |
| available | boolean | query | If true, only return apps that have not yet been added to the fleet. Requires fleet_id. |
GET /api/v1/fleet/software/fleet_maintained_apps?fleet_id=3
Status: 200
{
"fleet_maintained_apps": [
{
"id": 1,
"name": "1Password",
"slug": "1password/darwin",
"platform": "darwin",
"software_title_id": 1
},
{
"id": 2,
"name": "Adobe Acrobat Reader",
"slug": "adobe-acrobat-reader/darwin",
"platform": "darwin",
"software_title_id": null
},
{
"id": 3,
"name": "Box Drive",
"slug": "box-drive/darwin",
"platform": "darwin",
"software_title_id": 3
}
],
"count": 250,
"meta": {
"has_next_results": false,
"has_previous_results": false
}
}
countis the total number of Fleet-maintained apps matching the query. An app's macOS and Windows versions are counted separately, even though the UI combines them into a single row.
Returns information about the specified Fleet-maintained app.
GET /api/v1/fleet/software/fleet_maintained_apps/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The Fleet-maintained app's ID. |
| fleet_id | integer | query | If supplied, set software_title_id on the response when an installer or VPP app has already been added to that fleet for that software. |
GET /api/v1/fleet/software/fleet_maintained_apps/1
Status: 200
{
"fleet_maintained_app": {
"id": 1,
"slug": "1password/darwin",
"name": "1Password",
"version": "8.10.50",
"platform": "darwin",
"url": "https://downloads.1password.com/mac/1Password-8.10.50-aarch64.zip",
"install_script": "#!/bin/sh\ninstaller -pkg \"$INSTALLER_PATH\" -target /",
"uninstall_script": "#!/bin/sh\npkg_ids=$PACKAGE_ID\nfor pkg_id in '${pkg_ids[@]}'...",
"software_title_id": 3,
"automatic_install_query": "SELECT 1 FROM apps WHERE bundle_identifier = 'com.1password.1password';",
"categories": ["Productivity"]
}
}Available in Fleet Premium.
Add Fleet-maintained app so it's available for install.
POST /api/v1/fleet/software/fleet_maintained_apps
| Name | Type | In | Description |
|---|---|---|---|
| fleet_maintained_app_id | integer | body | Required. The ID of Fleet-maintained app. |
| fleet_id | integer | body | Required. The fleet ID. Adds Fleet-maintained app to the specified fleet. |
| install_script | string | body | Command that Fleet runs to install software. If not specified Fleet runs default install command for each Fleet-maintained app. |
| pre_install_query | string | body | Query that is pre-install condition. If the query doesn't return any result, Fleet won't proceed to install. |
| post_install_script | string | body | The contents of the script to run after install. If the specified script fails (exit code non-zero) software install will be marked as failed and rolled back. |
| self_service | boolean | body | Self-service software is optional and can be installed by the end user. |
| labels_include_all | array | body | Target hosts that have all labels, specified by label name, in the array. |
| labels_include_any | array | form | Target hosts that have any label, specified by label name, in the array. |
| labels_exclude_any | array | form | Target hosts that don't have any label, specified by label name, in the array. |
| automatic_install | boolean | form | Create a policy that triggers a software install only on hosts missing the software ("Force install"). This policy doesn't check the installed version. |
Only one of labels_include_all, labels_include_any or labels_exclude_any can be specified. If none are specified, all hosts are targeted.
Add the X-Fleet-Scripts-Encoded: base64 header line to parse install_script, uninstall_script, post_install_script, and pre_install_query fields as bas64-encoded rather than as-is.
To keep this app patched to the latest version, create a patch policy with patch_software_title_id set to the software_title_id returned below. automatic_install and a patch policy can both be added for the same app.
POST /api/v1/fleet/software/fleet_maintained_apps
{
"fleet_maintained_app_id": 3,
"fleet_id": 2,
"automatic_install": true
}Status: 200
{
"software_title_id": 234
}Available in Fleet Premium.
Creates web app (web clip). This endpoint returns the application ID that can be used to add an Android app to Fleet.
You need to send a request of type
multipart/form-data.
POST /api/v1/fleet/software/web_apps
| Name | Type | In | Description |
|---|---|---|---|
| title | string | body | Required. It is displayed to the end user under the app icon. |
| url | string | body | Required. The URL of the web app. What the end user sees when they open this app. |
| icon | file | body | The app icon. The icon must be a PNG file and square, with dimensions of at least 512 x 512px. |
POST /api/v1/fleet/software/web_apps
title="Acme web app"
url="https://app.acme.com"
icon="app-icon-512x512.png"Status: 200
{
"app_store_id": "com.google.enterprise.webapp.x1c41e22ab611cb98"
}Available in Fleet Premium.
GET /api/v1/fleet/software/titles/:id/package?alt=media
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The ID of the software title to download software package. |
| fleet_id | integer | query | Required. The fleet ID. Downloads a software package added to the specified fleet. |
| alt | string | query | Required. If specified and set to "media", downloads the specified software package. |
GET /api/v1/fleet/software/titles/123/package?alt=media&fleet_id=2
Status: 200
Status: 200
Content-Type: application/octet-stream
Content-Disposition: attachment
Content-Length: <length>
Body: <blob>Available in Fleet Premium.
Install software (package or app store app) on a macOS, iOS, iPadOS, Windows, or Linux (Ubuntu) host. Software title must have a software_package or app_store_app to be installed.
Package installs time out after 1 hour.
POST /api/v1/fleet/hosts/:id/software/:software_title_id/install
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The host's ID. |
| software_title_id | integer | path | Required. The software title's ID. |
POST /api/v1/fleet/hosts/123/software/3435/install
Status: 202
Available in Fleet Premium.
Uninstalls software from a host.
POST /api/v1/fleet/hosts/:id/software/:software_title_id/uninstall
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The host's ID. |
| software_title_id | integer | path | Required. The software title's ID. |
POST /api/v1/fleet/hosts/123/software/3435/uninstall
Status: 202
Install self-service software on a macOS, Windows, or Linux host. The software must have a self_service flag true to be installed.
POST /api/v1/fleet/device/:token/software/install/:software_title_id
| Name | Type | In | Description |
|---|---|---|---|
| token | string | path | Required. The host's Fleet Desktop token. |
| software_title_id | string | path | Required. The software title's ID. |
POST /api/v1/fleet/device/22aada07-dc73-41f2-8452-c0987543fd29/software/install/123
Status: 202
Available in Fleet Premium.
GET /api/v1/fleet/software/install/:install_uuid/results
Get the results of a Fleet-maintained app or custom package install. To get uninstall results, use the List activities and Get script result API endpoints.
To get the results of an Apple App Store app install, use the List MDM commands and Get MDM command results API endpoints. Fleet uses an MDM command to install Apple App Store apps.
| Name | Type | In | Description |
|---|---|---|---|
| install_uuid | string | path | Required. The software installation UUID. |
When an install attempt was skipped because a patch policy has patch_when_closed, notify_before_patching, or patch_deadline enabled, and the app was open, status will be failed_install, and pre_install_query_output will be "The app was open\nInstall stopped" (patch_when_closed), "The app was open\nInstall stopped\nFleet notifies the end user 1 hour before the patch is forced." (notify_before_patching), or "The app was open\nInstall stopped\nFleet notifies the end user 1 hour before the patch deadline." (patch_deadline). In this case, Fleet will try again on the next policy run.
GET /api/v1/fleet/software/install/b15ce221-e22e-4c6a-afe7-5b3400a017da/results
Status: 200
{
"results": {
"install_uuid": "b15ce221-e22e-4c6a-afe7-5b3400a017da",
"software_title": "Falcon.app",
"software_title_id": 8353,
"software_package": "FalconSensor-6.44.pkg",
"host_id": 123,
"status": "failed_install",
"output": "Installing software...\nError: The operation can’t be completed because the item \"Falcon\" is in use.",
"pre_install_query_output": "Query returned result\nSuccess",
"post_install_script_output": "Running script...\nExit code: 1 (Failed)\nRolling back software install...\nSuccess"
}
}Available in Fleet Premium.
Deletes software that's available for install. For Android hosts, the software is also uninstalled. For all other hosts, the software isn't uninstalled.
DELETE /api/v1/fleet/software/titles/:software_title_id/available_for_install
| Name | Type | In | Description |
|---|---|---|---|
| software_title_id | integer | path | Required. The ID of the software title to delete software available for install. |
| fleet_id | integer | query | Required. The fleet ID. Deletes a software package added to the specified fleet. |
| version_id | integer | query | Deletes only the specified version of an App Store app. If omitted, all of the title's App Store app versions on the fleet are deleted. |
DELETE /api/v1/fleet/software/titles/24/available_for_install?fleet_id=2
Status: 204
Available in Fleet Premium
Returns the fleet's patch deadline settings. Fleet-maintained apps with a patch policy that has patch_deadline set to true are patched at these deadlines. If the settings were never updated, Fleet returns the default: Tuesday at "17:00".
GET /api/v1/fleet/software/patch_deadline_settings
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | integer | query | Required. The fleet ID. Use 0 for "Unassigned" hosts. |
GET /api/v1/fleet/software/patch_deadline_settings?fleet_id=3
Status: 200
{
"patch_deadline_settings": {
"fleet_id": 3,
"days": ["monday", "wednesday", "friday"],
"time": "11:00"
}
}Available in Fleet Premium
Sets the days and time when Fleet patches Fleet-maintained apps with a patch policy that has patch_deadline set to true. 1 hour before the deadline, Fleet shows the end user a notification listing the apps that will close and update. If the notification can't be shown (for example, the host is offline or the screen is locked), Fleet shows it as soon as it can and installs 1 hour later. Only global and fleet admins and maintainers can call this endpoint.
PATCH /api/v1/fleet/software/patch_deadline_settings
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | integer | body | Required. The fleet ID. Use 0 for "Unassigned" hosts. |
| days | array | body | Required. Days of the week when the deadline applies. Options are "monday", "tuesday", "wednesday", "thursday", "friday", "saturday", and "sunday". Must include at least one day. |
| time | string | body | Required. The deadline, formatted as HH:MM in the host's local time (e.g. "11:00"). Fleet doesn't patch a host until it has collected the host's timezone. |
PATCH /api/v1/fleet/software/patch_deadline_settings
{
"fleet_id": 3,
"days": ["monday", "wednesday", "friday"],
"time": "11:00"
}Status: 200
{
"patch_deadline_settings": {
"fleet_id": 3,
"days": ["monday", "wednesday", "friday"],
"time": "11:00"
}
}Available in Fleet Premium
Self-service categories let IT admins group self-service software on each fleet so end users can browse and install software by category on the My device > Self-service page.
When a new fleet is created, Fleet seeds it with the following default categories that can be renamed or deleted: 🌎 Browsers, 👬 Communication, 🧰 Developer tools, 💻 Productivity, 🔐 Security, and 🛟 Support.
Lists all self-service categories on the specified fleet.
GET /api/v1/fleet/software/self_service_categories
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | integer | query | Required. The fleet ID. Use 0 to list categories for "Unassigned" hosts. |
GET /api/v1/fleet/software/self_service_categories?fleet_id=3
Status: 200
{
"self_service_categories": [
{
"id": 12,
"name": "🌎 Browsers",
"fleet_id": 3,
"created_at": "2026-05-01T14:22:58Z",
"updated_at": "2026-05-01T14:22:58Z"
},
{
"id": 13,
"name": "🧰 Developer tools",
"fleet_id": 3,
"created_at": "2026-05-01T14:22:58Z",
"updated_at": "2026-05-01T14:22:58Z"
}
]
}Creates a new self-service category on the specified fleet. Only global and fleet admins and maintainers can call this endpoint.
POST /api/v1/fleet/software/self_service_categories
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | integer | body | Required. The fleet ID. Use 0 to add the category to "Unassigned" hosts. |
| name | string | body | Required. The category name. Must be unique within the fleet (case-insensitive) and at most 255 characters. Emojis are supported and are part of the name (e.g. "🌎 Browsers"). |
POST /api/v1/fleet/software/self_service_categories
{
"fleet_id": 3,
"name": "💼 Engineering"
}Status: 200
{
"self_service_category": {
"id": 42,
"name": "💼 Engineering",
"fleet_id": 3,
"created_at": "2026-05-12T18:45:00Z",
"updated_at": "2026-05-12T18:45:00Z"
}
}Renames an existing self-service category. Only global and fleet admins and maintainers can call this endpoint.
PATCH /api/v1/fleet/software/self_service_categories/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The self-service category ID. |
| name | string | body | Required. The new category name. Must be unique within the fleet (case-insensitive) and at most 255 characters. Emojis are supported and are part of the name. |
PATCH /api/v1/fleet/software/self_service_categories/42
{
"name": "💼 Engineering tools"
}Status: 200
{
"self_service_category": {
"id": 42,
"name": "💼 Engineering tools",
"fleet_id": 3,
"created_at": "2026-05-12T18:45:00Z",
"updated_at": "2026-05-12T19:01:00Z"
}
}Deletes the specified self-service category. Software assigned to the deleted category is removed from that category but otherwise unaffected. Only global and fleet admins and maintainers can call this endpoint.
DELETE /api/v1/fleet/software/self_service_categories/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The self-service category ID. |
DELETE /api/v1/fleet/software/self_service_categories/42
Status: 204
Retrieves a list of all CVEs affecting software and/or OS versions.
GET /api/v1/fleet/vulnerabilities
| Name | Type | In | Description |
|---|---|---|---|
| fleet_id | integer | query | Available in Fleet Premium. Filters only include vulnerabilities affecting the specified fleet. Use 0 to filter by "Unassigned" hosts. |
| page | integer | query | Page number of the results to fetch. |
| per_page | integer | query | Results per page. |
| order_key | string | query | What to order results by. Allowed fields are: cve, cvss_score, epss_probability, cve_published, created_at, and hosts_count. Default is created_at (descending). |
| order_direction | string | query | Requires order_key. The direction of the order given the order key. Options include "asc" and "desc". Default is "asc". |
| query | string | query | Search query keywords. Searchable fields include cve. |
| exploit | boolean | query | Available in Fleet Premium. If true, filters to only include vulnerabilities that have been actively exploited in the wild (cisa_known_exploit: true). Otherwise, includes vulnerabilities with any cisa_known_exploit value. |
| after | string | query | The value to get results after. This needs order_key defined, as that's the column that would be used. |
Status: 200
{
"vulnerabilities": [
{
"cve": "CVE-2022-30190",
"created_at": "2022-06-01T00:15:00Z",
"hosts_count": 1234,
"hosts_count_updated_at": "2023-12-20T15:23:57Z",
"details_link": "https://nvd.nist.gov/vuln/detail/CVE-2022-30190",
"cvss_score": 7.8,// Available in Fleet Premium
"epss_probability": 0.9729,// Available in Fleet Premium
"cisa_known_exploit": false,// Available in Fleet Premium
"cve_published": "2022-06-01T00:15:00Z",// Available in Fleet Premium
"cve_description": "Microsoft Windows Support Diagnostic Tool (MSDT) Remote Code Execution Vulnerability." // Available in Fleet Premium
}
],
"count": 123,
"counts_updated_at": "2024-02-02T16:40:37Z",
"meta": {
"has_next_results": false,
"has_previous_results": false
}
}Retrieve details about a vulnerability and its affected software and OS versions.
If no vulnerable OS versions or software were found, but Fleet is aware of the vulnerability, a 204 status code is returned.
GET /api/v1/fleet/vulnerabilities/:cve
| Name | Type | In | Description |
|---|---|---|---|
| cve | string | path | The cve to get information about (format must be CVE-YYYY-<4 or more digits>, case-insensitive). |
| fleet_id | integer | query | Available in Fleet Premium. Filters response data to the specified fleet. Use 0 to filter by "Unassigned" hosts. |
GET /api/v1/fleet/vulnerabilities/cve-2022-30190
Status: 200
{
"vulnerability": {
"cve": "CVE-2022-30190",
"created_at": "2022-06-01T00:15:00Z",
"hosts_count": 1234,
"hosts_count_updated_at": "2023-12-20T15:23:57Z",
"details_link": "https://nvd.nist.gov/vuln/detail/CVE-2022-30190",
"cvss_score": 7.8,// Available in Fleet Premium
"epss_probability": 0.9729,// Available in Fleet Premium
"cisa_known_exploit": false,// Available in Fleet Premium
"cve_published": "2022-06-01T00:15:00Z",// Available in Fleet Premium
"cve_description": "Microsoft Windows Support Diagnostic Tool (MSDT) Remote Code Execution Vulnerability."// Available in Fleet Premium
},
"os_versions": [
{
"os_version_id": 6,
"hosts_count": 200,
"name": "macOS 14.1.2",
"name_only": "macOS",
"version": "14.1.2",
"resolved_in_version": "14.2",
"generated_cpes": [
"cpe:2.3:o:apple:macos:*:*:*:*:*:14.2:*:*",
"cpe:2.3:o:apple:mac_os_x:*:*:*:*:*:14.2:*:*"
]
}
],
"software": [
{
"id": 2363,
"name": "Docker Desktop",
"version": "4.9.1",
"source": "programs",
"generated_cpe": "cpe:2.3:a:docker:docker_desktop:4.9.1:*:*:*:*:windows:*:*",
"hosts_count": 50,
"resolved_in_version": "5.0.0"
},
]
}The extension_for field is included when set and when empty, at the same level as source. extension_for will show the browser or Visual Studio Code fork associated with the extension, allowing for differentiation between e.g. an extension installed on Visual Studio Code and one installed on Cursor.
Each entry in software includes release when set. For rpm_packages, it's the package release (for example, 1.212.el6). For go_binaries, it's the version of the Go toolchain the binary was built with (for example, go1.26.1). Fleet uses it to detect Go standard library vulnerabilities, so the same binary version built with two toolchains is listed as two versions. generated_cpe is empty for Go binaries. Their vulnerabilities come from the Go vulnerability database instead of NVD. For Go standard library vulnerabilities, resolved_in_version is empty because the fix is a rebuild with a newer Go toolchain.
In Fleet, targets are used to run reports against specific hosts or groups of hosts. Labels are used to create groups in Fleet.
The search targets endpoint returns two lists. The first list includes the possible target hosts in Fleet given the search query provided and the hosts already selected as targets. The second list includes the possible target labels in Fleet given the search query provided and the labels already selected as targets.
The returned lists are filtered based on the hosts the requesting user has access to.
POST /api/v1/fleet/targets
| Name | Type | In | Description |
|---|---|---|---|
| query | string | body | The search query. Searchable items include a host's hostname or IPv4 address and labels. |
| query_id | integer | body | The saved query (if any) that will be run. The observer_can_run property on the query and the user's roles effect which targets are included. |
| selected | object | body | The targets already selected. The object includes a hosts property which contains a list of host IDs, a labels with label IDs and/or a fleets property with fleet IDs. |
POST /api/v1/fleet/targets
{
"query": "172",
"selected": {
"hosts": [],
"labels": [7]
},
"include_observer": true
}{
"targets": {
"hosts": [
{
"created_at": "2021-02-03T16:11:43Z",
"updated_at": "2021-02-03T21:58:19Z",
"id": 3,
"detail_updated_at": "2021-02-03T21:58:10Z",
"label_updated_at": "2021-02-03T21:58:10Z",
"policy_updated_at": "2023-06-26T18:33:15Z",
"last_enrolled_at": "2021-02-03T16:11:43Z",
"software_updated_at": "2020-11-05T05:09:44Z",
"seen_time": "2021-02-03T21:58:20Z",
"hostname": "7a2f41482833",
"uuid": "a2064cef-0000-0000-afb9-283e3c1d487e",
"platform": "rhel",
"osquery_version": "4.5.1",
"os_version": "CentOS 6.10.0",
"build": "",
"platform_like": "rhel",
"code_name": "",
"uptime": 32688000000000,
"memory": 2086899712,
"cpu_type": "x86_64",
"cpu_subtype": "142",
"cpu_brand": "Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz",
"cpu_physical_cores": 4,
"cpu_logical_cores": 4,
"hardware_vendor": "",
"hardware_model": "",
"hardware_version": "",
"hardware_serial": "",
"computer_name": "7a2f41482833",
"timezone": null,
"display_name": "7a2f41482833",
"primary_ip": "172.20.0.3",
"primary_mac": "02:42:ac:14:00:03",
"distributed_interval": 10,
"config_tls_refresh": 10,
"logger_tls_period": 10,
"additional": {},
"status": "offline",
"display_text": "7a2f41482833"
},
{
"created_at": "2021-02-03T16:11:43Z",
"updated_at": "2021-02-03T21:58:19Z",
"id": 4,
"detail_updated_at": "2021-02-03T21:58:10Z",
"label_updated_at": "2021-02-03T21:58:10Z",
"policy_updated_at": "2023-06-26T18:33:15Z",
"last_enrolled_at": "2021-02-03T16:11:43Z",
"software_updated_at": "2020-11-05T05:09:44Z",
"seen_time": "2021-02-03T21:58:20Z",
"hostname": "78c96e72746c",
"uuid": "a2064cef-0000-0000-afb9-283e3c1d487e",
"platform": "ubuntu",
"osquery_version": "4.5.1",
"os_version": "Ubuntu 16.4.0",
"build": "",
"platform_like": "debian",
"code_name": "",
"uptime": 32688000000000,
"memory": 2086899712,
"cpu_type": "x86_64",
"cpu_subtype": "142",
"cpu_brand": "Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz",
"cpu_physical_cores": 4,
"cpu_logical_cores": 4,
"hardware_vendor": "",
"hardware_model": "",
"hardware_version": "",
"hardware_serial": "",
"computer_name": "78c96e72746c",
"timezone": null,
"display_name": "78c96e72746c",
"primary_ip": "172.20.0.7",
"primary_mac": "02:42:ac:14:00:07",
"distributed_interval": 10,
"config_tls_refresh": 10,
"logger_tls_period": 10,
"additional": {},
"status": "offline",
"display_text": "78c96e72746c"
}
],
"labels": [
{
"created_at": "2021-02-02T23:55:25Z",
"updated_at": "2021-02-02T23:55:25Z",
"id": 6,
"name": "All Hosts",
"description": "All hosts which have enrolled in Fleet",
"query": "SELECT 1;",
"label_type": "builtin",
"label_membership_type": "dynamic",
"host_count": 5,
"display_text": "All Hosts",
"count": 5
}
],
"fleets": [
{
"id": 1,
"created_at": "2021-05-27T20:02:20Z",
"name": "Client Platform Engineering",
"description": "",
"agent_options": null,
"user_count": 4,
"host_count": 2,
"display_text": "Client Platform Engineering",
"count": 2
}
]
},
"targets_count": 1,
"targets_online": 1,
"targets_offline": 0,
"targets_missing_in_action": 0
}Available in Fleet Premium
GET /api/v1/fleet/fleets
mdm.apple_settings.configuration_profiles, mdm.windows_settings.configuration_profiles, scripts, and mdm.setup_experience only include the configuration profiles, scripts, and setup experience settings applied using Fleet's YAML. To list profiles, scripts, or setup experience settings added in the UI or API, use the List configuration profiles, List scripts, or GET endpoints from Setup experience instead.
| Name | Type | In | Description |
|---|---|---|---|
| page | integer | query | Page number of the results to fetch. |
| per_page | integer | query | Results per page. |
| order_key | string | query | What to order results by. Can be any column in the fleets table. |
| order_direction | string | query | Requires order_key. The direction of the order given the order key. Options include "asc" and "desc". Default is "asc". |
| query | string | query | Search query keywords. Searchable fields include name. |
| after | string | query | The value to get results after. This needs order_key defined, as that's the column that would be used. |
GET /api/v1/fleet/fleets
Status: 200
{
"fleets": [
{
"id": 1,
"created_at": "2021-07-28T15:58:21Z",
"name": "workstations",
"description": "",
"agent_options": {
"config": {
"options": {
"pack_delimiter": "/",
"logger_tls_period": 10,
"distributed_plugin": "tls",
"disable_distributed": false,
"logger_tls_endpoint": "/api/v1/osquery/log",
"distributed_interval": 10,
"distributed_tls_max_attempts": 3
},
"decorators": {
"load": [
"SELECT uuid AS host_uuid FROM system_info;",
"SELECT hostname AS hostname FROM system_info;"
]
}
},
"overrides": {},
"command_line_flags": {}
},
"user_count": 0,
"host_count": 0,
"secrets": [
{
"secret": "",
"created_at": "2021-07-28T15:58:21Z",
"team_id": 10
}
]
},
{
"id": 2,
"created_at": "2021-08-05T21:41:42Z",
"name": "servers",
"description": "",
"agent_options": {
"spec": {
"config": {
"options": {
"pack_delimiter": "/",
"logger_tls_period": 10,
"distributed_plugin": "tls",
"disable_distributed": false,
"logger_tls_endpoint": "/api/v1/osquery/log",
"distributed_interval": 10,
"distributed_tls_max_attempts": 3
},
"decorators": {
"load": [
"SELECT uuid AS host_uuid FROM system_info;",
"SELECT hostname AS hostname FROM system_info;"
]
}
},
"overrides": {},
"command_line_flags": {}
},
"user_count": 0,
"host_count": 0,
"secrets": [
{
"secret": "+ncixtnZB+IE0OrbrkCLeul3U8LMVITd",
"created_at": "2021-08-05T21:41:42Z",
"team_id": 15
}
]
}
}
]
}Available in Fleet Premium
GET /api/v1/fleet/fleets/:id
mdm.apple_settings.configuration_profiles, mdm.windows_settings.configuration_profiles, scripts, and mdm.setup_experience only include the configuration profiles, scripts, and setup experience settings applied using Fleet's YAML. To list profiles, scripts, or setup experience settings added in the UI or API, use the List configuration profiles, List scripts, or GET endpoints from Setup experience instead.
"Unassigned" (id 0) will only return id, name, webhook_settings.failing_policies_webhook, webhook_settings.host_activities_webhook, integrations.jira, and integrations.zendesk fields.
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The desired fleet's ID. Use 0 for "Unassigned" hosts. |
GET /api/v1/fleet/fleets/1
Status: 200
{
"team": {
"name": "Workstations",
"id": 1,
"user_count": 4,
"host_count": 0,
"agent_options": {
"config": {
"options": {
"pack_delimiter": "/",
"logger_tls_period": 10,
"distributed_plugin": "tls",
"disable_distributed": false,
"logger_tls_endpoint": "/api/v1/osquery/log",
"distributed_interval": 10,
"distributed_tls_max_attempts": 3
},
"decorators": {
"load": [
"SELECT uuid AS host_uuid FROM system_info;",
"SELECT hostname AS hostname FROM system_info;"
]
}
},
"overrides": {},
"command_line_flags": {}
},
"webhook_settings": {
"failing_policies_webhook": {
"enable_failing_policies_webhook": false,
"destination_url": "",
"policy_ids": null,
"host_batch_size": 0
},
"host_activities_webhook": {
"enable_host_activities_webhook": true,
"destination_url": "https://server.com/example"
}
},
"integrations": {
"google_calendar": {
"enable_calendar_events": true,
"webhook_url": "https://server.com/example"
}
},
"mdm": {
"macos_updates": {
"minimum_version": "12.3.1",
"deadline": "2022-01-01",
"update_new_hosts": true
},
"windows_updates": {
"deadline_days": 5,
"grace_period_days": 1
},
"macos_settings": {
"custom_settings": [
{
"path": "path/to/profile1.mobileconfig",
"labels": ["Label 1", "Label 2"]
}
]
},
"apple_settings": {
"configuration_profiles": [
{
"path": "path/to/profile1.mobileconfig",
"labels": ["Label 1", "Label 2"],
"self_service": true
},
{
"path": "path/to/declaration.json",
"labels": ["Label 1", "Label 2"]
},
{
"path": "path/to/assets/asset.json"
}
],
"enable_disk_encryption": true,
"enable_escrow_disk_encryption_key": true,
"assets": [
{
"path": "path/to/assets/asset.json"
}
],
"managed_local_account_settings": {
"enabled": true
}
},
"windows_settings": {
"custom_settings": [
{
"path": "path/to/profile2.xml",
"labels": ["Label 3", "Label 4"]
}
],
"configuration_profiles": [
{
"path": "path/to/profile2.xml",
"labels": ["Label 3", "Label 4"]
}
],
"enable_disk_encryption": true,
"require_bitlocker_pin": true,
"enable_managed_local_account": true
},
"linux_settings": {
"enable_escrow_disk_encryption_key": true
},
"macos_setup": {
"bootstrap_package": "",
"enable_end_user_authentication": false,
"macos_setup_assistant": "path/to/config.json",
"enable_release_device_manually": false,
"manual_agent_install": false
},
"setup_experience": {
"bootstrap_package": "",
"enable_end_user_authentication": false,
"enable_managed_local_account": false,
"end_user_local_account_type": "admin",
"apple_setup_assistant": "path/to/config.json",
"enable_release_device_manually": false,
"manual_agent_install": false
}
}
}
}Available in Fleet Premium
POST /api/v1/fleet/fleets
mdm.apple_settings.configuration_profiles, mdm.windows_settings.configuration_profiles, scripts, and mdm.setup_experience only include the configuration profiles, scripts, and setup experience settings applied using Fleet's YAML. To list profiles, scripts, or setup experience settings added in the UI or API, use the List configuration profiles, List scripts, or GET endpoints from Setup experience instead.
| Name | Type | In | Description |
|---|---|---|---|
| name | string | body | Required. The fleet's name. Fleet names must differ by more than letter case. |
POST /api/v1/fleet/fleets
{
"name": "workstations"
}Status: 409
Returned when the requested name only differs from an existing fleet's name by letter case.
{
"message": "Conflict",
"errors": [
{
"name": "base",
"reason": "A fleet named \"Workstations\" already exists. Fleet names must differ by more than letter case."
}
]
}Status: 200
{
"team": {
"name": "workstations",
"id": 1,
"user_count": 0,
"host_count": 0,
"agent_options": {
"config": {
"options": {
"pack_delimiter": "/",
"logger_tls_period": 10,
"distributed_plugin": "tls",
"disable_distributed": false,
"logger_tls_endpoint": "/api/v1/osquery/log",
"distributed_interval": 10,
"distributed_tls_max_attempts": 3
},
"decorators": {
"load": [
"SELECT uuid AS host_uuid FROM system_info;",
"SELECT hostname AS hostname FROM system_info;"
]
}
},
"overrides": {},
"command_line_flags": {}
},
"webhook_settings": {
"failing_policies_webhook": {
"enable_failing_policies_webhook": false,
"destination_url": "",
"policy_ids": null,
"host_batch_size": 0
}
}
}
}Available in Fleet Premium
PATCH /api/v1/fleet/fleets/:id
mdm.apple_settings.configuration_profiles, mdm.windows_settings.configuration_profiles, scripts, and mdm.setup_experience only include the configuration profiles, scripts, and setup experience settings applied using Fleet's YAML. To list profiles, scripts, or setup experience settings added in the UI or API, use the List configuration profiles, List scripts, or GET endpoints from Setup experience instead.
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The desired fleet's ID. Use 0 for "Unassigned" hosts. Note: When using id=0, only webhook_settings.failing_policies_webhook, webhook_settings.host_activities_webhook, integrations.jira, and integrations.zendesk fields are supported in the request body. |
| name | string | body | The fleet's name. Fleet names must differ by more than letter case. Renaming a fleet into another fleet's name returns a 409 Conflict error. |
| host_ids | array | body | A list of hosts that belong to the fleet. |
| user_ids | array | body | A list of users on the fleet. |
| webhook_settings | object | body | Webhook settings for the fleet. See webhook_settings. |
| integrations | object | body | Integrations settings for the fleet. See integrations for details. Note that integrations referenced here must already exist globally, created by a call to Modify configuration. |
| mdm | object | body | MDM settings for the fleet. See mdm for details. |
| host_expiry_settings | object | body | Host expiry settings for the fleet. See host_expiry_settings for details. |
| features | object | body | Per-fleet feature toggles. Accepts only certain sub-fields; other features sub-fields are writable per-fleet only via GitOps. See features below. |
PATCH /api/v1/fleet/fleets/1
{
"host_ids": [3, 6, 7, 8, 9, 20, 32, 44]
}Status: 409
Returned when the requested name only differs from another fleet's name by letter case. Renaming a fleet to a case variant of its own current name (e.g., ABC → abc) succeeds.
{
"message": "Conflict",
"errors": [
{
"name": "base",
"reason": "A fleet named \"Workstations\" already exists. Fleet names must differ by more than letter case."
}
]
}Status: 200
{
"team": {
"name": "Workstations",
"id": 1,
"user_count": 4,
"host_count": 8,
"agent_options": {
"config": {
"options": {
"pack_delimiter": "/",
"logger_tls_period": 10,
"distributed_plugin": "tls",
"disable_distributed": false,
"logger_tls_endpoint": "/api/v1/osquery/log",
"distributed_interval": 10,
"distributed_tls_max_attempts": 3
},
"decorators": {
"load": [
"SELECT uuid AS host_uuid FROM system_info;",
"SELECT hostname AS hostname FROM system_info;"
]
}
},
"overrides": {},
"command_line_flags": {}
},
"webhook_settings": {
"failing_policies_webhook": {
"enable_failing_policies_webhook": false,
"destination_url": "",
"policy_ids": null,
"host_batch_size": 0
},
"host_activities_webhook": null
}
}
}| Name | Type | Description |
|---|---|---|
| failing_policies_webhook | array | See webhook_settings.failing_policies_webhook. |
| host_status_webhook | array | See webhook_settings.host_status_webhook. |
| host_activities_webhook | object | See webhook_settings.host_activities_webhook. |
webhook_settings.failing_policies_webhook is an object with the following structure:
| Name | Type | Description |
|---|---|---|
| enable_failing_policies_webhook | boolean | Whether or not the failing policies webhook is enabled. |
| destination_url | string | The URL to deliver the webhook requests to. |
| policy_ids | array | List of policy IDs to enable failing policies webhook. |
| host_batch_size | integer | Maximum number of hosts to batch on failing policy webhook requests. The default, 0, means no batching (all hosts failing a policy are sent on one request). |
webhook_settings.host_status_webhook is an object with the following structure:
| Name | Type | Description |
|---|---|---|
| enable_host_status_webhook | boolean | Whether or not the host status webhook is enabled. |
| destination_url | string | The URL to deliver the webhook request to. |
| host_percentage | integer | The minimum percentage of hosts that must fail to check in to Fleet in order to trigger the webhook request. |
| days_count | integer | body |
webhook_settings.host_activities_webhook is an object with the following structure:
| Name | Type | Description |
|---|---|---|
| enable_host_activities_webhook | boolean | Whether or not the host activities webhook is enabled. When enabled, Fleet sends a webhook request every time an activity linked to one of this fleet's hosts is created. The webhook payload has the same format as the global activities webhook. MDM command results (shown via Show MDM commands on the host details page) are not activities and don't trigger this webhook yet. See Host audit logs for more information. |
| destination_url | string | The URL to deliver the webhook requests to. |
Omitting host_activities_webhook from a webhook_settings update leaves the stored value unchanged. To turn the webhook off, send the object with enable_host_activities_webhook: false.
{
"webhook_settings": {
"failing_policies_webhook":{
"enable_failing_policies_webhook": true,
"destination_url": "https://server.com",
"policy_ids": [1, 2, 3],
"host_batch_size": 1000
},
"host_status_webhook": {
"enable_host_status_webhook": true,
"destination_url": "https://server.com",
"host_percentage": 5,
"days_count": 7
},
"host_activities_webhook": {
"enable_host_activities_webhook": true,
"destination_url": "https://server.com"
}
}
}| Name | Type | Description |
|---|---|---|
| jira | array | See integrations.jira. |
| zendesk | array | See integrations.zendesk. |
| google_calendar | array | See integrations.google_calendar. |
| conditional_access_enabled | boolean | Available in Fleet Premium. Whether to block third party app sign-ins on hosts failing policies. Must have Microsoft Entra or Okta connected and configured in global config. |
| certificates_idp_introspection_urls | array | Available in Fleet Premium. Allowlist of OAuth 2.0 token introspection URLs that the Request certificate endpoint accepts in idp_oauth_url. Each entry must be an absolute https URL without embedded credentials and is matched exactly. While empty, requests that include IdP credentials are rejected. When it has entries, idp_oauth_url, idp_token, and idp_client_id are required on every certificate request. |
| certificates_idp_client_ids | array | Available in Fleet Premium. Optional allowlist of OAuth client IDs that the Request certificate endpoint accepts in idp_client_id. When it has entries, idp_client_id must match one of them. Requires certificates_idp_introspection_urls to have entries. |
| certificates_disable_host_end_user_binding | boolean | By default, a Request certificate call authenticated with an HTTP signature must carry a CSR whose email and UPN match the end user Fleet has recorded for that host (the IdP username from SCIM or end user authentication, compared case-insensitively), and hosts with no recorded end user are rejected. Set to true to turn this check off. Requests authenticated with an API token are unaffected. Defaults to false. |
integrations.jira is an array of objects with the following structure:
| Name | Type | Description |
|---|---|---|
| url | string | The URL of the Jira server to use. |
| project_key | string | The project key of the Jira integration to use. Jira tickets will be created in this project. |
| enable_failing_policies | boolean | Whether or not that Jira integration is enabled for failing policies. Only one failing policy automation can be enabled at a given time (enable_failing_policies_webhook and enable_failing_policies). |
integrations.zendesk is an array of objects with the following structure:
| Name | Type | Description |
|---|---|---|
| url | string | The URL of the Zendesk server to use. |
| group_id | integer | The Zendesk group ID to use. Zendesk tickets will be created in this group. |
| enable_failing_policies | boolean | Whether or not that Zendesk integration is enabled for failing policies. Only one failing policy automation can be enabled at a given time (enable_failing_policies_webhook and enable_failing_policies). |
integrations.google_calendar is an array of objects with the following structure:
| Name | Type | Description |
|---|---|---|
| enable_calendar_events | boolean | Whether or not calendar events are enabled for this fleet. |
| webhook_url | string | The URL to send a request to during calendar events, to trigger auto-remediation. |
{
"integrations": {
"conditional_access_enabled": true,
"jira": [
{
"enable_software_vulnerabilities": false,
"enable_failing_policies": true,
"url": "https://jiraserver.com",
"username": "some_user",
"api_token": "<TOKEN>",
"project_key": "jira_project",
}
],
"zendesk": [],
"google_calendar": [
{
"domain": "https://domain.com",
"api_key_json": "<API KEY JSON>"
}
]
}
}| Name | Type | Description |
|---|---|---|
| windows_require_bitlocker_pin | boolean | Deprecated at this level. Use windows_settings.require_bitlocker_pin instead. |
| macos_updates | object | See mdm.macos_updates. |
| ios_updates | object | See mdm.ios_updates. |
| ipados_updates | object | See mdm.ipados_updates. |
| windows_updates | object | See mdm.windows_updates. |
| macos_settings | object | See mdm.macos_settings. |
| apple_settings | object | See mdm.apple_settings. |
| windows_settings | object | See mdm.windows_settings. |
| linux_settings | object | See mdm.linux_settings. |
| setup_experience | object | See mdm.setup_experience. |
mdm.macos_updates is an object with the following structure:
| Name | Type | Description |
|---|---|---|
| minimum_version | string | Hosts that belong to this fleet and have MDM turned on will be prompted to update when their OS is below this version. |
| deadline | string | Hosts that belong to this fleet and have MDM turned on will be forced to update their OS after this deadline (7PM local time). |
| update_new_hosts | string | macOS hosts that automatically enroll (ADE) are updated to Apple's latest version during macOS Setup Assistant. For backwards compatibility, if not specified, and deadline and minimum_version are set, update_new_hosts is set to true. Otherwise, update_new_hosts defaults to false. |
mdm.ios_updates is an object with the following structure:
| Name | Type | Description |
|---|---|---|
| minimum_version | string | Hosts that belong to this fleet will be prompted to update when their OS is below this version. |
| deadline | string | Hosts that belong to this fleet will be forced to update their OS after this deadline (7PM local time). |
mdm.ipados_updates is an object with the following structure:
| Name | Type | Description |
|---|---|---|
| minimum_version | string | Hosts that belong to this fleet will be prompted to update when their OS is below this version. |
| deadline | string | Hosts that belong to this fleet will be forced to update their OS after this deadline (7PM local time). |
mdm.windows_updates is an object with the following structure:
| Name | Type | Description |
|---|---|---|
| deadline_days | integer | Hosts that belong to this fleet and have MDM turned on will have this number of days before updates are installed on Windows. |
| grace_period_days | integer | Hosts that belong to this fleet and have MDM turned on will have this number of days before Windows restarts to install updates. |
mdm.macos_settings is an object with the following structure:
| Name | Type | Description |
|---|---|---|
| custom_settings | array | Only intended to be used by Fleet's YAML. To add macOS configuration profiles using Fleet's API, use the Create configuration profile endpoint instead. |
mdm.apple_settings is an object with the following structure:
| Name | Type | Description |
|---|---|---|
| custom_settings | array | Only intended to be used by Fleet's YAML. To add macOS configuration profiles using Fleet's API, use the Create configuration profile endpoint instead. |
| managed_local_account_settings | object | Settings for the managed local account. |
| managed_local_account_settings.enabled | boolean | Whether to create the managed local account (default: false). |
| end_user_local_account_type | string | The end user account type. Requires managed_local_account_settings.enabled to be true. Options: "admin", "standard", "none" (default: "admin"). |
| enable_disk_encryption | boolean | Hosts that belong to this fleet will have disk encryption enabled if set to true. |
| enable_escrow_disk_encryption_key | boolean | Specifies whether Fleet stores the disk encryption recovery key without prompting users to turn on disk encryption. Set to true when a third-party tool handles enforcement. Supported for macOS and Linux hosts. |
mdm.windows_settings is an object with the following structure:
| Name | Type | Description |
|---|---|---|
| custom_settings | array | Only intended to be used by Fleet's YAML. To add Windows configuration profiles using Fleet's API, use the Create configuration profile endpoint instead. |
| enable_managed_local_account | boolean | Whether to create the managed local account (default: false). |
| enable_disk_encryption | boolean | Hosts that belong to this fleet will have disk encryption enabled if set to true. |
| require_bitlocker_pin | boolean | End users on Windows hosts that are "Unassigned" will be required to set a BitLocker PIN if set to true. windows_settings.enable_disk_encryption must be set to true. When the PIN is set, it's required to unlock Windows host during startup. |
mdm.linux_settings is an object with the following structure:
| Name | Type | Description |
|---|---|---|
| enable_escrow_disk_encryption_key | boolean | Specifies whether Fleet stores the disk encryption recovery key without prompting users to turn on disk encryption. Set to true when a third-party tool handles enforcement. Supported for macOS and Linux hosts. |
mdm.setup_experience is an object with the following structure:
| Name | Type | Description |
|---|---|---|
| enable_end_user_authentication | boolean | If set to true, IdP authentication will be required during automatic MDM enrollment of new macOS hosts. Settings for your IdP provider must also be configured. |
| lock_end_user_info | boolean | If set to true, end user can't edit the local account's Account Name and Full Name in macOS Setup Assistant. These fields will be locked to values from your IdP. (Default: true) |
| enable_managed_local_account | boolean | Available in Fleet Premium. During Setup experience, a managed local account will be created on eligible hosts if set to true. |
| end_user_local_account_type | string | body |
{
"mdm": {
"macos_updates": {
"minimum_version": "12.3.1",
"deadline": "2025-04-01",
"update_new_hosts": true
},
"ios_updates": {
"minimum_version": "18.3.1",
"deadline": "2025-04-01"
},
"windows_updates": {
"deadline_days": 5,
"grace_period_days": 1
},
"apple_settings": {
"configuration_profiles": [
{
"path": "path/to/profile1.mobileconfig",
"labels": ["Label 1", "Label 2"],
"self_service": true
},
{
"path": "path/to/profile2.json",
"labels": ["Label 3", "Label 4"]
},
],
"enable_disk_encryption": true,
"enable_escrow_disk_encryption_key": true,
"assets": [
{
"path": "path/to/assets/asset.json"
}
],
"managed_local_account_settings": {
"enabled": true
}
},
"windows_settings": {
"custom_settings": [
{
"path": "path/to/profile3.xml",
"labels": ["Label 1", "Label 2"]
}
],
"configuration_profiles": [
{
"path": "path/to/profile3.xml",
"labels": ["Label 1", "Label 2"]
}
],
"enable_disk_encryption": true,
"require_bitlocker_pin": true,
"enable_managed_local_account": true
},
"linux_settings": {
"enable_escrow_disk_encryption_key": true
},
"setup_experience": {
"enable_end_user_authentication": false
}
}
}| Name | Type | Description |
|---|---|---|
| host_expiry_enabled | boolean | When enabled, allows automatic cleanup of hosts that have not communicated with Fleet in some number of days. When disabled, defaults to the global setting. |
| host_expiry_window | integer | If a host has not communicated with Fleet in the specified number of days, it will be removed. |
{
"host_expiry_settings": {
"host_expiry_enabled": true,
"host_expiry_window": 7
}
}| Name | Type | Description |
|---|---|---|
| enable_software_inventory | boolean | Whether to enable software inventory for this fleet. If this key is omitted, the previously-configured value does not change. |
| historical_data | object | See features.historical_data. |
features.historical_data is an object with the following structure:
| Name | Type | Description |
|---|---|---|
| uptime | boolean | Whether to collect host-uptime samples for hosts in this fleet. (Default: true) |
| vulnerabilities | boolean | Whether to collect CVE samples for hosts in this fleet. (Default: true) |
Sub-keys mirror the global features.historical_data shape and default to
true. A dataset is collected for a host in this fleet only when both the
global sub-key AND this fleet's sub-key are true. Sub-keys omitted from
the PATCH body retain their current stored value.
{
"features": {
"historical_data": {
"vulnerabilities": false
}
}
}{
"features": {
"historical_data": {
"vulnerabilities": false
}
}
}Available in Fleet Premium
PATCH /api/v1/fleet/fleets/:id/users
This also applies to DELETE /api/v1/fleet/fleets/:id/users (remove users from fleet), which returns the same fleet object shape.
mdm.apple_settings.configuration_profiles, mdm.windows_settings.configuration_profiles, scripts, and mdm.setup_experience only include the configuration profiles, scripts, and setup experience settings applied using Fleet's YAML. To list profiles, scripts, or setup experience settings added in the UI or API, use the List configuration profiles, List scripts, or GET endpoints from Setup experience instead.
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The desired fleet's ID. |
| users | string | body | Array of users to add. |
| id | integer | body | The id of the user. |
| role | string | body | The fleet role that the user will be granted. Options are: "admin", "maintainer", "observer", "observer_plus", and "gitops". |
PATCH /api/v1/fleet/fleets/1/users
{
"users": [
{
"id": 1,
"role": "admin"
},
{
"id": 17,
"role": "observer"
}
]
}Status: 200
{
"team": {
"name": "Workstations",
"id": 1,
"user_count": 2,
"host_count": 0,
"agent_options": {
"config": {
"options": {
"pack_delimiter": "/",
"logger_tls_period": 10,
"distributed_plugin": "tls",
"disable_distributed": false,
"logger_tls_endpoint": "/api/v1/osquery/log",
"distributed_interval": 10,
"distributed_tls_max_attempts": 3
},
"decorators": {
"load": [
"SELECT uuid AS host_uuid FROM system_info;",
"SELECT hostname AS hostname FROM system_info;"
]
}
},
"overrides": {},
"command_line_flags": {}
},
"webhook_settings": {
"failing_policies_webhook": {
"enable_failing_policies_webhook": false,
"destination_url": "",
"policy_ids": null,
"host_batch_size": 0
}
},
"mdm": {
"macos_updates": {
"minimum_version": "12.3.1",
"deadline": "2022-01-01",
"update_new_hosts": true
},
"windows_updates": {
"deadline_days": 5,
"grace_period_days": 1
},
"macos_settings": {
"custom_settings": [
{
"path": "path/to/profile1.mobileconfig",
"labels": ["Label 1", "Label 2"]
}
]
},
"apple_settings": {
"configuration_profiles": [
{
"path": "path/to/profile1.mobileconfig",
"labels": ["Label 1", "Label 2"],
"self_service": true
},
{
"path": "path/to/declaration.json",
"labels": ["Label 1", "Label 2"]
},
{
"path": "path/to/assets/asset.json"
}
],
"enable_disk_encryption": true,
"enable_escrow_disk_encryption_key": true,
"assets": [
{
"path": "path/to/assets/asset.json"
}
],
"managed_local_account_settings": {
"enabled": true
}
},
"windows_settings": {
"custom_settings": [
{
"path": "path/to/profile2.xml",
"labels": ["Label 3", "Label 4"]
}
],
"configuration_profiles": [
{
"path": "path/to/profile2.xml",
"labels": ["Label 3", "Label 4"]
}
],
"enable_disk_encryption": true,
"require_bitlocker_pin": false,
"enable_managed_local_account": true
},
"linux_settings": {
"enable_escrow_disk_encryption_key": true
},
"macos_setup": {
"bootstrap_package": "",
"enable_end_user_authentication": false,
"macos_setup_assistant": "path/to/config.json"
},
"setup_experience": {
"bootstrap_package": "",
"enable_end_user_authentication": false,
"apple_setup_assistant": "path/to/config.json"
}
},
"users": [
{
"created_at": "0001-01-01T00:00:00Z",
"updated_at": "0001-01-01T00:00:00Z",
"id": 1,
"name": "Example User1",
"email": "[email protected]",
"force_password_reset": false,
"gravatar_url": "",
"sso_enabled": false,
"global_role": null,
"api_only": false,
"teams": null,
"role": "admin"
},
{
"created_at": "0001-01-01T00:00:00Z",
"updated_at": "0001-01-01T00:00:00Z",
"id": 17,
"name": "Example User2",
"email": "[email protected]",
"force_password_reset": false,
"gravatar_url": "",
"sso_enabled": false,
"global_role": null,
"api_only": false,
"teams": null,
"role": "observer"
}
]
}
}Available in Fleet Premium
POST /api/v1/fleet/fleets/:id/agent_options
mdm.apple_settings.configuration_profiles, mdm.windows_settings.configuration_profiles, scripts, and mdm.setup_experience only include the configuration profiles, scripts, and setup experience settings applied using Fleet's YAML. To list profiles, scripts, or setup experience settings added in the UI or API, use the List configuration profiles, List scripts, or GET endpoints from Setup experience instead.
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The desired fleet's ID. |
| force | boolean | query | Force apply the options even if there are validation errors. |
| dry_run | boolean | query | Validate the options and return any validation errors, but do not apply the changes. |
| JSON data | object | body | The JSON to use as agent options for this fleet. See Agent options for details. |
POST /api/v1/fleet/fleets/1/agent_options
{
"config": {
"options": {
"pack_delimiter": "/",
"logger_tls_period": 20,
"distributed_plugin": "tls",
"disable_distributed": false,
"logger_tls_endpoint": "/api/v1/osquery/log",
"distributed_interval": 60,
"distributed_tls_max_attempts": 3
},
"decorators": {
"load": [
"SELECT uuid AS host_uuid FROM system_info;",
"SELECT hostname AS hostname FROM system_info;"
]
}
},
"overrides": {},
"command_line_flags": {}
}Status: 200
{
"team": {
"name": "Workstations",
"id": 1,
"user_count": 4,
"host_count": 8,
"agent_options": {
"config": {
"options": {
"pack_delimiter": "/",
"logger_tls_period": 20,
"distributed_plugin": "tls",
"disable_distributed": false,
"logger_tls_endpoint": "/api/v1/osquery/log",
"distributed_interval": 60,
"distributed_tls_max_attempts": 3
},
"decorators": {
"load": [
"SELECT uuid AS host_uuid FROM system_info;",
"SELECT hostname AS hostname FROM system_info;"
]
}
},
"overrides": {},
"command_line_flags": {}
},
"webhook_settings": {
"failing_policies_webhook": {
"enable_failing_policies_webhook": false,
"destination_url": "",
"policy_ids": null,
"host_batch_size": 0
}
}
}
}Available in Fleet Premium
DELETE /api/v1/fleet/fleets/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The desired fleet's ID. |
DELETE /api/v1/fleet/fleets/1
Status: 200
Transforms a host name into a host id. For example, the Fleet UI uses this endpoint when sending live reports to a set of hosts.
POST /api/v1/fleet/translate
| Name | Type | In | Description |
|---|---|---|---|
| array | array | body | Required list of items to translate. |
POST /api/v1/fleet/translate
{
"list": [
{
"type": "user",
"payload": {
"identifier": "[email protected]"
}
},
{
"type": "label",
"payload": {
"identifier": "labelA"
}
},
{
"type": "team",
"payload": {
"identifier": "team1"
}
},
{
"type": "host",
"payload": {
"identifier": "host-ABC"
}
}
]
}Status: 200
{
"list": [
{
"type": "user",
"payload": {
"identifier": "[email protected]",
"id": 32
}
},
{
"type": "label",
"payload": {
"identifier": "labelA",
"id": 1
}
},
{
"type": "team",
"payload": {
"identifier": "team1",
"id": 22
}
},
{
"type": "host",
"payload": {
"identifier": "host-ABC",
"id": 45
}
}
]
}The Fleet server exposes API endpoints that handles common user management operations, including managing emailed invites to new users. All of these endpoints require prior authentication, so you'll need to log in before calling any of the endpoints documented below.
Returns a list of all enabled users
GET /api/v1/fleet/users
| Name | Type | In | Description |
|---|---|---|---|
| query | string | query | Search query keywords. Searchable fields include name and email. |
| order_key | string | query | What to order results by. Can be any column in the users table. |
| order_direction | string | query | Requires order_key. The direction of the order given the order key. Options include "asc" and "desc". Default is "asc". |
| page | integer | query | Page number of the results to fetch. |
| query | string | query | Search query keywords. Searchable fields include name and email. |
| per_page | integer | query | Results per page. |
| fleet_id | integer | query | Available in Fleet Premium. Filters the users to only include users in the specified fleet. |
| after | string | query | The value to get results after. This needs order_key defined, as that's the column that would be used. |
GET /api/v1/fleet/users
None.
Status: 200
{
"users": [
{
"created_at": "2020-12-10T03:52:53Z",
"updated_at": "2020-12-10T03:52:53Z",
"id": 1,
"name": "Jane Doe",
"email": "[email protected]",
"force_password_reset": false,
"gravatar_url": "",
"sso_enabled": false,
"mfa_enabled": false,
"global_role": null,
"api_only": false,
"last_login_at": "2020-12-10T04:15:20Z",
"last_activity_at": "2020-12-10T04:32:41Z",
"status": "active",
"api_endpoints": [],
"fleets": [
{
"id": 1,
"created_at": "0001-01-01T00:00:00Z",
"name": "workstations",
"description": "",
"role": "admin"
}
]
}
]
}Status: 401 Authentication Failed
{
"message": "Authentication Failed",
"errors": [
{
"name": "base",
"reason": "Authentication failed"
}
]
}Creates a user account without requiring an invitation, the user is enabled immediately. By default, the user will be forced to reset its password upon first login.
POST /api/v1/fleet/users/admin
| Name | Type | In | Description |
|---|---|---|---|
| string | body | Required. The user's email address. | |
| name | string | body | Required. The user's full name or nickname. |
| password | string | body | The user's password (required for API only and non-SSO users). |
| sso_enabled | boolean | body | Whether or not SSO is enabled for the user. |
| mfa_enabled | boolean | body | Available in Fleet Premium. Whether or not the user must click a magic link emailed to them to log in, after they successfully enter their username and password. Incompatible with SSO and API-only users. |
| api_only | boolean | body | User is an "API-only" user (cannot use web UI) if true. |
| global_role | string | body | The role assigned to the user. If global_role is specified, fleets cannot be specified. For more information, see manage access. |
| admin_forced_password_reset | boolean | body | Sets whether the user will be forced to reset its password upon first login (default=true) |
| fleets | array | body | Available in Fleet Premium. The fleets and respective roles assigned to the user. Should contain an array of objects in which each object includes the fleet's id and the user's role on each fleet. If fleets is specified, global_role cannot be specified. For more information, see manage access. |
POST /api/v1/fleet/users/admin
{
"name": "Jane Doe",
"email": "[email protected]",
"password": "test-123",
"api_only": true,
"fleets": [
{
"id": 2,
"role": "observer"
},
{
"id": 3,
"role": "maintainer"
}
]
}Status: 200
{
"user": {
"created_at": "0001-01-01T00:00:00Z",
"updated_at": "0001-01-01T00:00:00Z",
"id": 5,
"name": "Jane Doe",
"email": "[email protected]",
"enabled": true,
"force_password_reset": false,
"gravatar_url": "",
"sso_enabled": false,
"mfa_enabled": false,
"api_only": true,
"global_role": null,
"fleets": [
{
"id": 2,
"role": "observer"
},
{
"id": 3,
"role": "maintainer"
}
]
},
"token": "{API key}"
}Note: The new user's
token(API key) is only included in the response after creating an api-only user (api_only: true).
Status: 404 Resource Not Found
{
"message": "Resource Not Found",
"errors": [
{
"name": "base",
"reason": "User with id=1 was not found in the datastore"
}
]
}Creates a user account after an invited user provides registration information and submits the form.
POST /api/v1/fleet/users
| Name | Type | In | Description |
|---|---|---|---|
| string | body | Required. The email address of the user. | |
| invite_token | string | body | Required. Token provided to the user in the invitation email. |
| name | string | body | Required. The name of the user. |
| password | string | body | The password chosen by the user (if not SSO user). |
| password_confirmation | string | body | Confirmation of the password chosen by the user. |
POST /api/v1/fleet/users
{
"email": "[email protected]",
"invite_token": "SjdReDNuZW5jd3dCbTJtQTQ5WjJTc2txWWlEcGpiM3c=",
"name": "janedoe",
"password": "test-123",
"password_confirmation": "test-123"
}Status: 200
{
"user": {
"created_at": "0001-01-01T00:00:00Z",
"updated_at": "0001-01-01T00:00:00Z",
"id": 2,
"name": "janedoe",
"email": "[email protected]",
"enabled": true,
"force_password_reset": false,
"gravatar_url": "",
"sso_enabled": false,
"mfa_enabled": false,
"global_role": "admin",
"fleets": []
}
}Status: 401 Authentication Failed
{
"message": "Authentication Failed",
"errors": [
{
"name": "base",
"reason": "Authentication failed"
}
]
}Status: 404 Resource Not Found
{
"message": "Resource Not Found",
"errors": [
{
"name": "base",
"reason": "Invite with token SjdReDNuZW5jd3dCbTJtQTQ5WjJTc2txWWlEcGpiM3c= was not found in the datastore"
}
]
}Status: 422 Validation Failed
The same error will be returned whenever one of the required parameters fails the validation.
{
"message": "Validation Failed",
"errors": [
{
"name": "name",
"reason": "cannot be empty"
}
]
}Returns all information about a specific user.
GET /api/v1/fleet/users/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The user's id. |
GET /api/v1/fleet/users/2
Status: 200
{
"user": {
"created_at": "2020-12-10T05:20:25Z",
"updated_at": "2020-12-10T05:24:27Z",
"id": 2,
"name": "Jane Doe",
"email": "[email protected]",
"force_password_reset": false,
"gravatar_url": "",
"sso_enabled": false,
"mfa_enabled": false,
"global_role": "admin",
"api_only": false,
"last_login_at": "2020-12-10T05:24:27Z",
"last_activity_at": "2020-12-10T05:31:03Z",
"status": "active",
"fleets": []
}
}Status: 404 Resource Not Found
{
"message": "Resource Not Found",
"errors": [
{
"name": "base",
"reason": "User with id=5 was not found in the datastore"
}
]
}PATCH /api/v1/fleet/users/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The user's id. |
| name | string | body | The user's name. |
| position | string | body | The user's position. |
| string | body | The user's email. | |
| sso_enabled | boolean | body | Whether or not SSO is enabled for the user. |
| mfa_enabled | boolean | body | Available in Fleet Premium. Whether or not the user must click a magic link emailed to them to log in, after they successfully enter their username and password. Incompatible with SSO and API-only users. |
| api_only | boolean | body | User is an "API-only" user (cannot use web UI) if true. |
| password | string | body | The user's current password, required to change the user's own email or password (not required for an admin to modify another user). |
| new_password | string | body | The user's new password. |
| global_role | string | body | The role assigned to the user. If global_role is specified, fleets cannot be specified. |
| fleets | array | body | Available in Fleet Premium. The fleets and respective roles assigned to the user. Should contain an array of objects in which each object includes the fleet's id and the user's role on each fleet. In Fleet 4.0.0, 3 user roles were introduced (admin, maintainer, and observer). If fleets is specified, global_role cannot be specified. |
PATCH /api/v1/fleet/users/2
{
"name": "Jane Doe",
"global_role": "admin"
}Status: 200
{
"user": {
"created_at": "2021-02-03T16:11:06Z",
"updated_at": "2021-02-03T16:11:06Z",
"id": 2,
"name": "Jane Doe",
"email": "[email protected]",
"global_role": "admin",
"force_password_reset": false,
"gravatar_url": "",
"sso_enabled": false,
"mfa_enabled": false,
"api_only": false,
"fleets": []
}
}PATCH /api/v1/fleet/users/2
{
"fleets": [
{
"id": 1,
"role": "observer"
},
{
"id": 2,
"role": "maintainer"
}
]
}Status: 200
{
"user": {
"created_at": "2021-02-03T16:11:06Z",
"updated_at": "2021-02-03T16:11:06Z",
"id": 2,
"name": "Jane Doe",
"email": "[email protected]",
"enabled": true,
"force_password_reset": false,
"gravatar_url": "",
"sso_enabled": false,
"mfa_enabled": false,
"global_role": "admin",
"fleets": [
{
"id": 2,
"role": "observer"
},
{
"id": 3,
"role": "maintainer"
}
]
}
}Delete the specified user from Fleet.
DELETE /api/v1/fleet/users/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The user's id. |
DELETE /api/v1/fleet/users/3
Status: 200
The selected user is logged out of Fleet and required to reset their password during the next attempt to log in. This also revokes all active Fleet API tokens for this user. Returns the user object.
POST /api/v1/fleet/users/:id/require_password_reset
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The user's id. |
| require | boolean | body | Whether or not the user is required to reset their password during the next attempt to log in. |
POST /api/v1/fleet/users/123/require_password_reset
{
"require": true
}Status: 200
{
"user": {
"created_at": "2021-02-23T22:23:34Z",
"updated_at": "2021-02-23T22:28:52Z",
"id": 2,
"name": "Jane Doe",
"email": "[email protected]",
"force_password_reset": true,
"gravatar_url": "",
"mfa_enabled": false,
"sso_enabled": false,
"global_role": "observer",
"fleets": []
}
}Returns a list of the user's sessions in Fleet.
GET /api/v1/fleet/users/:id/sessions
None.
GET /api/v1/fleet/users/1/sessions
Status: 200
{
"sessions": [
{
"session_id": 2,
"user_id": 1,
"created_at": "2021-02-03T16:12:50Z"
},
{
"session_id": 3,
"user_id": 1,
"created_at": "2021-02-09T23:40:23Z"
},
{
"session_id": 6,
"user_id": 1,
"created_at": "2021-02-23T22:23:58Z"
}
]
}Deletes the selected user's sessions in Fleet. Also deletes the user's API token.
DELETE /api/v1/fleet/users/:id/sessions
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The ID of the desired user. |
DELETE /api/v1/fleet/users/1/sessions
Status: 200
POST /api/v1/fleet/invites
| Name | Type | In | Description |
|---|---|---|---|
| global_role | string | body | Role the user will be granted. Either a global role is needed, or a fleet role. |
| string | body | Required. The email of the invited user. This email will receive the invitation link. | |
| name | string | body | Required. The name of the invited user. |
| sso_enabled | boolean | body | Required. Whether or not SSO will be enabled for the invited user. |
| mfa_enabled | boolean | body | Available in Fleet Premium. Whether or not the invited user must click a magic link emailed to them to log in, after they successfully enter their username and password. Users can have SSO or MFA enabled, but not both. |
| fleets | array | body | Available in Fleet Premium. A list of the fleets the user is a member of. Each item includes the fleet's ID and the user's role in the specified fleet. |
POST /api/v1/fleet/invites
{
"email": "[email protected]",
"name": "John",
"sso_enabled": false,
"mfa_enabled": false,
"global_role": null,
"fleets": [
{
"id": 2,
"role": "observer"
},
{
"id": 3,
"role": "maintainer"
}
]
}Status: 200
{
"invite": {
"created_at": "0001-01-01T00:00:00Z",
"updated_at": "0001-01-01T00:00:00Z",
"id": 3,
"invited_by": 1,
"email": "[email protected]",
"name": "John",
"sso_enabled": false,
"mfa_enabled": false,
"fleets": [
{
"id": 10,
"created_at": "0001-01-01T00:00:00Z",
"name": "Apples",
"description": "",
"agent_options": null,
"user_count": 0,
"host_count": 0,
"role": "observer"
},
{
"id": 14,
"created_at": "0001-01-01T00:00:00Z",
"name": "Best of the Best Engineering",
"description": "",
"agent_options": null,
"user_count": 0,
"host_count": 0,
"role": "maintainer"
}
]
}
}Returns a list of the active invitations in Fleet.
GET /api/v1/fleet/invites
| Name | Type | In | Description |
|---|---|---|---|
| order_key | string | query | What to order results by. Can be any column in the invites table. |
| order_direction | string | query | Requires order_key. The direction of the order given the order key. Options include "asc" and "desc". Default is "asc". |
| query | string | query | Search query keywords. Searchable fields include name and email. |
| page | integer | query | Page number of the results to fetch. |
| per_page | integer | query | Results per page. |
| after | string | query | The value to get results after. This needs order_key defined, as that's the column that would be used. |
GET /api/v1/fleet/invites
Status: 200
{
"invites": [
{
"created_at": "0001-01-01T00:00:00Z",
"updated_at": "0001-01-01T00:00:00Z",
"id": 3,
"email": "[email protected]",
"name": "John",
"sso_enabled": false,
"mfa_enabled": false,
"global_role": "admin",
"fleets": []
},
{
"created_at": "0001-01-01T00:00:00Z",
"updated_at": "0001-01-01T00:00:00Z",
"id": 4,
"email": "[email protected]",
"name": "Bob",
"sso_enabled": false,
"mfa_enabled": false,
"global_role": "admin",
"fleets": []
}
]
}Delete the specified invite from Fleet.
DELETE /api/v1/fleet/invites/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The user's id. |
DELETE /api/v1/fleet/invites/123
Status: 200
Verify the specified invite.
GET /api/v1/fleet/invites/:token
| Name | Type | In | Description |
|---|---|---|---|
| token | string | path | Required. The user's invite token. |
GET /api/v1/fleet/invites/abcdef012456789
Status: 200
{
"invite": {
"created_at": "2021-01-15T00:58:33Z",
"updated_at": "2021-01-15T00:58:33Z",
"id": 4,
"email": "[email protected]",
"name": "Steve",
"sso_enabled": false,
"mfa_enabled": false,
"global_role": "admin",
"fleets": []
}
}Status: 404
{
"message": "Resource Not Found",
"errors": [
{
"name": "base",
"reason": "Invite with token <token> was not found in the datastore"
}
]
}PATCH /api/v1/fleet/invites/:id
| Name | Type | In | Description |
|---|---|---|---|
| global_role | string | body | Role the user will be granted. Either a global role is needed, or a fleet role. |
| string | body | The email of the invited user. Updates on the email won't resend the invitation. | |
| name | string | body | The name of the invited user. |
| sso_enabled | boolean | body | Whether or not SSO will be enabled for the invited user. |
| mfa_enabled | boolean | body | Available in Fleet Premium. Whether or not the invited user must click a magic link emailed to them to log in, after they successfully enter their username and password. Users can have SSO or MFA enabled, but not both. |
| fleets | array | body | Available in Fleet Premium. A list of the fleets the user is a member of. Each item includes the fleet's ID and the user's role in the specified fleet. |
PATCH /api/v1/fleet/invites/123
{
"email": "[email protected]",
"name": "John",
"sso_enabled": false,
"mfa_enabled": false,
"global_role": null,
"fleets": [
{
"id": 2,
"role": "observer"
},
{
"id": 3,
"role": "maintainer"
}
]
}Status: 200
{
"invite": {
"created_at": "0001-01-01T00:00:00Z",
"updated_at": "0001-01-01T00:00:00Z",
"id": 3,
"invited_by": 1,
"email": "[email protected]",
"name": "John",
"sso_enabled": false,
"mfa_enabled": false,
"fleets": [
{
"id": 10,
"created_at": "0001-01-01T00:00:00Z",
"name": "Apples",
"description": "",
"agent_options": null,
"user_count": 0,
"host_count": 0,
"role": "observer"
},
{
"id": 14,
"created_at": "0001-01-01T00:00:00Z",
"name": "Best of the Best Engineering",
"description": "",
"agent_options": null,
"user_count": 0,
"host_count": 0,
"role": "maintainer"
}
]
}
}Creates an API-only user that does not have access to the UI.
POST /api/v1/fleet/users/api_only
| Name | Type | In | Description |
|---|---|---|---|
| name | string | body | The display name for the API-only user. |
| global_role | string | body | The role assigned to the user. If global_role is specified, fleets cannot be specified. For more information, see manage access. |
| fleets | array | body | Available in Fleet Premium. The fleets and respective roles assigned to the user. Should contain an array of objects in which each object includes the fleet's id and the user's role on each fleet. If fleets is specified, global_role cannot be specified. For more information, see manage access. |
| api_endpoints | array | body | Available in Fleet Premium. The API endpoints this user will have access to. Should contain an array of objects in which each object includes the endpoint's method and path. For available endpoints, see List API endpoints for API-only user permissions. Omit to give the user access to all API endpoints. An empty array isn't allowed. |
If api_endpoints is specified, these do not grant additional permissions otherwise forbidden by the user's role.
POST /api/v1/fleet/users/api_only
{
"name": "Jane Doe",
"fleets": [
{
"id": 2,
"role": "observer"
},
{
"id": 3,
"role": "maintainer"
}
],
"api_endpoints": [
{
"method": "GET",
"path": "/api/v1/fleet/hosts/:id"
}
]
}Status: 200
{
"user": {
"created_at": "0001-01-01T00:00:00Z",
"updated_at": "0001-01-01T00:00:00Z",
"id": 5,
"name": "Jane Doe",
"email": "[email protected]",
"enabled": true,
"force_password_reset": false,
"gravatar_url": "",
"sso_enabled": false,
"mfa_enabled": false,
"api_only": true,
"global_role": null,
"fleets": [
{
"id": 2,
"role": "observer"
},
{
"id": 3,
"role": "maintainer"
}
],
"api_endpoints": [
{
"method": "GET",
"path": "/api/v1/fleet/hosts/:id"
}
]
},
"token": "{API key}"
}Updates an API-only user's name, role, fleets, or API endpoint access.
PATCH /api/v1/fleet/users/api_only/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The API-only user's ID. |
| name | string | body | The display name for the API-only user. |
| global_role | string | body | The role assigned to the user. If global_role is specified, fleets cannot be specified. For more information, see manage access. |
| fleets | array | body | Available in Fleet Premium. The fleets and respective roles assigned to the user. Should contain an array of objects in which each object includes the fleet's id and the user's role on each fleet. If fleets is specified, global_role cannot be specified. For more information, see manage access. |
| api_endpoints | array | body | Available in Fleet Premium. The API endpoints this user has access to. Should contain an array of objects in which each object includes the endpoint's method and path. For available endpoints, see List API endpoints for API-only user permissions. Set to null to give the user access to all API endpoints. An empty array isn't allowed. |
Only the fields you specify are updated. If api_endpoints is specified, these do not grant additional permissions otherwise forbidden by the user's role.
You can't update your own API-only user.
PATCH /api/v1/fleet/users/api_only/5
{
"api_endpoints": [
{
"method": "GET",
"path": "/api/v1/fleet/hosts/identifier/:identifier"
}
]
}Status: 200
{
"user": {
"created_at": "0001-01-01T00:00:00Z",
"updated_at": "0001-01-01T00:00:00Z",
"id": 5,
"name": "Jane Doe",
"email": "[email protected]",
"enabled": true,
"force_password_reset": false,
"gravatar_url": "",
"sso_enabled": false,
"mfa_enabled": false,
"api_only": true,
"global_role": "observer",
"fleets": [],
"api_endpoints": [
{
"method": "GET",
"path": "/api/v1/fleet/hosts/identifier/:identifier"
}
]
}
}Available in Fleet Premium.
Lists Fleet REST API endpoints that an API-only user can be granted access to.
GET /api/v1/fleet/rest_api
| Name | Type | In | Description |
|---|---|---|---|
| query | string | query | Search query keywords. Searchable fields include display_name and path. |
Searching by path ignores the naming of path parameters that are specified with : , e.g. :id. So searching /hosts/:id/report is the same as searching /hosts/:host_id/report.
Experimental endpoints are excluded from the results, since they are not for use in automated workflows.
GET /api/v1/fleet/rest_api?query=get%20host%20by%20identifier
or
GET /api/v1/fleet/rest_api?query=%2Fapi%2Fv1%2Ffleet%2Fhosts%2Fidentifier%2F%3Ahost_identifier
Status: 200
{
"api_endpoints": [
{
"id": 123,
"display_name": "Get host by identifier",
"method": "GET",
"path": "/api/v1/fleet/hosts/identifier/:identifier",
"deprecated": false
}
],
"meta": {
"has_next_results": true,
"has_previous_results": false
},
"count": 1
}The Fleet server exposes a handful of API endpoints to retrieve debug information about the server itself in order to help troubleshooting. All the following endpoints require prior authentication meaning you must first log in successfully before calling any of the endpoints documented below.
Returns a set of all the errors that happened in the server during the interval of time defined by the logging_error_retention_period configuration.
The server only stores and returns a single instance of each error.
GET /debug/errors
| Name | Type | In | Description |
|---|---|---|---|
| flush | boolean | query | Whether or not clear the errors from Redis after reading them. Default is false |
GET /debug/errors?flush=true
Status: 200
[
{
"count": "3",
"chain": [
{
"message": "Authorization header required"
},
{
"message": "missing FleetError in chain",
"data": {
"timestamp": "2022-06-03T14:16:01-03:00"
},
"stack": [
"github.com/fleetdm/fleet/v4/server/contexts/ctxerr.Handle (ctxerr.go:262)",
"github.com/fleetdm/fleet/v4/server/service.encodeError (transport_error.go:80)",
"github.com/go-kit/kit/transport/http.Server.ServeHTTP (server.go:124)"
]
}
]
}
]Returns information about the current state of the database; valid keys are:
locks: returns transaction locking information.innodb-status: returns InnoDB status information.process-list: returns running processes (queries, etc).GET /debug/db/:key
None.
GET /debug/db/process-list
Status: 200
[
{
"id": 1234,
"user": "fleet",
"host": "10.0.0.5:52014",
"db": "fleet",
"command": "Query",
"time": 0,
"state": "executing",
"info": "SELECT * FROM hosts"
}
]The response shape depends on the requested
key.locksreturns a list of objects withwaiting_trx_id,waiting_thread,waiting_query,blocking_trx_id,blocking_thread, andblocking_query.innodb-statusreturns a JSON string containing the rawSHOW ENGINE INNODB STATUSoutput.process-listreturns a list of objects as shown above.
Returns runtime profiling data of the server in the format expected by go tools pprof. The responses are equivalent to those returned by the Go http/pprof package.
Valid keys are: cmdline, profile, symbol and trace.
GET /debug/pprof/:key
None.
GET /debug/pprof/cmdline
Status: 200
The response body is the same as the Go net/http/pprof package returns for the given key: plain text for cmdline and symbol, and a binary pprof profile for profile and trace.
Returns the current trace sampling settings. Only has effect when tracing is enabled (see logging_tracing_enabled). Requires a global admin.
GET /debug/trace_sampler
None.
GET /debug/trace_sampler
Status: 200
{
"high_volume_ratio": 0.001,
"standard_ratio": 0.02,
"force_full": false,
"updated_at": "2026-06-01T00:00:00Z"
}Updates one or more trace sampling settings at runtime, without restarting the server. Only the fields included in the request body are changed. Each Fleet server polls for changes about once a minute, so an update applies across all servers within roughly a minute. Requires a global admin.
PATCH /debug/trace_sampler
| Name | Type | In | Description |
|---|---|---|---|
| high_volume_ratio | float | body | Sample rate for high-volume agent routes, between 0 and 1 (inclusive). |
| standard_ratio | float | body | Sample rate for standard admin/read routes, between 0 and 1 (inclusive). |
| force_full | boolean | body | When true, sample every route at 100% (except never-sampled infrastructure paths), ignoring the ratios above. |
At least one field is required. Ratios outside the [0, 1] range are rejected.
PATCH /debug/trace_sampler
{
"force_full": true
}Status: 200
{
"high_volume_ratio": 0.001,
"standard_ratio": 0.02,
"force_full": true
}Lists all custom variables that can be used in scripts, configuration profiles, and host name templates prefixed with $FLEET_SECRET_.
GET /api/v1/fleet/custom_variables
| Name | Type | In | Description |
|---|---|---|---|
| page | integer | query | Page number of the results to fetch. |
| per_page | integer | query | Results per page. |
| order_key | string | query | What to order results by. Allowed fields are name, id, and updated_at. |
| order_direction | string | query | Requires order_key. The direction of the order given the order key. Options include "asc" and "desc". Default is "asc". |
| after | string | query | The value to get results after. This needs order_key defined, as that's the column that would be used. |
GET /api/v1/fleet/custom_variables
Status: 200
{
"custom_variables": [
{
"id": 123,
"name": "SOME_API_TOKEN",
"created_at": "2020-11-13T22:57:12Z",
"updated_at": "2020-11-13T22:57:12Z"
}
],
"meta": {
"has_next_results": false,
"has_previous_results": false
},
"count": 1
}
Creates a custom variable that can be used in scripts, configuration profiles, and host name templates prefixed with $FLEET_SECRET_.
POST /api/v1/fleet/custom_variables
| Name | Type | In | Description |
|---|---|---|---|
| name | string | body | Required. The desired variable name, without the FLEET_SECRET_ prefix. |
| value | string | body | Required. The value for the custom variable. |
POST /api/v1/fleet/custom_variables
{
"name": "SOME_API_TOKEN",
"value": "971ef02b93c74ca9b22b694a9251f1d6"
}
Status: 200
{
"id": 123,
"name": "SOME_API_TOKEN"
}Removes a custom variable from Fleet.
DELETE /api/v1/fleet/custom_variables/:id
DELETE /api/v1/fleet/custom_variables/123
Status: 200
Lists all custom host vitals, which can be referenced as $FLEET_HOST_VITAL_<id> in scripts and configuration profiles, or as custom_host_vital_id in a Host vitals label's criteria.
GET /api/v1/fleet/custom_host_vitals
| Name | Type | In | Description |
|---|---|---|---|
| query | string | query | Search query. Matches against the vital's name or its $FLEET_HOST_VITAL_<id> variable. |
| page | integer | query | Page number of the results to fetch. |
| per_page | integer | query | Results per page. |
| order_key | string | query | What to order results by. Allowed fields are name, id, and updated_at. Default is name. |
| order_direction | string | query | Requires order_key. The direction of the order given the order key. Options include "asc" and "desc". Default is "asc". |
| after | string | query | The value to get results after. This needs order_key defined, as that's the column that would be used. |
GET /api/v1/fleet/custom_host_vitals
Status: 200
{
"custom_host_vitals": [
{
"id": 1,
"name": "Asset tag",
"created_at": "2026-06-04T15:22:36Z",
"updated_at": "2026-06-04T15:22:36Z"
}
],
"meta": {
"has_next_results": false,
"has_previous_results": false
},
"count": 1
}Creates a custom host vital.
POST /api/v1/fleet/custom_host_vitals
| Name | Type | In | Description |
|---|---|---|---|
| name | string | body | Required. The vital's name, without the FLEET_HOST_VITAL_ prefix. Must be unique across all custom host vitals (case-insensitive), and 255 characters or fewer. |
Fails with a 409 if a custom host vital with this name already exists.
POST /api/v1/fleet/custom_host_vitals
{
"name": "Asset tag"
}Status: 200
{
"custom_host_vital": {
"id": 1,
"name": "Asset tag",
"created_at": "2026-06-04T15:22:36Z",
"updated_at": "2026-06-04T15:22:36Z"
}
}Renames a custom host vital. The vital's ID, its $FLEET_HOST_VITAL_<id> variable, and any host values already set for it, are unaffected.
PATCH /api/v1/fleet/custom_host_vitals/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The custom host vital's ID. |
| name | string | body | Required. The vital's new name. |
Fails with a 409 if another custom host vital already has this name.
PATCH /api/v1/fleet/custom_host_vitals/1
{
"name": "Asset tag number"
}Status: 200
{
"custom_host_vital": {
"id": 1,
"name": "Asset tag number",
"created_at": "2026-06-04T15:22:36Z",
"updated_at": "2026-06-05T09:03:11Z"
}
}Deletes a custom host vital, along with any per-host values set for it.
DELETE /api/v1/fleet/custom_host_vitals/:id
| Name | Type | In | Description |
|---|---|---|---|
| id | integer | path | Required. The custom host vital's ID. |
Fails with a 409 if the vital is still referenced by a script, configuration profile, or Host vitals label. Remove the reference first.
DELETE /api/v1/fleet/custom_host_vitals/1
Status: 200
Sets a host's value for a custom host vital.
PUT /api/v1/fleet/hosts/:host_id/custom_host_vitals/:id
| Name | Type | In | Description |
|---|---|---|---|
| host_id | integer | path | Required. The host's ID. |
| id | integer | path | Required. The custom host vital's ID. |
| value | string | body | Required. The value to set for this host. |
PUT /api/v1/fleet/hosts/123/custom_host_vitals/1
{
"value": "C02XL0Zerato"
}Status: 200
Replaces all existing custom host vital definitions with the provided list. Existing vitals not included in the list are deleted, which fails if one of them is still referenced by a script, configuration profile, or Host vitals label.
PUT /api/v1/fleet/spec/custom_host_vitals
| Name | Type | In | Description |
|---|---|---|---|
| custom_host_vitals | array | body | The full list of custom host vitals. Each item is an object with a name. |
| dry_run | boolean | body | If true, validates the request without applying changes. Default is false. |
Omitting
custom_host_vitalsfrom the request, or sending an empty list, deletes every existing custom host vital. This is the endpointfleetctl gitopsuses to apply thecustom_host_vitals:key indefault.yml.
PUT /api/v1/fleet/spec/custom_host_vitals
{
"custom_host_vitals": [
{ "name": "Asset tag" },
{ "name": "Function" },
{ "name": "ITAM device ID" }
]
}Status: 200
Fleet returns API errors as a JSON document with the following fields:
message: This field contains the kind of error (bad request error, authorization error, etc.).errors: List of errors with name and reason keys.uuid: Unique identifier for the error. This identifier can be matched to Fleet logs which might contain more information about the cause of the error.Sample of an error when trying to send an empty body on a request that expects a JSON body:
$ curl -k -H "Authorization: Bearer $TOKEN" -H 'Content-Type:application/json' "https://localhost:8080/api/v1/fleet/sso" -d ''Response:
{
"message": "Bad request",
"errors": [
{
"name": "base",
"reason": "Expected JSON Body"
}
],
"uuid": "c0532a64-bec2-4cf9-aa37-96fe47ead814"
}
Back to top
On this page: