โ† API reference
Mutation / devices

createDeviceToken

Create a new device token. Returns the signed token value. Requires device_token:write permission.

Arguments

Device token data

Returns CreateDeviceTokenPayload!

Scalar fields at a glance

tokenString
mqttUrlString
mqttUsernameString
mqttClientIdString
clientCertPemString
clientKeyPemString
โ†— View the complete CreateDeviceTokenPayload type

Explore in a view

Device Fleet
View exact SDL
"""
Create a new device token. Returns the signed token value. Requires device_token:write permission.
"""
createDeviceToken(
  """Device token data"""
  input: CreateDeviceTokenInput!
): CreateDeviceTokenPayload! @topic(names: ["devices"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.