Skip to content

CreateDeviceTokenPayload ​

Type: Object

Result of creating a device token

Fields ​

NameTypeArgsDescriptionDeprecated
clientCertPemStringDevice client cert (PEM) signed by the tenant CA. Only returned on creation; not persisted.
clientKeyPemStringDevice private key (PKCS#8 PEM). Cloud-generated; only returned on creation; not persisted.
deviceTokenDeviceTokenStateThe created token record
errors[FieldError!]!Validation errors if the operation failed
mqttClientIdStringSuggested MQTT client ID (the token ID). Not a credential: under mTLS the broker does not validate it, but MQTT requires one and a stable value keeps session state coherent across reconnects.
mqttUrlStringMQTT broker URL for device connection (only returned on creation)
mqttUsernameStringThe device ID, historically the MQTT username (only returned on creation)Unread on the mTLS path, which is the only one the broker accepts — the connecting identity comes from the certificate's URI SAN. The device ID itself is on deviceToken.deviceId. removal:2027-03-18
serverCaCertPemStringPlatform server CA cert (PEM). Trust root for verifying broker / edge listener certs.
tenantCaCertPemStringTenant CA cert (PEM) that signed the device's leaf.
tokenStringThe signed token value, historically the MQTT password (only returned on creation)The broker is mTLS-only, so this is never read: a client that presents no certificate fails the TLS handshake, and one that does is authenticated from its certificate without the bearer path running. Use clientCertPem / clientKeyPem with serverCaCertPem instead. removal:2027-03-18

Relationships ​

Connect machines, automate workflows, and build custom apps for print production.