Okta.Sdk.Api.OrgSettingMetadataApi

October 22, 2025 ยท View on GitHub

All URIs are relative to https://subdomain.okta.com

MethodHTTP requestDescription
GetWellknownOrgMetadataGET /.well-known/okta-organizationRetrieve the Org metadata

GetWellknownOrgMetadata

WellKnownOrgMetadata GetWellknownOrgMetadata ()

Retrieve the Org metadata

Retrieves the org metadata, which includes the org ID, configured custom domains, and authentication pipeline

Example

using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;

namespace Example
{
    public class GetWellknownOrgMetadataExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.OktaDomain = "https://subdomain.okta.com";
            var apiInstance = new OrgSettingMetadataApi(config);

            try
            {
                // Retrieve the Org metadata
                WellKnownOrgMetadata result = apiInstance.GetWellknownOrgMetadata();
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling OrgSettingMetadataApi.GetWellknownOrgMetadata: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

This endpoint does not need any parameter.

Return type

WellKnownOrgMetadata

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Success-
429Too Many Requests-

[Back to top] [Back to API list] [Back to Model list] [Back to README]