هذه الصفحة غير متاحة بالعربية بعد، وتُعرض بالإنجليزية.
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
| Method | Path | Summary |
|---|---|---|
GET | /v1/agent-downloads/{ticket} | Proxied package bytes behind a short-lived ticket (Proxy delivery) |
GET | /v1/agent-packages | What this tenant installs, per platform (DevicesRead) |
POST | /v1/agent-packages/{id}/download | Authorize one download (DevicesRead); returns a short-lived URL |
GET | /v1/devices | Devices with agent health |
GET | /v1/devices/{id} | One device with agent health |
GET | /v1/devices/{id}/primary-user | Effective primary user of a device as a pseudonym (PrimaryUsersRead, fleet_reader services only; ADR-0041) |
PUT | /v1/devices/{id}/primary-user | Set one source's primary-user claim (PrimaryUsersWrite, audited without the person) |
DELETE | /v1/devices/{id}/primary-user | Remove one source's primary-user claim (PrimaryUsersWrite, audited) |
POST | /v1/devices/{id}/revoke | Revoke a device; ingest rejects its next batch |
GET | /v1/devices/primary-user-departments | Department 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/lookup | Devices whose effective primary user is this subject (PrimaryUsersRead); the subject travels in the body, never the URL |
POST | /v1/devices/renew | Renew the device credential (agent) |
GET | /v1/devices/self/config | Collection policy and target agent release (agent) |
POST | /v1/devices/self/packages/{id}/download | Authorize one update download for this device (agent) |
POST | /v1/enroll | Enrol a device (agent) |
GET | /v1/enrollment-tokens | List enrollment tokens (secrets never returned) |
POST | /v1/enrollment-tokens | Create an enrollment token (secret returned once) |
POST | /v1/enrollment-tokens/{id}/revoke | Revoke an enrollment token |
POST | /v1/installation/activation-request | Generate the signed activation request to carry out to the license authority |
GET | /v1/installation/license | Offline licence status of this customer-hosted or air-gapped installation (ADR-0035) |
POST | /v1/installation/license | Import a licence file signed by the license authority (verified offline) |
POST | /v1/installation/usage-report | Export the next signed, hash-chained usage report (device counts and edition only) |
GET | /v1/policies/default | Tenant default collection policy |
PUT | /v1/policies/default | Set 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-salt | Current pseudonymization salt version (PrivacySettingsManage); never the key |
POST | /v1/pseudonym-salt/rotate | Rotate the tenant pseudonymization salt (PrivacySettingsManage, audited); devices pick it up on their next config poll |
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) |
GET | /v1/releases | Agent releases (platform operators) |
POST | /v1/releases | Register a signed agent release (starts at stage Internal) |
POST | /v1/releases/{id}/evaluate | Compare the release cohort with the previous version; halts automatically on regression |
POST | /v1/releases/{id}/halt | Halt (roll back) a release |
POST | /v1/releases/{id}/promote | Move to the next stage (Internal, Pilot, TenPercent, All) |
POST | /v1/releases/packages | Publish one installer package of a release (platform operators) |
POST | /v1/releases/packages/signed | Publish 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)
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
ticket | path | string | yes |
| Status | Description | Body |
|---|---|---|
| 200 | The package (attachment); X-Content-SHA256 header set | |
| 404 | Invalid 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.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
ring | query | string | no |
| Status | Description | Body |
|---|---|---|
| 200 | OK | AgentCatalog |
| 400 | Unknown ring | |
| 403 | Missing 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.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
| Status | Description | Body |
|---|---|---|
| 200 | OK | DownloadTicket |
| 404 | Unknown package, or another brand's build | |
| 409 | The release was halted | |
| 502 | The stored object no longer matches the publication (audited as agent_package.integrity_failed) | |
| 503 | No release bucket configured |
GET /v1/devices
Devices with agent health
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
hostnameHash | query | string | no | Only devices whose agent-reported host name hash (sha256 of tenant:host, lower-case hex) matches; used by the ITSM panel. |
| Status | Description | Body |
|---|---|---|
| 200 | OK | Device[] |
| 400 | hostnameHash is not 64 lowercase hex characters |
GET /v1/devices/{id}
One device with agent health
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
| Status | Description | Body |
|---|---|---|
| 200 | OK | Device |
| 404 | Not 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)
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
| Status | Description | Body |
|---|---|---|
| 200 | OK | DevicePrimaryUser |
| 403 | Missing PrimaryUsersRead | |
| 404 | No 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.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Request body: PrimaryUserClaim (JSON).
| Status | Description | Body |
|---|---|---|
| 204 | Stored | |
| 400 | Invalid subject or department, or a source the caller may not write | |
| 403 | Missing PrimaryUsersWrite | |
| 404 | Not found, revoked or another tenant |
DELETE /v1/devices/{id}/primary-user
Remove one source's primary-user claim (PrimaryUsersWrite, audited)
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | |
source | query | string | no |
| Status | Description | Body |
|---|---|---|
| 204 | Removed | |
| 400 | A source the caller may not remove | |
| 403 | Missing PrimaryUsersWrite | |
| 404 | No claim from that source |
POST /v1/devices/{id}/revoke
Revoke a device; ingest rejects its next batch
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
| Status | Description | Body |
|---|---|---|
| 204 | Revoked | |
| 404 | Not 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
| Status | Description | Body |
|---|---|---|
| 200 | OK | object[] |
| 403 | Missing PrimaryUsersRead |
GET /v1/devices/primary-user/{subjectPseudonym}
Devices whose effective primary user has this pseudonym (PrimaryUsersRead)
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
subjectPseudonym | path | string | yes |
| Status | Description | Body |
|---|---|---|
| 200 | OK | PrimaryUserDevices |
| 403 | Missing PrimaryUsersRead | |
| 404 | Not 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).
| Status | Description | Body |
|---|---|---|
| 200 | OK | PrimaryUserDevices |
| 400 | Invalid subject | |
| 403 | Missing PrimaryUsersRead |
POST /v1/devices/renew
Renew the device credential (agent)
Request body: device-renewal-request.v1.schema.json (JSON).
| Status | Description | Body |
|---|---|---|
| 200 | New credential | object |
| 400 | Rejected | object |
| 401 | Rejected | object |
| 403 | Rejected | object |
| 413 | Body over 16 KB |
GET /v1/devices/self/config
Collection policy and target agent release (agent)
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
If-None-Match | header | string | no |
| Status | Description | Body |
|---|---|---|
| 200 | Current config; ETag header set | DeviceConfig |
| 304 | Unchanged | |
| 401 | Missing, 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.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
| Status | Description | Body |
|---|---|---|
| 200 | OK | DeviceDownloadTicket |
| 401 | Missing, invalid or revoked device credential | |
| 404 | Unknown package (error unknown_package) | |
| 409 | Release halted (error package_unavailable) |
POST /v1/enroll
Enrol a device (agent)
Request body: enrollment-request.v1.schema.json (JSON).
| Status | Description | Body |
|---|---|---|
| 201 | Enrolled | EnrollmentResponse |
| 400 | Rejected | object |
| 401 | Rejected | object |
| 409 | Rejected | object |
| 413 | Body over 16 KB |
GET /v1/enrollment-tokens
List enrollment tokens (secrets never returned)
| Status | Description | Body |
|---|---|---|
| 200 | OK | EnrollmentToken[] |
| 403 | Missing DevicesManage |
POST /v1/enrollment-tokens
Create an enrollment token (secret returned once)
Request body: object (JSON).
| Status | Description | Body |
|---|---|---|
| 201 | Created | object |
| 400 | Outside policy | |
| 403 | Missing DevicesManage |
POST /v1/enrollment-tokens/{id}/revoke
Revoke an enrollment token
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
| Status | Description | Body |
|---|---|---|
| 204 | Revoked | |
| 404 | Not 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).
| Status | Description | Body |
|---|---|---|
| 200 | Signed activation request | LicenseSignedDocument |
| 400 | Invalid fields | |
| 404 | Not 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.
| Status | Description | Body |
|---|---|---|
| 200 | Status | InstallationLicense |
| 403 | Not the local platform operator | |
| 404 | Not an offline-licensed installation |
POST /v1/installation/license
Import a licence file signed by the license authority (verified offline)
Request body: LicenseSignedDocument (JSON).
| Status | Description | Body |
|---|---|---|
| 200 | Imported | InstallationLicense |
| 400 | Signature, installation or environment mismatch | |
| 404 | Not 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).
| Status | Description | Body |
|---|---|---|
| 200 | Signed usage report | LicenseSignedDocument |
| 400 | Empty or overlapping period | |
| 404 | Not an offline-licensed installation | |
| 409 | No licence imported |
GET /v1/policies/default
Tenant default collection policy
| Status | Description | Body |
|---|---|---|
| 200 | Stored policy; ETag header set | CollectionPolicy |
| 404 | Not set; agent defaults apply |
PUT /v1/policies/default
Set the tenant default collection policy
| Status | Description | Body |
|---|---|---|
| 200 | Stored policy; ETag header set | CollectionPolicy |
| 400 | Invalid policy |
GET /v1/policies/groups/{group}
Device group collection policy
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
group | path | string | yes |
| Status | Description | Body |
|---|---|---|
| 200 | Stored policy; ETag header set | CollectionPolicy |
| 404 | Not set or invalid group |
PUT /v1/policies/groups/{group}
Set a device group collection policy
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
group | path | string | yes |
| Status | Description | Body |
|---|---|---|
| 200 | Stored policy; ETag header set | CollectionPolicy |
| 400 | Invalid policy or group |
GET /v1/pseudonym-salt
Current pseudonymization salt version (PrivacySettingsManage); never the key
| Status | Description | Body |
|---|---|---|
| 200 | OK | object |
| 403 | Missing PrivacySettingsManage |
POST /v1/pseudonym-salt/rotate
Rotate the tenant pseudonymization salt (PrivacySettingsManage, audited); devices pick it up on their next config poll
| Status | Description | Body |
|---|---|---|
| 200 | OK | object |
| 403 | Missing 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).
| Status | Description | Body |
|---|---|---|
| 200 | Pseudonyms in request order | object |
| 400 | Empty, oversized or non-printable serial list | |
| 403 | Missing SerialPseudonymsCompute |
GET /v1/releases
Agent releases (platform operators)
| Status | Description | Body |
|---|---|---|
| 200 | OK | Release[] |
POST /v1/releases
Register a signed agent release (starts at stage Internal)
Request body: object (JSON).
| Status | Description | Body |
|---|---|---|
| 201 | Created | Release |
| 400 | Invalid or duplicate version | |
| 403 | Not a platform-tenant non-JIT operator |
POST /v1/releases/{id}/evaluate
Compare the release cohort with the previous version; halts automatically on regression
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Request body: object (JSON).
| Status | Description | Body |
|---|---|---|
| 200 | Decision | object |
| 404 | Not found |
POST /v1/releases/{id}/halt
Halt (roll back) a release
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Request body: object (JSON).
| Status | Description | Body |
|---|---|---|
| 200 | Halted | Release |
| 404 | Not found |
POST /v1/releases/{id}/promote
Move to the next stage (Internal, Pilot, TenPercent, All)
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
| Status | Description | Body |
|---|---|---|
| 200 | Promoted | Release |
| 404 | Not found | |
| 409 | Halted 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.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
platform | query | string | yes | |
version | query | string | yes | |
format | query | PackageFormat | yes | |
arch | query | PackageArch | yes | |
fileName | query | string | yes | |
brand | query | string | no | White-label brand slug (the partner MSI's file-name prefix); omitted for the default build. |
signatureKind | query | SignatureKind | yes | |
signatureRef | query | string | no | The signer (certificate subject and thumbprint, Apple Team ID, OpenPGP key fingerprint). Required unless unsigned. |
notes | query | string | no | |
X-Content-SHA256 | header | string | no | Optional end-to-end check; the request fails and nothing is stored when the body does not hash to it. |
| Status | Description | Body |
|---|---|---|
| 200 | Already published with the same bytes | OperatorAgentPackage |
| 201 | Published | OperatorAgentPackage |
| 400 | Invalid metadata, empty body or digest mismatch | |
| 403 | Not a platform-tenant non-JIT operator | |
| 409 | Slot or key already holds different bytes, release digest mismatch, or the release does not exist yet | |
| 413 | Over the package size limit (AgentReleases:MaxPackageMegabytes, default 512) | |
| 503 | No 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.
| Status | Description | Body |
|---|---|---|
| 200 | Already published with the same bytes | OperatorAgentPackage |
| 201 | Published | OperatorAgentPackage |
| 400 | Invalid metadata or the body does not hash to pkg.sha256 | |
| 401 | Missing, unknown, expired or badly signed assertion (audited as agent_package.publish_refused) | |
| 409 | Slot or key already holds different bytes, or the release does not exist yet |