إنتقل إلى المحتوى الرئيسي

هذه الصفحة غير متاحة بالعربية بعد، وتُعرض بالإنجليزية.

Dexwize Enrollment Service

Device enrollment, device credentials, collection policy and agent update rings (ADR-0012). Agent endpoints are anonymous at the JWT layer: enrollment is authenticated by an enrollment token plus Ed25519 proof of possession, renewal by a fresh proof, and config by the device credential (Authorization: Device <credential>). Admin endpoints use bearer tokens from identity-service; cross-tenant access returns 404. Release endpoints need PlatformOperate (non-JIT platform-tenant session). Agent distribution: installer packages live in an immutable release bucket; customers list and download them (DevicesRead) through short-lived, audited URLs, devices fetch updates with their credential, and CI publishes with a signed publisher assertion.

Version 1.0.0. Download the OpenAPI specification.

Authentication: bearer, device, publisher.

Operations​

MethodPathSummary
GET/v1/agent-downloads/{ticket}Proxied package bytes behind a short-lived ticket (Proxy delivery)
GET/v1/agent-packagesWhat this tenant installs, per platform (DevicesRead)
POST/v1/agent-packages/{id}/downloadAuthorize one download (DevicesRead); returns a short-lived URL
GET/v1/devicesDevices with agent health
GET/v1/devices/{id}One device with agent health
GET/v1/devices/{id}/primary-userEffective primary user of a device as a pseudonym (PrimaryUsersRead, fleet_reader services only; ADR-0041)
PUT/v1/devices/{id}/primary-userSet one source's primary-user claim (PrimaryUsersWrite, audited without the person)
DELETE/v1/devices/{id}/primary-userRemove one source's primary-user claim (PrimaryUsersWrite, audited)
POST/v1/devices/{id}/revokeRevoke a device; ingest rejects its next batch
GET/v1/devices/primary-user-departmentsDepartment of every device with an effective primary user (PrimaryUsersRead), for group-size protected aggregates
GET/v1/devices/primary-user/{subjectPseudonym}Devices whose effective primary user has this pseudonym (PrimaryUsersRead)
POST/v1/devices/primary-user/lookupDevices whose effective primary user is this subject (PrimaryUsersRead); the subject travels in the body, never the URL
POST/v1/devices/renewRenew the device credential (agent)
GET/v1/devices/self/configCollection policy and target agent release (agent)
POST/v1/devices/self/packages/{id}/downloadAuthorize one update download for this device (agent)
POST/v1/enrollEnrol a device (agent)
GET/v1/enrollment-tokensList enrollment tokens (secrets never returned)
POST/v1/enrollment-tokensCreate an enrollment token (secret returned once)
POST/v1/enrollment-tokens/{id}/revokeRevoke an enrollment token
POST/v1/installation/activation-requestGenerate the signed activation request to carry out to the license authority
GET/v1/installation/licenseOffline licence status of this customer-hosted or air-gapped installation (ADR-0035)
POST/v1/installation/licenseImport a licence file signed by the license authority (verified offline)
POST/v1/installation/usage-reportExport the next signed, hash-chained usage report (device counts and edition only)
GET/v1/policies/defaultTenant default collection policy
PUT/v1/policies/defaultSet the tenant default collection policy
GET/v1/policies/groups/{group}Device group collection policy
PUT/v1/policies/groups/{group}Set a device group collection policy
GET/v1/pseudonym-saltCurrent pseudonymization salt version (PrivacySettingsManage); never the key
POST/v1/pseudonym-salt/rotateRotate the tenant pseudonymization salt (PrivacySettingsManage, audited); devices pick it up on their next config poll
POST/v1/pseudonym-salt/serial-pseudonymsHardware serial pseudonyms with the tenant's current salt, as the agent reports them (service tokens with serial_pseudonymizer only; audited by count; never the key)
GET/v1/releasesAgent releases (platform operators)
POST/v1/releasesRegister a signed agent release (starts at stage Internal)
POST/v1/releases/{id}/evaluateCompare the release cohort with the previous version; halts automatically on regression
POST/v1/releases/{id}/haltHalt (roll back) a release
POST/v1/releases/{id}/promoteMove to the next stage (Internal, Pilot, TenPercent, All)
POST/v1/releases/packagesPublish one installer package of a release (platform operators)
POST/v1/releases/packages/signedPublish one installer package from CI with a signed publisher assertion

GET /v1/agent-downloads/{ticket}​

Proxied package bytes behind a short-lived ticket (Proxy delivery)

ParameterInTypeRequiredDescription
ticketpathstringyes
StatusDescriptionBody
200The package (attachment); X-Content-SHA256 header set
404Invalid or expired ticket

GET /v1/agent-packages​

What this tenant installs, per platform (DevicesRead)

Per platform, the newest active release the ring installs that has packages (General installs only releases promoted to all devices; Pilot from stage Pilot; Internal any active release) and its packages, one per format and architecture: a white-label tenant's own build where one is published, else the default build. Includes the tenant id and the server URL agents are installed with, for ready-made install commands.

ParameterInTypeRequiredDescription
ringquerystringno
StatusDescriptionBody
200OKAgentCatalog
400Unknown ring
403Missing DevicesRead

POST /v1/agent-packages/{id}/download​

Authorize one download (DevicesRead); returns a short-lived URL

Checks the package is visible to the tenant (default build or its own white-label build) and its release is not halted, proves the stored object still has the size and ETag recorded at publication, audits agent_package.downloaded and returns a URL valid for AgentReleases:DownloadUrlLifetimeSeconds (default 300): a pre-signed GET to the release bucket, or a proxied /v1/agent-downloads/{ticket} link where the store has no public endpoint (absolute when AgentReleases:PublicApiUrl is set, else relative to this service). The browser navigates to it, so the portal's connect-src 'self' is unaffected.

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200OKDownloadTicket
404Unknown package, or another brand's build
409The release was halted
502The stored object no longer matches the publication (audited as agent_package.integrity_failed)
503No release bucket configured

GET /v1/devices​

Devices with agent health

ParameterInTypeRequiredDescription
hostnameHashquerystringnoOnly devices whose agent-reported host name hash (sha256 of tenant:host, lower-case hex) matches; used by the ITSM panel.
StatusDescriptionBody
200OKDevice[]
400hostnameHash is not 64 lowercase hex characters

GET /v1/devices/{id}​

One device with agent health

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200OKDevice
404Not found or another tenant

GET /v1/devices/{id}/primary-user​

Effective primary user of a device as a pseudonym (PrimaryUsersRead, fleet_reader services only; ADR-0041)

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200OKDevicePrimaryUser
403Missing PrimaryUsersRead
404No primary user, a revoked device or another tenant

PUT /v1/devices/{id}/primary-user​

Set one source's primary-user claim (PrimaryUsersWrite, audited without the person)

device_owner_writer services write the mdm or directory source and tenant admins write only the admin source. Precedence is mdm over directory over admin. Only a keyed pseudonym of the subject is stored.

ParameterInTypeRequiredDescription
idpathstringyes

Request body: PrimaryUserClaim (JSON).

StatusDescriptionBody
204Stored
400Invalid subject or department, or a source the caller may not write
403Missing PrimaryUsersWrite
404Not found, revoked or another tenant

DELETE /v1/devices/{id}/primary-user​

Remove one source's primary-user claim (PrimaryUsersWrite, audited)

ParameterInTypeRequiredDescription
idpathstringyes
sourcequerystringno
StatusDescriptionBody
204Removed
400A source the caller may not remove
403Missing PrimaryUsersWrite
404No claim from that source

POST /v1/devices/{id}/revoke​

Revoke a device; ingest rejects its next batch

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
204Revoked
404Not found or another tenant

GET /v1/devices/primary-user-departments​

Department of every device with an effective primary user (PrimaryUsersRead), for group-size protected aggregates

StatusDescriptionBody
200OKobject[]
403Missing PrimaryUsersRead

GET /v1/devices/primary-user/{subjectPseudonym}​

Devices whose effective primary user has this pseudonym (PrimaryUsersRead)

ParameterInTypeRequiredDescription
subjectPseudonympathstringyes
StatusDescriptionBody
200OKPrimaryUserDevices
403Missing PrimaryUsersRead
404Not a pseudonym

POST /v1/devices/primary-user/lookup​

Devices whose effective primary user is this subject (PrimaryUsersRead); the subject travels in the body, never the URL

Request body: object (JSON).

StatusDescriptionBody
200OKPrimaryUserDevices
400Invalid subject
403Missing PrimaryUsersRead

POST /v1/devices/renew​

Renew the device credential (agent)

Request body: device-renewal-request.v1.schema.json (JSON).

StatusDescriptionBody
200New credentialobject
400Rejectedobject
401Rejectedobject
403Rejectedobject
413Body over 16 KB

GET /v1/devices/self/config​

Collection policy and target agent release (agent)

ParameterInTypeRequiredDescription
If-None-Matchheaderstringno
StatusDescriptionBody
200Current config; ETag header setDeviceConfig
304Unchanged
401Missing, invalid or revoked device credential

POST /v1/devices/self/packages/{id}/download​

Authorize one update download for this device (agent)

The package must be for the device's platform and visible to its tenant; halted releases are refused. The agent must verify sha256 and the platform signature before installing, whatever host serves the bytes. Audited as agent_package.downloaded with the device as actor.

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200OKDeviceDownloadTicket
401Missing, invalid or revoked device credential
404Unknown package (error unknown_package)
409Release halted (error package_unavailable)

POST /v1/enroll​

Enrol a device (agent)

Request body: enrollment-request.v1.schema.json (JSON).

StatusDescriptionBody
201EnrolledEnrollmentResponse
400Rejectedobject
401Rejectedobject
409Rejectedobject
413Body over 16 KB

GET /v1/enrollment-tokens​

List enrollment tokens (secrets never returned)

StatusDescriptionBody
200OKEnrollmentToken[]
403Missing DevicesManage

POST /v1/enrollment-tokens​

Create an enrollment token (secret returned once)

Request body: object (JSON).

StatusDescriptionBody
201Createdobject
400Outside policy
403Missing DevicesManage

POST /v1/enrollment-tokens/{id}/revoke​

Revoke an enrollment token

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
204Revoked
404Not found or another tenant

POST /v1/installation/activation-request​

Generate the signed activation request to carry out to the license authority

Request body: object (JSON).

StatusDescriptionBody
200Signed activation requestLicenseSignedDocument
400Invalid fields
404Not an offline-licensed installation

GET /v1/installation/license​

Offline licence status of this customer-hosted or air-gapped installation (ADR-0035)

Exists only when Licensing:Mode is offline; returns 404 on SaaS and dedicated tenants.

StatusDescriptionBody
200StatusInstallationLicense
403Not the local platform operator
404Not an offline-licensed installation

POST /v1/installation/license​

Import a licence file signed by the license authority (verified offline)

Request body: LicenseSignedDocument (JSON).

StatusDescriptionBody
200ImportedInstallationLicense
400Signature, installation or environment mismatch
404Not an offline-licensed installation

POST /v1/installation/usage-report​

Export the next signed, hash-chained usage report (device counts and edition only)

Request body: object (JSON).

StatusDescriptionBody
200Signed usage reportLicenseSignedDocument
400Empty or overlapping period
404Not an offline-licensed installation
409No licence imported

GET /v1/policies/default​

Tenant default collection policy

StatusDescriptionBody
200Stored policy; ETag header setCollectionPolicy
404Not set; agent defaults apply

PUT /v1/policies/default​

Set the tenant default collection policy

StatusDescriptionBody
200Stored policy; ETag header setCollectionPolicy
400Invalid policy

GET /v1/policies/groups/{group}​

Device group collection policy

ParameterInTypeRequiredDescription
grouppathstringyes
StatusDescriptionBody
200Stored policy; ETag header setCollectionPolicy
404Not set or invalid group

PUT /v1/policies/groups/{group}​

Set a device group collection policy

ParameterInTypeRequiredDescription
grouppathstringyes
StatusDescriptionBody
200Stored policy; ETag header setCollectionPolicy
400Invalid policy or group

GET /v1/pseudonym-salt​

Current pseudonymization salt version (PrivacySettingsManage); never the key

StatusDescriptionBody
200OKobject
403Missing PrivacySettingsManage

POST /v1/pseudonym-salt/rotate​

Rotate the tenant pseudonymization salt (PrivacySettingsManage, audited); devices pick it up on their next config poll

StatusDescriptionBody
200OKobject
403Missing PrivacySettingsManage

POST /v1/pseudonym-salt/serial-pseudonyms​

Hardware serial pseudonyms with the tenant's current salt, as the agent reports them (service tokens with serial_pseudonymizer only; audited by count; never the key)

Request body: object (JSON).

StatusDescriptionBody
200Pseudonyms in request orderobject
400Empty, oversized or non-printable serial list
403Missing SerialPseudonymsCompute

GET /v1/releases​

Agent releases (platform operators)

StatusDescriptionBody
200OKRelease[]

POST /v1/releases​

Register a signed agent release (starts at stage Internal)

Request body: object (JSON).

StatusDescriptionBody
201CreatedRelease
400Invalid or duplicate version
403Not a platform-tenant non-JIT operator

POST /v1/releases/{id}/evaluate​

Compare the release cohort with the previous version; halts automatically on regression

ParameterInTypeRequiredDescription
idpathstringyes

Request body: object (JSON).

StatusDescriptionBody
200Decisionobject
404Not found

POST /v1/releases/{id}/halt​

Halt (roll back) a release

ParameterInTypeRequiredDescription
idpathstringyes

Request body: object (JSON).

StatusDescriptionBody
200HaltedRelease
404Not found

POST /v1/releases/{id}/promote​

Move to the next stage (Internal, Pilot, TenPercent, All)

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200PromotedRelease
404Not found
409Halted or already at All

POST /v1/releases/packages​

Publish one installer package of a release (platform operators)

The body is the package bytes. The service computes the SHA-256, stores the object once under the immutable key platform/version/arch/brand/file in the release bucket and registers it. Publishing the same bytes again is idempotent (200); different bytes for a published slot or key are refused (409): packages are immutable, a fix is a new version. The primary package (default-brand x64 MSI, universal pkg, x64 deb) creates the release at stage Internal when it does not exist; any other package needs the release to exist. Audited as agent_package.published.

ParameterInTypeRequiredDescription
platformquerystringyes
versionquerystringyes
formatqueryPackageFormatyes
archqueryPackageArchyes
fileNamequerystringyes
brandquerystringnoWhite-label brand slug (the partner MSI's file-name prefix); omitted for the default build.
signatureKindquerySignatureKindyes
signatureRefquerystringnoThe signer (certificate subject and thumbprint, Apple Team ID, OpenPGP key fingerprint). Required unless unsigned.
notesquerystringno
X-Content-SHA256headerstringnoOptional end-to-end check; the request fails and nothing is stored when the body does not hash to it.
StatusDescriptionBody
200Already published with the same bytesOperatorAgentPackage
201PublishedOperatorAgentPackage
400Invalid metadata, empty body or digest mismatch
403Not a platform-tenant non-JIT operator
409Slot or key already holds different bytes, release digest mismatch, or the release does not exist yet
413Over the package size limit (AgentReleases:MaxPackageMegabytes, default 512)
503No release bucket configured

POST /v1/releases/packages/signed​

Publish one installer package from CI with a signed publisher assertion

Same as publishPackage, authenticated with Authorization: Publisher <jws> instead of a bearer token. The JWS (alg EdDSA, kid = a key in AgentReleases:Publishers) carries iss (= kid), aud dexwize-agent-releases, iat, exp (at most 15 minutes after iat) and a pkg claim with platform, version, format, arch, file_name, brand, signature_kind, signature_ref, notes and the body's sha256, so an assertion authorizes exactly one package and a replay can only publish the same bytes again.

StatusDescriptionBody
200Already published with the same bytesOperatorAgentPackage
201PublishedOperatorAgentPackage
400Invalid metadata or the body does not hash to pkg.sha256
401Missing, unknown, expired or badly signed assertion (audited as agent_package.publish_refused)
409Slot or key already holds different bytes, or the release does not exist yet