# Assetora+ partner API (V2): the whole guide ## Basics - **Addresses.** Sandbox: `https://sandbox.api.assetora.com/v2` (test keys `ak_test_…`, made-up data). Live: `https://api.assetora.com/v2` (live keys `ak_live_…`). - **Keys.** Send `Authorization: Bearer `. Get a test key at once in the console (https://developers.assetora.com/console). Live keys come after Assetora reviews your organisation and you agree the partner terms. A key can be limited to your servers’ addresses. - **What you see.** A live key sees only the companies and investors who connected you; they can disconnect at any time (you get `client.disconnected`). - **Versions.** Every answer carries `Assetora-Version` (current: `2027-01-15`). Your key keeps the version it was made with; send the header to choose another. Breaking changes come in a new dated version with 3 months’ notice; additions (new fields, new calls) can arrive any time, so ignore fields you don’t know. - **Writes.** Send `Idempotency-Key: ` with every POST. Repeating a request with the same key returns the first answer instead of doing it twice. - **Lists.** `limit` (1–100, default 25) and `cursor` (the `next_cursor` of the previous page; null on the last page). - **Limits.** 120 requests a minute in the sandbox, 300 live. `RateLimit-Remaining` and `RateLimit-Reset` are on every answer; a 429 has `Retry-After`. - **Errors.** `application/problem+json` with a stable `code`, a `detail`, a `fix` and a `request_id` (quote it to support). Codes are listed below. - **Money** is in AUD as numbers; times are ISO 8601 in UTC; ABNs are 11 digits. ## Code libraries - TypeScript / JavaScript: `npm install @assetora/partner` - Python: `pip install assetora-partner` - Java: `com.assetorapartner0.1.0` - C# (.NET): `dotnet add package Assetora.Partner` - Go: `go get github.com/assetora/partner-go` Each library is a thin client generated from the OpenAPI document: one method per call, named after the operation id, sending your key, the version and an Idempotency-Key on writes, and raising an error carrying the problem+json body. ## Calls ### Who this key belongs to `GET /me` · operation id `getMe` · for: every partner The partner, its kind, the environment and version of the key, and what it may call. A good first call to check a key works. Example answer: ```json { "partner": { "id": "prt_demo_lender", "name": "Harbourline Capital", "kind": "lender", "live_status": "approved" }, "key": { "id": "key_8sd2", "env": "test", "version": "2027-01-15", "allowed_addresses": [] }, "scopes": [ "lending" ], "note": "Sandbox: every company, person and figure is made up." } ``` Errors: `missing_key`, `invalid_key`, `wrong_environment`, `address_not_allowed`, `insufficient_scope`, `rate_limited`, `unknown_version`, `server_error`. cURL: ``` curl https://sandbox.api.assetora.com/v2/me \ -H "Authorization: Bearer $ASSETORA_KEY" ``` TypeScript / JavaScript: ``` import { Assetora } from '@assetora/partner'; const assetora = new Assetora({ apiKey: process.env.ASSETORA_KEY! }); // ak_test_… const result = await assetora.getMe(); console.log(result); ``` Python: ``` import os from assetora_partner import Assetora assetora = Assetora(api_key=os.environ["ASSETORA_KEY"]) # ak_test_… result = assetora.get_me() print(result) ``` Java: ``` import com.assetora.partner.Assetora; import java.util.Map; var assetora = new Assetora(System.getenv("ASSETORA_KEY")); // ak_test_… var result = assetora.getMe(); System.out.println(result); ``` C# (.NET): ``` using Assetora.Partner; var assetora = new AssetoraClient(Environment.GetEnvironmentVariable("ASSETORA_KEY")!); // ak_test_… var result = await assetora.GetMeAsync(); Console.WriteLine(result); ``` Go: ``` client := assetora.New(os.Getenv("ASSETORA_KEY")) // ak_test_… result, err := client.GetMe(ctx) if err != nil { log.Fatal(err) } fmt.Println(result) ``` ### Companies and investors connected to you `GET /clients` · operation id `listClients` · for: every partner Every company or investor that chose to connect this partner, and what they agreed to share. They can disconnect at any time; a disconnected client disappears from every list at once. - `limit` (query, integer): How many to return, 1–100. Default 25. - `cursor` (query, string): The next_cursor from the previous page. - `type` (query, string: company | investor): Only companies or only investors. Example answer: ```json { "data": [ { "id": "cmp_kestrel", "type": "company", "name": "Kestrel Robotics Pty Ltd", "abn": "51824753556", "shares": [ "score", "leads" ], "connected_at": "2026-10-02T00:00:00Z" } ], "next_cursor": null } ``` Errors: `missing_key`, `invalid_key`, `wrong_environment`, `address_not_allowed`, `insufficient_scope`, `rate_limited`, `unknown_version`, `server_error`. cURL: ``` curl https://sandbox.api.assetora.com/v2/clients \ -H "Authorization: Bearer $ASSETORA_KEY" ``` TypeScript / JavaScript: ``` import { Assetora } from '@assetora/partner'; const assetora = new Assetora({ apiKey: process.env.ASSETORA_KEY! }); // ak_test_… const result = await assetora.listClients(); console.log(result); ``` Python: ``` import os from assetora_partner import Assetora assetora = Assetora(api_key=os.environ["ASSETORA_KEY"]) # ak_test_… result = assetora.list_clients() print(result) ``` Java: ``` import com.assetora.partner.Assetora; import java.util.Map; var assetora = new Assetora(System.getenv("ASSETORA_KEY")); // ak_test_… var result = assetora.listClients(); System.out.println(result); ``` C# (.NET): ``` using Assetora.Partner; var assetora = new AssetoraClient(Environment.GetEnvironmentVariable("ASSETORA_KEY")!); // ak_test_… var result = await assetora.ListClientsAsync(); Console.WriteLine(result); ``` Go: ``` client := assetora.New(os.Getenv("ASSETORA_KEY")) // ak_test_… result, err := client.ListClients(ctx) if err != nil { log.Fatal(err) } fmt.Println(result) ``` ### A connected company's Assetora+ Score `GET /lending/companies/{abn}/score` · operation id `getCompanyScore` · for: lender The Score (0–1000), its grade (A+ to D), how much of it rests on data (confidence), the seven parts with their weights, the certificate level if any (monitored, reviewed or assured) and the last 12 months. Only for companies that connected you and agreed to share their Score. - `abn` (path, string, required): The company’s 11-digit ABN, spaces allowed. Example answer: ```json { "company": { "id": "cmp_kestrel", "name": "Kestrel Robotics Pty Ltd", "abn": "51824753556" }, "score": 782, "grade": "A", "confidence": 88, "provisional": false, "model": "model-2", "parts": [ { "key": "financial", "label": "Financial strength", "weight": 0.25, "score": 81 } ], "certificate": { "level": "reviewed", "issued_at": "2026-10-02", "valid_until": "2027-10-01" }, "history": [ { "month": "2026-12", "score": 782 } ], "updated_at": "2026-12-04T19:00:00Z" } ``` Errors: `not_connected`, `bad_request`, `missing_key`, `invalid_key`, `wrong_environment`, `address_not_allowed`, `insufficient_scope`, `rate_limited`, `unknown_version`, `server_error`. cURL: ``` curl https://sandbox.api.assetora.com/v2/lending/companies/51824753556/score \ -H "Authorization: Bearer $ASSETORA_KEY" ``` TypeScript / JavaScript: ``` import { Assetora } from '@assetora/partner'; const assetora = new Assetora({ apiKey: process.env.ASSETORA_KEY! }); // ak_test_… const result = await assetora.getCompanyScore("51824753556"); console.log(result); ``` Python: ``` import os from assetora_partner import Assetora assetora = Assetora(api_key=os.environ["ASSETORA_KEY"]) # ak_test_… result = assetora.get_company_score("51824753556") print(result) ``` Java: ``` import com.assetora.partner.Assetora; import java.util.Map; var assetora = new Assetora(System.getenv("ASSETORA_KEY")); // ak_test_… var result = assetora.getCompanyScore("51824753556"); System.out.println(result); ``` C# (.NET): ``` using Assetora.Partner; var assetora = new AssetoraClient(Environment.GetEnvironmentVariable("ASSETORA_KEY")!); // ak_test_… var result = await assetora.GetCompanyScoreAsync("51824753556"); Console.WriteLine(result); ``` Go: ``` client := assetora.New(os.Getenv("ASSETORA_KEY")) // ak_test_… result, err := client.GetCompanyScore(ctx, "51824753556") if err != nil { log.Fatal(err) } fmt.Println(result) ``` ### Companies asking for finance `GET /lending/leads` · operation id `listLeads` · for: lender Finance requests from companies that chose to share them with you, newest first, with the amount, purpose, term, security offered and the company’s current Score and grade. - `limit` (query, integer): How many to return, 1–100. Default 25. - `cursor` (query, string): The next_cursor from the previous page. - `status` (query, string: open | offer_sent | offer_accepted | closed): Filter by status. Example answer: ```json { "data": [ { "id": "lead_k7p2", "company": { "id": "cmp_kestrel", "name": "Kestrel Robotics Pty Ltd", "abn": "51824753556" }, "amount": 750000, "currency": "AUD", "purpose": "Working capital for a new production line", "term_months": 36, "security": "General security agreement", "score": 782, "grade": "A", "status": "open", "created_at": "2026-12-02T03:14:00Z" } ], "next_cursor": null } ``` Errors: `missing_key`, `invalid_key`, `wrong_environment`, `address_not_allowed`, `insufficient_scope`, `rate_limited`, `unknown_version`, `server_error`. cURL: ``` curl https://sandbox.api.assetora.com/v2/lending/leads \ -H "Authorization: Bearer $ASSETORA_KEY" ``` TypeScript / JavaScript: ``` import { Assetora } from '@assetora/partner'; const assetora = new Assetora({ apiKey: process.env.ASSETORA_KEY! }); // ak_test_… const result = await assetora.listLeads(); console.log(result); ``` Python: ``` import os from assetora_partner import Assetora assetora = Assetora(api_key=os.environ["ASSETORA_KEY"]) # ak_test_… result = assetora.list_leads() print(result) ``` Java: ``` import com.assetora.partner.Assetora; import java.util.Map; var assetora = new Assetora(System.getenv("ASSETORA_KEY")); // ak_test_… var result = assetora.listLeads(); System.out.println(result); ``` C# (.NET): ``` using Assetora.Partner; var assetora = new AssetoraClient(Environment.GetEnvironmentVariable("ASSETORA_KEY")!); // ak_test_… var result = await assetora.ListLeadsAsync(); Console.WriteLine(result); ``` Go: ``` client := assetora.New(os.Getenv("ASSETORA_KEY")) // ak_test_… result, err := client.ListLeads(ctx) if err != nil { log.Fatal(err) } fmt.Println(result) ``` ### Send a loan offer `POST /lending/offers` · operation id `createOffer` · for: lender Send an offer to a company, usually in answer to a lead. The company sees it in Assetora+ and can accept or decline; you hear back by webhook (offer.accepted, offer.declined, loan.drawn). - `lead_id` (body, string): The lead you are answering (optional). - `company_id` (body, string, required): The company (cmp_…). - `amount` (body, number, required): Amount in AUD, at least 1,000. - `rate_pct` (body, number, required): Yearly interest rate in per cent. - `term_months` (body, integer, required): Term in months, 1–360. - `note` (body, string): A short note the company sees with the offer. - `expires_at` (body, string): When the offer lapses (ISO 8601). Default 14 days. Example answer: ```json { "id": "ofr_3hT9xk", "company_id": "cmp_kestrel", "lead_id": "lead_k7p2", "amount": 750000, "currency": "AUD", "rate_pct": 9.4, "term_months": 36, "status": "sent", "expires_at": "2026-12-19T00:00:00Z", "created_at": "2026-12-05T01:00:00Z" } ``` Errors: `not_connected`, `bad_request`, `bad_json`, `idempotency_conflict`, `missing_key`, `invalid_key`, `wrong_environment`, `address_not_allowed`, `insufficient_scope`, `rate_limited`, `unknown_version`, `server_error`. cURL: ``` curl -X POST https://sandbox.api.assetora.com/v2/lending/offers \ -H "Authorization: Bearer $ASSETORA_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{"lead_id":"lead_k7p2","company_id":"cmp_kestrel","amount":750000,"rate_pct":9.4,"term_months":36,"note":"Approval subject to a site visit."}' ``` TypeScript / JavaScript: ``` import { Assetora } from '@assetora/partner'; const assetora = new Assetora({ apiKey: process.env.ASSETORA_KEY! }); // ak_test_… const result = await assetora.createOffer({ "lead_id": "lead_k7p2", "company_id": "cmp_kestrel", "amount": 750000, "rate_pct": 9.4, "term_months": 36, "note": "Approval subject to a site visit." }); console.log(result); ``` Python: ``` import os from assetora_partner import Assetora assetora = Assetora(api_key=os.environ["ASSETORA_KEY"]) # ak_test_… result = assetora.create_offer(lead_id="lead_k7p2", company_id="cmp_kestrel", amount=750000, rate_pct=9.4, term_months=36, note="Approval subject to a site visit.") print(result) ``` Java: ``` import com.assetora.partner.Assetora; import java.util.Map; var assetora = new Assetora(System.getenv("ASSETORA_KEY")); // ak_test_… var result = assetora.createOffer(Map.of("lead_id", "lead_k7p2", "company_id", "cmp_kestrel", "amount", 750000, "rate_pct", 9.4, "term_months", 36, "note", "Approval subject to a site visit.")); System.out.println(result); ``` C# (.NET): ``` using Assetora.Partner; var assetora = new AssetoraClient(Environment.GetEnvironmentVariable("ASSETORA_KEY")!); // ak_test_… var result = await assetora.CreateOfferAsync(new Dictionary { ["lead_id"] = "lead_k7p2", ["company_id"] = "cmp_kestrel", ["amount"] = 750000, ["rate_pct"] = 9.4m, ["term_months"] = 36, ["note"] = "Approval subject to a site visit." }); Console.WriteLine(result); ``` Go: ``` client := assetora.New(os.Getenv("ASSETORA_KEY")) // ak_test_… result, err := client.CreateOffer(ctx, map[string]any{"lead_id": "lead_k7p2", "company_id": "cmp_kestrel", "amount": 750000, "rate_pct": 9.4, "term_months": 36, "note": "Approval subject to a site visit."}) if err != nil { log.Fatal(err) } fmt.Println(result) ``` ### Your offers and where they stand `GET /lending/offers` · operation id `listOffers` · for: lender Offers you have sent, newest first: sent, accepted, declined, withdrawn, drawn or expired. - `limit` (query, integer): How many to return, 1–100. Default 25. - `cursor` (query, string): The next_cursor from the previous page. Example answer: ```json { "data": [ { "id": "ofr_3hT9xk", "company_id": "cmp_kestrel", "amount": 750000, "currency": "AUD", "rate_pct": 9.4, "term_months": 36, "status": "sent", "created_at": "2026-12-05T01:00:00Z" } ], "next_cursor": null } ``` Errors: `missing_key`, `invalid_key`, `wrong_environment`, `address_not_allowed`, `insufficient_scope`, `rate_limited`, `unknown_version`, `server_error`. cURL: ``` curl https://sandbox.api.assetora.com/v2/lending/offers \ -H "Authorization: Bearer $ASSETORA_KEY" ``` TypeScript / JavaScript: ``` import { Assetora } from '@assetora/partner'; const assetora = new Assetora({ apiKey: process.env.ASSETORA_KEY! }); // ak_test_… const result = await assetora.listOffers(); console.log(result); ``` Python: ``` import os from assetora_partner import Assetora assetora = Assetora(api_key=os.environ["ASSETORA_KEY"]) # ak_test_… result = assetora.list_offers() print(result) ``` Java: ``` import com.assetora.partner.Assetora; import java.util.Map; var assetora = new Assetora(System.getenv("ASSETORA_KEY")); // ak_test_… var result = assetora.listOffers(); System.out.println(result); ``` C# (.NET): ``` using Assetora.Partner; var assetora = new AssetoraClient(Environment.GetEnvironmentVariable("ASSETORA_KEY")!); // ak_test_… var result = await assetora.ListOffersAsync(); Console.WriteLine(result); ``` Go: ``` client := assetora.New(os.Getenv("ASSETORA_KEY")) // ak_test_… result, err := client.ListOffers(ctx) if err != nil { log.Fatal(err) } fmt.Println(result) ``` ### Your client companies and their progress `GET /advisers/clients` · operation id `listAdviserClients` · for: adviser Each client company’s set-up progress on Assetora+, its open compliance items and next deadline, its ASF status and its Score grade. - `limit` (query, integer): How many to return, 1–100. Default 25. - `cursor` (query, string): The next_cursor from the previous page. Example answer: ```json { "data": [ { "id": "cmp_coralbay", "name": "Coral Bay Foods Pty Ltd", "abn": "21102417895", "setup": { "done": 6, "total": 7, "next": "Upload the latest board minutes" }, "compliance": { "open_items": 3, "next_deadline": "2026-12-21", "next_deadline_what": "Annual review with ASIC" }, "asf": { "ticker": "ASF:CORL", "status": "live" }, "grade": "B+" } ], "next_cursor": null } ``` Errors: `missing_key`, `invalid_key`, `wrong_environment`, `address_not_allowed`, `insufficient_scope`, `rate_limited`, `unknown_version`, `server_error`. cURL: ``` curl https://sandbox.api.assetora.com/v2/advisers/clients \ -H "Authorization: Bearer $ASSETORA_KEY" ``` TypeScript / JavaScript: ``` import { Assetora } from '@assetora/partner'; const assetora = new Assetora({ apiKey: process.env.ASSETORA_KEY! }); // ak_test_… const result = await assetora.listAdviserClients(); console.log(result); ``` Python: ``` import os from assetora_partner import Assetora assetora = Assetora(api_key=os.environ["ASSETORA_KEY"]) # ak_test_… result = assetora.list_adviser_clients() print(result) ``` Java: ``` import com.assetora.partner.Assetora; import java.util.Map; var assetora = new Assetora(System.getenv("ASSETORA_KEY")); // ak_test_… var result = assetora.listAdviserClients(); System.out.println(result); ``` C# (.NET): ``` using Assetora.Partner; var assetora = new AssetoraClient(Environment.GetEnvironmentVariable("ASSETORA_KEY")!); // ak_test_… var result = await assetora.ListAdviserClientsAsync(); Console.WriteLine(result); ``` Go: ``` client := assetora.New(os.Getenv("ASSETORA_KEY")) // ak_test_… result, err := client.ListAdviserClients(ctx) if err != nil { log.Fatal(err) } fmt.Println(result) ``` ### Invite a company to Assetora+ `POST /advisers/clients` · operation id `inviteClient` · for: adviser Invite a client company to join Assetora+ with you as its adviser. Assetora sends the invitation; once they join and connect you, they appear in your client list. - `company_name` (body, string, required): The company’s name. - `abn` (body, string): Its ABN, if you know it. - `email` (body, string, required): Who to send the invitation to. Example answer: ```json { "id": "inv_7Gq2", "company_name": "Wattle Street Bakery Pty Ltd", "email": "founder@wattlestreet.example", "status": "sent", "created_at": "2026-12-05T01:00:00Z" } ``` Errors: `bad_request`, `bad_json`, `idempotency_conflict`, `conflict`, `missing_key`, `invalid_key`, `wrong_environment`, `address_not_allowed`, `insufficient_scope`, `rate_limited`, `unknown_version`, `server_error`. cURL: ``` curl -X POST https://sandbox.api.assetora.com/v2/advisers/clients \ -H "Authorization: Bearer $ASSETORA_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{"company_name":"Wattle Street Bakery Pty Ltd","email":"founder@wattlestreet.example"}' ``` TypeScript / JavaScript: ``` import { Assetora } from '@assetora/partner'; const assetora = new Assetora({ apiKey: process.env.ASSETORA_KEY! }); // ak_test_… const result = await assetora.inviteClient({ "company_name": "Wattle Street Bakery Pty Ltd", "email": "founder@wattlestreet.example" }); console.log(result); ``` Python: ``` import os from assetora_partner import Assetora assetora = Assetora(api_key=os.environ["ASSETORA_KEY"]) # ak_test_… result = assetora.invite_client(company_name="Wattle Street Bakery Pty Ltd", email="founder@wattlestreet.example") print(result) ``` Java: ``` import com.assetora.partner.Assetora; import java.util.Map; var assetora = new Assetora(System.getenv("ASSETORA_KEY")); // ak_test_… var result = assetora.inviteClient(Map.of("company_name", "Wattle Street Bakery Pty Ltd", "email", "founder@wattlestreet.example")); System.out.println(result); ``` C# (.NET): ``` using Assetora.Partner; var assetora = new AssetoraClient(Environment.GetEnvironmentVariable("ASSETORA_KEY")!); // ak_test_… var result = await assetora.InviteClientAsync(new Dictionary { ["company_name"] = "Wattle Street Bakery Pty Ltd", ["email"] = "founder@wattlestreet.example" }); Console.WriteLine(result); ``` Go: ``` client := assetora.New(os.Getenv("ASSETORA_KEY")) // ak_test_… result, err := client.InviteClient(ctx, map[string]any{"company_name": "Wattle Street Bakery Pty Ltd", "email": "founder@wattlestreet.example"}) if err != nil { log.Fatal(err) } fmt.Println(result) ``` ### A connected investor's ASF holdings `GET /wealth/investors/{ref}/holdings` · operation id `getHoldings` · for: wealth Units held in each ASF, the last price, value and the time of the price, for an investor who connected you. Prices are delayed 20 minutes. - `ref` (path, string, required): The investor’s reference from GET /clients. Example answer: ```json { "investor": { "ref": "inv_demo_ana", "name": "Ana Rossi" }, "holdings": [ { "ticker": "ASF:KEST", "name": "Kestrel Robotics ASF", "units": 12000, "last_price": 1.42, "value": 17040, "currency": "AUD" } ], "total_value": 26850, "as_of": "2026-12-05T00:40:00Z", "delayed_minutes": 20 } ``` Errors: `not_connected`, `missing_key`, `invalid_key`, `wrong_environment`, `address_not_allowed`, `insufficient_scope`, `rate_limited`, `unknown_version`, `server_error`. cURL: ``` curl https://sandbox.api.assetora.com/v2/wealth/investors/inv_demo_ana/holdings \ -H "Authorization: Bearer $ASSETORA_KEY" ``` TypeScript / JavaScript: ``` import { Assetora } from '@assetora/partner'; const assetora = new Assetora({ apiKey: process.env.ASSETORA_KEY! }); // ak_test_… const result = await assetora.getHoldings("inv_demo_ana"); console.log(result); ``` Python: ``` import os from assetora_partner import Assetora assetora = Assetora(api_key=os.environ["ASSETORA_KEY"]) # ak_test_… result = assetora.get_holdings("inv_demo_ana") print(result) ``` Java: ``` import com.assetora.partner.Assetora; import java.util.Map; var assetora = new Assetora(System.getenv("ASSETORA_KEY")); // ak_test_… var result = assetora.getHoldings("inv_demo_ana"); System.out.println(result); ``` C# (.NET): ``` using Assetora.Partner; var assetora = new AssetoraClient(Environment.GetEnvironmentVariable("ASSETORA_KEY")!); // ak_test_… var result = await assetora.GetHoldingsAsync("inv_demo_ana"); Console.WriteLine(result); ``` Go: ``` client := assetora.New(os.Getenv("ASSETORA_KEY")) // ak_test_… result, err := client.GetHoldings(ctx, "inv_demo_ana") if err != nil { log.Fatal(err) } fmt.Println(result) ``` ### Place a buy or sell order for an investor `POST /wealth/orders` · operation id `createOrder` · for: wealth · live use waits on a legal review (`wealth.orders`); the sandbox works now Places an order on an ASF for a connected investor who authorised you to trade. Live orders are switched on only after the legal review; in the sandbox they work now and fill against made-up prices. - `investor_ref` (body, string, required): The investor. - `ticker` (body, string, required): The ASF, e.g. ASF:KEST. - `side` (body, string, required: buy | sell): Buy or sell. - `units` (body, integer, required): Whole units, at least 1. - `limit_price` (body, number): The worst price per unit you accept. Leave out for the market price. Example answer: ```json { "id": "ord_Pq81", "investor_ref": "inv_demo_ana", "ticker": "ASF:KEST", "side": "buy", "units": 500, "limit_price": 1.45, "status": "received", "created_at": "2026-12-05T01:00:00Z" } ``` Errors: `not_connected`, `feature_off`, `bad_request`, `bad_json`, `idempotency_conflict`, `missing_key`, `invalid_key`, `wrong_environment`, `address_not_allowed`, `insufficient_scope`, `rate_limited`, `unknown_version`, `server_error`. cURL: ``` curl -X POST https://sandbox.api.assetora.com/v2/wealth/orders \ -H "Authorization: Bearer $ASSETORA_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{"investor_ref":"inv_demo_ana","ticker":"ASF:KEST","side":"buy","units":500,"limit_price":1.45}' ``` TypeScript / JavaScript: ``` import { Assetora } from '@assetora/partner'; const assetora = new Assetora({ apiKey: process.env.ASSETORA_KEY! }); // ak_test_… const result = await assetora.createOrder({ "investor_ref": "inv_demo_ana", "ticker": "ASF:KEST", "side": "buy", "units": 500, "limit_price": 1.45 }); console.log(result); ``` Python: ``` import os from assetora_partner import Assetora assetora = Assetora(api_key=os.environ["ASSETORA_KEY"]) # ak_test_… result = assetora.create_order(investor_ref="inv_demo_ana", ticker="ASF:KEST", side="buy", units=500, limit_price=1.45) print(result) ``` Java: ``` import com.assetora.partner.Assetora; import java.util.Map; var assetora = new Assetora(System.getenv("ASSETORA_KEY")); // ak_test_… var result = assetora.createOrder(Map.of("investor_ref", "inv_demo_ana", "ticker", "ASF:KEST", "side", "buy", "units", 500, "limit_price", 1.45)); System.out.println(result); ``` C# (.NET): ``` using Assetora.Partner; var assetora = new AssetoraClient(Environment.GetEnvironmentVariable("ASSETORA_KEY")!); // ak_test_… var result = await assetora.CreateOrderAsync(new Dictionary { ["investor_ref"] = "inv_demo_ana", ["ticker"] = "ASF:KEST", ["side"] = "buy", ["units"] = 500, ["limit_price"] = 1.45m }); Console.WriteLine(result); ``` Go: ``` client := assetora.New(os.Getenv("ASSETORA_KEY")) // ak_test_… result, err := client.CreateOrder(ctx, map[string]any{"investor_ref": "inv_demo_ana", "ticker": "ASF:KEST", "side": "buy", "units": 500, "limit_price": 1.45}) if err != nil { log.Fatal(err) } fmt.Println(result) ``` ### ASFs and their prices `GET /market/asfs` · operation id `listAsfs` · for: media, wealth, lender, adviser Every live ASF with its last price, NAV per unit, change today, volume and number of unit-holders. Delayed 20 minutes; live prices are licensed separately. - `limit` (query, integer): How many to return, 1–100. Default 25. - `cursor` (query, string): The next_cursor from the previous page. Example answer: ```json { "data": [ { "ticker": "ASF:KEST", "name": "Kestrel Robotics ASF", "last_price": 1.42, "nav_per_unit": 1.35, "change_pct": 2.9, "volume_today": 18400, "unit_holders": 214, "currency": "AUD" } ], "as_of": "2026-12-05T00:40:00Z", "delayed_minutes": 20, "next_cursor": null } ``` Errors: `missing_key`, `invalid_key`, `wrong_environment`, `address_not_allowed`, `insufficient_scope`, `rate_limited`, `unknown_version`, `server_error`. cURL: ``` curl https://sandbox.api.assetora.com/v2/market/asfs \ -H "Authorization: Bearer $ASSETORA_KEY" ``` TypeScript / JavaScript: ``` import { Assetora } from '@assetora/partner'; const assetora = new Assetora({ apiKey: process.env.ASSETORA_KEY! }); // ak_test_… const result = await assetora.listAsfs(); console.log(result); ``` Python: ``` import os from assetora_partner import Assetora assetora = Assetora(api_key=os.environ["ASSETORA_KEY"]) # ak_test_… result = assetora.list_asfs() print(result) ``` Java: ``` import com.assetora.partner.Assetora; import java.util.Map; var assetora = new Assetora(System.getenv("ASSETORA_KEY")); // ak_test_… var result = assetora.listAsfs(); System.out.println(result); ``` C# (.NET): ``` using Assetora.Partner; var assetora = new AssetoraClient(Environment.GetEnvironmentVariable("ASSETORA_KEY")!); // ak_test_… var result = await assetora.ListAsfsAsync(); Console.WriteLine(result); ``` Go: ``` client := assetora.New(os.Getenv("ASSETORA_KEY")) // ak_test_… result, err := client.ListAsfs(ctx) if err != nil { log.Fatal(err) } fmt.Println(result) ``` ### Company announcements `GET /market/announcements` · operation id `listAnnouncements` · for: media, wealth, lender, adviser Announcements ASF companies publish on Assetora+, newest first. Free to republish with a link back. - `limit` (query, integer): How many to return, 1–100. Default 25. - `cursor` (query, string): The next_cursor from the previous page. - `ticker` (query, string): Only this ASF, e.g. ASF:KEST. Example answer: ```json { "data": [ { "id": "ann_kest_31", "ticker": "ASF:KEST", "company": "Kestrel Robotics Pty Ltd", "title": "Kestrel Robotics signs a three-year supply deal with a mining group", "summary": "The deal covers 40 inspection robots over three years.", "published_at": "2026-12-03T23:00:00Z", "url": "https://news.assetora.com/" } ], "next_cursor": null } ``` Errors: `missing_key`, `invalid_key`, `wrong_environment`, `address_not_allowed`, `insufficient_scope`, `rate_limited`, `unknown_version`, `server_error`. cURL: ``` curl https://sandbox.api.assetora.com/v2/market/announcements \ -H "Authorization: Bearer $ASSETORA_KEY" ``` TypeScript / JavaScript: ``` import { Assetora } from '@assetora/partner'; const assetora = new Assetora({ apiKey: process.env.ASSETORA_KEY! }); // ak_test_… const result = await assetora.listAnnouncements(); console.log(result); ``` Python: ``` import os from assetora_partner import Assetora assetora = Assetora(api_key=os.environ["ASSETORA_KEY"]) # ak_test_… result = assetora.list_announcements() print(result) ``` Java: ``` import com.assetora.partner.Assetora; import java.util.Map; var assetora = new Assetora(System.getenv("ASSETORA_KEY")); // ak_test_… var result = assetora.listAnnouncements(); System.out.println(result); ``` C# (.NET): ``` using Assetora.Partner; var assetora = new AssetoraClient(Environment.GetEnvironmentVariable("ASSETORA_KEY")!); // ak_test_… var result = await assetora.ListAnnouncementsAsync(); Console.WriteLine(result); ``` Go: ``` client := assetora.New(os.Getenv("ASSETORA_KEY")) // ak_test_… result, err := client.ListAnnouncements(ctx) if err != nil { log.Fatal(err) } fmt.Println(result) ``` ### Score grades of ASF companies `GET /market/score-grades` · operation id `listScoreGrades` · for: media · live use waits on a legal review (`market.score_grades`); the sandbox works now The grade (A+ to D) and certificate level of each ASF company, for publishing. Live use is switched on only after the legal review. - `limit` (query, integer): How many to return, 1–100. Default 25. - `cursor` (query, string): The next_cursor from the previous page. Example answer: ```json { "data": [ { "ticker": "ASF:KEST", "company": "Kestrel Robotics Pty Ltd", "grade": "A", "certificate": "reviewed", "updated_at": "2026-12-04T19:00:00Z" } ], "next_cursor": null } ``` Errors: `feature_off`, `missing_key`, `invalid_key`, `wrong_environment`, `address_not_allowed`, `insufficient_scope`, `rate_limited`, `unknown_version`, `server_error`. cURL: ``` curl https://sandbox.api.assetora.com/v2/market/score-grades \ -H "Authorization: Bearer $ASSETORA_KEY" ``` TypeScript / JavaScript: ``` import { Assetora } from '@assetora/partner'; const assetora = new Assetora({ apiKey: process.env.ASSETORA_KEY! }); // ak_test_… const result = await assetora.listScoreGrades(); console.log(result); ``` Python: ``` import os from assetora_partner import Assetora assetora = Assetora(api_key=os.environ["ASSETORA_KEY"]) # ak_test_… result = assetora.list_score_grades() print(result) ``` Java: ``` import com.assetora.partner.Assetora; import java.util.Map; var assetora = new Assetora(System.getenv("ASSETORA_KEY")); // ak_test_… var result = assetora.listScoreGrades(); System.out.println(result); ``` C# (.NET): ``` using Assetora.Partner; var assetora = new AssetoraClient(Environment.GetEnvironmentVariable("ASSETORA_KEY")!); // ak_test_… var result = await assetora.ListScoreGradesAsync(); Console.WriteLine(result); ``` Go: ``` client := assetora.New(os.Getenv("ASSETORA_KEY")) // ak_test_… result, err := client.ListScoreGrades(ctx) if err != nil { log.Fatal(err) } fmt.Println(result) ``` ### Events you can subscribe to `GET /webhooks/events` · operation id `listWebhookEvents` · for: every partner Every event Assetora+ can send to your webhook address, with an example. Subscribe in the console. Example answer: ```json { "data": [ { "event": "lead.created", "kinds": [ "lender" ], "about": "A company shared a new finance request with you." } ] } ``` Errors: `missing_key`, `invalid_key`, `wrong_environment`, `address_not_allowed`, `insufficient_scope`, `rate_limited`, `unknown_version`, `server_error`. cURL: ``` curl https://sandbox.api.assetora.com/v2/webhooks/events \ -H "Authorization: Bearer $ASSETORA_KEY" ``` TypeScript / JavaScript: ``` import { Assetora } from '@assetora/partner'; const assetora = new Assetora({ apiKey: process.env.ASSETORA_KEY! }); // ak_test_… const result = await assetora.listWebhookEvents(); console.log(result); ``` Python: ``` import os from assetora_partner import Assetora assetora = Assetora(api_key=os.environ["ASSETORA_KEY"]) # ak_test_… result = assetora.list_webhook_events() print(result) ``` Java: ``` import com.assetora.partner.Assetora; import java.util.Map; var assetora = new Assetora(System.getenv("ASSETORA_KEY")); // ak_test_… var result = assetora.listWebhookEvents(); System.out.println(result); ``` C# (.NET): ``` using Assetora.Partner; var assetora = new AssetoraClient(Environment.GetEnvironmentVariable("ASSETORA_KEY")!); // ak_test_… var result = await assetora.ListWebhookEventsAsync(); Console.WriteLine(result); ``` Go: ``` client := assetora.New(os.Getenv("ASSETORA_KEY")) // ak_test_… result, err := client.ListWebhookEvents(ctx) if err != nil { log.Fatal(err) } fmt.Println(result) ``` ### Send a test event to your webhook `POST /webhooks/test` · operation id `sendTestWebhook` · for: every partner Sends a signed example of an event to your webhook address(es) for this environment, so you can check your receiver and its signature check. - `event` (body, string, required): Which event to send an example of. Example answer: ```json { "sent_to": 1, "deliveries": [ { "id": "evt_Lm2a", "url": "https://partner.example/hooks/assetora", "status": 200 } ] } ``` Errors: `bad_request`, `bad_json`, `missing_key`, `invalid_key`, `wrong_environment`, `address_not_allowed`, `insufficient_scope`, `rate_limited`, `unknown_version`, `server_error`. cURL: ``` curl -X POST https://sandbox.api.assetora.com/v2/webhooks/test \ -H "Authorization: Bearer $ASSETORA_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{"event":"lead.created"}' ``` TypeScript / JavaScript: ``` import { Assetora } from '@assetora/partner'; const assetora = new Assetora({ apiKey: process.env.ASSETORA_KEY! }); // ak_test_… const result = await assetora.sendTestWebhook({ "event": "lead.created" }); console.log(result); ``` Python: ``` import os from assetora_partner import Assetora assetora = Assetora(api_key=os.environ["ASSETORA_KEY"]) # ak_test_… result = assetora.send_test_webhook(event="lead.created") print(result) ``` Java: ``` import com.assetora.partner.Assetora; import java.util.Map; var assetora = new Assetora(System.getenv("ASSETORA_KEY")); // ak_test_… var result = assetora.sendTestWebhook(Map.of("event", "lead.created")); System.out.println(result); ``` C# (.NET): ``` using Assetora.Partner; var assetora = new AssetoraClient(Environment.GetEnvironmentVariable("ASSETORA_KEY")!); // ak_test_… var result = await assetora.SendTestWebhookAsync(new Dictionary { ["event"] = "lead.created" }); Console.WriteLine(result); ``` Go: ``` client := assetora.New(os.Getenv("ASSETORA_KEY")) // ak_test_… result, err := client.SendTestWebhook(ctx, map[string]any{"event": "lead.created"}) if err != nil { log.Fatal(err) } fmt.Println(result) ``` ## Webhook events Signed with `Assetora-Signature: t=,v1=.">` using your webhook’s secret. Answer 2xx within 10 seconds. - `client.connected` (everyone): A company or investor connected you. `{"client":{"id":"cmp_kestrel","type":"company"},"shares":["score","leads"]}` - `client.disconnected` (everyone): A company or investor disconnected you. Stop using their data. `{"client":{"id":"cmp_kestrel","type":"company"}}` - `lead.created` (lender): A company shared a new finance request with you. `{"lead":{"id":"lead_k7p2","company_id":"cmp_kestrel","amount":750000,"currency":"AUD","term_months":36}}` - `score.changed` (lender): A connected company's Score or grade changed. `{"company_id":"cmp_kestrel","score":782,"grade":"A","previous":{"score":771,"grade":"A"}}` - `offer.accepted` (lender): A company accepted your offer. `{"offer":{"id":"ofr_3hT9xk","status":"accepted"}}` - `offer.declined` (lender): A company declined your offer. `{"offer":{"id":"ofr_3hT9xk","status":"declined"}}` - `loan.drawn` (lender): The loan from your offer was drawn. `{"offer":{"id":"ofr_3hT9xk","status":"drawn"},"amount":750000,"currency":"AUD","drawn_at":"2026-12-20T00:00:00Z"}` - `client.setup_progress` (adviser): A client company finished a set-up step. `{"company_id":"cmp_coralbay","setup":{"done":7,"total":7}}` - `compliance.deadline_soon` (adviser): A client company has a compliance deadline within 14 days. `{"company_id":"cmp_coralbay","deadline":"2026-12-21","what":"Annual review with ASIC"}` - `holding.changed` (wealth): A connected investor's units in an ASF changed. `{"investor_ref":"inv_demo_ana","ticker":"ASF:KEST","units":12500}` - `order.filled` (wealth): Your order was filled. `{"order":{"id":"ord_Pq81","status":"filled","price":1.43}}` - `announcement.published` (media, wealth, lender, adviser): An ASF company published an announcement. `{"announcement":{"id":"ann_kest_31","ticker":"ASF:KEST","title":"Kestrel Robotics signs a three-year supply deal with a mining group"}}` ## Errors - `missing_key` (401): No API key was sent. Send your key in the Authorization header: "Authorization: Bearer ak_test_…". - `invalid_key` (401): The API key is not valid. Check you copied the whole key. Keys that were revoked stop working at once; make a new one in the console. - `key_not_live` (403): This partner is not approved for live keys yet. Use your test key in the sandbox. Apply to go live from the console (Settings → Go live). - `wrong_environment` (400): Test key used on the live address, or a live key on the sandbox. Test keys (ak_test_) go to sandbox.api.assetora.com; live keys (ak_live_) to api.assetora.com. - `address_not_allowed` (403): The request came from an address this key doesn't allow. Add your server's address to the key's allowed addresses in the console, or remove the restriction. - `insufficient_scope` (403): This key can't make this call. Each partner kind has its own calls (lenders: lending; advisers: advisers; wealth: wealth; media: market). Check the call is in your kind’s list. - `feature_off` (403): This feature is not switched on for live partners yet. It works in the sandbox. Assetora switches it on for live partners once its legal review is done. - `not_connected` (404): No connected client with that id. A partner sees only companies and investors who connected it. Ask the client to connect you, then list them with GET /clients or the lending/advisers lists. - `not_found` (404): Nothing found at that address. Check the path against the reference at /docs/reference. - `bad_request` (400): The request is not valid. The `errors` list says which field is wrong and why. - `bad_json` (400): The body is not valid JSON. Send a JSON object with "Content-Type: application/json". - `unknown_version` (400): Unknown Assetora-Version. Leave the header out to use your key’s version, or send one of the versions in the changelog. - `conflict` (409): That conflicts with the current state. Read the record again and retry with what it says now. - `idempotency_conflict` (409): The Idempotency-Key was used with a different body. Use a new Idempotency-Key for a different request. - `rate_limited` (429): Too many requests. Wait for the seconds in Retry-After. Limits: 120 a minute in the sandbox, 300 live. - `server_error` (500): Something went wrong on our side. Retry with the same Idempotency-Key. If it keeps happening, quote the request id to support.