apiTON
HomeExplorerBlog
HomeExplorerBlog
Contact
  1. v2.SiteProxy
  • api:TON Documentation
  • v2.Nft
    • Username
      POST
    • Number
      POST
    • Domain
      POST
    • Gift
      POST
    • Item
      POST
    • Items
      POST
  • v2.Rate
    • Fiat rate
      POST
    • Crypto rate
      POST
    • Exchanges rate
      POST
    • Jetton prices
      POST
  • v2.Auth
    • Do
      POST
    • List
      POST
    • Import
      POST
    • Backup
      POST
    • Delete
      POST
    • New
      POST
  • v2.Wallet
    • Send TON
      POST
    • Send Jetton
      POST
    • Send Nft
      POST
  • v2.Address
    • Transactions
    • Details
    • Jettons
    • NFTs
    • Wallets
    • Collections
    • Run get-method
    • Address labels
  • v2.NftContract
    • Mint Nft Collection
    • Mint NFT
  • v2.JettonContract
    • Mint
    • Burn
    • Change owner
    • Close Mint
  • v2.Watch
    • Create watch
    • List watches
    • Delete watch
    • Poll events
    • Test watch
  • v2.SiteProxy
    • Site proxy offer
      POST
    • Check website and domain
      POST
    • Create site proxy order
      POST
    • Get site proxy order
      POST
    • Verify site proxy order
      POST
    • Stop site proxy order
      POST
    • List site proxy orders
      POST
  • Schemas
    • Schemas
      • Connect Error
      • google.protobuf.Any
      • NftDomainSite
      • ListValue
      • Message
      • NullValue
      • Struct
      • AddressGetMethod
      • FieldsEntry
      • DetailsResponse
      • AddressGetMethodArg
      • google.protobuf.Timestamp
      • DetailsRequest
      • AddressLabel
      • AddressLabelsRequest
      • google.protobuf.Value
      • AddressRunGetMethodRequest
      • AddressLabelsResponse
      • BlockID
      • AddressRunGetMethodResponse
      • BurnRequest
      • AddressStackEntry
      • BurnResponse
      • TransactionsResponse
      • ChangeAdminRequest
      • SiteProxyCheckRequest
      • ChangeAdminResponse
      • SiteProxyCheckResponse
      • CloseMintRequest
      • SiteProxyCreateRequest
      • CloseMintResponse
      • SiteProxyCreateResponse
      • DetailsAddress
      • SiteProxyGetRequest
      • DetailsRequest
      • SiteProxyGetResponse
      • DetailsResponse
      • SiteProxyListRequest
      • DomainRequest
      • SiteProxyListResponse
      • DomainResponse
      • SiteProxyOfferRequest
      • ItemRequest
      • SiteProxyOfferResponse
      • ItemResponse
      • SiteProxyOrder
      • Jetton
      • SiteProxyOwner
      • JettonDetails
      • SiteProxyPay
      • JettonsRequest
      • SiteProxyPayMessage
      • JettonsResponse
      • SiteProxyProblem
      • Message
      • SiteProxyRecord
      • MintCollectionRequest
      • SiteProxyRouteLimits
      • MintCollectionResponse
      • SiteProxyStopRequest
      • MintNftRequest
      • SiteProxyStopResponse
      • MintNftResponse
      • SiteProxyUsage
      • MintRequest
      • SiteProxyVerifyRequest
      • MintResponse
      • SiteProxyVerifyResponse
      • NftItem
      • SiteProxyWebProof
      • NftsRequest
      • NftsResponse
      • NumberRequest
      • NumberResponse
      • RateCryptoRequest
      • RateCryptoResponse
      • ResultEntry
      • RateExchangesRequest
      • RateExchangesResponse
      • ResultEntry
      • RateFiatRequest
      • RateFiatResponse
      • ResultEntry
      • SendJettonRequest
      • SendJettonResponse
      • SendNftRequest
      • SendNftResponse
      • SendRequest
      • SendResponse
      • TeleAuction
      • TeleAuctionConfig
      • TeleAuctionLastBid
      • TeleSale
      • Transaction
      • TransactionsRequest
      • TransactionsResponse
      • UsernameRequest
      • UsernameResponse
      • Version
      • WalletAuth
      • WalletAuth4
      • WalletDetails
      • WalletNewRequest
      • WalletNewResponse
      • WalletsRequest
      • WalletsResponse
      • AddressCollection
      • AddressCollectionsRequest
      • AddressCollectionsResponse
      • AuthBackupRequest
      • AuthDeleteRequest
      • AuthDeleteResponse
      • AuthDoRequest
      • AuthImportRequest
      • AuthJwtResponse
      • AuthListRequest
      • AuthListResponse
      • AuthNewRequest
      • BlockID
      • BurnRequest
      • BurnResponse
      • ChangeAdminRequest
      • ChangeAdminResponse
      • CloseMintRequest
      • CloseMintResponse
      • DetailsAddress
      • DomainRequest
      • DomainResponse
      • GiftAttribute
      • GiftRequest
      • GiftResponse
      • ItemRequest
      • ItemResponse
      • Jetton
      • JettonDetails
      • JettonsRequest
      • JettonsResponse
      • MintCollectionRequest
      • MintCollectionResponse
      • MintNftRequest
      • MintNftResponse
      • MintRequest
      • MintResponse
      • NftItem
      • NftItemsRequest
      • NftsRequest
      • NftsResponse
      • NumberRequest
      • NumberResponse
      • RateCryptoRequest
      • RateCryptoResponse
      • RateExchangesRequest
      • RateExchangesResponse
      • RateFiatRequest
      • RateFiatResponse
      • RateJettonPricesRequest
      • RateJettonPricesResponse
      • SendJettonRequest
      • SendJettonResponse
      • SendNftRequest
      • SendNftResponse
      • SendRequest
      • SendResponse
      • TeleAuction
      • TeleAuctionConfig
      • TeleAuctionLastBid
      • TeleSale
      • Transaction
      • TransactionsRequest
      • UsernameRequest
      • UsernameResponse
      • Version
      • WalletAuth
      • WalletDetails
      • WalletInfo
      • WalletsRequest
      • WalletsResponse
    • WatchCreateRequest
    • WatchCreateResponse
    • WatchDeleteRequest
    • WatchDeleteResponse
    • WatchEvent
    • WatchLimits
    • WatchListRequest
    • WatchListResponse
    • WatchPollRequest
    • WatchPollResponse
    • WatchSubscription
    • WatchTestRequest
    • WatchTestResponse
    • WatchTx
    • WatchWebhook
  1. v2.SiteProxy

Create site proxy order

POST
/v2.SiteProxy/Create
Makes a new order for a website and a domain that Check finds eligible, and answers it with its manage_secret — shown once.
FieldTypeNotes
url, domainstringas in Check
root_pathstringoptional start page: / of the .ton site redirects to this path of your website (/start/); a path other than /, without host, query or #, up to 256 characters
curl -X POST https://app.apiton.org/v2.SiteProxy/Create -H 'Content-Type: application/json' \
  -d '{"url":"https://shop.example.com","domain":"shop.ton"}'
# (illustrative) {"order":{"id":"7k3qx9zd2m","domain":"shop.ton","host":"shop.example.com","status":"draft",…},
#  "manage_secret":"pxs_9f2c…"}
Every Create is a new order with its own id, payment comment, web token and secret — asking again for the same pair makes another order; it never answers or changes an existing one. Prove and pay the order you keep; the others are deleted unpaid after a day (draft) or a week (ready_to_pay).
manage_secret is shown once, here: apiton keeps only its hash and never issues another one for the order. Keep it — a lost secret cannot be recovered. To stop serving the site without it, point the domain's site record elsewhere (dns.ton.org): the order is then suspended (record_moved) and the site is not served.
Unpaid orders per website and per domain: 3. When a 4th is made, the oldest one still without its web proof (draft) is deleted to make room; only when all 3 are verified (ready_to_pay) is the answer resource_exhausted. So verify an order soon after creating it. With an API key the order is linked to the key (List).
Errors (Connect JSON envelope {"code":…,"message":…})
CodeWhen
failed_precondition (400)not eligible: <code>: <message>; … — the problems Check lists; url or domain empty or too long
invalid_argument (400)a bad root_path
resource_exhausted (429)3 verified unpaid orders of the website or the domain, or 200 unpaid orders in all; the plan's limits
unavailable (503)the chain read failed (retry), or the service is off

Request

Body Params application/jsonRequired

Example
{
    "url": "https://shop.example.com",
    "domain": "shop.ton"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://app.apiton.org/v2.SiteProxy/Create' \
--header 'Content-Type: application/json' \
--data '{
    "url": "https://shop.example.com",
    "domain": "shop.ton"
}'

Responses

🟢200OK
application/json
Bodyapplication/json

Example
{
    "order": {
        "id": "7k3qx9zd2m",
        "domain": "shop.ton",
        "host": "shop.example.com",
        "status": "draft",
        "created_at": "2026-11-05T12:00:00Z",
        "web_proof": {
            "token": "00112233445566778899aabbccddeeff",
            "value": "apiton-verify=00112233445566778899aabbccddeeff",
            "file_url": "https://shop.example.com/.well-known/apiton-verify.txt",
            "txt_name": "_apiton-verify.shop.example.com"
        },
        "ton_url": "http://shop.ton/",
        "kind": "domain"
    },
    "manage_secret": "pxs_9f2c…"
}
🔴500Server Error
Previous
Check website and domain
Next
Get site proxy order
Built with