{ "info": { "_postman_id": "f6369b5a-c8b3-4485-9310-86717cea79ce", "name": "ThingsBoard Admin admin-controller o-auth-2-config-template-controller API", "description": "ThingsBoard Admin API \u2014 subset of the ThingsBoard REST API (open-source IoT platform). Covers: Admin, Audit Log, Event, Usage Info, Queue, Queue Stats, Mail Config Template, Qr Code Settings, Job.\n\nContact Support:\n Name: ThingsBoard team\n Email: info@thingsboard.io", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "createdAt": "2026-07-28T03:12:58.000Z", "updatedAt": "2026-07-28T03:12:58.000Z", "lastUpdatedBy": "35240", "uid": "35240-f6369b5a-c8b3-4485-9310-86717cea79ce" }, "item": [ { "name": "api", "item": [ { "name": "oauth2", "item": [ { "name": "config", "item": [ { "name": "template", "item": [ { "name": "{clientRegistrationTemplateId}", "item": [ { "name": "Delete OAuth2 Client Registration Template by Id (deleteClientRegistrationTemplate) Available for Users with 'SYS_ADMIN' Authority.", "id": "85e6c05f-55fb-4bc1-af07-044c2e36ccd7", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "DELETE", "header": [], "url": { "raw": "{{baseUrl}}/api/oauth2/config/template/:clientRegistrationTemplateId", "host": [ "{{baseUrl}}" ], "path": [ "api", "oauth2", "config", "template", ":clientRegistrationTemplateId" ], "variable": [ { "id": "c6397ec8-3afc-4437-9d88-a13ad3a9664d", "key": "clientRegistrationTemplateId", "value": "", "description": "(Required) String representation of client registration template id to delete" } ] }, "description": "Client registration template is OAuth2 provider configuration template with default settings for registering new OAuth2 clients" }, "response": [ { "id": "f523f9c6-c3ff-4482-9fae-59e0cf508d71", "name": "OK", "originalRequest": { "method": "DELETE", "header": [], "url": { "raw": "{{baseUrl}}/api/oauth2/config/template/:clientRegistrationTemplateId", "host": [ "{{baseUrl}}" ], "path": [ "api", "oauth2", "config", "template", ":clientRegistrationTemplateId" ], "variable": [ { "key": "clientRegistrationTemplateId" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "text", "header": [], "cookie": [], "responseTime": null, "body": null, "createdAt": "2026-07-28T03:12:58.000Z", "updatedAt": "2026-07-28T03:12:58.000Z", "uid": "35240-f523f9c6-c3ff-4482-9fae-59e0cf508d71" } ], "createdAt": "2026-07-28T03:12:58.000Z", "updatedAt": "2026-07-28T03:12:58.000Z", "uid": "35240-85e6c05f-55fb-4bc1-af07-044c2e36ccd7" } ], "id": "4ae656b2-95c4-4764-8ff6-698a3b8888f2", "createdAt": "2026-07-28T03:12:58.000Z", "updatedAt": "2026-07-28T03:12:58.000Z", "uid": "35240-4ae656b2-95c4-4764-8ff6-698a3b8888f2" }, { "name": "Get the List of All OAuth2 Client Registration Templates (getClientRegistrationTemplates) Available for Users with 'SYS_ADMIN' or 'TENANT_ADMIN' Authority.", "id": "cb10b7d2-99c1-4f15-9bef-35f9e0529684", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/api/oauth2/config/template", "host": [ "{{baseUrl}}" ], "path": [ "api", "oauth2", "config", "template" ] }, "description": "Client registration template is OAuth2 provider configuration template with default settings for registering new OAuth2 clients" }, "response": [ { "id": "08dc38af-ffde-4168-a5ad-a596c1e688f6", "name": "OK", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/api/oauth2/config/template", "host": [ "{{baseUrl}}" ], "path": [ "api", "oauth2", "config", "template" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "[\n {\n \"providerId\": \"\",\n \"id\": {\n \"id\": \"\"\n },\n \"createdTime\": \"\",\n \"mapperConfig\": {\n \"type\": \"CUSTOM\",\n \"allowUserCreation\": \"\",\n \"activateUser\": \"\",\n \"basic\": {\n \"tenantNameStrategy\": \"EMAIL\",\n \"emailAttributeKey\": \"\",\n \"firstNameAttributeKey\": \"\",\n \"lastNameAttributeKey\": \"\",\n \"tenantNamePattern\": \"\",\n \"customerNamePattern\": \"\",\n \"defaultDashboardName\": \"\",\n \"alwaysFullScreen\": \"\"\n },\n \"custom\": {\n \"url\": \"\",\n \"username\": \"\",\n \"password\": \"\",\n \"sendToken\": \"\"\n }\n },\n \"authorizationUri\": \"\",\n \"accessTokenUri\": \"\",\n \"scope\": [\n \"\",\n \"\"\n ],\n \"userInfoUri\": \"\",\n \"userNameAttributeName\": \"\",\n \"jwkSetUri\": \"\",\n \"clientAuthenticationMethod\": \"\",\n \"comment\": \"\",\n \"loginButtonIcon\": \"\",\n \"loginButtonLabel\": \"\",\n \"helpLink\": \"\",\n \"name\": \"\",\n \"additionalInfo\": {\n \"description\": \"A value representing the any type (object or primitive)\",\n \"examples\": [\n {}\n ]\n }\n },\n {\n \"providerId\": \"\",\n \"id\": {\n \"id\": \"\"\n },\n \"createdTime\": \"\",\n \"mapperConfig\": {\n \"type\": \"CUSTOM\",\n \"allowUserCreation\": \"\",\n \"activateUser\": \"\",\n \"basic\": {\n \"tenantNameStrategy\": \"CUSTOM\",\n \"emailAttributeKey\": \"\",\n \"firstNameAttributeKey\": \"\",\n \"lastNameAttributeKey\": \"\",\n \"tenantNamePattern\": \"\",\n \"customerNamePattern\": \"\",\n \"defaultDashboardName\": \"\",\n \"alwaysFullScreen\": \"\"\n },\n \"custom\": {\n \"url\": \"\",\n \"username\": \"\",\n \"password\": \"\",\n \"sendToken\": \"\"\n }\n },\n \"authorizationUri\": \"\",\n \"accessTokenUri\": \"\",\n \"scope\": [\n \"\",\n \"\"\n ],\n \"userInfoUri\": \"\",\n \"userNameAttributeName\": \"\",\n \"jwkSetUri\": \"\",\n \"clientAuthenticationMethod\": \"\",\n \"comment\": \"\",\n \"loginButtonIcon\": \"\",\n \"loginButtonLabel\": \"\",\n \"helpLink\": \"\",\n \"name\": \"\",\n \"additionalInfo\": {\n \"description\": \"A value representing the any type (object or primitive)\",\n \"examples\": [\n {}\n ]\n }\n }\n]", "createdAt": "2026-07-28T03:12:58.000Z", "updatedAt": "2026-07-28T03:12:58.000Z", "uid": "35240-08dc38af-ffde-4168-a5ad-a596c1e688f6" } ], "createdAt": "2026-07-28T03:12:58.000Z", "updatedAt": "2026-07-28T03:12:58.000Z", "uid": "35240-cb10b7d2-99c1-4f15-9bef-35f9e0529684" }, { "name": "Create or Update OAuth2 Client Registration Template (saveClientRegistrationTemplate) Available for Users with 'SYS_ADMIN' Authority.", "id": "08d9d2e4-5808-4a4b-b1d9-b145fcaff6b4", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"providerId\": \"\",\n \"id\": {\n \"id\": \"\"\n },\n \"createdTime\": \"\",\n \"mapperConfig\": {\n \"type\": \"GITHUB\",\n \"allowUserCreation\": \"\",\n \"activateUser\": \"\",\n \"basic\": {\n \"tenantNameStrategy\": \"CUSTOM\",\n \"emailAttributeKey\": \"\",\n \"firstNameAttributeKey\": \"\",\n \"lastNameAttributeKey\": \"\",\n \"tenantNamePattern\": \"\",\n \"customerNamePattern\": \"\",\n \"defaultDashboardName\": \"\",\n \"alwaysFullScreen\": \"\"\n },\n \"custom\": {\n \"url\": \"\",\n \"username\": \"\",\n \"password\": \"\",\n \"sendToken\": \"\"\n }\n },\n \"authorizationUri\": \"\",\n \"accessTokenUri\": \"\",\n \"scope\": [\n \"\",\n \"\"\n ],\n \"userInfoUri\": \"\",\n \"userNameAttributeName\": \"\",\n \"jwkSetUri\": \"\",\n \"clientAuthenticationMethod\": \"\",\n \"comment\": \"\",\n \"loginButtonIcon\": \"\",\n \"loginButtonLabel\": \"\",\n \"helpLink\": \"\",\n \"name\": \"\",\n \"additionalInfo\": {\n \"description\": \"A value representing the any type (object or primitive)\",\n \"examples\": [\n {}\n ]\n }\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/api/oauth2/config/template", "host": [ "{{baseUrl}}" ], "path": [ "api", "oauth2", "config", "template" ] }, "description": "Client registration template is OAuth2 provider configuration template with default settings for registering new OAuth2 clients" }, "response": [ { "id": "eb4e0c25-3dd5-40d5-bc27-f5dab918939f", "name": "OK", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"providerId\": \"\",\n \"id\": {\n \"id\": \"\"\n },\n \"createdTime\": \"\",\n \"mapperConfig\": {\n \"type\": \"GITHUB\",\n \"allowUserCreation\": \"\",\n \"activateUser\": \"\",\n \"basic\": {\n \"tenantNameStrategy\": \"CUSTOM\",\n \"emailAttributeKey\": \"\",\n \"firstNameAttributeKey\": \"\",\n \"lastNameAttributeKey\": \"\",\n \"tenantNamePattern\": \"\",\n \"customerNamePattern\": \"\",\n \"defaultDashboardName\": \"\",\n \"alwaysFullScreen\": \"\"\n },\n \"custom\": {\n \"url\": \"\",\n \"username\": \"\",\n \"password\": \"\",\n \"sendToken\": \"\"\n }\n },\n \"authorizationUri\": \"\",\n \"accessTokenUri\": \"\",\n \"scope\": [\n \"\",\n \"\"\n ],\n \"userInfoUri\": \"\",\n \"userNameAttributeName\": \"\",\n \"jwkSetUri\": \"\",\n \"clientAuthenticationMethod\": \"\",\n \"comment\": \"\",\n \"loginButtonIcon\": \"\",\n \"loginButtonLabel\": \"\",\n \"helpLink\": \"\",\n \"name\": \"\",\n \"additionalInfo\": {\n \"description\": \"A value representing the any type (object or primitive)\",\n \"examples\": [\n {}\n ]\n }\n}", "options": { "raw": { "headerFamily": "json", "language": "json" } } }, "url": { "raw": "{{baseUrl}}/api/oauth2/config/template", "host": [ "{{baseUrl}}" ], "path": [ "api", "oauth2", "config", "template" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "responseTime": null, "body": "{\n \"providerId\": \"\",\n \"id\": {\n \"id\": \"\"\n },\n \"createdTime\": \"\",\n \"mapperConfig\": {\n \"type\": \"GITHUB\",\n \"allowUserCreation\": \"\",\n \"activateUser\": \"\",\n \"basic\": {\n \"tenantNameStrategy\": \"CUSTOM\",\n \"emailAttributeKey\": \"\",\n \"firstNameAttributeKey\": \"\",\n \"lastNameAttributeKey\": \"\",\n \"tenantNamePattern\": \"\",\n \"customerNamePattern\": \"\",\n \"defaultDashboardName\": \"\",\n \"alwaysFullScreen\": \"\"\n },\n \"custom\": {\n \"url\": \"\",\n \"username\": \"\",\n \"password\": \"\",\n \"sendToken\": \"\"\n }\n },\n \"authorizationUri\": \"\",\n \"accessTokenUri\": \"\",\n \"scope\": [\n \"\",\n \"\"\n ],\n \"userInfoUri\": \"\",\n \"userNameAttributeName\": \"\",\n \"jwkSetUri\": \"\",\n \"clientAuthenticationMethod\": \"\",\n \"comment\": \"\",\n \"loginButtonIcon\": \"\",\n \"loginButtonLabel\": \"\",\n \"helpLink\": \"\",\n \"name\": \"\",\n \"additionalInfo\": {\n \"description\": \"A value representing the any type (object or primitive)\",\n \"examples\": [\n {}\n ]\n }\n}", "createdAt": "2026-07-28T03:12:58.000Z", "updatedAt": "2026-07-28T03:12:58.000Z", "uid": "35240-eb4e0c25-3dd5-40d5-bc27-f5dab918939f" } ], "createdAt": "2026-07-28T03:12:58.000Z", "updatedAt": "2026-07-28T03:12:58.000Z", "uid": "35240-08d9d2e4-5808-4a4b-b1d9-b145fcaff6b4" } ], "id": "1f84bdd9-fa52-4443-9e10-68f4011a2ec1", "createdAt": "2026-07-28T03:12:58.000Z", "updatedAt": "2026-07-28T03:12:58.000Z", "uid": "35240-1f84bdd9-fa52-4443-9e10-68f4011a2ec1" } ], "id": "b218205f-1a55-466e-9054-455a68707d6a", "createdAt": "2026-07-28T03:12:58.000Z", "updatedAt": "2026-07-28T03:12:58.000Z", "uid": "35240-b218205f-1a55-466e-9054-455a68707d6a" } ], "id": "7a52b900-e85f-4052-b304-890f96272682", "createdAt": "2026-07-28T03:12:58.000Z", "updatedAt": "2026-07-28T03:12:58.000Z", "uid": "35240-7a52b900-e85f-4052-b304-890f96272682" } ], "id": "e993b6ba-0ac2-46f5-aa71-87644c1783af", "createdAt": "2026-07-28T03:12:58.000Z", "updatedAt": "2026-07-28T03:12:58.000Z", "uid": "35240-e993b6ba-0ac2-46f5-aa71-87644c1783af" } ], "variable": [ { "key": "baseUrl", "value": "https://demo.thingsboard.io" } ] }