---
title: "Used to get authorization code from server"
method: POST
path: "/oauth/authorize"
tags: ["oauth"]
---

# Used to get authorization code from server

`POST /oauth/authorize`

Authorization confirmation post url

## Response `default`

Internal Error

- OauthStatus — The status of a REST API call. Only used when there is a failure to report.
  - `kind` string — The kind name
  - `code` integer — The HTTP error code.
  - `message_list` MessageResource[]
    - `message` string, required — If state is ERROR, a message describing the error.
    - `reason` string, required — If state is ERROR, a machine-readable snake-cased string.
    - `details` object — Custom key-value details relevant to the status.
  - `state` string
  - `api_version` string

## Other responses

- `302` — authorization grant is provided in callback url callback url is in format {redirect_uri}/?code={grant_code}&state={state}

---

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