from miru_server_sdk import Miru
client = Miru(
api_key="My API Key",
)
response = client.devices.create_activation_token(
device_id="dvc_123",
)
print(response.token){
"token": "eyJhbGciOiJ...",
"expires_at": "2025-01-01T00:00:00Z"
}Create a new device activation token.
from miru_server_sdk import Miru
client = Miru(
api_key="My API Key",
)
response = client.devices.create_activation_token(
device_id="dvc_123",
)
print(response.token){
"token": "eyJhbGciOiJ...",
"expires_at": "2025-01-01T00:00:00Z"
}The API key to use for authentication. Retrieve your API key from the Miru dashboard.
The unique identifier of the device.
"dvc_123"
Whether this token can reactivate already activated devices. If false, the token is unable to activate devices which are already activated.
false