Skip to content
MyStocks Developers
API v1

API v1

Current stable contract

Versioning policyRelease changelog
Sandbox console

Revoke notification device

Sub-Accounts & White-Label Retail KYC

DELETE

/users/{userId}/devices/{deviceId}

Revoke notification device

Sandbox availablerevokeUserDevice

Soft-revokes a registered push device. The record is retained for audit and support correlation.

Parameters

userIdstringpathRequired

Example: usr_abc123

deviceIdstringpathRequired

Example: dev_6f9a4d2c1b0e8a7c3d5f9012

Headers

AuthorizationstringRequired

Bearer sk_sandbox_<your_key> for sandbox requests.

Idempotency-KeystringheaderRequired

Unique string that makes write calls safe to retry on network failure. Required for money movement, trading, KYC, subscriptions, and webhook creation. Deduplicated for 24 hours -- duplicate keys return the cached response. HTTP 409 if a concurrent request with the same key is still in progress.

Example: dep_user42_1743152580

Response fields

messagestring
subAccountIdstring
externalIdstring
deviceIdstring
statusstring

Example: "revoked"

Response codes

200Device revoked.
404Device not found.