---
id: receive-personal-access-tokens-from-o-auth-2
title: "Receive personal access tokens from OAuth2"
description: "-> Receive and store personal access tokens from OAuth for user-level authorization"
sidebar_label: "Receive personal access tokens from OAuth2"
hide_title: true
hide_table_of_contents: true
api: eJzFVm1v2zYQ/iuHwz4kmBwnQQcEKjrAzdKmXdoGtYsNiIKUkc6WUopUScqNJ+i/D0dKfouzdQGGfpJI3h3vuZeH12BGNjVF5QqtMMbBr/CRUirmBEJlYJ02BBUZq5WQINKUrAWnv5CyMDW6hA+j2uUw1QZqS2YgaU4SRO1ybYq/hLcaYSWMKMmRsRhfNVjwTV9rMguMUImSMEbrhCOM0KY5lQLjBt2iCgemUDNs22i3YqqzJ+nZVFdPUiRjtPlHxesIDdlKK0uWz48PD/mTauVIOa9B926Yu1Ly4nFDbbSVnhFkdVkuwJKcDlKpbaFmcD55dwGVmBG2ET57cJeoKlmkPhXDO8tm1q+sjK7IuCJ4WpK1bGhXNPodfXtHqeO76F6UlaQNRXwpMjD0tSbrYnij5kIWGawKACqj50VG2S54a7oBy7Mfi+W9djDVtcpimOTUu0bspNW1SQkyTRaUdkD3BTv9ENPSBt/yy4/OzhvlyHArWzJzMuCLOYaRglrRfUUpo/OboNO0NmZ3ol4JJ2SQ85dbSmtTuIVv77tvDuOra24DJ2bc8vibcOJWWMLrCO8H3LJj71zgAynUjDv508cLjFCKW5KrZQg0r2sjYfAnvD6bQIK5c1U8HEqdCplr6+KTw5OToaiK4fxomHXXDTUz0fEwQUiSRAEMziHB0To7xfCShCEDP41OT8/G45vJh9/P3ieI3P6dY5cLl3se611bbiydK8pKG9dXiE1UonoKgBfL7YMZuT32A/47gijo5SQyMvZFs4UjwRgS7LAkCD93ZH3jybpN1H6iKlMot9f7dcDltre/v470rZiLsc/zGtqNzVU6tLIMeAlSfBOFgym5NPcYn4aw2YAZ92vYzhvj/dynrglYJx7q56DR8odxP09U8JVvXPq5FYVOSEs6kHq2x6L7z5FLuCSX6wxjnJHzT5nLMcbHUHCEfGeFyq4NB3BnHHC7py74GDJ+QHVVknJdj/r8BENNZbTTqZZtPBw2bKqNGy689oG109o6XfYmIpwLU4hbGYikN8P/GU1FLV3nJkZIqi65Z7slfyz37ab988nkEpZ22gjZm017S7wPnBsH8uEzflRBG3hzyUYYy6aRnaHq9L1069/bnoDGTJ0BpKehBm99jbzSphRs7+0fk/7t5ioOp7ikTw+6jVj5xtDUkM2faqSNsFBTHeBseF/zQOWryRWOGXp9i2snyM2PQkisK4V/F7oBpB/Q/nUsO94O3NrL8z9Nel0E/HxTSVEohuCLt+la5wpFVTDOI/aufxciDA2EEXKthWK6wqbh009Gti1vh0mMGysrLFdzhvFUSEsRfqHF2hQ5F7JmP3zvPCLbDY7fI9rPit8j24+HK9nrVff5dzHCwG4eSFAapSl5eu21VgPiBge9PuPC40itDQHL8ut+2Gx3JNRizWjTBInAk8wZ4XafZWyv27b9G5UyHr0=
sidebar_class_name: "get api-method"
info_path: developer-docs/api/superset
custom_edit_url: null
hide_send_button: true
show_extensions: true
---

import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import ParamsDetails from "@theme/ParamsDetails";
import RequestSchema from "@theme/RequestSchema";
import StatusCodes from "@theme/StatusCodes";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
import Heading from "@theme/Heading";
import Translate from "@docusaurus/Translate";

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Receive personal access tokens from OAuth2"}
>
</Heading>

<MethodEndpoint
  method={"get"}
  path={"/api/v1/database/oauth2/"}
  context={"endpoint"}
>

</MethodEndpoint>



-&gt; Receive and store personal access tokens from OAuth for user-level authorization

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
>
  <Translate id="theme.openapi.request.title">Request</Translate>
</Heading>

<ParamsDetails
  {...require("./receive-personal-access-tokens-from-o-auth-2.ParamsDetails.json")}
>

</ParamsDetails>

<RequestSchema
  {...require("./receive-personal-access-tokens-from-o-auth-2.RequestSchema.json")}
>

</RequestSchema>

<StatusCodes
  {...require("./receive-personal-access-tokens-from-o-auth-2.StatusCodes.json")}
>

</StatusCodes>
