👋Welcome
This is the documentation for the Trustless Work Core API — a ground-up rewrite of the backend that powers Trustless Work escrows.
Base URL
https://beta.api.trustlesswork.comThis environment runs on Stellar Testnet. Use testnet assets and testnet wallets.
Version 1's backend remains at api.trustlesswork.com (mainnet) and dev.api.trustlesswork.com (testnet). The two are not interchangeable — credentials, read endpoints and error shapes all differ.
What changed, in one paragraph
The previous API required you to report your own transactions: after signing and submitting an XDR yourself, you had to POST its txHash to indexer/update-from-txHash or the escrow would never appear in any read. That endpoint no longer exists. Escrow state is now recorded automatically from the chain — you submit your transaction and it becomes queryable on its own, usually within seconds. Authentication also moved to SEP-10 wallet signatures.
See Migrating from Version 1 for the full list.
What stayed the same
The core promise is unchanged, and it shapes every endpoint:
Trustless Work never holds your keys and never signs your transactions. Every endpoint that changes on-chain state returns an unsigned transaction (XDR). Your wallet signs it. You submit it. The server is a transaction builder, not a custodian.
Where to go next
Get something working end to end
Quickstart
Understand credentials and roles
Authentication
Query escrows, milestones, balances
Escrows — the read endpoints
Handle failures correctly
Errors
Port an existing Version 1 integration
Migrating from Version 1
Browse every endpoint
The API REST section
Status
The API surface is stable enough to build against, but it runs on testnet and is still moving. If something in these pages disagrees with the interactive API reference, the API reference wins — it is generated directly from the running service.