Skip to Content

Info

Property token detail pages: header, overview, public documents, and password-gated private documents.

Endpoints

MethodPathDescription
GET/api/info/:tokenName/headerProperty header
GET/api/info/:tokenName/overviewProperty overview
GET/api/info/:tokenName/documentsPublic documents
GET/api/info/:tokenName/documents/private/:passwordPrivate documents

Property header

GET /api/info/:tokenName/header

Returns header metadata for a property token page.

Request

import axios from 'axios'; const response = await axios.get('https://api.loafmarkets.com/api/info/:tokenName/header', { }); console.log(response.data);

Parameters

ParameterTypeRequiredDescription
tokenNamestringYes(path) Lowercase property token symbol.

Response

// See @loafmarkets/shared-types for the response type type Response = Record<string, unknown>;

Example response:

{ "success": true }

Errors

StatusCodeDescription
400validation_errorRequest failed schema validation.
401unauthorizedMissing or invalid authentication.
404not_foundResource not found (where applicable).
500internal_errorUnexpected server error.

Property overview

GET /api/info/:tokenName/overview

Returns overview content for a property token.

Request

import axios from 'axios'; const response = await axios.get('https://api.loafmarkets.com/api/info/:tokenName/overview', { }); console.log(response.data);

Parameters

ParameterTypeRequiredDescription
tokenNamestringYes(path) Lowercase property token symbol.

Response

// See @loafmarkets/shared-types for the response type type Response = Record<string, unknown>;

Example response:

{ "success": true }

Errors

StatusCodeDescription
400validation_errorRequest failed schema validation.
401unauthorizedMissing or invalid authentication.
404not_foundResource not found (where applicable).
500internal_errorUnexpected server error.

Public documents

GET /api/info/:tokenName/documents

Returns publicly available property documents.

Request

import axios from 'axios'; const response = await axios.get('https://api.loafmarkets.com/api/info/:tokenName/documents', { }); console.log(response.data);

Parameters

ParameterTypeRequiredDescription
tokenNamestringYes(path) Lowercase property token symbol.

Response

// See @loafmarkets/shared-types for the response type type Response = Record<string, unknown>;

Example response:

{ "success": true }

Errors

StatusCodeDescription
400validation_errorRequest failed schema validation.
401unauthorizedMissing or invalid authentication.
404not_foundResource not found (where applicable).
500internal_errorUnexpected server error.

Private documents

GET /api/info/:tokenName/documents/private/:password

Returns private documents when the correct password is supplied.

Request

import axios from 'axios'; const response = await axios.get('https://api.loafmarkets.com/api/info/:tokenName/documents/private/:password', { }); console.log(response.data);

Parameters

ParameterTypeRequiredDescription
tokenNamestringYes(path) Lowercase property token symbol.
passwordstringYes(path) Document access password.
lang'en' | 'cn'No(query) Document language. Default: en.

Response

// See @loafmarkets/shared-types for the response type type Response = Record<string, unknown>;

Example response:

{ "success": true }

Errors

StatusCodeDescription
400validation_errorRequest failed schema validation.
401unauthorizedMissing or invalid authentication.
404not_foundResource not found (where applicable).
500internal_errorUnexpected server error.
Last updated on