Optare Logo
  • Introduction
    • Authentication
    • Roles & Permissions
    • Quick Start
    • MCP Server
    • Organizations
    • Security
    • Troubleshooting
    • FAQ
    • API Reference
    • Custom Claims
    • Getting Started
    • NextAuth.js Integration
    • OIDC Configuration
    • Portal Guide
    • Getting Started
    • Your Organization
    • Team Members
    • Subscriptions & Billing
    • Connected Apps
    • Webhooks
    • Account Settings
    • Readme
    • UI Components
    • Admin Guide
    • Getting Started
    • Managing Organizations
    • Managing Products
    • Managing Subscriptions
    • OAuth Clients
    • API Keys
    • Readme
    • API Overview
    • Authentication API
    • Backend SDK
    • Frontend SDK
    • UI Components
    • CLI Reference
    • Framework Compatibility
    • Examples
    • API Reference
    • Authentication
    • Readme

On This Page

  • Authentication
  • Creating an Organization
Question? Give us feedback → (opens in a new tab)Edit this page
API & SDKs
Examples

Examples

Here are some common examples of how to use Optare.

Authentication

import { OptareClient } from '@optare/sdk';
 
const client = new OptareClient({
  apiKey: '...'
});
 
await client.auth.login(email, password);

Creating an Organization

const org = await client.orgs.create({
  name: 'My Team'
});
Framework CompatibilityAPI Reference

© 2025 Optare. All rights reserved.