---
title: "Get provision token"
method: POST
path: "/api/v1/organization/device/provision/token"
tags: ["Provisioning"]
---

# Get provision token

`POST /api/v1/organization/device/provision/token`

Generate a provision token for device activation

Required permissions, when user-scoped authentication is used: `PROVISION_DEVICES`.
User-scoped tokens that set `ownerId` different from authenticated user ID also require `ORG_VIEW_USERS`.

## Request body

- object
  - `orgId` integer, required — Organization ID, in which device should be created.
  - `ownerId` integer, required — User ID, to which device will be assigned.

## Response `200`

Provision token

- ProvisionTokenResponse
  - `token` string, required — Provision token value
  - `deviceId` integer, required — ID of the device associated with this token

## Other responses

- `400` — Bad request
- `403` — Forbidden
- `404` — Organization/user not found or access denied
- `429` — Too many requests
- `500` — Internal server error

---

[API](https://skmtc.dev/blynk/apis/blynk-platform-api.md) · [All operations](https://skmtc.dev/blynk/apis/blynk-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/blynk/blynk-platform-api/revisions/d8640cc48a13/schema)
