List OAuth scopes
List OAuth scopes: listOauthScopes in the TypeScript, Python, Rust and Go clients.
GET /v1/auth/oauth/scopes
Lists the business permissions available to OAuth applications.
photon.auth.listOauthScopes(input?: ListOauthScopesInput, options?: RequestOptions): Promise<ListOauthScopesOutput>photon.auth.list_oauth_scopes(input: ListOauthScopesInput | None = None, *, options: RequestOptions | None = None) -> models.ListOauthScopesResponseclient.list_oauth_scopes().await -> Result<ResponseValue<types::ListOauthScopesResponse>, Error<ListOauthScopesError>>client.Auth.ListOauthScopes(ctx context.Context, opts ...RequestOption) (*ListOauthScopesResponse, error)import { Photon } from "@photon-ai/api";
const photon = new Photon();
const result = await photon.auth.listOauthScopes();from photon_api import Photon
photon = Photon()
result = photon.auth.list_oauth_scopes()use photon_ai_api::PhotonClientBuilder;
let client = PhotonClientBuilder::new().build()?;
let result = client
.list_oauth_scopes()
.await
.map_err(|error| format!("{error:?}"))?
.into_inner();import (
"context"
photonapi "github.com/photon-hq/api/packages/go"
)
ctx := context.Background()
client := photonapi.NewClient()
result, err := client.Auth.ListOauthScopes(ctx)
if err != nil {
return err
}
_ = result{
"scopes": [
"string"
]
}Parameters
Selects the API contract date. Without it, the request is served as 2026-07-01.
Returns
200 The configurable OAuth business permissions. ListOauthScopesResponse
Headers: Photon-Version. The raw response carries these headers; see Raw responses.
Business permissions an OAuth application can be configured with. Client creation and scope updates accept only these values. OIDC protocol scopes (openid, profile, email, offline_access) are not included.