API Reference
  • IoT IdP API Reference
  • Reference
    • HTTP API Reference
      • Token API
      • IdP API
      • Device API
    • CoAP API Reference
      • Token API
      • IdP API
      • Device API
Powered by GitBook
On this page
  • Introspection Endpoint
  • Introspect token
  1. Reference
  2. HTTP API Reference

IdP API

The IdP API is used to validate issued access tokens with our IoT identity provider.

Introspection Endpoint

Use this endpoint to verify the access tokens issued by the IdP. This endpoint is mainly used by the IoT platform but may also be used by IoT devices to verify the received access token.

Introspect token

POST https://iot-idp.demo.apps.iothentix.io/idp/introspect

Validate the access token with the IdP.

Headers

Name
Type
Description

Authorization

String

Basic authentication

Request Body

Name
Type
Description

token*

String

Access token issued by the identity provider

{
    "active": true,
    "sub": "test.device.01",
    "scope": "tenant.demo refresh.token temp",
    "iss": "https://iot-idp.demo.apps.iothentix.com/",
    "exp": 1658179642
}
{
    "error": {
        "code": 401,
        "status": "Unauthorized",
        "request": "<REQUEST_ID>",
        "message": "The request could not be authorized"
    }
}
{
    "active": false
}
{
    "error": 
    {
        "code": 500,
        "status": "Internal Server Error",
        "request": "<REQUEST_ID>",
        "message": "An internal server error occurred, please contact the system administrator"
    }
}
{
    "error": {
        "code": 404,
        "status": "Not Found",
        "request": "<REQUEST_ID>",
        "message": "The requested resource could not be found"
    }
}
PreviousToken APINextDevice API

Last updated 2 years ago