---
title: "Get OAuth2 log in processing URL (getMailProcessingUrl)"
method: GET
path: "/api/admin/mail/oauth2/loginProcessingUrl"
tags: ["admin-controller"]
---

# Get OAuth2 log in processing URL (getMailProcessingUrl)

`GET /api/admin/mail/oauth2/loginProcessingUrl`

Returns the URL enclosed in double quotes. After successful authentication with OAuth2 provider and user consent for requested scope, it makes a redirect to this path so that the platform can do further log in processing and generating access tokens. 

Available for users with 'SYS_ADMIN' authority.

## Response `200`

OK

- string

---

[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)
