CTI Console
Device Authorization Grant endpoint
Single endpoint that handles both the Device Authorization Request and the Access Token polling, following RFC 8628.
post/api/v1/platform/environments/token
Headers
X-Mock-Scenario'pending' | 'slow_down' | 'access_denied' | 'expired_token' | 'success'
Forces a specific polling scenario. One of: pending, slow_down, access_denied, expired_token, success.
Request body
Example request
{
"client_id": "a17c21ed"
}Response
OK - Either the Device Authorization Response or a successful Access Token Response, depending on the request body.
Example response
{
"device_code": "mock_device_code_123",
"user_code": "WZH-999",
"verification_uri": "https://cti.wazuh.com/activate",
"expires_in": 600,
"interval": 5
}