v2

latestOpenAPI 3.1.0raw.githubusercontent.com2024-09-26192307950.1 KB
authorized_devices

Get Authorization Device

Gets a specific OAuth2 authorized device using its unique ID.

Args: device_id: The ID of the OAuth2 authorized device to get. user_code: The user code of the OAuth2 authorized device to get. Needs to be specified with devices that have not been verified yet. hydrate: Flag deciding whether to hydrate the output model(s) by including metadata fields in the response. auth_context: The current auth context.

Returns: A specific OAuth2 authorized device object.

Raises: KeyError: If the device with the given ID does not exist, does not belong to the current user or could not be verified using the given user code.

get/api/v1/devices/{device_id}

Path parameters

device_idstring uuid required

Query parameters

user_codestring nullable
hydrateboolean

Response

Successful Response

resourcesOAuthDeviceResponseResources

Class for all resource models associated with the OAuthDevice entity.

idstring uuid required
permission_deniedboolean