Sharmo API Reference

Complete reference documentation for the Sharmo real estate tokenization API

Introduction

The Sharmo API provides programmatic access to the Sharmo real estate tokenization platform. This reference documents all available endpoints, request parameters, and response formats to help you integrate with our platform.

If you're new to the Sharmo API, we recommend starting with our Getting Started Guide for a step-by-step introduction to the integration process.

Base URL

All API requests should be made to the following base URL:

Base URL
https://api.sharmo.io/v1

Authentication

All API requests require authentication. Refer to the Authentication Guide for details on how to authenticate with the API.

Authentication

The following endpoints allow you to obtain and manage authentication tokens for accessing the Sharmo API.

POST /auth/token

Generate an access token using user credentials (OAuth 2.0 password flow).

Request Body

Parameter Type Required Description
grant_type string Yes Must be "password"
username string Yes User's email address
password string Yes User's password

Example Request

Authentication Request

fetch('https://api.sharmo.io/v1/auth/token', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    grant_type: 'password',
    username: 'user@example.com',
    password: 'securepassword'
  })
})
.then(response => response.json())
.then(data => console.log(data));

Example Response

Authentication Response
{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "refresh_token": "def5020061a9ee62553...",
  "token_type": "bearer",
  "expires_in": 3600
}

Properties

Endpoints for accessing and managing tokenized properties on the Sharmo platform.

GET /properties

Returns a list of properties based on the provided filters.

Query Parameters

Parameter Type Required Description
limit integer No Maximum number of results to return (default: 20, max: 100)
offset integer No Number of results to skip (for pagination)
status string No Filter by property status (active, pending, sold)
type string No Filter by property type (residential, commercial, industrial)

Example Request

List Properties

fetch('https://api.sharmo.io/v1/properties?limit=10&status=active', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_ACCESS_TOKEN'
  }
})
.then(response => response.json())
.then(data => console.log(data));
GET /properties/{propertyId}

Returns detailed information about a specific property.

Path Parameters

Parameter Type Required Description
propertyId string Yes Unique identifier of the property

Tokens

Endpoints for managing property tokens, including retrieving token information and tracking ownership.

GET /properties/{propertyId}/tokens

Returns token information for a specific property.

Path Parameters

Parameter Type Required Description
propertyId string Yes Unique identifier of the property
GET /tokens/balance

Returns the token balance for the authenticated user.

Transactions

Endpoints for managing and viewing token transactions.

GET /transactions

Returns a list of transactions for the authenticated user.

Query Parameters

Parameter Type Required Description
limit integer No Maximum number of results to return (default: 20, max: 100)
offset integer No Number of results to skip (for pagination)
type string No Filter by transaction type (purchase, sale, dividend)
POST /transactions

Creates a new transaction (buy or sell tokens).

Users & KYC

Endpoints for managing user profiles and KYC verification.

GET /users/me

Returns the profile information for the authenticated user.

PUT /users/me

Updates the profile information for the authenticated user.

POST /kyc/verify

Initiates KYC verification for the authenticated user.

Analytics

Endpoints for accessing market analytics and performance data.

GET /analytics/market

Returns market-wide analytics and trends.

GET /analytics/properties/{propertyId}

Returns performance analytics for a specific property.

Path Parameters

Parameter Type Required Description
propertyId string Yes Unique identifier of the property