--- title: "Revoke tokens for devices." slug: "revoke-tokens-for-devices-1" updated: 2026-03-02T22:30:52Z published: 2026-03-02T22:35:52Z canonical: "support.appgate.com/revoke-tokens-for-devices-1" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.appgate.com/llms.txt > Use this file to discover all available pages before exploring further. # Revoke tokens for devices. Post/on-boarded-devices/revoke-tokens Revoke tokens for devices according to the request parameters. SecurityHTTPType bearer Body parameters Device revocation parameters. object Details for token revocation request. distinguishedNameFilterstring Required The filter to find devices by their distinguished names. It is used with "starts with" logic. If a full distinguished name is passed, then a single device will be affected. If "OU=ldap" is passed, then all devices for "ldap" identity provider will be affected. If left as empty string "", then all active devices past 24 hours will be affected. Cannot be null. ExampleCN=4c07bc6757ea42ddb702c2d6c45419fc,CN=user,OU=ldap specificDistinguishedNames Array of string Specific distinguished names can be defined to renew tokens in bulk for a specific list of devices. "distinguishedNameFilter" field should be empty string for this to work. string ExampleCN=4c07bc6757ea42ddb702c2d6c45419fc,CN=user,OU=ldap siteIdstring (uuid) Optional parameter to revoke only devices that connected to the given Site ID. tokenTypestring Optional parameter to revoke only certain types of tokens. Valid values[ "Claims", "AdminClaims", "Entitlement", "Administration" ] revocationReasonstring Optional reason text for the revocation. The value is stored and logged. ExamplePushing the policy changes. delayMinutesinteger The delay time for client token revocation in minutes. Client will renew the token(s) at least 5 minutes before the revocation time, without losing connection. Default5 devicesPerSecondnumber In order to spread the workload on the Controllers, tokens are revoked in batches according to this value. Default2.0 Responses200 Device tokens were revoked successfully. Returns the list of devices affected. Expand Allobject rangestring The range applied to the list. Format: -/. 3-5/8 means, out of 8 count (query affects the total), the items between (including) the 3rd and the 5th are returned. Example0-30/54 orderBystring The field name used to sort the list. Examplename descendingboolean Whether the sorting is applied descending or ascending. queries Array of string The queries applied to the list. string totalCountinteger The total readable count of entities. Not influenced by the query. Example328 filterBy Array of object (FilterBy) The filters applied to the list. object namestring The field name the filter is applied to. Examplename valuestring The value used for comparison. ExampleAWS data Array of object (OnBoardedDevice) List of Registered Devices. object distinguishedNamestring Distinguished name of a user&device combination. Format: "CN=,CN=,OU=" ExampleCN=4c07bc6757ea42ddb702c2d6c45419fc,CN=user,OU=ldap deviceIdstring (uuid) The device ID, same as the one in the Distinguished Name. Example4c07bc67-57ea-42dd-b702-c2d6c45419fc usernamestring The username, same as the one in the Distinguished Name. Exampleuser providerNamestring The provider name of the user, same as the one in the Distinguished Name. Exampleldap device_typestring Type of the registered device. Valid values[ "Client", "Admin", "Client/Admin" ] hostnamestring Hostname of the Device at the time of registration, sent by the Device. Exampleuser.ad.company.com onBoardedAtstring (date-time) Registration time. lastSeenAtstring (date-time) The time when the device last signed in. 'null' if it has signed in last on a Controller that was older than 5.4 at the time. 400 JSON error. Check the JSON format. object Generic HTTP error. idstring Machine readable error code. messagestring Human readable error details. 401 Token error. Login again. object Generic HTTP error. idstring Machine readable error code. messagestring Human readable error details. 403 Insufficient permissions to access this resource. object Generic HTTP error. idstring Machine readable error code. messagestring Human readable error details. 406 Invalid 'Accept' header. object Generic HTTP error. idstring Machine readable error code. messagestring Human readable error details. 422 Request validation error. Check "errors" array for details. Expand Allobject Http 422 error for object validation. idstring Machine readable error code. messagestring Human readable error details. errors Array of object List of fields with validation errors. object fieldstring Name of the field that failed validation. Examplename messagestring Failure reason. Examplemay not be null 500 Unexpected server side error. object Generic HTTP error. idstring Machine readable error code. messagestring Human readable error details.