API & SDKs
Authentication API

Authentication API

If our SDKs don't fit your needs, you can interact directly with our REST API.

Base URL: https://id.optare.one/api/v1

Endpoints

Login

POST /auth/login

Authenticate a user with email and password.

{
  "email": "user@example.com",
  "password": "secure_password"
}

Get Session

GET /auth/session

Retrieve the current session information. Requires Authorization header.

List Organizations

GET /orgs

Returns a list of organizations the authenticated user belongs to.

[
  {
    "id": "org_123",
    "name": "Acme Corp",
    "role": "owner"
  }
]