---
title: "This callback is used to get token from Oauth2 provider"
method: POST
path: "/oauth/token"
tags: ["oauth"]
---

# This callback is used to get token from Oauth2 provider

`POST /oauth/token`

Returns an access token

## Response `200`

Success

- ProviderOauthToken — Oauth token from Oauth2 provider
  - `access_token` string, required — access_token to be used for accessing gateway
  - `token_type` string, required — Only value possible is "bearer".
  - `expires_in` integer, required — Token expiration time in seconds
  - `refresh_token` string, required — Refresh_token which can used to get new token
  - `scope` string, required — Scope string with individual scopes separated by space

## Other responses

- `400` — Bad Request
- `401` — Authentication Failure
- `default` — Internal Error

---

[API](https://skmtc.net/nutanix/apis/nutanix-intentful-api.md) · [All operations](https://skmtc.net/nutanix/apis/nutanix-intentful-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nutanix/nutanix-intentful-api/versions/40395083ab31/schema)
