Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

ThingsBoard api-key-controller API

Api Key

ThingsBoard api-key-controller API is one of 58 APIs that ThingsBoard publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 11 JSON Schema definitions.

Tagged areas include api-key-controller. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and 11 JSON Schemas.

This API exposes 5 operations across 5 paths, and defines 6 schemas. It is described by OpenAPI 3.1.0, at version 4.3.0.3DEMO.

Requests are made against 2 base URLs: https://demo.thingsboard.io, http://localhost:8080.

5 operations 5 paths 6 schemas 1 DELETE1 GET1 POST2 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
4.3.0.3DEMO
Servers
https://demo.thingsboard.io
http://localhost:8080
Authentication
HTTP Loginpassword, API Key
License
Resource Areas
1

Authentication & Security 2

ThingsBoard api-key-controller API declares 2 security schemes for authenticating requests. It uses HTTP loginpassword authentication (HTTP login form). An API key is passed in the header as X-Authorization (API key form).

  • HTTP login form — Enter Username / Password
  • API key form — Enter the API key value with 'ApiKey' prefix in format: ApiKey Example: ApiKey tb5te51SkLRYpjGrujUGwqkjFvooWBlQpVe2An2Dr3w13wjfxDW NOTE: Use only ONE authentic…

Paths & Operations 5

Across 5 paths, the API surfaces 5 operations — 1 DELETE, 1 GET, 1 POST, 2 PUT. Each is listed below with its method, path, parameters, and response codes.

api-key-controller 5

Api Key

PUT
/api/apiKey/{id}/enabled/{enabledValue}
Enable or Disable API Key (enableApiKey)
enableApiKey 2 params → 200
PUT
/api/apiKey/{id}/description
Update API Key Description
updateApiKeyDescription 1 param body → 200
POST
/api/apiKey
Save API Key for User (saveApiKey)
saveApiKey body → 200
GET
/api/apiKeys/{userId}
Get User Api Keys (getUserApiKeys)
getUserApiKeys 6 params → 200
DELETE
/api/apiKey/{id}
Delete API Key by ID (deleteApiKey)
deleteApiKey 1 param → 200

Schemas 6

The contract defines 6 schemas that model the data the API accepts and returns. The most detailed are ApiKey (9 properties), ApiKeyInfo (8 properties), PageDataApiKeyInfo (4 properties), UserId (2 properties). Each schema is shown below with its type and property counts.

ApiKeyInfo
object
A JSON value representing the Api Key token.
8 properties 1 required
PageDataApiKeyInfo
object
4 properties
ApiKeyId
object
2 properties 2 required
TenantId
object
2 properties 2 required
UserId
object
2 properties 2 required
ApiKey
object
9 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

thingsboard-api-key-controller-api-openapi.yml Raw ↑

Other APIs ThingsBoard publishes across the network.

ThingsBoard admin-controller API
ThingsBoard ai-model-controller API
ThingsBoard alarm-comment-controller API
ThingsBoard alarm-controller API
ThingsBoard asset-controller API
ThingsBoard asset-profile-controller API
ThingsBoard audit-log-controller API
ThingsBoard auth-controller API
ThingsBoard calculated-field-controller API
ThingsBoard component-descriptor-controller API
ThingsBoard customer-controller API
ThingsBoard dashboard-controller API