---
updatedAt: 2026-06-12T14:47:10.000Z
agentTools:
  projectIndex: https://docs.formant.io/llms.txt
---

# Generate device provisioning token

Generate a device provisioning token.
Resource: devices
Authorized roles: administrator

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "DeviceProvisioning": {
        "properties": {
          "deviceId": {
            "format": "uuid",
            "type": "string",
            "description": "ID of the device to provision."
          },
          "token": {
            "type": "string",
            "description": "Token to provision the device. Generated by the Generate Device Provisioning Token endpoint."
          },
          "expiration": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string"
          }
        },
        "type": "object",
        "required": [
          "token",
          "expiration"
        ]
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "info": {
    "title": "Formant admin-api",
    "version": "1.357.8"
  },
  "openapi": "3.0.0",
  "paths": {
    "/devices/{id}/provisioning-token": {
      "post": {
        "operationId": "DeviceController.generateDeviceProvisioningToken",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceProvisioning"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Generate device provisioning token",
        "tags": [
          "Device"
        ],
        "description": "Generate a device provisioning token.\nResource: devices\nAuthorized roles: administrator",
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api.formant.io/v1/admin"
    }
  ]
}
```