---
title: "Authorize/Deauthorize the device to/from the IoT Hub."
method: POST
path: "/oic/sec/session"
tags: ["Authorization"]
---

# Authorize/Deauthorize the device to/from the IoT Hub.

`POST /oic/sec/session`

Resource that manages the persistent session between a Device and IoT Hub.

## Response `200`

---

[API](https://skmtc.dev/plgd-dev/apis/coap-gateway.md) · [All operations](https://skmtc.dev/plgd-dev/apis/coap-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/plgd-dev/coap-gateway/revisions/65b2362bb16f/schema)
