---
title: "Get OAuth2 clients (getOAuth2Clients)"
method: POST
path: "/api/noauth/oauth2Clients"
tags: ["o-auth-2-controller"]
---

# Get OAuth2 clients (getOAuth2Clients)

`POST /api/noauth/oauth2Clients`

Get the list of OAuth2 clients to log in with, available for such domain scheme (HTTP or HTTPS) (if x-forwarded-proto request header is present - the scheme is known from it) and domain name and port (port may be known from x-forwarded-port header)

## Query parameters

- `pkgName` string
- `platform` 'WEB' | 'ANDROID' | 'IOS'

## Response `200`

OK

- OAuth2ClientLoginInfo[]
  - `name` string — OAuth2 client name
  - `icon` string — Name of the icon, displayed on OAuth2 log in button
  - `url` string — URI for OAuth2 log in. On HTTP GET request to this URI, it redirects to the OAuth2 provider page

---

[API](https://skmtc.net/thingsboard/apis/thingsboard-rest-api.md) · [All operations](https://skmtc.net/thingsboard/apis/thingsboard-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/thingsboard/thingsboard-rest-api/revisions/40169ccdec5c/schema)
