---
title: How to Register an OAuth Application
url: https://docs.vultr.com/platform/iam/oauth/oauth-applications/management/how-to-register-an-oauth-application
description: Register an OAuth app on Vultr, link it to an OIDC provider, and set callback URLs to get a client ID and secret.
publish_date: 2026-07-14T20:48:42.851149Z
last_updated: 2026-10-23T20:34:06.288996Z
---

> Index of every Vultr Docs page in markdown: https://docs.vultr.com/llms.txt

An OAuth application lets you authenticate other Vultr customers and call the Vultr API on their behalf, scoped to the permissions they consent to. Registering the application links it to an OIDC provider, defines the callback URLs that receive authorization codes, and returns a client secret used to exchange those codes for access tokens.

Follow this guide to register an OAuth application using the Vultr Console and the Vultr API. The application starts in `Draft` status and becomes usable by any Vultr customer only after you attach a scope, submit it, and an administrator approves it.

> [!NOTE]
> Registering and managing an OAuth application requires the organization's root user. A request from a non-root user returns an HTTP `403 Forbidden` response. When using the API, create the OIDC provider first by following [How to Create an OIDC Provider](https://docs.vultr.com/platform/iam/oidc/oidc-providers/how-to-create-an-oidc-provider), then pass its id as `oidc_provider_id`. In the Vultr Console, the provider is created automatically as part of the application form.

=== "Vultr Console"

    1. Log in to the [Vultr Console](https://console.vultr.com/).
    1. Click the organization name in the top navigation bar.
    1. Click **Manage Organization**.
    1. Click **OAuth Applications**.
    1. Click **Create OAuth App**.
    1. Enter a name in the **Name** field. The name is shown to users during authorization and cannot be changed after the application leaves `Draft` status.
    1. Enter a callback URL in the **Callback URLs** field and click the **+** button to add it.
    1. Under **Permission Policy**, select the policy that defines the application's scope.
    1. Click **Create OAuth App**.
    1. Click the **Copy** button next to the **Client ID** and the **Client Secret**, then select **I have copied these codes in a safe place**. The secret is shown only once.
    1. Click **Save as Draft** to keep the application editable, or **Send for Review** to submit it for approval.

        The application appears in the **OAuth Applications** list. Saving as a draft keeps it in **Draft** status, while sending it for review moves it to **Pending Review**.

=== "Vultr API"

    1. Send a `POST` request to the [**Create OAuth Client** endpoint](https://www.vultr.com/api/#tag/oauth/operation/create-oauth-client) to register the application. Replace `APP-NAME` with a user-visible name, `CALLBACK-URL` with a URL that receives the authorization code, and `PROVIDER-ID` with your OIDC provider id. Each callback URL must use `https://`. An `http://` URL is allowed only for `localhost` while the application is in `Draft` status, otherwise the request returns an HTTP `422 Unprocessable Entity` response.

        ```console
        $ curl "https://api.vultr.com/v2/oauth/clients" \
            -X POST \
            -H "Authorization: Bearer ${VULTR_API_KEY}" \
            -H "Content-Type: application/json" \
            -d '{
                "name": "APP-NAME",
                "callback_urls": ["CALLBACK-URL"],
                "oidc_provider_id": "PROVIDER-ID"
            }'
        ```

        A successful request returns an HTTP `201 Created` response with the application `id` and a `secret`. The `secret` is shown only once and is stored as a hash on the server, so record it immediately. Note the `id` for future operations.

    1. Send a `GET` request to the [**Read OAuth Client** endpoint](https://www.vultr.com/api/#tag/oauth/operation/get-oauth-client) to retrieve the application details. Replace `{client-id}` with the id from the previous step.

        ```console
        $ curl "https://api.vultr.com/v2/oauth/clients/{client-id}" \
            -X GET \
            -H "Authorization: Bearer ${VULTR_API_KEY}"
        ```

        Verify that the `review_status` shows `Draft` and that `callback_urls` and `oidc_provider_id` match your input.
