API Docs · v2

OneChain REST API

Base URL, auth, and endpoint map. Full request/response schemas live in the platform after you sign in.

Base URL & auth

https://api.one-chain.io
Authorization: Bearer <api_key>

Create a free account → generate an API key in the dashboard → send it on every request.

# Example
curl -X GET "https://api.one-chain.io/api/v2/docs/{id}" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"

Endpoints

34+ routes across six services. Paths below are relative to the base URL.

Documents /api/v2/docs

POST/api/v2/docsCreate document
GET/api/v2/docs/{id}Get document
POST/api/v2/docs/uploadList / upload docs
POST/api/v2/docs/{id}/signSign document
POST/api/v2/docs/{id}/attachments/uploadUpload attachment
GET/api/v2/docs/{id}/attachments/{i}Get attachment
GET/api/v2/docs/{id}/attachments/{i}/proofsAttachment proofs

Digital Assets /api/v2/rsnfts

POST/api/v2/rsnfts/createNftsCreate collection
POST/api/v2/rsnfts/mintNFTMint NFT
POST/api/v2/rsnfts/.../tradeNFTTransfer / trade
POST/api/v2/rsnfts/setBaseUriSet base URI
GET/api/v2/rsnfts/.../getNFTGet NFT
GET/api/v2/rsnfts/.../getNFTCollectionGet collection
GET/api/v2/rsnfts/.../getTransfersTransfer history
GET/api/v2/rsnfts/.../getBaseUriGet base URI

Products /api/v2/products

POST/api/v2/products/commitCreate / update
POST/api/v2/productsList (paginated)
GET/api/v2/products/type/{type}By type
GET/api/v2/products/item/{productId}By ID
GET/api/v2/products/txid/{txid}By transaction
DEL/api/v2/products/{productId}Delete

IdeaBlock & IPFS /api/v2/ideaBlock · /api/v2/ipfs

POST/api/v2/ideaBlock/upload/saveTimestamp file
GET/api/v2/ideaBlock/file/{key}/{hash}Verify by hash
POST/api/v2/ipfs/uploadUpload to IPFS
GET/api/v2/ipfs/{hash}Fetch by hash

Users /api/v2/users

POST/api/v2/users/registerRegister account
GET/api/v2/users/{publicKey}Get account