Skip to main content
POST
/
devices
/
{device_id}
/
activation_token
Python
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"
}

Authorizations

X-API-Key
string
header
required

The API key to use for authentication. Retrieve your API key from the Miru dashboard.

Path Parameters

device_id
string
required

The unique identifier of the device.

Example:

"dvc_123"

Body

application/json
allow_reactivation
boolean
default:false

Whether this token can reactivate already activated devices. If false, the token is unable to activate devices which are already activated.

Example:

false

Response

200 - application/json

Successfully created the device activation token.

token
string
required

The token.

Example:

"eyJhbGciOiJ..."

expires_at
string<date-time>
required

The expiration date and time of the token.

Example:

"2025-01-01T00:00:00Z"

I