For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.

Swift: Create OAuth client

Create a new OAuth client.

Parameters

Examples

Create a new OAuth client

let client = try await admin.oauth.createClient(
  CreateOAuthClient(
    clientName: "My OAuth App",
    redirectURIs: [URL(string: "https://example.com/callback")!]
  )
)
let clientID = client.clientID
let clientSecret = client.clientSecret