{"openapi":"3.1.0","info":{"title":"Riafront API","summary":"Read your firm's data, add and change records, send files, and get told when things happen.","version":"1.0.0","description":"Read your firm's clients, accounts, positions, transactions, daily values, money in and out, and notes. Add and change clients, accounts, households, goals, follow-ups, held-away assets, transactions, and documents. Get a webhook when something happens.\n\n## Get started\n\n1. **Make a key.** A firm admin opens Settings → API and picks what the key can read and add. The key starts with `riafront_live_`. It is shown once, so copy it then.\n2. **Check it works.** Run `curl -H \"Authorization: Bearer $RIAFRONT_API_KEY\" https://api.riafront.com/api/v1/me`. It says which firm the key belongs to, what it can read, and how far the data has got.\n3. **Pull some data.** Try `GET /clients?limit=50`. Pass next_cursor as cursor until it comes back null.\n\nSend the key as `Authorization: Bearer riafront_live_…` on every request (see [RFC 6750 section 2.1](https://www.rfc-editor.org/rfc/rfc6750#section-2.1)). The [authentication guide](https://api.riafront.com/docs/api/authentication) has the steps and the key options.\n\n## Things to know\n\n- **Limits.** Keys get 120 requests a minute unless set otherwise. Every response has X-Request-Id, X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset. Over the limit you get a 429 and a Retry-After header.\n- **Key options.** A key can be limited to some advisors' clients, to some IP addresses, and to its own number of requests a minute. It can also have an expiry date.\n- **Paging.** Lists come a page at a time, from 1 to 1000 rows (200 if you leave limit out).\n- **Adding things.** Send an Idempotency-Key header with each POST so a retry after a timeout can't add the same thing twice. PATCH changes a record, PUT /…/external/{external_id} adds or changes one by the id you use for it, and POST /…/bulk takes up to 500 rows as JSON or CSV. Transactions you send wait on the Reconciliation page for review and are not posted straight away.\n- **Values.** Money is in US dollars unless a column says otherwise. Returns are decimals: 0.01 is 1%. Dates are YYYY-MM-DD and times are ISO 8601 in UTC.\n- **When data is ready.** A market day is valued at 9:30pm New York time (8:30pm in winter), and the custodian's prices for it come in at 2am (1am). Pull after 6am New York time for final numbers, or check data_ready on /me, or ask for the data.ready webhook.\n- **Errors.** They look like `{\"error\": {\"code\": \"forbidden\", \"message\": \"…\"}}`, and the message says what to do.\n- **Two kinds of key.** /portfolio, /holdings and /performance use a client key (`riafront_k1_…`) that a client makes in the portal. Firm keys don't work there and client keys don't work anywhere else. Their errors are a plain `{\"error\": \"message\"}`."},"externalDocs":{"description":"Guides and examples","url":"https://api.riafront.com/docs/api"},"servers":[{"url":"https://api.riafront.com/api/v1","description":"This server"}],"security":[{"firmApiKey":[]}],"tags":[{"name":"Key","description":"Check the key you are using and how far the data has got."},{"name":"Clients","description":"Everyone the firm manages money for: people, trusts, and companies. Read with clients:read. Add with clients:write."},{"name":"Accounts","description":"Each client's accounts, with today's value. Read with accounts:read. Add with accounts:write."},{"name":"Positions","description":"What each account holds right now, at the latest prices. Read with positions:read. Add with positions:write."},{"name":"Transactions","description":"Every trade, dividend, fee, deposit, withdrawal, and transfer. Read with transactions:read. Add with transactions:write."},{"name":"Daily values","description":"Each account's value and return for each day. Read with daily_values:read. Add with daily_values:write."},{"name":"Money in and out","description":"Deposits, withdrawals, and cash or shares moved in from or out to other firms, in US dollars. Read with flows:read."},{"name":"Notes","description":"Calls, meetings, emails, and notes logged against clients. Read with notes:read. Add with notes:write."},{"name":"Households","description":"Groups of clients who are billed or reviewed together, like a family. Members are in household-members. Read with households:read. Add with households:write."},{"name":"Household members","description":"Which clients are in which household. Read with the same scope as households. Read with households:read."},{"name":"Documents","description":"Details of the files kept for clients, like statements and agreements. The files themselves come from /documents/{id}/file, which needs the documents:files scope. Read with documents:read. Add with documents:write."},{"name":"Held-away assets","description":"Things a client owns that are held somewhere else, like another brokerage, a bank, or a private fund. Some come from a linked bank or brokerage and some are typed in. Each has its latest value and the day that value is for. Read with held_away:read. Add with held_away:write."},{"name":"Liabilities","description":"What a client owes, like a mortgage, a car loan, or a credit card. Each has its latest balance and the day that balance is for. Nothing is added to a balance since that day. Read with liabilities:read. Add with liabilities:write."},{"name":"Liability balances","description":"Every balance entered for every liability, not only the latest one. A liability has one balance a day. Use client_id to get one client's and match them to liabilities with liability_id. Read with liabilities:read. Add with liabilities:write."},{"name":"Orders","description":"Trade orders, from draft through to filled, rejected, or cancelled. from and to are on the day the order was made. Read with orders:read."},{"name":"Invoices","description":"Fee invoices sent to clients. from and to are on the day the billing period ends. Read with invoices:read. Add with invoices:write."},{"name":"Invoice payments","description":"Payments recorded against invoices. from and to are on the day it was paid. Read with payments:read."},{"name":"Signature requests","description":"Documents sent to clients to sign, and how each one went. from and to are on the day it was sent. Read with signatures:read."},{"name":"Goals","description":"Clients' financial goals, like retirement or a home. Read with goals:read. Add with goals:write."},{"name":"Risk scores","description":"Each time a client's risk questionnaire was taken: the scores and the risk profile they gave. The answers aren't included. from and to are on the day it was taken. Read with risk_scores:read."},{"name":"Securities","description":"The stocks, funds, bonds, and cash holdings your clients hold or have traded. Details only, with no prices. Prices come with positions. Read with securities:read."},{"name":"Follow-ups","description":"Notes that have a follow-up date: the things an advisor said they would do. status is open or done. from and to are on the follow-up date. Read with follow_ups:read. Add with follow_ups:write."},{"name":"Prices","description":"Send only, there's nothing to read back. Add with prices:write."},{"name":"Period returns","description":"Send only, there's nothing to read back. Add with period_returns:write."},{"name":"Client portfolio","description":"A client reads their own accounts, holdings, and performance. These routes take a client key (riafront_k1_…) and not a firm key."},{"name":"Webhooks","description":"We send events to the https address a firm admin adds on the API page in Settings, for the events they pick. Each one is a POST with a JSON body and these headers: Riafront-Signature, Riafront-Event, Riafront-Event-Id, and Riafront-Delivery.\n\nTo check a request is from us:\n\n1. Read t and v1 from Riafront-Signature, which looks like `t=1790000000,v1=<hex>`.\n2. Join t, a dot, and the raw body exactly as it arrived, like `1790000000.{\"id\":\"…\"}`. Don't parse and re-serialize the JSON first.\n3. Work out the HMAC-SHA256 of that text with the webhook's secret (it starts `whsec_` and is shown once, when the webhook is made), as hex.\n4. Compare it with v1, in constant time.\n5. Refuse the request if t is more than 300 seconds away from your clock. That stops an old request being sent again.\n\nHMAC is described in [RFC 2104](https://www.rfc-editor.org/rfc/rfc2104).\n\nAnswer with any 2xx status within 10 seconds. Anything else, or no answer, counts as a failure. We don't follow redirects. We try again after 1, 5, and 30 minutes, then 2, 6, 12, and 24 hours. After 8 tries the event is marked failed and the firm's admins are told. Each try has a new signature but the same body, Riafront-Event-Id, and Riafront-Delivery, so use Riafront-Event-Id to skip an event you already handled. Deliveries are kept for 30 days."},{"name":"Reference","description":"This description of the API."}],"paths":{"/me":{"get":{"operationId":"getMe","summary":"The key you are using","description":"Which firm the key belongs to, what it can read and add, and how far the data has got (data_ready). Needs no scope, so it is a quick way to check a key works, and that a day is in, before you pull.","tags":["Key"],"responses":{"200":{"description":"The key and its firm.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Me"},"example":{"data":{"firm":{"id":"7e4a2b10-93c5-4d68-b1f2-0a5d6c8e9f31","name":"Harbor Lane Wealth"},"key":{"id":"a17c5e92-4d0b-4b86-8f3e-62b9d1c07a45","name":"Data warehouse","prefix":"riafront_live_Qx7k","scopes":["clients:read","accounts:read","transactions:read","notes:read","notes:write"],"expires_at":null},"data_ready":{"values_through":"2026-10-07","custodian_prices_through":"2026-10-07","accounts_updating":0}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The request came from an address the key doesn't allow."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/clients":{"get":{"operationId":"listClients","summary":"Clients","description":"Everyone the firm manages money for: people, trusts, and companies. Needs the clients:read scope. A key limited to some advisors only sees those advisors' clients. Use updated_since to pick up only what changed since your last run. status takes active, archived. Rows come a page at a time. Pass next_cursor as cursor until it comes back null. Add format=csv for a CSV file instead of JSON. Its next cursor is in the X-Next-Cursor header.","tags":["Clients"],"parameters":[{"$ref":"#/components/parameters/Email"},{"$ref":"#/components/parameters/ExternalId"},{"$ref":"#/components/parameters/Status"},{"$ref":"#/components/parameters/UpdatedSince"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/Format"}],"responses":{"200":{"description":"A page of rows.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/clients"}},"next_cursor":{"type":["string","null"],"description":"Pass as cursor to get the next page. Null on the last page."}}},"example":{"data":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_type":"individual","entity_type":null,"first_name":"Rita","last_name":"Moreno","legal_name":null,"email":"rita@example.com","phone":"+1 555 0100","status":"active","risk_profile":"moderate","advisor_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","next_review_date":"2026-12-15","external_id":"CRM-10442","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}],"next_cursor":"M2YyYjFjOWUtN2E0MS00ZDdlLTlhNTUtMWQyYzNiNGE1ZjYw"}},"text/csv":{"schema":{"type":"string"},"example":"id,client_type,entity_type,first_name,last_name,legal_name,email,phone,status,risk_profile,advisor_id,next_review_date,external_id,created_at,updated_at\r\n3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60,individual,,Rita,Moreno,,rita@example.com,+1 555 0100,active,moderate,1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b,2026-12-15,CRM-10442,2026-09-28T14:05:00Z,2026-09-28T14:05:00Z\r\n"}}},"400":{"$ref":"#/components/responses/BadRequest","description":"A filter, the limit, or the cursor is wrong. The message says which."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the clients:read scope, or the request came from an address the key doesn't allow."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"operationId":"createClient","summary":"Add a client","description":"Every client needs an email. A person needs first_name and last_name. An entity (a trust, company, and so on) needs legal_name and entity_type. Needs the clients:write scope. Fields we don't know are refused, so a typo doesn't pass unnoticed. Send an Idempotency-Key header with each request so a retry can't add it twice. Everything added is on the firm's activity log, naming the key. A key limited to some advisors only sees those advisors' clients.","tags":["Clients"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/clients_create"},"examples":{"client":{"summary":"Add a client","value":{"first_name":"Rita","last_name":"Moreno","email":"rita@example.com","advisor_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","risk_profile":"moderate","external_id":"crm-10442"}},"entity":{"summary":"Add a trust or company","value":{"client_type":"entity","legal_name":"Moreno Family Trust","entity_type":"revocable_trust","email":"trustees@example.com","advisor_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b"}}}}}},"responses":{"201":{"description":"Added. The new row, as GET returns it.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/clients"}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_type":"individual","entity_type":null,"first_name":"Rita","last_name":"Moreno","legal_name":null,"email":"rita@example.com","phone":"+1 555 0100","status":"active","risk_profile":"moderate","advisor_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","next_review_date":"2026-12-15","external_id":"crm-10442","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The body isn't JSON, or the Idempotency-Key is longer than 255 characters."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the clients:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/clients/{id}":{"get":{"operationId":"getClientById","summary":"One client","description":"One client by its id. Needs the clients:read scope. A key limited to some advisors only sees those advisors' clients.","tags":["Clients"],"parameters":[{"$ref":"#/components/parameters/RowId"}],"responses":{"200":{"description":"The row.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/clients"}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_type":"individual","entity_type":null,"first_name":"Rita","last_name":"Moreno","legal_name":null,"email":"rita@example.com","phone":"+1 555 0100","status":"active","risk_profile":"moderate","advisor_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","next_review_date":"2026-12-15","external_id":"CRM-10442","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The id isn't an id."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the clients:read scope, or the request came from an address the key doesn't allow."},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}},"patch":{"operationId":"updateClient","summary":"Change a client","description":"Changes the fields you send and leaves the rest as they are. Send null to empty a field that can be emptied. Only fields that are safe to change are taken, never balances or ids or anything that would rewrite history, and anything else is a 422. Needs the clients:write scope. Changes go on the firm's activity log, naming the key. A key limited to some advisors only sees those advisors' clients.","tags":["Clients"],"parameters":[{"$ref":"#/components/parameters/RowId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"minProperties":1,"properties":{"first_name":{"type":"string","description":"For a person.","maxLength":100},"last_name":{"type":"string","description":"For a person.","maxLength":100},"legal_name":{"type":"string","description":"For an entity, its legal name.","maxLength":200},"email":{"type":"string","format":"email","description":"Has to be unique.","maxLength":254},"phone":{"type":["string","null"],"description":"Phone number.","maxLength":40},"advisor_id":{"type":"string","format":"uuid","description":"Their advisor. A key limited to one advisor fills this in."},"risk_profile":{"type":["string","null"],"description":"The key of one of the firm's risk profiles, like moderate.","maxLength":40},"next_review_date":{"type":["string","null"],"format":"date","description":"When their next review is due."},"mailing_street":{"type":["string","null"],"description":"Street address.","maxLength":200},"mailing_city":{"type":["string","null"],"description":"City.","maxLength":100},"mailing_region":{"type":["string","null"],"description":"State or region.","maxLength":100},"mailing_postal_code":{"type":["string","null"],"description":"Postal code.","maxLength":20},"mailing_country":{"type":["string","null"],"description":"Country.","maxLength":100},"status":{"type":"string","enum":["active","archived"],"description":"archived takes the client off the active list. Nothing is deleted."},"external_id":{"type":["string","null"],"description":"Your own id for this record, like its id in your CRM. Up to 200 characters. Has to be unique in your firm. Use it with PUT /{path}/external/{external_id} to add or change the record without making copies.","maxLength":200}}},"example":{"first_name":"Rita","last_name":"Moreno","email":"rita@example.com","advisor_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","risk_profile":"moderate","external_id":"crm-10442"}}}},"responses":{"200":{"description":"Changed. The whole client, as GET returns it.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/clients"}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_type":"individual","entity_type":null,"first_name":"Rita","last_name":"Moreno","legal_name":null,"email":"rita@example.com","phone":"+1 555 0100","status":"active","risk_profile":"moderate","advisor_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","next_review_date":"2026-12-15","external_id":"crm-10442","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The body isn't JSON, or an id in the address isn't an id."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the clients:write scope, or the request came from an address the key doesn't allow."},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict","description":"The email or external_id is already used by another client."},"422":{"$ref":"#/components/responses/Invalid","description":"A field is wrong, or one that can't be changed was sent."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/accounts":{"get":{"operationId":"listAccounts","summary":"Accounts","description":"Each client's accounts, with today's value. Needs the accounts:read scope. A key limited to some advisors only sees those advisors' clients. Use updated_since to pick up only what changed since your last run. status takes active, inactive, closed. Rows come a page at a time. Pass next_cursor as cursor until it comes back null. Add format=csv for a CSV file instead of JSON. Its next cursor is in the X-Next-Cursor header.","tags":["Accounts"],"parameters":[{"$ref":"#/components/parameters/ClientId"},{"$ref":"#/components/parameters/ExternalId"},{"$ref":"#/components/parameters/Status"},{"$ref":"#/components/parameters/UpdatedSince"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/Format"}],"responses":{"200":{"description":"A page of rows.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/accounts"}},"next_cursor":{"type":["string","null"],"description":"Pass as cursor to get the next page. Null on the last page."}}},"example":{"data":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Joint brokerage","account_number":"X1234-5678","account_type":"joint","custodian":"schwab","status":"active","currency":"USD","market_value":250000,"market_value_local":250000,"model_portfolio_id":null,"benchmark_id":null,"opened_date":"2026-09-28","external_id":"CUST-77120","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}],"next_cursor":"M2YyYjFjOWUtN2E0MS00ZDdlLTlhNTUtMWQyYzNiNGE1ZjYw"}},"text/csv":{"schema":{"type":"string"},"example":"id,client_id,name,account_number,account_type,custodian,status,currency,market_value,market_value_local,model_portfolio_id,benchmark_id,opened_date,external_id,created_at,updated_at\r\n3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60,8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f,Joint brokerage,X1234-5678,joint,schwab,active,USD,250000,250000,,,2026-09-28,CUST-77120,2026-09-28T14:05:00Z,2026-09-28T14:05:00Z\r\n"}}},"400":{"$ref":"#/components/responses/BadRequest","description":"A filter, the limit, or the cursor is wrong. The message says which."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the accounts:read scope, or the request came from an address the key doesn't allow."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"operationId":"createAccount","summary":"Add an account","description":"An account for a client. Holdings and cash are set with POST /positions, past values with POST /daily-values, and later trades with POST /transactions. A firm with no custodian can use any name for custodian. Needs the accounts:write scope. Fields we don't know are refused, so a typo doesn't pass unnoticed. Send an Idempotency-Key header with each request so a retry can't add it twice. Everything added is on the firm's activity log, naming the key. A key limited to some advisors only sees those advisors' clients.","tags":["Accounts"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/accounts_create"},"examples":{"account":{"summary":"Add a account","value":{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Joint brokerage","account_number":"X1234-5678","account_type":"joint","custodian":"schwab"}}}}}},"responses":{"201":{"description":"Added. The new row, as GET returns it.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/accounts"}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Joint brokerage","account_number":"X1234-5678","account_type":"joint","custodian":"schwab","status":"active","currency":"USD","market_value":250000,"market_value_local":250000,"model_portfolio_id":null,"benchmark_id":null,"opened_date":"2026-09-28","external_id":"CUST-77120","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The body isn't JSON, or the Idempotency-Key is longer than 255 characters."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the accounts:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/accounts/{id}":{"get":{"operationId":"getAccountById","summary":"One account","description":"One account by its id. Needs the accounts:read scope. A key limited to some advisors only sees those advisors' clients.","tags":["Accounts"],"parameters":[{"$ref":"#/components/parameters/RowId"}],"responses":{"200":{"description":"The row.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/accounts"}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Joint brokerage","account_number":"X1234-5678","account_type":"joint","custodian":"schwab","status":"active","currency":"USD","market_value":250000,"market_value_local":250000,"model_portfolio_id":null,"benchmark_id":null,"opened_date":"2026-09-28","external_id":"CUST-77120","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The id isn't an id."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the accounts:read scope, or the request came from an address the key doesn't allow."},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}},"patch":{"operationId":"updateAccount","summary":"Change an account","description":"Changes the fields you send and leaves the rest as they are. Send null to empty a field that can be emptied. Only fields that are safe to change are taken, never balances or ids or anything that would rewrite history, and anything else is a 422. Needs the accounts:write scope. Changes go on the firm's activity log, naming the key. A key limited to some advisors only sees those advisors' clients.","tags":["Accounts"],"parameters":[{"$ref":"#/components/parameters/RowId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"minProperties":1,"properties":{"name":{"type":"string","description":"What the account is called.","maxLength":100},"opened_date":{"type":["string","null"],"format":"date","description":"When it was opened."},"status":{"type":"string","enum":["active","inactive","closed"],"description":"active if left out."},"external_id":{"type":["string","null"],"description":"Your own id for this record, like its id in your CRM. Up to 200 characters. Has to be unique in your firm. Use it with PUT /{path}/external/{external_id} to add or change the record without making copies.","maxLength":200}}},"example":{"name":"Joint brokerage"}}}},"responses":{"200":{"description":"Changed. The whole account, as GET returns it.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/accounts"}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Joint brokerage","account_number":"X1234-5678","account_type":"joint","custodian":"schwab","status":"active","currency":"USD","market_value":250000,"market_value_local":250000,"model_portfolio_id":null,"benchmark_id":null,"opened_date":"2026-09-28","external_id":"CUST-77120","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The body isn't JSON, or an id in the address isn't an id."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the accounts:write scope, or the request came from an address the key doesn't allow."},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict","description":"The email or external_id is already used by another account."},"422":{"$ref":"#/components/responses/Invalid","description":"A field is wrong, or one that can't be changed was sent."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/positions":{"get":{"operationId":"listPositions","summary":"Positions","description":"What each account holds right now, at the latest prices. Needs the positions:read scope. A key limited to some advisors only sees those advisors' clients. Rows come a page at a time. Pass next_cursor as cursor until it comes back null. Add format=csv for a CSV file instead of JSON. Its next cursor is in the X-Next-Cursor header.","tags":["Positions"],"parameters":[{"$ref":"#/components/parameters/ClientId"},{"$ref":"#/components/parameters/AccountId"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/Format"}],"responses":{"200":{"description":"A page of rows.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/positions"}},"next_cursor":{"type":["string","null"],"description":"Pass as cursor to get the next page. Null on the last page."}}},"example":{"data":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","security_id":"9f8e7d6c-5b4a-4392-8170-6f5e4d3c2b1a","symbol":"VTI","security_name":"Vanguard Total Stock Market ETF","security_type":"etf","asset_class":"equity","quantity":10,"price":245.1,"market_value":250000,"cost_basis":2201.5,"unrealized_gain":249.5,"currency":"USD","market_value_local":250000,"as_of":"2026-09-28T14:05:00Z"}],"next_cursor":"M2YyYjFjOWUtN2E0MS00ZDdlLTlhNTUtMWQyYzNiNGE1ZjYw"}},"text/csv":{"schema":{"type":"string"},"example":"id,account_id,client_id,security_id,symbol,security_name,security_type,asset_class,quantity,price,market_value,cost_basis,unrealized_gain,currency,market_value_local,as_of\r\n3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60,5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d,8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f,9f8e7d6c-5b4a-4392-8170-6f5e4d3c2b1a,VTI,Vanguard Total Stock Market ETF,etf,equity,10,245.1,250000,2201.5,249.5,USD,250000,2026-09-28T14:05:00Z\r\n"}}},"400":{"$ref":"#/components/responses/BadRequest","description":"A filter, the limit, or the cursor is wrong. The message says which."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the positions:read scope, or the request came from an address the key doesn't allow."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"operationId":"createPosition","summary":"Set a starting holding or cash","description":"Sets what an account held on a day: shares of one security, or its cash when symbol is CASH (quantity is then the dollar amount). It is the starting point, kept as an opening balance in the account's transactions, so positions, cost, and cash come from the same records as everything else, and it doesn't count as money paid in. Sending the same account and symbol again replaces it, and a quantity of 0 removes it. Later buys, sells, and transfers go to /transactions. Values use the app's prices for the security. Needs the positions:write scope. Fields we don't know are refused, so a typo doesn't pass unnoticed. Send an Idempotency-Key header with each request so a retry can't add it twice. Everything added is on the firm's activity log, naming the key. A key limited to some advisors only sees those advisors' clients.","tags":["Positions"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/positions_create"},"examples":{"position":{"summary":"Add a position","value":{"account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","symbol":"VTI","quantity":120,"as_of_date":"2026-09-30","cost_basis":24500,"acquired_on":"2021-03-15"}}}}}},"responses":{"201":{"description":"Added. The new row, as GET returns it.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":["string","null"],"format":"uuid","description":"The id of the opening balance entry. Empty when quantity is 0, because it was removed."},"account_id":{"type":["string","null"],"format":"uuid","description":"The account."},"client_id":{"type":["string","null"],"format":"uuid","description":"The account's client."},"symbol":{"type":["string","null"],"description":"Ticker symbol, in capitals."},"quantity":{"type":["number","null"],"description":"Shares or units, or dollars for CASH."},"as_of_date":{"type":["string","null"],"format":"date","description":"The day it was held."},"cost_basis":{"type":["number","null"],"description":"What it cost in total."},"acquired_on":{"type":["string","null"],"format":"date","description":"The day it was first bought."}}}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","symbol":"VTI","quantity":10,"as_of_date":"2026-09-28","cost_basis":2201.5,"acquired_on":"2026-09-28"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The body isn't JSON, or the Idempotency-Key is longer than 255 characters."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the positions:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/transactions":{"get":{"operationId":"listTransactions","summary":"Transactions","description":"Every trade, dividend, fee, deposit, withdrawal, and transfer. Needs the transactions:read scope. A key limited to some advisors only sees those advisors' clients. Use updated_since to pick up only what changed since your last run. Rows come a page at a time. Pass next_cursor as cursor until it comes back null. Add format=csv for a CSV file instead of JSON. Its next cursor is in the X-Next-Cursor header.","tags":["Transactions"],"parameters":[{"$ref":"#/components/parameters/ClientId"},{"$ref":"#/components/parameters/AccountId"},{"$ref":"#/components/parameters/From"},{"$ref":"#/components/parameters/To"},{"$ref":"#/components/parameters/UpdatedSince"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/Format"}],"responses":{"200":{"description":"A page of rows.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/transactions"}},"next_cursor":{"type":["string","null"],"description":"Pass as cursor to get the next page. Null on the last page."}}},"example":{"data":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","trade_date":"2026-09-28","settlement_date":"2026-09-28","type":"buy","security_id":"9f8e7d6c-5b4a-4392-8170-6f5e4d3c2b1a","symbol":"VTI","quantity":10,"price":245.1,"amount":-2451,"fee":0,"description":"Bought 10 VTI","source":"custodian","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}],"next_cursor":"M2YyYjFjOWUtN2E0MS00ZDdlLTlhNTUtMWQyYzNiNGE1ZjYw"}},"text/csv":{"schema":{"type":"string"},"example":"id,account_id,client_id,trade_date,settlement_date,type,security_id,symbol,quantity,price,amount,fee,description,source,created_at,updated_at\r\n3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60,5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d,8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f,2026-09-28,2026-09-28,buy,9f8e7d6c-5b4a-4392-8170-6f5e4d3c2b1a,VTI,10,245.1,-2451,0,Bought 10 VTI,custodian,2026-09-28T14:05:00Z,2026-09-28T14:05:00Z\r\n"}}},"400":{"$ref":"#/components/responses/BadRequest","description":"A filter, the limit, or the cursor is wrong. The message says which."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the transactions:read scope, or the request came from an address the key doesn't allow."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"operationId":"createTransaction","summary":"Send a transaction for review","description":"Usually it doesn't post to the books. The transaction waits on the Reconciliation page, in the same list as the rows from custodian files, until someone reviews and posts it. A firm that uses Riafront for the client app only has no custodian file to check it against, so for that firm it posts at once and the answer says status posted. Amounts are in the account's currency. To move shares in from another firm, send transfer_in with a symbol and quantity, and acquired_on and cost_basis if you have them. Needs the transactions:write scope. Fields we don't know are refused, so a typo doesn't pass unnoticed. Send an Idempotency-Key header with each request so a retry can't add it twice. Everything added is on the firm's activity log, naming the key. A key limited to some advisors only sees those advisors' clients.","tags":["Transactions"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/transactions_create"},"examples":{"transaction":{"summary":"Add a transaction","value":{"account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","trade_date":"2026-09-28","type":"buy","symbol":"VTI","quantity":10,"price":245.1,"amount":-2451,"external_id":"trade-88123"}}}}}},"responses":{"201":{"description":"Added. The new row, as GET returns it.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":["string","null"],"format":"uuid","description":"When status is staged, the id of the waiting row. It is not the id the transaction will have once it is posted. When status is posted, the id of the transaction."},"status":{"type":["string","null"],"description":"staged: waiting for review on the Reconciliation page. posted: in the records already, for a firm that uses the client app only."},"account_id":{"type":["string","null"],"format":"uuid","description":"The account."},"client_id":{"type":["string","null"],"format":"uuid","description":"The account's client."},"trade_date":{"type":["string","null"],"format":"date","description":"The day it happened."},"settlement_date":{"type":["string","null"],"format":"date","description":"The day it settled."},"type":{"type":["string","null"],"description":"What kind of transaction it is."},"symbol":{"type":["string","null"],"description":"Ticker symbol."},"quantity":{"type":["number","null"],"description":"Shares or units."},"price":{"type":["number","null"],"description":"Price for one."},"amount":{"type":["number","null"],"description":"Money in (positive) or out (negative)."},"fee":{"type":["number","null"],"description":"Fees."},"description":{"type":["string","null"],"description":"What it was."},"external_id":{"type":["string","null"],"description":"Your id for it."},"acquired_on":{"type":["string","null"],"format":"date","description":"For shares moved in: the day they were first bought."},"cost_basis":{"type":["number","null"],"description":"For shares moved in: what they cost in total."},"created_at":{"type":["string","null"],"format":"date-time","description":"When it was sent."}}}}},"example":{"data":{"id":"2b3c4d5e-6f70-4812-9a3b-4c5d6e7f8091","status":"staged","account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","trade_date":"2026-09-28","settlement_date":null,"type":"buy","symbol":"VTI","quantity":10,"price":245.1,"amount":-2451,"fee":null,"description":null,"external_id":"trade-88123","acquired_on":"2026-09-28","cost_basis":2201.5,"created_at":"2026-09-28T14:05:00Z"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The body isn't JSON, or the Idempotency-Key is longer than 255 characters."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the transactions:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/daily-values":{"get":{"operationId":"listDailyValues","summary":"Daily values","description":"Each account's value and return for each day. Needs the daily_values:read scope. A key limited to some advisors only sees those advisors' clients. Rows come a page at a time. Pass next_cursor as cursor until it comes back null. Add format=csv for a CSV file instead of JSON. Its next cursor is in the X-Next-Cursor header.","tags":["Daily values"],"parameters":[{"$ref":"#/components/parameters/ClientId"},{"$ref":"#/components/parameters/AccountId"},{"$ref":"#/components/parameters/From"},{"$ref":"#/components/parameters/To"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/Format"}],"responses":{"200":{"description":"A page of rows.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/daily_values"}},"next_cursor":{"type":["string","null"],"description":"Pass as cursor to get the next page. Null on the last page."}}},"example":{"data":[{"account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","date":"2026-09-28","market_value":250000,"net_flow":5000,"advisory_fees":0,"daily_return":0.0042,"gross_daily_return":0.0043,"market_value_local":250000,"source":"custodian"}],"next_cursor":"M2YyYjFjOWUtN2E0MS00ZDdlLTlhNTUtMWQyYzNiNGE1ZjYw"}},"text/csv":{"schema":{"type":"string"},"example":"account_id,client_id,date,market_value,net_flow,advisory_fees,daily_return,gross_daily_return,market_value_local,source\r\n5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d,8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f,2026-09-28,250000,5000,0,0.0042,0.0043,250000,custodian\r\n"}}},"400":{"$ref":"#/components/responses/BadRequest","description":"A filter, the limit, or the cursor is wrong. The message says which."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the daily_values:read scope, or the request came from an address the key doesn't allow."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"operationId":"createDailyValue","summary":"Set an account value for a day","description":"Sets an account's value on a past day, so its chart and returns work. Send one row a day, or monthly rows if that is all you have. Sending the same account and date again replaces it. We never recalculate these days, and returns after the last one you send carry on from it. Send daily_return as a decimal (0.01 is 1%), or leave it out and we work it out from the values and net_flow. Values are in the account's currency. Needs the daily_values:write scope. Fields we don't know are refused, so a typo doesn't pass unnoticed. Send an Idempotency-Key header with each request so a retry can't add it twice. Everything added is on the firm's activity log, naming the key. A key limited to some advisors only sees those advisors' clients.","tags":["Daily values"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/daily_values_create"},"examples":{"daily value":{"summary":"Add a daily value","value":{"account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","date":"2026-09-30","market_value":1250000,"net_flow":10000,"daily_return":0.0042,"advisory_fees":85}}}}}},"responses":{"201":{"description":"Added. The new row, as GET returns it.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":["string","null"],"description":"The account id and date, like 5a6b…:2026-09-30."},"account_id":{"type":["string","null"],"format":"uuid","description":"The account."},"client_id":{"type":["string","null"],"format":"uuid","description":"The account's client."},"date":{"type":["string","null"],"format":"date","description":"The day."},"market_value":{"type":["number","null"],"description":"Value at the close."},"net_flow":{"type":["number","null"],"description":"Money in less money out that day."},"daily_return":{"type":["number","null"],"description":"Return that day, as a decimal. Empty when we will work it out."},"advisory_fees":{"type":["number","null"],"description":"Advisory fees that day."}}}}},"example":{"data":{"id":"text","account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","date":"2026-09-28","market_value":250000,"net_flow":5000,"daily_return":0.0042,"advisory_fees":0}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The body isn't JSON, or the Idempotency-Key is longer than 255 characters."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the daily_values:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/flows":{"get":{"operationId":"listFlows","summary":"Money in and out","description":"Deposits, withdrawals, and cash or shares moved in from or out to other firms, in US dollars. Needs the flows:read scope. A key limited to some advisors only sees those advisors' clients. Rows come a page at a time. Pass next_cursor as cursor until it comes back null. Add format=csv for a CSV file instead of JSON. Its next cursor is in the X-Next-Cursor header.","tags":["Money in and out"],"parameters":[{"$ref":"#/components/parameters/ClientId"},{"$ref":"#/components/parameters/AccountId"},{"$ref":"#/components/parameters/From"},{"$ref":"#/components/parameters/To"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/Format"}],"responses":{"200":{"description":"A page of rows.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/flows"}},"next_cursor":{"type":["string","null"],"description":"Pass as cursor to get the next page. Null on the last page."}}},"example":{"data":[{"transaction_id":"2b3c4d5e-6f70-4812-9a3b-4c5d6e7f8091","account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","advisor_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","date":"2026-09-28","kind":"deposit","shares":false,"amount":5000}],"next_cursor":"M2YyYjFjOWUtN2E0MS00ZDdlLTlhNTUtMWQyYzNiNGE1ZjYw"}},"text/csv":{"schema":{"type":"string"},"example":"transaction_id,account_id,client_id,advisor_id,date,kind,shares,amount\r\n2b3c4d5e-6f70-4812-9a3b-4c5d6e7f8091,5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d,8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f,1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b,2026-09-28,deposit,false,5000\r\n"}}},"400":{"$ref":"#/components/responses/BadRequest","description":"A filter, the limit, or the cursor is wrong. The message says which."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the flows:read scope, or the request came from an address the key doesn't allow."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/notes":{"get":{"operationId":"listNotes","summary":"Notes","description":"Calls, meetings, emails, and notes logged against clients. Needs the notes:read scope. A key limited to some advisors only sees those advisors' clients. Use updated_since to pick up only what changed since your last run. For notes it filters on when the note was logged. Rows come a page at a time. Pass next_cursor as cursor until it comes back null. Add format=csv for a CSV file instead of JSON. Its next cursor is in the X-Next-Cursor header.","tags":["Notes"],"parameters":[{"$ref":"#/components/parameters/ClientId"},{"$ref":"#/components/parameters/From"},{"$ref":"#/components/parameters/To"},{"$ref":"#/components/parameters/UpdatedSince"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/Format"}],"responses":{"200":{"description":"A page of rows.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/notes"}},"next_cursor":{"type":["string","null"],"description":"Pass as cursor to get the next page. Null on the last page."}}},"example":{"data":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","kind":"call","subject":"Quarterly review","body":"Talked about the Roth conversion.","occurred_at":"2026-09-28T14:05:00Z","follow_up_on":"2026-12-15","follow_up_done_at":null,"author_id":null,"created_at":"2026-09-28T14:05:00Z"}],"next_cursor":"M2YyYjFjOWUtN2E0MS00ZDdlLTlhNTUtMWQyYzNiNGE1ZjYw"}},"text/csv":{"schema":{"type":"string"},"example":"id,client_id,kind,subject,body,occurred_at,follow_up_on,follow_up_done_at,author_id,created_at\r\n3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60,8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f,call,Quarterly review,Talked about the Roth conversion.,2026-09-28T14:05:00Z,2026-12-15,,,2026-09-28T14:05:00Z\r\n"}}},"400":{"$ref":"#/components/responses/BadRequest","description":"A filter, the limit, or the cursor is wrong. The message says which."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the notes:read scope, or the request came from an address the key doesn't allow."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"operationId":"createNote","summary":"Log a note","description":"A call, meeting, email, or note on a client, for example from your CRM or phone system. Needs the notes:write scope. Fields we don't know are refused, so a typo doesn't pass unnoticed. Send an Idempotency-Key header with each request so a retry can't add it twice. Everything added is on the firm's activity log, naming the key. A key limited to some advisors only sees those advisors' clients.","tags":["Notes"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/notes_create"},"examples":{"note":{"summary":"Add a note","value":{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","kind":"call","subject":"Quarterly review","body":"Talked about the Roth conversion.","follow_up_on":"2026-12-15"}}}}}},"responses":{"201":{"description":"Added. The new row, as GET returns it.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/notes"}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","kind":"call","subject":"Quarterly review","body":"Talked about the Roth conversion.","occurred_at":"2026-09-28T14:05:00Z","follow_up_on":"2026-12-15","follow_up_done_at":null,"author_id":null,"created_at":"2026-09-28T14:05:00Z"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The body isn't JSON, or the Idempotency-Key is longer than 255 characters."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the notes:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/notes/{id}":{"get":{"operationId":"getNoteById","summary":"One note","description":"One note by its id. Needs the notes:read scope. A key limited to some advisors only sees those advisors' clients.","tags":["Notes"],"parameters":[{"$ref":"#/components/parameters/RowId"}],"responses":{"200":{"description":"The row.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/notes"}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","kind":"call","subject":"Quarterly review","body":"Talked about the Roth conversion.","occurred_at":"2026-09-28T14:05:00Z","follow_up_on":"2026-12-15","follow_up_done_at":null,"author_id":null,"created_at":"2026-09-28T14:05:00Z"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The id isn't an id."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the notes:read scope, or the request came from an address the key doesn't allow."},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/households":{"get":{"operationId":"listHouseholds","summary":"Households","description":"Groups of clients who are billed or reviewed together, like a family. Members are in household-members. Needs the households:read scope. A key limited to some advisors only sees those advisors' clients. Use updated_since to pick up only what changed since your last run. Rows come a page at a time. Pass next_cursor as cursor until it comes back null. Add format=csv for a CSV file instead of JSON. Its next cursor is in the X-Next-Cursor header.","tags":["Households"],"parameters":[{"$ref":"#/components/parameters/ExternalId"},{"$ref":"#/components/parameters/UpdatedSince"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/Format"}],"responses":{"200":{"description":"A page of rows.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/households"}},"next_cursor":{"type":["string","null"],"description":"Pass as cursor to get the next page. Null on the last page."}}},"example":{"data":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","name":"Moreno family","advisor_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","primary_client_id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","member_count":2,"model_portfolio_id":null,"external_id":"HH-2031","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}],"next_cursor":"M2YyYjFjOWUtN2E0MS00ZDdlLTlhNTUtMWQyYzNiNGE1ZjYw"}},"text/csv":{"schema":{"type":"string"},"example":"id,name,advisor_id,primary_client_id,member_count,model_portfolio_id,external_id,created_at,updated_at\r\n3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60,Moreno family,1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b,3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60,2,,HH-2031,2026-09-28T14:05:00Z,2026-09-28T14:05:00Z\r\n"}}},"400":{"$ref":"#/components/responses/BadRequest","description":"A filter, the limit, or the cursor is wrong. The message says which."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the households:read scope, or the request came from an address the key doesn't allow."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"operationId":"createHousehold","summary":"Add a household","description":"A group of clients who are reviewed and billed together, like a family. Give an advisor_id or a primary_client_id. The members can be sent now or changed later with PATCH. Needs the households:write scope. Fields we don't know are refused, so a typo doesn't pass unnoticed. Send an Idempotency-Key header with each request so a retry can't add it twice. Everything added is on the firm's activity log, naming the key. A key limited to some advisors only sees those advisors' clients.","tags":["Households"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/households_create"},"examples":{"household":{"summary":"Add a household","value":{"name":"Moreno family","advisor_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","primary_client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","members":[{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","relationship":"primary"}]}}}}}},"responses":{"201":{"description":"Added. The new row, as GET returns it.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/households"},{"type":"object","properties":{"members":{"type":"array","description":"The clients in the household.","items":{"type":"object","properties":{"client_id":{"type":"string","format":"uuid"},"relationship":{"type":"string"}}}}}}]}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","name":"Moreno family","advisor_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","primary_client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","member_count":2,"model_portfolio_id":null,"external_id":"HH-2031","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z","members":[{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","relationship":"primary"}]}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The body isn't JSON, or the Idempotency-Key is longer than 255 characters."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the households:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/households/{id}":{"get":{"operationId":"getHouseholdById","summary":"One household","description":"One household by its id. Needs the households:read scope. A key limited to some advisors only sees those advisors' clients.","tags":["Households"],"parameters":[{"$ref":"#/components/parameters/RowId"}],"responses":{"200":{"description":"The row.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/households"}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","name":"Moreno family","advisor_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","primary_client_id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","member_count":2,"model_portfolio_id":null,"external_id":"HH-2031","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The id isn't an id."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the households:read scope, or the request came from an address the key doesn't allow."},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}},"patch":{"operationId":"updateHousehold","summary":"Change a household","description":"Changes the fields you send and leaves the rest as they are. Send null to empty a field that can be emptied. Only fields that are safe to change are taken, never balances or ids or anything that would rewrite history, and anything else is a 422. Needs the households:write scope. Changes go on the firm's activity log, naming the key. A key limited to some advisors only sees those advisors' clients.","tags":["Households"],"parameters":[{"$ref":"#/components/parameters/RowId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"minProperties":1,"properties":{"name":{"type":"string","description":"What the household is called.","maxLength":200},"advisor_id":{"type":"string","format":"uuid","description":"Their advisor. A key limited to one advisor fills this in."},"primary_client_id":{"type":["string","null"],"format":"uuid","description":"The main client in the household. They are added as a member if you leave them out of members."},"notes":{"type":["string","null"],"description":"Anything worth knowing about the household.","maxLength":2000},"members":{"type":"array","maxItems":50,"description":"The clients in it, as a list of {\"client_id\": \"…\", \"relationship\": \"spouse\"}. relationship is one of: primary, spouse, dependent, other, grantor, trustee, beneficiary, entity, next_gen, and other if left out. In a CSV file, write them as client_id:relationship separated by semicolons. With PATCH, the list you send replaces the one there.","items":{"type":"object","additionalProperties":false,"required":["client_id"],"properties":{"client_id":{"type":"string","format":"uuid"},"relationship":{"type":"string"}}}},"external_id":{"type":["string","null"],"description":"Your own id for this record, like its id in your CRM. Up to 200 characters. Has to be unique in your firm. Use it with PUT /{path}/external/{external_id} to add or change the record without making copies.","maxLength":200}}},"example":{"name":"Moreno family","advisor_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","primary_client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","members":[{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","relationship":"primary"}]}}}},"responses":{"200":{"description":"Changed. The whole household, as GET returns it.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/households"},{"type":"object","properties":{"members":{"type":"array","description":"The clients in the household.","items":{"type":"object","properties":{"client_id":{"type":"string","format":"uuid"},"relationship":{"type":"string"}}}}}}]}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","name":"Moreno family","advisor_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","primary_client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","member_count":2,"model_portfolio_id":null,"external_id":"HH-2031","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z","members":[{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","relationship":"primary"}]}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The body isn't JSON, or an id in the address isn't an id."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the households:write scope, or the request came from an address the key doesn't allow."},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict","description":"The email or external_id is already used by another household."},"422":{"$ref":"#/components/responses/Invalid","description":"A field is wrong, or one that can't be changed was sent."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/household-members":{"get":{"operationId":"listHouseholdMembers","summary":"Household members","description":"Which clients are in which household. Read with the same scope as households. Needs the households:read scope. A key limited to some advisors only sees those advisors' clients. Use updated_since to pick up only what changed since your last run. Rows come a page at a time. Pass next_cursor as cursor until it comes back null. Add format=csv for a CSV file instead of JSON. Its next cursor is in the X-Next-Cursor header.","tags":["Household members"],"parameters":[{"$ref":"#/components/parameters/ClientId"},{"$ref":"#/components/parameters/HouseholdId"},{"$ref":"#/components/parameters/UpdatedSince"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/Format"}],"responses":{"200":{"description":"A page of rows.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/household_members"}},"next_cursor":{"type":["string","null"],"description":"Pass as cursor to get the next page. Null on the last page."}}},"example":{"data":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","household_id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","relationship":"spouse","created_at":"2026-09-28T14:05:00Z"}],"next_cursor":"M2YyYjFjOWUtN2E0MS00ZDdlLTlhNTUtMWQyYzNiNGE1ZjYw"}},"text/csv":{"schema":{"type":"string"},"example":"id,household_id,client_id,relationship,created_at\r\n3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60,3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60,8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f,spouse,2026-09-28T14:05:00Z\r\n"}}},"400":{"$ref":"#/components/responses/BadRequest","description":"A filter, the limit, or the cursor is wrong. The message says which."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the households:read scope, or the request came from an address the key doesn't allow."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/household-members/{id}":{"get":{"operationId":"getHouseholdMemberById","summary":"One household member","description":"One household member by its id. Needs the households:read scope. A key limited to some advisors only sees those advisors' clients.","tags":["Household members"],"parameters":[{"$ref":"#/components/parameters/RowId"}],"responses":{"200":{"description":"The row.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/household_members"}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","household_id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","relationship":"spouse","created_at":"2026-09-28T14:05:00Z"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The id isn't an id."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the households:read scope, or the request came from an address the key doesn't allow."},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/documents":{"get":{"operationId":"listDocuments","summary":"Documents","description":"Details of the files kept for clients, like statements and agreements. The files themselves come from /documents/{id}/file, which needs the documents:files scope. Needs the documents:read scope. A key limited to some advisors only sees those advisors' clients. Use updated_since to pick up only what changed since your last run. status takes active, removed. Rows come a page at a time. Pass next_cursor as cursor until it comes back null. Add format=csv for a CSV file instead of JSON. Its next cursor is in the X-Next-Cursor header.","tags":["Documents"],"parameters":[{"$ref":"#/components/parameters/ClientId"},{"$ref":"#/components/parameters/AccountId"},{"$ref":"#/components/parameters/Status"},{"$ref":"#/components/parameters/UpdatedSince"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/Format"}],"responses":{"200":{"description":"A page of rows.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/documents"}},"next_cursor":{"type":["string","null"],"description":"Pass as cursor to get the next page. Null on the last page."}}},"example":{"data":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","name":"Q3 2026 statement.pdf","type":"statement","mime_type":"application/pdf","file_size":182340,"period_start":"2026-07-01","period_end":"2026-09-30","removed":false,"removed_at":null,"archived_at":null,"uploaded_by":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}],"next_cursor":"M2YyYjFjOWUtN2E0MS00ZDdlLTlhNTUtMWQyYzNiNGE1ZjYw"}},"text/csv":{"schema":{"type":"string"},"example":"id,client_id,account_id,name,type,mime_type,file_size,period_start,period_end,removed,removed_at,archived_at,uploaded_by,created_at,updated_at\r\n3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60,8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f,5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d,Q3 2026 statement.pdf,statement,application/pdf,182340,2026-07-01,2026-09-30,false,,,3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60,2026-09-28T14:05:00Z,2026-09-28T14:05:00Z\r\n"}}},"400":{"$ref":"#/components/responses/BadRequest","description":"A filter, the limit, or the cursor is wrong. The message says which."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the documents:read scope, or the request came from an address the key doesn't allow."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"operationId":"createDocument","summary":"Add a document","description":"Adds a file to a client's documents. Send it here as base64 in content_base64, up to 10 MB, or for a bigger or streamed file ask for a link with POST /documents/upload-link and then confirm. PDFs, images, Office files, CSV, and text only, and we check the start of the file, not just its name. Needs the documents:write scope. Fields we don't know are refused, so a typo doesn't pass unnoticed. Send an Idempotency-Key header with each request so a retry can't add it twice. Everything added is on the firm's activity log, naming the key. A key limited to some advisors only sees those advisors' clients.","tags":["Documents"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/documents_create"},"examples":{"document":{"summary":"Add a document","value":{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"september-statement.pdf","type":"statement","period_start":"2026-09-01","period_end":"2026-09-30","content_base64":"JVBERi0xLjQK…"}}}}}},"responses":{"201":{"description":"Added. The new row, as GET returns it.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/documents"}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","name":"september-statement.pdf","type":"statement","mime_type":"application/pdf","file_size":182340,"period_start":"2026-09-01","period_end":"2026-09-30","removed":false,"removed_at":null,"archived_at":null,"uploaded_by":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The body isn't JSON, or the Idempotency-Key is longer than 255 characters."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the documents:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/documents/{id}/file":{"get":{"operationId":"getDocumentFile","summary":"A link to a document's file","description":"A link that downloads the document's file, good for 5 minutes. Ask again when it runs out. Needs the documents:files scope, which is separate from documents:read. A key limited to some advisors only gets links for those advisors' clients. Each request is logged.","tags":["Documents"],"parameters":[{"$ref":"#/components/parameters/RowId"}],"responses":{"200":{"description":"The link.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["url","expires_at"],"properties":{"url":{"type":"string","format":"uri","description":"Where to download the file. It works without a key until it runs out, so don't share it."},"expires_at":{"type":"string","format":"date-time","description":"When the link stops working."}}},"example":{"url":"https://files.example.com/signed/…","expires_at":"2026-09-28T14:10:00Z"}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The id isn't an id."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the documents:files scope, or the request came from an address the key doesn't allow."},"404":{"$ref":"#/components/responses/NotFound","description":"No document with that id, the key cannot see it, or it has been removed."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/documents/{id}":{"get":{"operationId":"getDocumentById","summary":"One document","description":"One document by its id. Needs the documents:read scope. A key limited to some advisors only sees those advisors' clients.","tags":["Documents"],"parameters":[{"$ref":"#/components/parameters/RowId"}],"responses":{"200":{"description":"The row.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/documents"}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","name":"Q3 2026 statement.pdf","type":"statement","mime_type":"application/pdf","file_size":182340,"period_start":"2026-07-01","period_end":"2026-09-30","removed":false,"removed_at":null,"archived_at":null,"uploaded_by":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The id isn't an id."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the documents:read scope, or the request came from an address the key doesn't allow."},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/held-away":{"get":{"operationId":"listHeldAway","summary":"Held-away assets","description":"Things a client owns that are held somewhere else, like another brokerage, a bank, or a private fund. Some come from a linked bank or brokerage and some are typed in. Each has its latest value and the day that value is for. Needs the held_away:read scope. A key limited to some advisors only sees those advisors' clients. Use updated_since to pick up only what changed since your last run. status takes active, inactive. Rows come a page at a time. Pass next_cursor as cursor until it comes back null. Add format=csv for a CSV file instead of JSON. Its next cursor is in the X-Next-Cursor header.","tags":["Held-away assets"],"parameters":[{"$ref":"#/components/parameters/ClientId"},{"$ref":"#/components/parameters/Status"},{"$ref":"#/components/parameters/UpdatedSince"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/Format"}],"responses":{"200":{"description":"A page of rows.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/held_away"}},"next_cursor":{"type":["string","null"],"description":"Pass as cursor to get the next page. Null on the last page."}}},"example":{"data":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Fidelity rollover IRA","asset_type":"held_away_retirement","institution":"Fidelity","asset_class":"equity","ownership_percentage":100,"committed_amount":null,"value":410000,"as_of_date":"2026-09-28","source":"plaid","status":"active","entered_by":"advisor","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}],"next_cursor":"M2YyYjFjOWUtN2E0MS00ZDdlLTlhNTUtMWQyYzNiNGE1ZjYw"}},"text/csv":{"schema":{"type":"string"},"example":"id,client_id,name,asset_type,institution,asset_class,ownership_percentage,committed_amount,value,as_of_date,source,status,entered_by,created_at,updated_at\r\n3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60,8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f,Fidelity rollover IRA,held_away_retirement,Fidelity,equity,100,,410000,2026-09-28,plaid,active,advisor,2026-09-28T14:05:00Z,2026-09-28T14:05:00Z\r\n"}}},"400":{"$ref":"#/components/responses/BadRequest","description":"A filter, the limit, or the cursor is wrong. The message says which."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the held_away:read scope, or the request came from an address the key doesn't allow."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"operationId":"createHeldAwayAsset","summary":"Add a held-away asset","description":"Something a client owns that is held somewhere else, like another brokerage, a bank account, or a private fund. Send value to give it a first value. Later values are added in the app. Needs the held_away:write scope. Fields we don't know are refused, so a typo doesn't pass unnoticed. Send an Idempotency-Key header with each request so a retry can't add it twice. Everything added is on the firm's activity log, naming the key. A key limited to some advisors only sees those advisors' clients.","tags":["Held-away assets"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/held_away_create"},"examples":{"held-away asset":{"summary":"Add a held-away asset","value":{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Fidelity rollover IRA","asset_type":"held_away_retirement","institution":"Fidelity","value":250000,"as_of_date":"2026-09-30"}}}}}},"responses":{"201":{"description":"Added. The new row, as GET returns it.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/held_away"}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Fidelity rollover IRA","asset_type":"held_away_retirement","institution":"Fidelity","asset_class":"equity","ownership_percentage":100,"committed_amount":null,"value":250000,"as_of_date":"2026-09-30","source":"plaid","status":"active","entered_by":"advisor","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The body isn't JSON, or the Idempotency-Key is longer than 255 characters."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the held_away:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/held-away/{id}":{"get":{"operationId":"getHeldAwayAssetById","summary":"One held-away asset","description":"One held-away asset by its id. Needs the held_away:read scope. A key limited to some advisors only sees those advisors' clients.","tags":["Held-away assets"],"parameters":[{"$ref":"#/components/parameters/RowId"}],"responses":{"200":{"description":"The row.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/held_away"}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Fidelity rollover IRA","asset_type":"held_away_retirement","institution":"Fidelity","asset_class":"equity","ownership_percentage":100,"committed_amount":null,"value":410000,"as_of_date":"2026-09-28","source":"plaid","status":"active","entered_by":"advisor","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The id isn't an id."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the held_away:read scope, or the request came from an address the key doesn't allow."},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}},"patch":{"operationId":"updateHeldAwayAsset","summary":"Change a held-away asset","description":"Changes the fields you send and leaves the rest as they are. Send null to empty a field that can be emptied. Only fields that are safe to change are taken, never balances or ids or anything that would rewrite history, and anything else is a 422. Needs the held_away:write scope. Changes go on the firm's activity log, naming the key. A key limited to some advisors only sees those advisors' clients.","tags":["Held-away assets"],"parameters":[{"$ref":"#/components/parameters/RowId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"minProperties":1,"properties":{"name":{"type":"string","description":"What it is called.","maxLength":200},"asset_type":{"type":"string","enum":["held_away_brokerage","held_away_retirement","bank","private_fund","real_estate","business","life_insurance","collectible","other"],"description":"other if left out."},"institution":{"type":["string","null"],"description":"Where it is held.","maxLength":200},"asset_class":{"type":["string","null"],"description":"Like equity or fixed_income.","maxLength":100},"ownership_percentage":{"type":"number","description":"How much of it the client owns, as a number from 0 to 100. 100 if left out.","maximum":100,"exclusiveMinimum":0},"committed_amount":{"type":["number","null"],"description":"For a private fund: what the client agreed to put in.","minimum":0},"notes":{"type":["string","null"],"description":"Anything worth knowing.","maxLength":2000},"is_active":{"type":"boolean","description":"false takes it out of totals without deleting it."}}},"example":{"name":"Fidelity rollover IRA","asset_type":"held_away_retirement","institution":"Fidelity"}}}},"responses":{"200":{"description":"Changed. The whole held-away asset, as GET returns it.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/held_away"}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Fidelity rollover IRA","asset_type":"held_away_retirement","institution":"Fidelity","asset_class":"equity","ownership_percentage":100,"committed_amount":null,"value":250000,"as_of_date":"2026-09-30","source":"plaid","status":"active","entered_by":"advisor","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The body isn't JSON, or an id in the address isn't an id."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the held_away:write scope, or the request came from an address the key doesn't allow."},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict","description":"The email or external_id is already used by another held-away asset."},"422":{"$ref":"#/components/responses/Invalid","description":"A field is wrong, or one that can't be changed was sent."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/liabilities":{"get":{"operationId":"listLiabilities","summary":"Liabilities","description":"What a client owes, like a mortgage, a car loan, or a credit card. Each has its latest balance and the day that balance is for. Nothing is added to a balance since that day. Needs the liabilities:read scope. A key limited to some advisors only sees those advisors' clients. Use updated_since to pick up only what changed since your last run. status takes active, inactive. Rows come a page at a time. Pass next_cursor as cursor until it comes back null. Add format=csv for a CSV file instead of JSON. Its next cursor is in the X-Next-Cursor header.","tags":["Liabilities"],"parameters":[{"$ref":"#/components/parameters/ClientId"},{"$ref":"#/components/parameters/Status"},{"$ref":"#/components/parameters/UpdatedSince"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/Format"}],"responses":{"200":{"description":"A page of rows.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/liabilities"}},"next_cursor":{"type":["string","null"],"description":"Pass as cursor to get the next page. Null on the last page."}}},"example":{"data":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","client_email":"rita@example.com","name":"Home mortgage","liability_type":"mortgage","lender":"First Local Bank","interest_rate":6.25,"monthly_payment":2450,"maturity_date":"2051-03-01","secured_by_asset_id":null,"ownership_percentage":100,"balance":412000,"as_of_date":"2026-09-28","balance_source":"statement","status":"active","entered_by":"advisor","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}],"next_cursor":"M2YyYjFjOWUtN2E0MS00ZDdlLTlhNTUtMWQyYzNiNGE1ZjYw"}},"text/csv":{"schema":{"type":"string"},"example":"id,client_id,client_email,name,liability_type,lender,interest_rate,monthly_payment,maturity_date,secured_by_asset_id,ownership_percentage,balance,as_of_date,balance_source,status,entered_by,created_at,updated_at\r\n3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60,8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f,rita@example.com,Home mortgage,mortgage,First Local Bank,6.25,2450,2051-03-01,,100,412000,2026-09-28,statement,active,advisor,2026-09-28T14:05:00Z,2026-09-28T14:05:00Z\r\n"}}},"400":{"$ref":"#/components/responses/BadRequest","description":"A filter, the limit, or the cursor is wrong. The message says which."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the liabilities:read scope, or the request came from an address the key doesn't allow."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"operationId":"createLiabilitie","summary":"Add a liability","description":"Something a client owes, like a mortgage, a car loan, or a credit card. Send balance to give it a first balance. Later balances go to POST /liability-balances. It is saved as entered by the advisor. Needs the liabilities:write scope. Fields we don't know are refused, so a typo doesn't pass unnoticed. Send an Idempotency-Key header with each request so a retry can't add it twice. Everything added is on the firm's activity log, naming the key. A key limited to some advisors only sees those advisors' clients.","tags":["Liabilities"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/liabilities_create"},"examples":{"liabilitie":{"summary":"Add a liabilitie","value":{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Home mortgage","liability_type":"mortgage","lender":"First Local Bank","interest_rate":6.25,"monthly_payment":2450,"balance":412000,"as_of_date":"2026-09-30","balance_source":"statement"}}}}}},"responses":{"201":{"description":"Added. The new row, as GET returns it.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/liabilities"}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","client_email":"rita@example.com","name":"Home mortgage","liability_type":"mortgage","lender":"First Local Bank","interest_rate":6.25,"monthly_payment":2450,"maturity_date":"2051-03-01","secured_by_asset_id":null,"ownership_percentage":100,"balance":412000,"as_of_date":"2026-09-30","balance_source":"statement","status":"active","entered_by":"advisor","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The body isn't JSON, or the Idempotency-Key is longer than 255 characters."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the liabilities:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/liabilities/{id}":{"get":{"operationId":"getLiabilitieById","summary":"One liabilitie","description":"One liabilitie by its id. Needs the liabilities:read scope. A key limited to some advisors only sees those advisors' clients.","tags":["Liabilities"],"parameters":[{"$ref":"#/components/parameters/RowId"}],"responses":{"200":{"description":"The row.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/liabilities"}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","client_email":"rita@example.com","name":"Home mortgage","liability_type":"mortgage","lender":"First Local Bank","interest_rate":6.25,"monthly_payment":2450,"maturity_date":"2051-03-01","secured_by_asset_id":null,"ownership_percentage":100,"balance":412000,"as_of_date":"2026-09-28","balance_source":"statement","status":"active","entered_by":"advisor","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The id isn't an id."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the liabilities:read scope, or the request came from an address the key doesn't allow."},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}},"patch":{"operationId":"updateLiabilitie","summary":"Change a liabilitie","description":"Changes the fields you send and leaves the rest as they are. Send null to empty a field that can be emptied. Only fields that are safe to change are taken, never balances or ids or anything that would rewrite history, and anything else is a 422. Needs the liabilities:write scope. Changes go on the firm's activity log, naming the key. A key limited to some advisors only sees those advisors' clients.","tags":["Liabilities"],"parameters":[{"$ref":"#/components/parameters/RowId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"minProperties":1,"properties":{"name":{"type":"string","description":"What it is called.","maxLength":200},"liability_type":{"type":"string","enum":["mortgage","home_equity","auto_loan","student_loan","credit_card","personal_loan","business_loan","margin_loan","other"],"description":"other if left out."},"lender":{"type":["string","null"],"description":"Who it is owed to.","maxLength":200},"interest_rate":{"type":["number","null"],"description":"The yearly rate as a percent, so 6.25 means 6.25%.","minimum":0,"maximum":100},"monthly_payment":{"type":["number","null"],"description":"The payment each month, for the whole debt.","minimum":0},"maturity_date":{"type":["string","null"],"format":"date","description":"The day it is due to be paid off."},"secured_by_asset_id":{"type":["string","null"],"format":"uuid","description":"The held-away asset it is against. It has to be one of this client's."},"ownership_percentage":{"type":"number","description":"The client's share of the debt, as a number from 0 to 100. 100 if left out.","maximum":100,"exclusiveMinimum":0},"notes":{"type":["string","null"],"description":"Anything worth knowing.","maxLength":2000},"is_active":{"type":"boolean","description":"false takes it out of totals without deleting it, like when it is paid off."}}},"example":{"name":"Home mortgage","liability_type":"mortgage","lender":"First Local Bank","interest_rate":6.25,"monthly_payment":2450}}}},"responses":{"200":{"description":"Changed. The whole liabilitie, as GET returns it.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/liabilities"}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","client_email":"rita@example.com","name":"Home mortgage","liability_type":"mortgage","lender":"First Local Bank","interest_rate":6.25,"monthly_payment":2450,"maturity_date":"2051-03-01","secured_by_asset_id":null,"ownership_percentage":100,"balance":412000,"as_of_date":"2026-09-30","balance_source":"statement","status":"active","entered_by":"advisor","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The body isn't JSON, or an id in the address isn't an id."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the liabilities:write scope, or the request came from an address the key doesn't allow."},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict","description":"The email or external_id is already used by another liabilitie."},"422":{"$ref":"#/components/responses/Invalid","description":"A field is wrong, or one that can't be changed was sent."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/liability-balances":{"get":{"operationId":"listLiabilityBalances","summary":"Liability balances","description":"Every balance entered for every liability, not only the latest one. A liability has one balance a day. Use client_id to get one client's and match them to liabilities with liability_id. Needs the liabilities:read scope. A key limited to some advisors only sees those advisors' clients. Use updated_since to pick up only what changed since your last run. Rows come a page at a time. Pass next_cursor as cursor until it comes back null. Add format=csv for a CSV file instead of JSON. Its next cursor is in the X-Next-Cursor header.","tags":["Liability balances"],"parameters":[{"$ref":"#/components/parameters/ClientId"},{"$ref":"#/components/parameters/UpdatedSince"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/Format"}],"responses":{"200":{"description":"A page of rows.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/liability_balances"}},"next_cursor":{"type":["string","null"],"description":"Pass as cursor to get the next page. Null on the last page."}}},"example":{"data":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","liability_id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","balance":0,"as_of_date":"2026-09-28","source":"statement","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}],"next_cursor":"M2YyYjFjOWUtN2E0MS00ZDdlLTlhNTUtMWQyYzNiNGE1ZjYw"}},"text/csv":{"schema":{"type":"string"},"example":"id,liability_id,client_id,balance,as_of_date,source,created_at,updated_at\r\n3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60,3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60,8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f,0,2026-09-28,statement,2026-09-28T14:05:00Z,2026-09-28T14:05:00Z\r\n"}}},"400":{"$ref":"#/components/responses/BadRequest","description":"A filter, the limit, or the cursor is wrong. The message says which."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the liabilities:read scope, or the request came from an address the key doesn't allow."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"operationId":"createLiabilityBalance","summary":"Add a liability balance","description":"A new balance for a liability you already added. A liability has one balance a day, so a second one for the same day replaces the first. The answer is the balance. Needs the liabilities:write scope. Fields we don't know are refused, so a typo doesn't pass unnoticed. Send an Idempotency-Key header with each request so a retry can't add it twice. Everything added is on the firm's activity log, naming the key. A key limited to some advisors only sees those advisors' clients.","tags":["Liability balances"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/liability_balances_create"},"examples":{"liability balance":{"summary":"Add a liability balance","value":{"liability_id":"3b4c5d6e-7f80-4a91-b2c3-d4e5f6a7b8c9","balance":408500,"as_of_date":"2026-10-31","source":"statement"}}}}}},"responses":{"201":{"description":"Added. The new row, as GET returns it.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/liability_balances"}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","liability_id":"3b4c5d6e-7f80-4a91-b2c3-d4e5f6a7b8c9","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","balance":408500,"as_of_date":"2026-10-31","source":"statement","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The body isn't JSON, or the Idempotency-Key is longer than 255 characters."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the liabilities:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/liability-balances/{id}":{"get":{"operationId":"getLiabilityBalanceById","summary":"One liability balance","description":"One liability balance by its id. Needs the liabilities:read scope. A key limited to some advisors only sees those advisors' clients.","tags":["Liability balances"],"parameters":[{"$ref":"#/components/parameters/RowId"}],"responses":{"200":{"description":"The row.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/liability_balances"}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","liability_id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","balance":0,"as_of_date":"2026-09-28","source":"statement","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The id isn't an id."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the liabilities:read scope, or the request came from an address the key doesn't allow."},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/orders":{"get":{"operationId":"listOrders","summary":"Orders","description":"Trade orders, from draft through to filled, rejected, or cancelled. from and to are on the day the order was made. Needs the orders:read scope. A key limited to some advisors only sees those advisors' clients. Use updated_since to pick up only what changed since your last run. state takes draft, proposed, approved, routed, partial, filled, rejected, cancelled. Rows come a page at a time. Pass next_cursor as cursor until it comes back null. Add format=csv for a CSV file instead of JSON. Its next cursor is in the X-Next-Cursor header.","tags":["Orders"],"parameters":[{"$ref":"#/components/parameters/ClientId"},{"$ref":"#/components/parameters/AccountId"},{"$ref":"#/components/parameters/State"},{"$ref":"#/components/parameters/From"},{"$ref":"#/components/parameters/To"},{"$ref":"#/components/parameters/UpdatedSince"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/Format"}],"responses":{"200":{"description":"A page of rows.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/orders"}},"next_cursor":{"type":["string","null"],"description":"Pass as cursor to get the next page. Null on the last page."}}},"example":{"data":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","security_id":"9f8e7d6c-5b4a-4392-8170-6f5e4d3c2b1a","symbol":"VTI","side":"buy","order_type":"limit","quantity":10,"limit_price":245,"stop_price":null,"time_in_force":"day","state":"filled","filled_quantity":10,"avg_fill_price":244.9,"custodian":"schwab","reject_reason":null,"entered_by":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","approved_by":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","approved_at":"2026-09-28T14:05:00Z","routed_at":"2026-09-28T14:05:00Z","completed_at":"2026-09-28T14:05:00Z","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}],"next_cursor":"M2YyYjFjOWUtN2E0MS00ZDdlLTlhNTUtMWQyYzNiNGE1ZjYw"}},"text/csv":{"schema":{"type":"string"},"example":"id,client_id,account_id,security_id,symbol,side,order_type,quantity,limit_price,stop_price,time_in_force,state,filled_quantity,avg_fill_price,custodian,reject_reason,entered_by,approved_by,approved_at,routed_at,completed_at,created_at,updated_at\r\n3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60,8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f,5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d,9f8e7d6c-5b4a-4392-8170-6f5e4d3c2b1a,VTI,buy,limit,10,245,,day,filled,10,244.9,schwab,,3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60,3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60,2026-09-28T14:05:00Z,2026-09-28T14:05:00Z,2026-09-28T14:05:00Z,2026-09-28T14:05:00Z,2026-09-28T14:05:00Z\r\n"}}},"400":{"$ref":"#/components/responses/BadRequest","description":"A filter, the limit, or the cursor is wrong. The message says which."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the orders:read scope, or the request came from an address the key doesn't allow."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/orders/{id}":{"get":{"operationId":"getOrderById","summary":"One order","description":"One order by its id. Needs the orders:read scope. A key limited to some advisors only sees those advisors' clients.","tags":["Orders"],"parameters":[{"$ref":"#/components/parameters/RowId"}],"responses":{"200":{"description":"The row.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/orders"}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","security_id":"9f8e7d6c-5b4a-4392-8170-6f5e4d3c2b1a","symbol":"VTI","side":"buy","order_type":"limit","quantity":10,"limit_price":245,"stop_price":null,"time_in_force":"day","state":"filled","filled_quantity":10,"avg_fill_price":244.9,"custodian":"schwab","reject_reason":null,"entered_by":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","approved_by":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","approved_at":"2026-09-28T14:05:00Z","routed_at":"2026-09-28T14:05:00Z","completed_at":"2026-09-28T14:05:00Z","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The id isn't an id."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the orders:read scope, or the request came from an address the key doesn't allow."},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/invoices":{"get":{"operationId":"listInvoices","summary":"Invoices","description":"Fee invoices sent to clients. from and to are on the day the billing period ends. Needs the invoices:read scope. A key limited to some advisors only sees those advisors' clients. Use updated_since to pick up only what changed since your last run. status takes draft, sent, partial, paid, overdue, cancelled, void. Rows come a page at a time. Pass next_cursor as cursor until it comes back null. Add format=csv for a CSV file instead of JSON. Its next cursor is in the X-Next-Cursor header.","tags":["Invoices"],"parameters":[{"$ref":"#/components/parameters/ClientId"},{"$ref":"#/components/parameters/Status"},{"$ref":"#/components/parameters/From"},{"$ref":"#/components/parameters/To"},{"$ref":"#/components/parameters/UpdatedSince"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/Format"}],"responses":{"200":{"description":"A page of rows.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/invoices"}},"next_cursor":{"type":["string","null"],"description":"Pass as cursor to get the next page. Null on the last page."}}},"example":{"data":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","household_id":null,"account_id":null,"invoice_number":"INV-2026-0042","period_start":"2026-09-28","period_end":"2026-09-28","aum_start":248000,"aum_end":252000,"average_aum":250000,"fee_amount":625,"tax_amount":0,"total_amount":625,"amount_paid":625,"status":"paid","due_date":"2026-09-28","sent_at":"2026-09-28T14:05:00Z","paid_at":"2026-09-28T14:05:00Z","payment_method":"ach","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}],"next_cursor":"M2YyYjFjOWUtN2E0MS00ZDdlLTlhNTUtMWQyYzNiNGE1ZjYw"}},"text/csv":{"schema":{"type":"string"},"example":"id,client_id,household_id,account_id,invoice_number,period_start,period_end,aum_start,aum_end,average_aum,fee_amount,tax_amount,total_amount,amount_paid,status,due_date,sent_at,paid_at,payment_method,created_at,updated_at\r\n3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60,8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f,,,INV-2026-0042,2026-09-28,2026-09-28,248000,252000,250000,625,0,625,625,paid,2026-09-28,2026-09-28T14:05:00Z,2026-09-28T14:05:00Z,ach,2026-09-28T14:05:00Z,2026-09-28T14:05:00Z\r\n"}}},"400":{"$ref":"#/components/responses/BadRequest","description":"A filter, the limit, or the cursor is wrong. The message says which."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the invoices:read scope, or the request came from an address the key doesn't allow."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"operationId":"createInvoice","summary":"Add or change an invoice","description":"Adds an invoice to a client's Invoices page, for a firm that bills somewhere else. Sending the same number again changes that invoice, so you can mark it paid later. A firm that uses Riafront for the client app only gets Invoices back in the client app once it has sent one. The number has to be new among the firm's invoices made in Riafront. To attach the PDF, send it with POST /documents first and give its id as document_id. Needs the invoices:write scope. Fields we don't know are refused, so a typo doesn't pass unnoticed. Send an Idempotency-Key header with each request so a retry can't add it twice. Everything added is on the firm's activity log, naming the key. A key limited to some advisors only sees those advisors' clients.","tags":["Invoices"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/invoices_create"},"examples":{"invoice":{"summary":"Add a invoice","value":{"number":"INV-2026-1042","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","period_start":"2026-07-01","period_end":"2026-09-30","amount":3125,"due_date":"2026-10-30","status":"sent"}}}}}},"responses":{"201":{"description":"Added. The new row, as GET returns it.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":["string","null"],"format":"uuid","description":"The id of the invoice."},"number":{"type":["string","null"],"description":"The invoice number."},"client_id":{"type":["string","null"],"format":"uuid","description":"The client."},"account_id":{"type":["string","null"],"format":"uuid","description":"The account, if it is for one."},"period_start":{"type":["string","null"],"format":"date","description":"First day billed."},"period_end":{"type":["string","null"],"format":"date","description":"Last day billed."},"amount":{"type":["number","null"],"description":"The total billed."},"tax_amount":{"type":["number","null"],"description":"The part of the total that is tax."},"due_date":{"type":["string","null"],"format":"date","description":"When it is due."},"status":{"type":["string","null"],"description":"sent, paid, overdue, cancelled, or void."},"document_id":{"type":["string","null"],"format":"uuid","description":"The PDF, if one was attached."},"created":{"type":["boolean","null"],"description":"true when it was added, false when an invoice with that number was changed."}}}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","number":"text","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","period_start":"2026-09-28","period_end":"2026-09-28","amount":-2451,"tax_amount":0,"due_date":"2026-09-28","status":"active","document_id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","created":false}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The body isn't JSON, or the Idempotency-Key is longer than 255 characters."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the invoices:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/invoices/{id}":{"get":{"operationId":"getInvoiceById","summary":"One invoice","description":"One invoice by its id. Needs the invoices:read scope. A key limited to some advisors only sees those advisors' clients.","tags":["Invoices"],"parameters":[{"$ref":"#/components/parameters/RowId"}],"responses":{"200":{"description":"The row.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/invoices"}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","household_id":null,"account_id":null,"invoice_number":"INV-2026-0042","period_start":"2026-09-28","period_end":"2026-09-28","aum_start":248000,"aum_end":252000,"average_aum":250000,"fee_amount":625,"tax_amount":0,"total_amount":625,"amount_paid":625,"status":"paid","due_date":"2026-09-28","sent_at":"2026-09-28T14:05:00Z","paid_at":"2026-09-28T14:05:00Z","payment_method":"ach","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The id isn't an id."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the invoices:read scope, or the request came from an address the key doesn't allow."},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/invoice-payments":{"get":{"operationId":"listInvoicePayments","summary":"Invoice payments","description":"Payments recorded against invoices. from and to are on the day it was paid. Needs the payments:read scope. A key limited to some advisors only sees those advisors' clients. Use updated_since to pick up only what changed since your last run. Rows come a page at a time. Pass next_cursor as cursor until it comes back null. Add format=csv for a CSV file instead of JSON. Its next cursor is in the X-Next-Cursor header.","tags":["Invoice payments"],"parameters":[{"$ref":"#/components/parameters/ClientId"},{"$ref":"#/components/parameters/InvoiceId"},{"$ref":"#/components/parameters/From"},{"$ref":"#/components/parameters/To"},{"$ref":"#/components/parameters/UpdatedSince"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/Format"}],"responses":{"200":{"description":"A page of rows.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/invoice_payments"}},"next_cursor":{"type":["string","null"],"description":"Pass as cursor to get the next page. Null on the last page."}}},"example":{"data":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","invoice_id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","amount":625,"method":"ach","paid_on":"2026-09-28","note":"","created_at":"2026-09-28T14:05:00Z"}],"next_cursor":"M2YyYjFjOWUtN2E0MS00ZDdlLTlhNTUtMWQyYzNiNGE1ZjYw"}},"text/csv":{"schema":{"type":"string"},"example":"id,invoice_id,client_id,amount,method,paid_on,note,created_at\r\n3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60,3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60,8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f,625,ach,2026-09-28,,2026-09-28T14:05:00Z\r\n"}}},"400":{"$ref":"#/components/responses/BadRequest","description":"A filter, the limit, or the cursor is wrong. The message says which."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the payments:read scope, or the request came from an address the key doesn't allow."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/invoice-payments/{id}":{"get":{"operationId":"getInvoicePaymentById","summary":"One invoice payment","description":"One invoice payment by its id. Needs the payments:read scope. A key limited to some advisors only sees those advisors' clients.","tags":["Invoice payments"],"parameters":[{"$ref":"#/components/parameters/RowId"}],"responses":{"200":{"description":"The row.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/invoice_payments"}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","invoice_id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","amount":625,"method":"ach","paid_on":"2026-09-28","note":"","created_at":"2026-09-28T14:05:00Z"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The id isn't an id."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the payments:read scope, or the request came from an address the key doesn't allow."},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/signature-requests":{"get":{"operationId":"listSignatureRequests","summary":"Signature requests","description":"Documents sent to clients to sign, and how each one went. from and to are on the day it was sent. Needs the signatures:read scope. A key limited to some advisors only sees those advisors' clients. Use updated_since to pick up only what changed since your last run. status takes pending, signed, declined, cancelled. Rows come a page at a time. Pass next_cursor as cursor until it comes back null. Add format=csv for a CSV file instead of JSON. Its next cursor is in the X-Next-Cursor header.","tags":["Signature requests"],"parameters":[{"$ref":"#/components/parameters/ClientId"},{"$ref":"#/components/parameters/Status"},{"$ref":"#/components/parameters/From"},{"$ref":"#/components/parameters/To"},{"$ref":"#/components/parameters/UpdatedSince"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/Format"}],"responses":{"200":{"description":"A page of rows.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/signature_requests"}},"next_cursor":{"type":["string","null"],"description":"Pass as cursor to get the next page. Null on the last page."}}},"example":{"data":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","document_id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","signed_document_id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","title":"Advisory agreement","status":"signed","provider":"builtin","requested_by":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","requested_at":"2026-09-28T14:05:00Z","signed_at":"2026-09-28T14:05:00Z","closed_at":"2026-09-28T14:05:00Z","declined_reason":null}],"next_cursor":"M2YyYjFjOWUtN2E0MS00ZDdlLTlhNTUtMWQyYzNiNGE1ZjYw"}},"text/csv":{"schema":{"type":"string"},"example":"id,client_id,document_id,signed_document_id,title,status,provider,requested_by,requested_at,signed_at,closed_at,declined_reason\r\n3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60,8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f,3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60,3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60,Advisory agreement,signed,builtin,3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60,2026-09-28T14:05:00Z,2026-09-28T14:05:00Z,2026-09-28T14:05:00Z,\r\n"}}},"400":{"$ref":"#/components/responses/BadRequest","description":"A filter, the limit, or the cursor is wrong. The message says which."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the signatures:read scope, or the request came from an address the key doesn't allow."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/signature-requests/{id}":{"get":{"operationId":"getSignatureRequestById","summary":"One signature request","description":"One signature request by its id. Needs the signatures:read scope. A key limited to some advisors only sees those advisors' clients.","tags":["Signature requests"],"parameters":[{"$ref":"#/components/parameters/RowId"}],"responses":{"200":{"description":"The row.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/signature_requests"}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","document_id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","signed_document_id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","title":"Advisory agreement","status":"signed","provider":"builtin","requested_by":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","requested_at":"2026-09-28T14:05:00Z","signed_at":"2026-09-28T14:05:00Z","closed_at":"2026-09-28T14:05:00Z","declined_reason":null}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The id isn't an id."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the signatures:read scope, or the request came from an address the key doesn't allow."},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/goals":{"get":{"operationId":"listGoals","summary":"Goals","description":"Clients' financial goals, like retirement or a home. Needs the goals:read scope. A key limited to some advisors only sees those advisors' clients. Use updated_since to pick up only what changed since your last run. status takes active, on_track, at_risk, completed, paused, cancelled. Rows come a page at a time. Pass next_cursor as cursor until it comes back null. Add format=csv for a CSV file instead of JSON. Its next cursor is in the X-Next-Cursor header.","tags":["Goals"],"parameters":[{"$ref":"#/components/parameters/ClientId"},{"$ref":"#/components/parameters/Status"},{"$ref":"#/components/parameters/UpdatedSince"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/Format"}],"responses":{"200":{"description":"A page of rows.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/goals"}},"next_cursor":{"type":["string","null"],"description":"Pass as cursor to get the next page. Null on the last page."}}},"example":{"data":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Retire at 62","goal_type":"retirement","target_amount":2000000,"current_amount":650000,"target_date":"2026-09-28","monthly_contribution":2500,"expected_annual_return":0.06,"inflation_rate":0.025,"priority":1,"status":"on_track","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}],"next_cursor":"M2YyYjFjOWUtN2E0MS00ZDdlLTlhNTUtMWQyYzNiNGE1ZjYw"}},"text/csv":{"schema":{"type":"string"},"example":"id,client_id,name,goal_type,target_amount,current_amount,target_date,monthly_contribution,expected_annual_return,inflation_rate,priority,status,created_at,updated_at\r\n3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60,8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f,Retire at 62,retirement,2000000,650000,2026-09-28,2500,0.06,0.025,1,on_track,2026-09-28T14:05:00Z,2026-09-28T14:05:00Z\r\n"}}},"400":{"$ref":"#/components/responses/BadRequest","description":"A filter, the limit, or the cursor is wrong. The message says which."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the goals:read scope, or the request came from an address the key doesn't allow."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"operationId":"createGoal","summary":"Add a goal","description":"A financial goal for a client, like retirement or a home. Rates are decimals, so 7% is 0.07. Needs the goals:write scope. Fields we don't know are refused, so a typo doesn't pass unnoticed. Send an Idempotency-Key header with each request so a retry can't add it twice. Everything added is on the firm's activity log, naming the key. A key limited to some advisors only sees those advisors' clients.","tags":["Goals"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/goals_create"},"examples":{"goal":{"summary":"Add a goal","value":{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Retire at 62","goal_type":"retirement","target_amount":2500000,"target_date":"2040-06-30","monthly_contribution":3000}}}}}},"responses":{"201":{"description":"Added. The new row, as GET returns it.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/goals"}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Retire at 62","goal_type":"retirement","target_amount":2500000,"current_amount":650000,"target_date":"2040-06-30","monthly_contribution":3000,"expected_annual_return":0.06,"inflation_rate":0.025,"priority":1,"status":"on_track","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The body isn't JSON, or the Idempotency-Key is longer than 255 characters."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the goals:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/goals/{id}":{"get":{"operationId":"getGoalById","summary":"One goal","description":"One goal by its id. Needs the goals:read scope. A key limited to some advisors only sees those advisors' clients.","tags":["Goals"],"parameters":[{"$ref":"#/components/parameters/RowId"}],"responses":{"200":{"description":"The row.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/goals"}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Retire at 62","goal_type":"retirement","target_amount":2000000,"current_amount":650000,"target_date":"2026-09-28","monthly_contribution":2500,"expected_annual_return":0.06,"inflation_rate":0.025,"priority":1,"status":"on_track","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The id isn't an id."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the goals:read scope, or the request came from an address the key doesn't allow."},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}},"patch":{"operationId":"updateGoal","summary":"Change a goal","description":"Changes the fields you send and leaves the rest as they are. Send null to empty a field that can be emptied. Only fields that are safe to change are taken, never balances or ids or anything that would rewrite history, and anything else is a 422. Needs the goals:write scope. Changes go on the firm's activity log, naming the key. A key limited to some advisors only sees those advisors' clients.","tags":["Goals"],"parameters":[{"$ref":"#/components/parameters/RowId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"minProperties":1,"properties":{"name":{"type":"string","description":"What the goal is called.","maxLength":200},"goal_type":{"type":"string","enum":["retirement","home","education","emergency","income","other"],"description":"The kind of goal."},"target_amount":{"type":"number","description":"How much money it needs.","exclusiveMinimum":0},"target_date":{"type":["string","null"],"format":"date","description":"When the money is needed. Can't be in the past."},"monthly_contribution":{"type":"number","description":"What is added each month. 0 if left out.","minimum":0},"expected_annual_return":{"type":"number","description":"A decimal, so 7% is 0.07. 0.07 if left out.","minimum":0,"maximum":1},"inflation_rate":{"type":"number","description":"A decimal, so 3% is 0.03. 0.03 if left out.","minimum":0,"maximum":1},"priority":{"type":"integer","description":"From 1 (first) to 5. 1 if left out.","minimum":1,"maximum":5},"status":{"type":"string","enum":["active","on_track","at_risk","completed","paused","cancelled"],"description":"active if left out."},"notes":{"type":["string","null"],"description":"Anything worth knowing.","maxLength":2000}}},"example":{"name":"Retire at 62","goal_type":"retirement","target_amount":2500000,"target_date":"2040-06-30","monthly_contribution":3000}}}},"responses":{"200":{"description":"Changed. The whole goal, as GET returns it.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/goals"}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Retire at 62","goal_type":"retirement","target_amount":2500000,"current_amount":650000,"target_date":"2040-06-30","monthly_contribution":3000,"expected_annual_return":0.06,"inflation_rate":0.025,"priority":1,"status":"on_track","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The body isn't JSON, or an id in the address isn't an id."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the goals:write scope, or the request came from an address the key doesn't allow."},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict","description":"The email or external_id is already used by another goal."},"422":{"$ref":"#/components/responses/Invalid","description":"A field is wrong, or one that can't be changed was sent."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/risk-scores":{"get":{"operationId":"listRiskScores","summary":"Risk scores","description":"Each time a client's risk questionnaire was taken: the scores and the risk profile they gave. The answers aren't included. from and to are on the day it was taken. Needs the risk_scores:read scope. A key limited to some advisors only sees those advisors' clients. Use updated_since to pick up only what changed since your last run. Rows come a page at a time. Pass next_cursor as cursor until it comes back null. Add format=csv for a CSV file instead of JSON. Its next cursor is in the X-Next-Cursor header.","tags":["Risk scores"],"parameters":[{"$ref":"#/components/parameters/ClientId"},{"$ref":"#/components/parameters/From"},{"$ref":"#/components/parameters/To"},{"$ref":"#/components/parameters/UpdatedSince"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/Format"}],"responses":{"200":{"description":"A page of rows.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/risk_scores"}},"next_cursor":{"type":["string","null"],"description":"Pass as cursor to get the next page. Null on the last page."}}},"example":{"data":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","version":"v1","score":58,"ability_score":62,"willingness_score":54,"profile":"moderate","suggested_stock_pct":60,"taken_by_role":"client","accepted_at":"2026-09-28T14:05:00Z","created_at":"2026-09-28T14:05:00Z"}],"next_cursor":"M2YyYjFjOWUtN2E0MS00ZDdlLTlhNTUtMWQyYzNiNGE1ZjYw"}},"text/csv":{"schema":{"type":"string"},"example":"id,client_id,version,score,ability_score,willingness_score,profile,suggested_stock_pct,taken_by_role,accepted_at,created_at\r\n3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60,8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f,v1,58,62,54,moderate,60,client,2026-09-28T14:05:00Z,2026-09-28T14:05:00Z\r\n"}}},"400":{"$ref":"#/components/responses/BadRequest","description":"A filter, the limit, or the cursor is wrong. The message says which."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the risk_scores:read scope, or the request came from an address the key doesn't allow."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/risk-scores/{id}":{"get":{"operationId":"getRiskScoreById","summary":"One risk score","description":"One risk score by its id. Needs the risk_scores:read scope. A key limited to some advisors only sees those advisors' clients.","tags":["Risk scores"],"parameters":[{"$ref":"#/components/parameters/RowId"}],"responses":{"200":{"description":"The row.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/risk_scores"}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","version":"v1","score":58,"ability_score":62,"willingness_score":54,"profile":"moderate","suggested_stock_pct":60,"taken_by_role":"client","accepted_at":"2026-09-28T14:05:00Z","created_at":"2026-09-28T14:05:00Z"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The id isn't an id."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the risk_scores:read scope, or the request came from an address the key doesn't allow."},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/securities":{"get":{"operationId":"listSecurities","summary":"Securities","description":"The stocks, funds, bonds, and cash holdings your clients hold or have traded. Details only, with no prices. Prices come with positions. Needs the securities:read scope. A key limited to some advisors only sees those advisors' clients. Use updated_since to pick up only what changed since your last run. Rows come a page at a time. Pass next_cursor as cursor until it comes back null. Add format=csv for a CSV file instead of JSON. Its next cursor is in the X-Next-Cursor header.","tags":["Securities"],"parameters":[{"$ref":"#/components/parameters/Symbol"},{"$ref":"#/components/parameters/UpdatedSince"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/Format"}],"responses":{"200":{"description":"A page of rows.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/securities"}},"next_cursor":{"type":["string","null"],"description":"Pass as cursor to get the next page. Null on the last page."}}},"example":{"data":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","symbol":"VTI","name":"Vanguard Total Stock Market ETF","security_type":"etf","asset_class":"equity","sector":null,"currency":"USD","expense_ratio":0.0003,"created_at":"2026-09-28T14:05:00Z"}],"next_cursor":"M2YyYjFjOWUtN2E0MS00ZDdlLTlhNTUtMWQyYzNiNGE1ZjYw"}},"text/csv":{"schema":{"type":"string"},"example":"id,symbol,name,security_type,asset_class,sector,currency,expense_ratio,created_at\r\n3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60,VTI,Vanguard Total Stock Market ETF,etf,equity,,USD,0.0003,2026-09-28T14:05:00Z\r\n"}}},"400":{"$ref":"#/components/responses/BadRequest","description":"A filter, the limit, or the cursor is wrong. The message says which."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the securities:read scope, or the request came from an address the key doesn't allow."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/securities/{id}":{"get":{"operationId":"getSecuritieById","summary":"One securitie","description":"One securitie by its id. Needs the securities:read scope. A key limited to some advisors only sees those advisors' clients.","tags":["Securities"],"parameters":[{"$ref":"#/components/parameters/RowId"}],"responses":{"200":{"description":"The row.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/securities"}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","symbol":"VTI","name":"Vanguard Total Stock Market ETF","security_type":"etf","asset_class":"equity","sector":null,"currency":"USD","expense_ratio":0.0003,"created_at":"2026-09-28T14:05:00Z"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The id isn't an id."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the securities:read scope, or the request came from an address the key doesn't allow."},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/follow-ups":{"get":{"operationId":"listFollowUps","summary":"Follow-ups","description":"Notes that have a follow-up date: the things an advisor said they would do. status is open or done. from and to are on the follow-up date. Needs the follow_ups:read scope. A key limited to some advisors only sees those advisors' clients. Use updated_since to pick up only what changed since your last run. status takes open, done. Rows come a page at a time. Pass next_cursor as cursor until it comes back null. Add format=csv for a CSV file instead of JSON. Its next cursor is in the X-Next-Cursor header.","tags":["Follow-ups"],"parameters":[{"$ref":"#/components/parameters/ClientId"},{"$ref":"#/components/parameters/Status"},{"$ref":"#/components/parameters/From"},{"$ref":"#/components/parameters/To"},{"$ref":"#/components/parameters/UpdatedSince"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/Format"}],"responses":{"200":{"description":"A page of rows.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/follow_ups"}},"next_cursor":{"type":["string","null"],"description":"Pass as cursor to get the next page. Null on the last page."}}},"example":{"data":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","kind":"call","subject":"Send the Roth conversion numbers","follow_up_on":"2026-12-15","done":false,"status":"open","follow_up_done_at":null,"author_id":null,"occurred_at":"2026-09-28T14:05:00Z","created_at":"2026-09-28T14:05:00Z"}],"next_cursor":"M2YyYjFjOWUtN2E0MS00ZDdlLTlhNTUtMWQyYzNiNGE1ZjYw"}},"text/csv":{"schema":{"type":"string"},"example":"id,client_id,kind,subject,follow_up_on,done,status,follow_up_done_at,author_id,occurred_at,created_at\r\n3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60,8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f,call,Send the Roth conversion numbers,2026-12-15,false,open,,,2026-09-28T14:05:00Z,2026-09-28T14:05:00Z\r\n"}}},"400":{"$ref":"#/components/responses/BadRequest","description":"A filter, the limit, or the cursor is wrong. The message says which."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the follow_ups:read scope, or the request came from an address the key doesn't allow."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"operationId":"createFollowUp","summary":"Add a follow-up","description":"Something to do for a client by a date. It is a note with a follow-up date, so it shows on the advisor's tasks. Mark it done with POST /follow-ups/{id}/done. Needs the follow_ups:write scope. Fields we don't know are refused, so a typo doesn't pass unnoticed. Send an Idempotency-Key header with each request so a retry can't add it twice. Everything added is on the firm's activity log, naming the key. A key limited to some advisors only sees those advisors' clients.","tags":["Follow-ups"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/follow_ups_create"},"examples":{"follow-up":{"summary":"Add a follow-up","value":{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","subject":"Send the Roth conversion numbers","follow_up_on":"2026-12-15","kind":"call"}}}}}},"responses":{"201":{"description":"Added. The new row, as GET returns it.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/follow_ups"}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","kind":"call","subject":"Send the Roth conversion numbers","follow_up_on":"2026-12-15","done":false,"status":"open","follow_up_done_at":null,"author_id":null,"occurred_at":"2026-09-28T14:05:00Z","created_at":"2026-09-28T14:05:00Z"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The body isn't JSON, or the Idempotency-Key is longer than 255 characters."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the follow_ups:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/follow-ups/{id}":{"get":{"operationId":"getFollowUpById","summary":"One follow-up","description":"One follow-up by its id. Needs the follow_ups:read scope. A key limited to some advisors only sees those advisors' clients.","tags":["Follow-ups"],"parameters":[{"$ref":"#/components/parameters/RowId"}],"responses":{"200":{"description":"The row.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/follow_ups"}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","kind":"call","subject":"Send the Roth conversion numbers","follow_up_on":"2026-12-15","done":false,"status":"open","follow_up_done_at":null,"author_id":null,"occurred_at":"2026-09-28T14:05:00Z","created_at":"2026-09-28T14:05:00Z"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The id isn't an id."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the follow_ups:read scope, or the request came from an address the key doesn't allow."},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/prices":{"post":{"operationId":"createPrice","summary":"Set a security price","description":"Sets the closing price of a security on a day, for securities we don't price ourselves, like a private fund or a local bond. We use it to value the holdings, today and back to that day. Sending the same symbol and date again replaces it. A price you send ranks below one entered by hand and above the custodian's and the market's. We refuse a price for a security we already price from the market, or that another firm also holds, because securities are shared by every firm. Not for a key limited to some advisors, since a price applies to the whole firm. Needs the prices:write scope. Fields we don't know are refused, so a typo doesn't pass unnoticed. Send an Idempotency-Key header with each request so a retry can't add it twice. Everything added is on the firm's activity log, naming the key. A key limited to some advisors only sees those advisors' clients.","tags":["Prices"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/prices_create"},"examples":{"price":{"summary":"Add a price","value":{"symbol":"RIVERFUND","date":"2026-11-10","price":104.25,"currency":"USD"}}}}}},"responses":{"201":{"description":"Added. The new row, as GET returns it.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":["string","null"],"description":"The symbol and date, like RIVERFUND:2026-11-10."},"symbol":{"type":["string","null"],"description":"Ticker symbol, in capitals."},"date":{"type":["string","null"],"format":"date","description":"The day of the price."},"price":{"type":["number","null"],"description":"The price you sent."},"currency":{"type":["string","null"],"description":"The currency of the price."}}}}},"example":{"data":{"id":"text","symbol":"VTI","date":"2026-09-28","price":245.1,"currency":"USD"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The body isn't JSON, or the Idempotency-Key is longer than 255 characters."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the prices:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/period-returns":{"post":{"operationId":"createPeriodReturn","summary":"Set a return for a period","description":"Sets a return you worked out for an account over a period ending on a day, like the year to date as of Nov 10. When the firm is set to supplied returns (Import from files, Returns), the client app shows the latest one for each period, labelled \"As reported by\" your firm, instead of working it out. Sending the same account, period end, and period again replaces it. period is one of 1D, WTD, MTD, 1M, QTD, 3M, 6M, YTD, 1Y, 3Y, 5Y, or ITD (since the account started). The answer says shown_in_app: false when the firm isn't set to supplied returns yet. Needs the period_returns:write scope. Fields we don't know are refused, so a typo doesn't pass unnoticed. Send an Idempotency-Key header with each request so a retry can't add it twice. Everything added is on the firm's activity log, naming the key. A key limited to some advisors only sees those advisors' clients.","tags":["Period returns"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/period-returns_create"},"examples":{"period return":{"summary":"Add a period return","value":{"account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","period_end":"2026-11-10","period":"YTD","return":0.0712}}}}}},"responses":{"201":{"description":"Added. The new row, as GET returns it.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"id":{"type":["string","null"],"description":"The account id, the period end, and the period."},"account_id":{"type":["string","null"],"format":"uuid","description":"The account."},"client_id":{"type":["string","null"],"format":"uuid","description":"The account's client."},"period_end":{"type":["string","null"],"format":"date","description":"The last day of the period."},"period":{"type":["string","null"],"description":"The period, in capitals."},"return":{"type":["number","null"],"description":"The return, as a decimal."},"shown_in_app":{"type":["boolean","null"],"description":"Whether the client app shows supplied returns for this firm."}}}}},"example":{"data":{"id":"text","account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","period_end":"2026-09-28","period":"text","return":0,"shown_in_app":false}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The body isn't JSON, or the Idempotency-Key is longer than 255 characters."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the period_returns:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/portfolio":{"get":{"operationId":"getPortfolio","summary":"Your accounts","description":"The accounts that belong to the client the key was made by, with their holdings if you ask. Needs the read:portfolio scope. Uses a client key, not a firm key. A client with no accounts gets an empty list.","tags":["Client portfolio"],"security":[{"clientApiKey":[]}],"parameters":[{"name":"account_id","in":"query","required":false,"description":"Only this account. Anything that isn't one of the client's own accounts gives an empty result.","schema":{"type":"string","format":"uuid"},"example":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d"},{"name":"include_holdings","in":"query","required":false,"description":"Send true to add each account's holdings. Any other value, or leaving it out, leaves them off.","schema":{"type":"boolean","default":false},"example":true}],"responses":{"200":{"description":"The accounts.","content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ClientAccount"}},"meta":{"type":"object","required":["count","generated_at"],"properties":{"count":{"type":"integer","description":"How many accounts are in data."},"generated_at":{"type":"string","format":"date-time","description":"When this answer was made."}}}}},"example":{"data":[{"id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","account_name":"Joint brokerage","account_type":"brokerage","holdings":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","quantity":100,"current_value":28520,"cost_basis":23100,"unrealized_gain_loss":5420}]}],"meta":{"count":1,"generated_at":"2026-10-08T12:00:00.000Z"}}}}},"400":{"$ref":"#/components/responses/ClientBadRequest","description":"account_id isn't a valid account id."},"401":{"$ref":"#/components/responses/ClientUnauthorized"},"403":{"$ref":"#/components/responses/ClientForbidden","description":"The key doesn't have the read:portfolio scope."},"500":{"$ref":"#/components/responses/ClientServerError"}}}},"/holdings":{"get":{"operationId":"getHoldings","summary":"Your holdings","description":"What the client's accounts hold now, in US dollars, with totals. Needs the read:portfolio or read:holdings scope. Uses a client key, not a firm key. A sort value we don't know sorts by value.","tags":["Client portfolio"],"security":[{"clientApiKey":[]}],"parameters":[{"name":"account_id","in":"query","required":false,"description":"Only this account's holdings. Anything that isn't one of the client's own accounts gives an empty result.","schema":{"type":"string","format":"uuid"},"example":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d"},{"name":"sort","in":"query","required":false,"description":"What to sort by.","schema":{"type":"string","enum":["value","symbol","gain_return","gain_percent"],"default":"value"},"example":"gain_return"},{"name":"order","in":"query","required":false,"description":"asc for smallest first. Anything else, or leaving it out, gives largest first.","schema":{"type":"string","enum":["asc","desc"],"default":"desc"},"example":"desc"},{"name":"min_value","in":"query","required":false,"description":"Leave out holdings worth less than this, in US dollars.","schema":{"type":"number","minimum":0,"default":0},"example":1000}],"responses":{"200":{"description":"The holdings and their totals.","content":{"application/json":{"schema":{"type":"object","required":["data","summary","meta"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ClientHolding"}},"summary":{"$ref":"#/components/schemas/HoldingsSummary"},"meta":{"type":"object","required":["generated_at","filters"],"properties":{"generated_at":{"type":"string","format":"date-time","description":"When this answer was made."},"filters":{"type":"object","required":["account_id","min_value"],"properties":{"account_id":{"type":["string","null"],"description":"The account_id you sent, or null."},"min_value":{"type":"number","description":"The min_value used. 0 if none was sent."}}}}}}},"example":{"data":[{"account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","account_name":"Joint brokerage","symbol":"VTI","security_name":"Vanguard Total Stock Market ETF","asset_class":"equity","quantity":100,"current_price":285.2,"current_value":28520,"cost_basis":23100,"unrealized_gain":5420,"gain_return":0.234632,"gain_percent":23.46},{"account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","account_name":"Joint brokerage","symbol":"BND","security_name":"Vanguard Total Bond Market ETF","asset_class":"fixed_income","quantity":150,"current_price":72.4,"current_value":10860,"cost_basis":11250,"unrealized_gain":-390,"gain_return":-0.034667,"gain_percent":-3.47}],"summary":{"total_value":39380,"total_gain_loss":5030,"position_count":2},"meta":{"generated_at":"2026-10-08T12:00:00.000Z","filters":{"account_id":null,"min_value":0}}}}}},"400":{"$ref":"#/components/responses/ClientBadRequest","description":"account_id isn't a valid account id."},"401":{"$ref":"#/components/responses/ClientUnauthorized"},"403":{"$ref":"#/components/responses/ClientForbidden","description":"The key has neither the read:portfolio nor the read:holdings scope."},"500":{"$ref":"#/components/responses/ClientServerError"}}}},"/performance":{"get":{"operationId":"getPerformance","summary":"Your performance","description":"How the client's accounts did over a period, worked out from each account's daily value and return. Money paid in or out isn't counted as a gain. Needs the read:portfolio or read:performance scope. Uses a client key, not a firm key. data is null when there is no history yet.","tags":["Client portfolio"],"security":[{"clientApiKey":[]}],"parameters":[{"name":"account_id","in":"query","required":false,"description":"Only this account. All of the client's accounts if left out. Anything that isn't one of the client's own accounts gives an empty result.","schema":{"type":"string","format":"uuid"},"example":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d"},{"name":"period","in":"query","required":false,"description":"How far back to look. ytd is since 1 January this year, and inception is since the first day with a value.","schema":{"type":"string","enum":["ytd","1y","3y","5y","inception"],"default":"ytd"},"example":"1y"}],"responses":{"200":{"description":"The result for the period, or null in data when there is no history.","content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"oneOf":[{"$ref":"#/components/schemas/PerformanceSummary"},{"type":"null"}]},"meta":{"type":"object","required":["period","account_id","generated_at"],"properties":{"period":{"type":"string","description":"The period used."},"account_id":{"type":["string","null"],"description":"The account_id you sent, or null."},"generated_at":{"type":"string","format":"date-time","description":"When this answer was made."}}}}},"example":{"data":{"start_date":"2026-01-02","end_date":"2026-10-07","start_value":250000,"end_value":271400,"net_flows":5000,"return":0.0654,"annualized_return":null,"volatility":0.112,"max_drawdown":-0.071,"days":189},"meta":{"period":"ytd","account_id":null,"generated_at":"2026-10-08T12:00:00.000Z"}}}}},"400":{"$ref":"#/components/responses/ClientBadRequest","description":"The period isn't one of ytd, 1y, 3y, 5y, or inception, or account_id isn't a valid account id."},"401":{"$ref":"#/components/responses/ClientUnauthorized"},"403":{"$ref":"#/components/responses/ClientForbidden","description":"The key has neither the read:portfolio nor the read:performance scope."},"500":{"$ref":"#/components/responses/ClientServerError"}}}},"/openapi.json":{"get":{"operationId":"getOpenApi","summary":"This description","description":"This document, in OpenAPI 3.1. Postman, Swagger UI, and code generators can read it. It needs no key and can be fetched from any website.","tags":["Reference"],"security":[],"responses":{"200":{"description":"The OpenAPI document.","headers":{"Access-Control-Allow-Origin":{"description":"Always *, so a browser on any site can fetch this.","schema":{"type":"string","enum":["*"]}},"Cache-Control":{"description":"It can be kept for 5 minutes.","schema":{"type":"string","enum":["public, max-age=300"]}}},"content":{"application/json":{"schema":{"type":"object","description":"An OpenAPI 3.1 document."}}}}}}},"/clients/external/{external_id}":{"put":{"operationId":"upsertClient","summary":"Add or change a client by your own id","description":"Looks for the client with this external_id. If there is one it is changed to match the body, and if not it is added with that external_id. Run it again and again from a CRM or spreadsheet sync and you never get copies. Send the same fields as the POST, with the same ones required. Answers 201 with created: true when it added one, and 200 with created: false when it changed one. Needs the clients:write scope. A key limited to some advisors only sees those advisors' clients.","tags":["Clients"],"parameters":[{"name":"external_id","in":"path","required":true,"description":"Your own id for the record, up to 200 characters.","schema":{"type":"string","minLength":1,"maxLength":200},"example":"crm-10442"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/clients_create"},"example":{"first_name":"Rita","last_name":"Moreno","email":"rita@example.com","advisor_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","risk_profile":"moderate"}}}},"responses":{"200":{"description":"Changed the client that had this external_id.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","created"],"properties":{"data":{"$ref":"#/components/schemas/clients"},"created":{"type":"boolean","description":"true when the record was added, false when an existing one was changed."}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_type":"individual","entity_type":null,"first_name":"Rita","last_name":"Moreno","legal_name":null,"email":"rita@example.com","phone":"+1 555 0100","status":"active","risk_profile":"moderate","advisor_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","next_review_date":"2026-12-15","external_id":"crm-10442","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"},"created":false}}}},"201":{"description":"Added a new client with this external_id.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","created"],"properties":{"data":{"$ref":"#/components/schemas/clients"},"created":{"type":"boolean","description":"true when the record was added, false when an existing one was changed."}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_type":"individual","entity_type":null,"first_name":"Rita","last_name":"Moreno","legal_name":null,"email":"rita@example.com","phone":"+1 555 0100","status":"active","risk_profile":"moderate","advisor_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","next_review_date":"2026-12-15","external_id":"crm-10442","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"},"created":true}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The body isn't JSON, or the external_id is empty or longer than 200 characters."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the clients:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict","description":"The email or account number is already used by another record."},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/clients/bulk":{"post":{"operationId":"bulkAddClient","summary":"Add many clients at once","description":"Up to 500 records in one request, as a JSON list or as a CSV file whose first line is field names. Each row is checked and saved on its own, so one bad row doesn't stop the rest, and the answer says what happened to each. In a CSV file an empty cell is the same as leaving the field out. Send an Idempotency-Key to make the whole batch safe to retry. Needs the clients:write scope. A key limited to some advisors only sees those advisors' clients.","tags":["Clients"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","maxItems":500,"items":{"$ref":"#/components/schemas/clients_create"}},"example":[{"first_name":"Rita","last_name":"Moreno","email":"rita@example.com","advisor_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","risk_profile":"moderate","external_id":"crm-10442"},{"first_name":"Rita","last_name":"Moreno","email":"rita@example.com","advisor_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","risk_profile":"moderate","external_id":"crm-10442"}]},"text/csv":{"schema":{"type":"string","description":"A header line of field names, then one record on each line. Up to 500 records."},"example":"first_name,last_name,email,advisor_id,risk_profile,external_id\n\"Rita\",\"Moreno\",\"rita@example.com\",\"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b\",\"moderate\",\"crm-10442\""}}},"responses":{"200":{"description":"Every row was looked at. Check failed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["total","created","failed","results"],"properties":{"total":{"type":"integer","description":"How many rows were sent."},"created":{"type":"integer","description":"How many were saved."},"failed":{"type":"integer","description":"How many were not."},"results":{"type":"array","description":"One item for each row, in the order sent.","items":{"type":"object","required":["row","status"],"properties":{"row":{"type":"integer","description":"The row, counting from 1. The header line of a CSV file is not counted."},"status":{"type":"string","enum":["created","error"]},"id":{"type":"string","format":"uuid","description":"The new row's id, when it was saved."},"errors":{"type":"array","description":"What was wrong, when it wasn't saved.","items":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"example":{"data":{"total":2,"created":1,"failed":1,"results":[{"row":1,"status":"created","id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60"},{"row":2,"status":"error","errors":[{"field":"email","message":"Required."}]}]}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The Idempotency-Key is longer than 255 characters."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the clients:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid","description":"The file as a whole is wrong: not a list, an empty file, more than 500 rows, or a column we don't know. Or the Idempotency-Key was used for a different request."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/accounts/external/{external_id}":{"put":{"operationId":"upsertAccount","summary":"Add or change an account by your own id","description":"Looks for the account with this external_id. If there is one it is changed to match the body, and if not it is added with that external_id. Run it again and again from a CRM or spreadsheet sync and you never get copies. Send the same fields as the POST, with the same ones required. Answers 201 with created: true when it added one, and 200 with created: false when it changed one. Needs the accounts:write scope. A key limited to some advisors only sees those advisors' clients.","tags":["Accounts"],"parameters":[{"name":"external_id","in":"path","required":true,"description":"Your own id for the record, up to 200 characters.","schema":{"type":"string","minLength":1,"maxLength":200},"example":"crm-10442"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/accounts_create"},"example":{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Joint brokerage","account_number":"X1234-5678","account_type":"joint","custodian":"schwab"}}}},"responses":{"200":{"description":"Changed the account that had this external_id.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","created"],"properties":{"data":{"$ref":"#/components/schemas/accounts"},"created":{"type":"boolean","description":"true when the record was added, false when an existing one was changed."}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Joint brokerage","account_number":"X1234-5678","account_type":"joint","custodian":"schwab","status":"active","currency":"USD","market_value":250000,"market_value_local":250000,"model_portfolio_id":null,"benchmark_id":null,"opened_date":"2026-09-28","external_id":"CUST-77120","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"},"created":false}}}},"201":{"description":"Added a new account with this external_id.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","created"],"properties":{"data":{"$ref":"#/components/schemas/accounts"},"created":{"type":"boolean","description":"true when the record was added, false when an existing one was changed."}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Joint brokerage","account_number":"X1234-5678","account_type":"joint","custodian":"schwab","status":"active","currency":"USD","market_value":250000,"market_value_local":250000,"model_portfolio_id":null,"benchmark_id":null,"opened_date":"2026-09-28","external_id":"CUST-77120","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"},"created":true}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The body isn't JSON, or the external_id is empty or longer than 200 characters."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the accounts:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict","description":"The email or account number is already used by another record."},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/accounts/bulk":{"post":{"operationId":"bulkAddAccount","summary":"Add many accounts at once","description":"Up to 500 records in one request, as a JSON list or as a CSV file whose first line is field names. Each row is checked and saved on its own, so one bad row doesn't stop the rest, and the answer says what happened to each. In a CSV file an empty cell is the same as leaving the field out. Send an Idempotency-Key to make the whole batch safe to retry. Needs the accounts:write scope. A key limited to some advisors only sees those advisors' clients.","tags":["Accounts"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","maxItems":500,"items":{"$ref":"#/components/schemas/accounts_create"}},"example":[{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Joint brokerage","account_number":"X1234-5678","account_type":"joint","custodian":"schwab"},{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Joint brokerage","account_number":"X1234-5678","account_type":"joint","custodian":"schwab"}]},"text/csv":{"schema":{"type":"string","description":"A header line of field names, then one record on each line. Up to 500 records."},"example":"client_id,name,account_number,account_type,custodian\n\"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f\",\"Joint brokerage\",\"X1234-5678\",\"joint\",\"schwab\""}}},"responses":{"200":{"description":"Every row was looked at. Check failed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["total","created","failed","results"],"properties":{"total":{"type":"integer","description":"How many rows were sent."},"created":{"type":"integer","description":"How many were saved."},"failed":{"type":"integer","description":"How many were not."},"results":{"type":"array","description":"One item for each row, in the order sent.","items":{"type":"object","required":["row","status"],"properties":{"row":{"type":"integer","description":"The row, counting from 1. The header line of a CSV file is not counted."},"status":{"type":"string","enum":["created","error"]},"id":{"type":"string","format":"uuid","description":"The new row's id, when it was saved."},"errors":{"type":"array","description":"What was wrong, when it wasn't saved.","items":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"example":{"data":{"total":2,"created":1,"failed":1,"results":[{"row":1,"status":"created","id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60"},{"row":2,"status":"error","errors":[{"field":"client_id","message":"Required."}]}]}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The Idempotency-Key is longer than 255 characters."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the accounts:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid","description":"The file as a whole is wrong: not a list, an empty file, more than 500 rows, or a column we don't know. Or the Idempotency-Key was used for a different request."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/positions/bulk":{"post":{"operationId":"bulkAddPosition","summary":"Add many positions at once","description":"Up to 500 records in one request, as a JSON list or as a CSV file whose first line is field names. Each row is checked and saved on its own, so one bad row doesn't stop the rest, and the answer says what happened to each. In a CSV file an empty cell is the same as leaving the field out. Send an Idempotency-Key to make the whole batch safe to retry. Needs the positions:write scope. A key limited to some advisors only sees those advisors' clients.","tags":["Positions"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","maxItems":500,"items":{"$ref":"#/components/schemas/positions_create"}},"example":[{"account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","symbol":"VTI","quantity":120,"as_of_date":"2026-09-30","cost_basis":24500,"acquired_on":"2021-03-15"},{"account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","symbol":"VTI","quantity":120,"as_of_date":"2026-09-30","cost_basis":24500,"acquired_on":"2021-03-15"}]},"text/csv":{"schema":{"type":"string","description":"A header line of field names, then one record on each line. Up to 500 records."},"example":"account_id,symbol,quantity,as_of_date,cost_basis,acquired_on\n\"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d\",\"VTI\",\"120\",\"2026-09-30\",\"24500\",\"2021-03-15\""}}},"responses":{"200":{"description":"Every row was looked at. Check failed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["total","created","failed","results"],"properties":{"total":{"type":"integer","description":"How many rows were sent."},"created":{"type":"integer","description":"How many were saved."},"failed":{"type":"integer","description":"How many were not."},"results":{"type":"array","description":"One item for each row, in the order sent.","items":{"type":"object","required":["row","status"],"properties":{"row":{"type":"integer","description":"The row, counting from 1. The header line of a CSV file is not counted."},"status":{"type":"string","enum":["created","error"]},"id":{"type":"string","format":"uuid","description":"The new row's id, when it was saved."},"errors":{"type":"array","description":"What was wrong, when it wasn't saved.","items":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"example":{"data":{"total":2,"created":1,"failed":1,"results":[{"row":1,"status":"created","id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60"},{"row":2,"status":"error","errors":[{"field":"account_id","message":"Required."}]}]}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The Idempotency-Key is longer than 255 characters."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the positions:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid","description":"The file as a whole is wrong: not a list, an empty file, more than 500 rows, or a column we don't know. Or the Idempotency-Key was used for a different request."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/transactions/bulk":{"post":{"operationId":"bulkAddTransaction","summary":"Add many transactions at once","description":"Up to 500 records in one request, as a JSON list or as a CSV file whose first line is field names. Each row is checked and saved on its own, so one bad row doesn't stop the rest, and the answer says what happened to each. In a CSV file an empty cell is the same as leaving the field out. Send an Idempotency-Key to make the whole batch safe to retry. Needs the transactions:write scope. A key limited to some advisors only sees those advisors' clients. Every row goes to the Reconciliation page for review, like a single transaction, unless the firm uses Riafront for the client app only. Then every row posts at once.","tags":["Transactions"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","maxItems":500,"items":{"$ref":"#/components/schemas/transactions_create"}},"example":[{"account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","trade_date":"2026-09-28","type":"buy","symbol":"VTI","quantity":10,"price":245.1,"amount":-2451,"external_id":"trade-88123"},{"account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","trade_date":"2026-09-28","type":"buy","symbol":"VTI","quantity":10,"price":245.1,"amount":-2451,"external_id":"trade-88123"}]},"text/csv":{"schema":{"type":"string","description":"A header line of field names, then one record on each line. Up to 500 records."},"example":"account_id,trade_date,type,amount,symbol,quantity,price,external_id\n\"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d\",\"2026-09-28\",\"buy\",\"-2451\",\"VTI\",\"10\",\"245.1\",\"trade-88123\""}}},"responses":{"200":{"description":"Every row was looked at. Check failed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["total","created","failed","results"],"properties":{"total":{"type":"integer","description":"How many rows were sent."},"created":{"type":"integer","description":"How many were saved."},"failed":{"type":"integer","description":"How many were not."},"results":{"type":"array","description":"One item for each row, in the order sent.","items":{"type":"object","required":["row","status"],"properties":{"row":{"type":"integer","description":"The row, counting from 1. The header line of a CSV file is not counted."},"status":{"type":"string","enum":["created","error"]},"id":{"type":"string","format":"uuid","description":"The new row's id, when it was saved."},"errors":{"type":"array","description":"What was wrong, when it wasn't saved.","items":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"example":{"data":{"total":2,"created":1,"failed":1,"results":[{"row":1,"status":"created","id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60"},{"row":2,"status":"error","errors":[{"field":"account_id","message":"Required."}]}]}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The Idempotency-Key is longer than 255 characters."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the transactions:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid","description":"The file as a whole is wrong: not a list, an empty file, more than 500 rows, or a column we don't know. Or the Idempotency-Key was used for a different request."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/daily-values/bulk":{"post":{"operationId":"bulkAddDailyValue","summary":"Add many daily values at once","description":"Up to 500 records in one request, as a JSON list or as a CSV file whose first line is field names. Each row is checked and saved on its own, so one bad row doesn't stop the rest, and the answer says what happened to each. In a CSV file an empty cell is the same as leaving the field out. Send an Idempotency-Key to make the whole batch safe to retry. Needs the daily_values:write scope. A key limited to some advisors only sees those advisors' clients.","tags":["Daily values"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","maxItems":500,"items":{"$ref":"#/components/schemas/daily_values_create"}},"example":[{"account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","date":"2026-09-30","market_value":1250000,"net_flow":10000,"daily_return":0.0042,"advisory_fees":85},{"account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","date":"2026-09-30","market_value":1250000,"net_flow":10000,"daily_return":0.0042,"advisory_fees":85}]},"text/csv":{"schema":{"type":"string","description":"A header line of field names, then one record on each line. Up to 500 records."},"example":"account_id,date,market_value,net_flow,daily_return,advisory_fees\n\"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d\",\"2026-09-30\",\"1250000\",\"10000\",\"0.0042\",\"85\""}}},"responses":{"200":{"description":"Every row was looked at. Check failed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["total","created","failed","results"],"properties":{"total":{"type":"integer","description":"How many rows were sent."},"created":{"type":"integer","description":"How many were saved."},"failed":{"type":"integer","description":"How many were not."},"results":{"type":"array","description":"One item for each row, in the order sent.","items":{"type":"object","required":["row","status"],"properties":{"row":{"type":"integer","description":"The row, counting from 1. The header line of a CSV file is not counted."},"status":{"type":"string","enum":["created","error"]},"id":{"type":"string","format":"uuid","description":"The new row's id, when it was saved."},"errors":{"type":"array","description":"What was wrong, when it wasn't saved.","items":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"example":{"data":{"total":2,"created":1,"failed":1,"results":[{"row":1,"status":"created","id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60"},{"row":2,"status":"error","errors":[{"field":"account_id","message":"Required."}]}]}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The Idempotency-Key is longer than 255 characters."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the daily_values:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid","description":"The file as a whole is wrong: not a list, an empty file, more than 500 rows, or a column we don't know. Or the Idempotency-Key was used for a different request."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/notes/bulk":{"post":{"operationId":"bulkAddNote","summary":"Add many notes at once","description":"Up to 500 records in one request, as a JSON list or as a CSV file whose first line is field names. Each row is checked and saved on its own, so one bad row doesn't stop the rest, and the answer says what happened to each. In a CSV file an empty cell is the same as leaving the field out. Send an Idempotency-Key to make the whole batch safe to retry. Needs the notes:write scope. A key limited to some advisors only sees those advisors' clients.","tags":["Notes"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","maxItems":500,"items":{"$ref":"#/components/schemas/notes_create"}},"example":[{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","kind":"call","subject":"Quarterly review","body":"Talked about the Roth conversion.","follow_up_on":"2026-12-15"},{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","kind":"call","subject":"Quarterly review","body":"Talked about the Roth conversion.","follow_up_on":"2026-12-15"}]},"text/csv":{"schema":{"type":"string","description":"A header line of field names, then one record on each line. Up to 500 records."},"example":"client_id,kind,subject,body,follow_up_on\n\"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f\",\"call\",\"Quarterly review\",\"Talked about the Roth conversion.\",\"2026-12-15\""}}},"responses":{"200":{"description":"Every row was looked at. Check failed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["total","created","failed","results"],"properties":{"total":{"type":"integer","description":"How many rows were sent."},"created":{"type":"integer","description":"How many were saved."},"failed":{"type":"integer","description":"How many were not."},"results":{"type":"array","description":"One item for each row, in the order sent.","items":{"type":"object","required":["row","status"],"properties":{"row":{"type":"integer","description":"The row, counting from 1. The header line of a CSV file is not counted."},"status":{"type":"string","enum":["created","error"]},"id":{"type":"string","format":"uuid","description":"The new row's id, when it was saved."},"errors":{"type":"array","description":"What was wrong, when it wasn't saved.","items":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"example":{"data":{"total":2,"created":1,"failed":1,"results":[{"row":1,"status":"created","id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60"},{"row":2,"status":"error","errors":[{"field":"client_id","message":"Required."}]}]}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The Idempotency-Key is longer than 255 characters."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the notes:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid","description":"The file as a whole is wrong: not a list, an empty file, more than 500 rows, or a column we don't know. Or the Idempotency-Key was used for a different request."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/households/external/{external_id}":{"put":{"operationId":"upsertHousehold","summary":"Add or change a household by your own id","description":"Looks for the household with this external_id. If there is one it is changed to match the body, and if not it is added with that external_id. Run it again and again from a CRM or spreadsheet sync and you never get copies. Send the same fields as the POST, with the same ones required. Answers 201 with created: true when it added one, and 200 with created: false when it changed one. Needs the households:write scope. A key limited to some advisors only sees those advisors' clients.","tags":["Households"],"parameters":[{"name":"external_id","in":"path","required":true,"description":"Your own id for the record, up to 200 characters.","schema":{"type":"string","minLength":1,"maxLength":200},"example":"crm-10442"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/households_create"},"example":{"name":"Moreno family","advisor_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","primary_client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","members":[{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","relationship":"primary"}]}}}},"responses":{"200":{"description":"Changed the household that had this external_id.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","created"],"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/households"},{"type":"object","properties":{"members":{"type":"array","description":"The clients in the household.","items":{"type":"object","properties":{"client_id":{"type":"string","format":"uuid"},"relationship":{"type":"string"}}}}}}]},"created":{"type":"boolean","description":"true when the record was added, false when an existing one was changed."}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","name":"Moreno family","advisor_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","primary_client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","member_count":2,"model_portfolio_id":null,"external_id":"HH-2031","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z","members":[{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","relationship":"primary"}]},"created":false}}}},"201":{"description":"Added a new household with this external_id.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","created"],"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/households"},{"type":"object","properties":{"members":{"type":"array","description":"The clients in the household.","items":{"type":"object","properties":{"client_id":{"type":"string","format":"uuid"},"relationship":{"type":"string"}}}}}}]},"created":{"type":"boolean","description":"true when the record was added, false when an existing one was changed."}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","name":"Moreno family","advisor_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","primary_client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","member_count":2,"model_portfolio_id":null,"external_id":"HH-2031","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z","members":[{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","relationship":"primary"}]},"created":true}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The body isn't JSON, or the external_id is empty or longer than 200 characters."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the households:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict","description":"The email or account number is already used by another record."},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/households/bulk":{"post":{"operationId":"bulkAddHousehold","summary":"Add many households at once","description":"Up to 500 records in one request, as a JSON list or as a CSV file whose first line is field names. Each row is checked and saved on its own, so one bad row doesn't stop the rest, and the answer says what happened to each. In a CSV file an empty cell is the same as leaving the field out. Send an Idempotency-Key to make the whole batch safe to retry. Needs the households:write scope. A key limited to some advisors only sees those advisors' clients.","tags":["Households"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","maxItems":500,"items":{"$ref":"#/components/schemas/households_create"}},"example":[{"name":"Moreno family","advisor_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","primary_client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","members":[{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","relationship":"primary"}]},{"name":"Moreno family","advisor_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","primary_client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","members":[{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","relationship":"primary"}]}]},"text/csv":{"schema":{"type":"string","description":"A header line of field names, then one record on each line. Up to 500 records."},"example":"name,advisor_id,primary_client_id,members\n\"Moreno family\",\"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b\",\"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f\",\"\""}}},"responses":{"200":{"description":"Every row was looked at. Check failed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["total","created","failed","results"],"properties":{"total":{"type":"integer","description":"How many rows were sent."},"created":{"type":"integer","description":"How many were saved."},"failed":{"type":"integer","description":"How many were not."},"results":{"type":"array","description":"One item for each row, in the order sent.","items":{"type":"object","required":["row","status"],"properties":{"row":{"type":"integer","description":"The row, counting from 1. The header line of a CSV file is not counted."},"status":{"type":"string","enum":["created","error"]},"id":{"type":"string","format":"uuid","description":"The new row's id, when it was saved."},"errors":{"type":"array","description":"What was wrong, when it wasn't saved.","items":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"example":{"data":{"total":2,"created":1,"failed":1,"results":[{"row":1,"status":"created","id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60"},{"row":2,"status":"error","errors":[{"field":"name","message":"Required."}]}]}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The Idempotency-Key is longer than 255 characters."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the households:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid","description":"The file as a whole is wrong: not a list, an empty file, more than 500 rows, or a column we don't know. Or the Idempotency-Key was used for a different request."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/held-away/bulk":{"post":{"operationId":"bulkAddHeldAwayAsset","summary":"Add many held-away assets at once","description":"Up to 500 records in one request, as a JSON list or as a CSV file whose first line is field names. Each row is checked and saved on its own, so one bad row doesn't stop the rest, and the answer says what happened to each. In a CSV file an empty cell is the same as leaving the field out. Send an Idempotency-Key to make the whole batch safe to retry. Needs the held_away:write scope. A key limited to some advisors only sees those advisors' clients.","tags":["Held-away assets"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","maxItems":500,"items":{"$ref":"#/components/schemas/held_away_create"}},"example":[{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Fidelity rollover IRA","asset_type":"held_away_retirement","institution":"Fidelity","value":250000,"as_of_date":"2026-09-30"},{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Fidelity rollover IRA","asset_type":"held_away_retirement","institution":"Fidelity","value":250000,"as_of_date":"2026-09-30"}]},"text/csv":{"schema":{"type":"string","description":"A header line of field names, then one record on each line. Up to 500 records."},"example":"client_id,name,asset_type,institution,value,as_of_date\n\"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f\",\"Fidelity rollover IRA\",\"held_away_retirement\",\"Fidelity\",\"250000\",\"2026-09-30\""}}},"responses":{"200":{"description":"Every row was looked at. Check failed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["total","created","failed","results"],"properties":{"total":{"type":"integer","description":"How many rows were sent."},"created":{"type":"integer","description":"How many were saved."},"failed":{"type":"integer","description":"How many were not."},"results":{"type":"array","description":"One item for each row, in the order sent.","items":{"type":"object","required":["row","status"],"properties":{"row":{"type":"integer","description":"The row, counting from 1. The header line of a CSV file is not counted."},"status":{"type":"string","enum":["created","error"]},"id":{"type":"string","format":"uuid","description":"The new row's id, when it was saved."},"errors":{"type":"array","description":"What was wrong, when it wasn't saved.","items":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"example":{"data":{"total":2,"created":1,"failed":1,"results":[{"row":1,"status":"created","id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60"},{"row":2,"status":"error","errors":[{"field":"client_id","message":"Required."}]}]}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The Idempotency-Key is longer than 255 characters."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the held_away:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid","description":"The file as a whole is wrong: not a list, an empty file, more than 500 rows, or a column we don't know. Or the Idempotency-Key was used for a different request."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/liabilities/bulk":{"post":{"operationId":"bulkAddLiabilitie","summary":"Add many liabilities at once","description":"Up to 500 records in one request, as a JSON list or as a CSV file whose first line is field names. Each row is checked and saved on its own, so one bad row doesn't stop the rest, and the answer says what happened to each. In a CSV file an empty cell is the same as leaving the field out. Send an Idempotency-Key to make the whole batch safe to retry. Needs the liabilities:write scope. A key limited to some advisors only sees those advisors' clients.","tags":["Liabilities"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","maxItems":500,"items":{"$ref":"#/components/schemas/liabilities_create"}},"example":[{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Home mortgage","liability_type":"mortgage","lender":"First Local Bank","interest_rate":6.25,"monthly_payment":2450,"balance":412000,"as_of_date":"2026-09-30","balance_source":"statement"},{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Home mortgage","liability_type":"mortgage","lender":"First Local Bank","interest_rate":6.25,"monthly_payment":2450,"balance":412000,"as_of_date":"2026-09-30","balance_source":"statement"}]},"text/csv":{"schema":{"type":"string","description":"A header line of field names, then one record on each line. Up to 500 records."},"example":"client_id,name,liability_type,lender,interest_rate,monthly_payment,balance,as_of_date,balance_source\n\"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f\",\"Home mortgage\",\"mortgage\",\"First Local Bank\",\"6.25\",\"2450\",\"412000\",\"2026-09-30\",\"statement\""}}},"responses":{"200":{"description":"Every row was looked at. Check failed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["total","created","failed","results"],"properties":{"total":{"type":"integer","description":"How many rows were sent."},"created":{"type":"integer","description":"How many were saved."},"failed":{"type":"integer","description":"How many were not."},"results":{"type":"array","description":"One item for each row, in the order sent.","items":{"type":"object","required":["row","status"],"properties":{"row":{"type":"integer","description":"The row, counting from 1. The header line of a CSV file is not counted."},"status":{"type":"string","enum":["created","error"]},"id":{"type":"string","format":"uuid","description":"The new row's id, when it was saved."},"errors":{"type":"array","description":"What was wrong, when it wasn't saved.","items":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"example":{"data":{"total":2,"created":1,"failed":1,"results":[{"row":1,"status":"created","id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60"},{"row":2,"status":"error","errors":[{"field":"client_id","message":"Required."}]}]}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The Idempotency-Key is longer than 255 characters."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the liabilities:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid","description":"The file as a whole is wrong: not a list, an empty file, more than 500 rows, or a column we don't know. Or the Idempotency-Key was used for a different request."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/liability-balances/bulk":{"post":{"operationId":"bulkAddLiabilityBalance","summary":"Add many liability balances at once","description":"Up to 500 records in one request, as a JSON list or as a CSV file whose first line is field names. Each row is checked and saved on its own, so one bad row doesn't stop the rest, and the answer says what happened to each. In a CSV file an empty cell is the same as leaving the field out. Send an Idempotency-Key to make the whole batch safe to retry. Needs the liabilities:write scope. A key limited to some advisors only sees those advisors' clients.","tags":["Liability balances"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","maxItems":500,"items":{"$ref":"#/components/schemas/liability_balances_create"}},"example":[{"liability_id":"3b4c5d6e-7f80-4a91-b2c3-d4e5f6a7b8c9","balance":408500,"as_of_date":"2026-10-31","source":"statement"},{"liability_id":"3b4c5d6e-7f80-4a91-b2c3-d4e5f6a7b8c9","balance":408500,"as_of_date":"2026-10-31","source":"statement"}]},"text/csv":{"schema":{"type":"string","description":"A header line of field names, then one record on each line. Up to 500 records."},"example":"liability_id,balance,as_of_date,source\n\"3b4c5d6e-7f80-4a91-b2c3-d4e5f6a7b8c9\",\"408500\",\"2026-10-31\",\"statement\""}}},"responses":{"200":{"description":"Every row was looked at. Check failed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["total","created","failed","results"],"properties":{"total":{"type":"integer","description":"How many rows were sent."},"created":{"type":"integer","description":"How many were saved."},"failed":{"type":"integer","description":"How many were not."},"results":{"type":"array","description":"One item for each row, in the order sent.","items":{"type":"object","required":["row","status"],"properties":{"row":{"type":"integer","description":"The row, counting from 1. The header line of a CSV file is not counted."},"status":{"type":"string","enum":["created","error"]},"id":{"type":"string","format":"uuid","description":"The new row's id, when it was saved."},"errors":{"type":"array","description":"What was wrong, when it wasn't saved.","items":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"example":{"data":{"total":2,"created":1,"failed":1,"results":[{"row":1,"status":"created","id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60"},{"row":2,"status":"error","errors":[{"field":"liability_id","message":"Required."}]}]}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The Idempotency-Key is longer than 255 characters."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the liabilities:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid","description":"The file as a whole is wrong: not a list, an empty file, more than 500 rows, or a column we don't know. Or the Idempotency-Key was used for a different request."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/invoices/bulk":{"post":{"operationId":"bulkAddInvoice","summary":"Add many invoices at once","description":"Up to 500 records in one request, as a JSON list or as a CSV file whose first line is field names. Each row is checked and saved on its own, so one bad row doesn't stop the rest, and the answer says what happened to each. In a CSV file an empty cell is the same as leaving the field out. Send an Idempotency-Key to make the whole batch safe to retry. Needs the invoices:write scope. A key limited to some advisors only sees those advisors' clients.","tags":["Invoices"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","maxItems":500,"items":{"$ref":"#/components/schemas/invoices_create"}},"example":[{"number":"INV-2026-1042","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","period_start":"2026-07-01","period_end":"2026-09-30","amount":3125,"due_date":"2026-10-30","status":"sent"},{"number":"INV-2026-1042","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","period_start":"2026-07-01","period_end":"2026-09-30","amount":3125,"due_date":"2026-10-30","status":"sent"}]},"text/csv":{"schema":{"type":"string","description":"A header line of field names, then one record on each line. Up to 500 records."},"example":"number,client_id,period_start,period_end,amount,due_date,status\n\"INV-2026-1042\",\"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f\",\"2026-07-01\",\"2026-09-30\",\"3125\",\"2026-10-30\",\"sent\""}}},"responses":{"200":{"description":"Every row was looked at. Check failed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["total","created","failed","results"],"properties":{"total":{"type":"integer","description":"How many rows were sent."},"created":{"type":"integer","description":"How many were saved."},"failed":{"type":"integer","description":"How many were not."},"results":{"type":"array","description":"One item for each row, in the order sent.","items":{"type":"object","required":["row","status"],"properties":{"row":{"type":"integer","description":"The row, counting from 1. The header line of a CSV file is not counted."},"status":{"type":"string","enum":["created","error"]},"id":{"type":"string","format":"uuid","description":"The new row's id, when it was saved."},"errors":{"type":"array","description":"What was wrong, when it wasn't saved.","items":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"example":{"data":{"total":2,"created":1,"failed":1,"results":[{"row":1,"status":"created","id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60"},{"row":2,"status":"error","errors":[{"field":"number","message":"Required."}]}]}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The Idempotency-Key is longer than 255 characters."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the invoices:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid","description":"The file as a whole is wrong: not a list, an empty file, more than 500 rows, or a column we don't know. Or the Idempotency-Key was used for a different request."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/goals/bulk":{"post":{"operationId":"bulkAddGoal","summary":"Add many goals at once","description":"Up to 500 records in one request, as a JSON list or as a CSV file whose first line is field names. Each row is checked and saved on its own, so one bad row doesn't stop the rest, and the answer says what happened to each. In a CSV file an empty cell is the same as leaving the field out. Send an Idempotency-Key to make the whole batch safe to retry. Needs the goals:write scope. A key limited to some advisors only sees those advisors' clients.","tags":["Goals"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","maxItems":500,"items":{"$ref":"#/components/schemas/goals_create"}},"example":[{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Retire at 62","goal_type":"retirement","target_amount":2500000,"target_date":"2040-06-30","monthly_contribution":3000},{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Retire at 62","goal_type":"retirement","target_amount":2500000,"target_date":"2040-06-30","monthly_contribution":3000}]},"text/csv":{"schema":{"type":"string","description":"A header line of field names, then one record on each line. Up to 500 records."},"example":"client_id,name,goal_type,target_amount,target_date,monthly_contribution\n\"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f\",\"Retire at 62\",\"retirement\",\"2500000\",\"2040-06-30\",\"3000\""}}},"responses":{"200":{"description":"Every row was looked at. Check failed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["total","created","failed","results"],"properties":{"total":{"type":"integer","description":"How many rows were sent."},"created":{"type":"integer","description":"How many were saved."},"failed":{"type":"integer","description":"How many were not."},"results":{"type":"array","description":"One item for each row, in the order sent.","items":{"type":"object","required":["row","status"],"properties":{"row":{"type":"integer","description":"The row, counting from 1. The header line of a CSV file is not counted."},"status":{"type":"string","enum":["created","error"]},"id":{"type":"string","format":"uuid","description":"The new row's id, when it was saved."},"errors":{"type":"array","description":"What was wrong, when it wasn't saved.","items":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"example":{"data":{"total":2,"created":1,"failed":1,"results":[{"row":1,"status":"created","id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60"},{"row":2,"status":"error","errors":[{"field":"client_id","message":"Required."}]}]}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The Idempotency-Key is longer than 255 characters."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the goals:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid","description":"The file as a whole is wrong: not a list, an empty file, more than 500 rows, or a column we don't know. Or the Idempotency-Key was used for a different request."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/follow-ups/bulk":{"post":{"operationId":"bulkAddFollowUp","summary":"Add many follow-ups at once","description":"Up to 500 records in one request, as a JSON list or as a CSV file whose first line is field names. Each row is checked and saved on its own, so one bad row doesn't stop the rest, and the answer says what happened to each. In a CSV file an empty cell is the same as leaving the field out. Send an Idempotency-Key to make the whole batch safe to retry. Needs the follow_ups:write scope. A key limited to some advisors only sees those advisors' clients.","tags":["Follow-ups"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","maxItems":500,"items":{"$ref":"#/components/schemas/follow_ups_create"}},"example":[{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","subject":"Send the Roth conversion numbers","follow_up_on":"2026-12-15","kind":"call"},{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","subject":"Send the Roth conversion numbers","follow_up_on":"2026-12-15","kind":"call"}]},"text/csv":{"schema":{"type":"string","description":"A header line of field names, then one record on each line. Up to 500 records."},"example":"client_id,subject,follow_up_on,kind\n\"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f\",\"Send the Roth conversion numbers\",\"2026-12-15\",\"call\""}}},"responses":{"200":{"description":"Every row was looked at. Check failed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["total","created","failed","results"],"properties":{"total":{"type":"integer","description":"How many rows were sent."},"created":{"type":"integer","description":"How many were saved."},"failed":{"type":"integer","description":"How many were not."},"results":{"type":"array","description":"One item for each row, in the order sent.","items":{"type":"object","required":["row","status"],"properties":{"row":{"type":"integer","description":"The row, counting from 1. The header line of a CSV file is not counted."},"status":{"type":"string","enum":["created","error"]},"id":{"type":"string","format":"uuid","description":"The new row's id, when it was saved."},"errors":{"type":"array","description":"What was wrong, when it wasn't saved.","items":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"example":{"data":{"total":2,"created":1,"failed":1,"results":[{"row":1,"status":"created","id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60"},{"row":2,"status":"error","errors":[{"field":"client_id","message":"Required."}]}]}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The Idempotency-Key is longer than 255 characters."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the follow_ups:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid","description":"The file as a whole is wrong: not a list, an empty file, more than 500 rows, or a column we don't know. Or the Idempotency-Key was used for a different request."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/prices/bulk":{"post":{"operationId":"bulkAddPrice","summary":"Add many prices at once","description":"Up to 500 records in one request, as a JSON list or as a CSV file whose first line is field names. Each row is checked and saved on its own, so one bad row doesn't stop the rest, and the answer says what happened to each. In a CSV file an empty cell is the same as leaving the field out. Send an Idempotency-Key to make the whole batch safe to retry. Needs the prices:write scope. A key limited to some advisors only sees those advisors' clients.","tags":["Prices"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","maxItems":500,"items":{"$ref":"#/components/schemas/prices_create"}},"example":[{"symbol":"RIVERFUND","date":"2026-11-10","price":104.25,"currency":"USD"},{"symbol":"RIVERFUND","date":"2026-11-10","price":104.25,"currency":"USD"}]},"text/csv":{"schema":{"type":"string","description":"A header line of field names, then one record on each line. Up to 500 records."},"example":"symbol,date,price,currency\n\"RIVERFUND\",\"2026-11-10\",\"104.25\",\"USD\""}}},"responses":{"200":{"description":"Every row was looked at. Check failed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["total","created","failed","results"],"properties":{"total":{"type":"integer","description":"How many rows were sent."},"created":{"type":"integer","description":"How many were saved."},"failed":{"type":"integer","description":"How many were not."},"results":{"type":"array","description":"One item for each row, in the order sent.","items":{"type":"object","required":["row","status"],"properties":{"row":{"type":"integer","description":"The row, counting from 1. The header line of a CSV file is not counted."},"status":{"type":"string","enum":["created","error"]},"id":{"type":"string","format":"uuid","description":"The new row's id, when it was saved."},"errors":{"type":"array","description":"What was wrong, when it wasn't saved.","items":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"example":{"data":{"total":2,"created":1,"failed":1,"results":[{"row":1,"status":"created","id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60"},{"row":2,"status":"error","errors":[{"field":"symbol","message":"Required."}]}]}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The Idempotency-Key is longer than 255 characters."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the prices:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid","description":"The file as a whole is wrong: not a list, an empty file, more than 500 rows, or a column we don't know. Or the Idempotency-Key was used for a different request."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/period-returns/bulk":{"post":{"operationId":"bulkAddPeriodReturn","summary":"Add many period returns at once","description":"Up to 500 records in one request, as a JSON list or as a CSV file whose first line is field names. Each row is checked and saved on its own, so one bad row doesn't stop the rest, and the answer says what happened to each. In a CSV file an empty cell is the same as leaving the field out. Send an Idempotency-Key to make the whole batch safe to retry. Needs the period_returns:write scope. A key limited to some advisors only sees those advisors' clients.","tags":["Period returns"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","maxItems":500,"items":{"$ref":"#/components/schemas/period-returns_create"}},"example":[{"account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","period_end":"2026-11-10","period":"YTD","return":0.0712},{"account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","period_end":"2026-11-10","period":"YTD","return":0.0712}]},"text/csv":{"schema":{"type":"string","description":"A header line of field names, then one record on each line. Up to 500 records."},"example":"account_id,period_end,period,return\n\"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d\",\"2026-11-10\",\"YTD\",\"0.0712\""}}},"responses":{"200":{"description":"Every row was looked at. Check failed.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Idempotent-Replayed":{"$ref":"#/components/headers/Idempotent-Replayed"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["total","created","failed","results"],"properties":{"total":{"type":"integer","description":"How many rows were sent."},"created":{"type":"integer","description":"How many were saved."},"failed":{"type":"integer","description":"How many were not."},"results":{"type":"array","description":"One item for each row, in the order sent.","items":{"type":"object","required":["row","status"],"properties":{"row":{"type":"integer","description":"The row, counting from 1. The header line of a CSV file is not counted."},"status":{"type":"string","enum":["created","error"]},"id":{"type":"string","format":"uuid","description":"The new row's id, when it was saved."},"errors":{"type":"array","description":"What was wrong, when it wasn't saved.","items":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"example":{"data":{"total":2,"created":1,"failed":1,"results":[{"row":1,"status":"created","id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60"},{"row":2,"status":"error","errors":[{"field":"account_id","message":"Required."}]}]}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The Idempotency-Key is longer than 255 characters."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the period_returns:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid","description":"The file as a whole is wrong: not a list, an empty file, more than 500 rows, or a column we don't know. Or the Idempotency-Key was used for a different request."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/follow-ups/{id}/done":{"post":{"operationId":"completeFollowUp","summary":"Mark a follow-up done","description":"Marks the follow-up done. Doing it again changes nothing. id is the follow-up's id, which is its note's id. Needs the follow_ups:write scope. A key limited to some advisors only sees those advisors' clients.","tags":["Follow-ups"],"parameters":[{"$ref":"#/components/parameters/RowId"}],"responses":{"200":{"description":"The follow-up, now done.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/follow_ups"}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","kind":"call","subject":"Send the Roth conversion numbers","follow_up_on":"2026-12-15","done":true,"status":"done","follow_up_done_at":null,"author_id":null,"occurred_at":"2026-09-28T14:05:00Z","created_at":"2026-09-28T14:05:00Z"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The body isn't JSON, or an id in the address isn't an id."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the follow_ups:write scope, or the request came from an address the key doesn't allow."},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/documents/upload-link":{"post":{"operationId":"createDocumentUploadLink","summary":"Get a link to upload a file","description":"For files too big to send as base64, or that you would rather send straight from your server. Returns the id the document will have, and an upload_url that takes one PUT of the file for the next 2 hours. Then call POST /documents/{id}/confirm. The document is not added until you do. Needs the documents:write scope. A key limited to some advisors only sees those advisors' clients.","tags":["Documents"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["client_id","name","size"],"properties":{"client_id":{"type":"string","format":"uuid","description":"The client it belongs to."},"name":{"type":"string","description":"The file name, with its ending, like march-statement.pdf. The ending has to be one of: pdf, png, jpg, jpeg, gif, webp, doc, docx, xls, xlsx, ppt, pptx, csv, txt.","maxLength":200},"type":{"type":"string","enum":["statement","tax","report","agreement","other"],"description":"What kind of document it is. other if left out. Statements, tax documents, and reports show up in the client portal."},"account_id":{"type":"string","format":"uuid","description":"The account it is about, if it is about one. It has to be one of the client's accounts."},"description":{"type":"string","description":"A short note about the file.","maxLength":500},"period_start":{"type":"string","format":"date","description":"For a statement or report: the first day it covers."},"period_end":{"type":"string","format":"date","description":"For a statement or report: the last day it covers."},"size":{"type":"integer","description":"How many bytes the file is. Up to 10 MB (10485760).","minimum":1,"maximum":10485760}}},"example":{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"september-statement.pdf","type":"statement","size":182340}}}},"responses":{"201":{"description":"The link. PUT the file to upload_url, then confirm.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["id","upload_url","upload_method","expires_at","max_bytes"],"properties":{"id":{"type":"string","format":"uuid","description":"The id the document will have once you confirm."},"upload_url":{"type":"string","description":"PUT the file here, with its Content-Type. It works for 2 hours."},"upload_method":{"type":"string","enum":["PUT"]},"expires_at":{"type":"string","format":"date-time","description":"When the link stops working."},"max_bytes":{"type":"integer","description":"The biggest file we take."}}}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","upload_url":"https://files.example.com/upload/sign/…?token=…","upload_method":"PUT","expires_at":"2026-09-28T16:05:00Z","max_bytes":10485760}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The body isn't JSON, or an id in the address isn't an id."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the documents:write scope, or the request came from an address the key doesn't allow."},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid","description":"A field is wrong, the file type isn't one we take, or the size is over 10 MB."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/documents/{id}/confirm":{"post":{"operationId":"confirmDocumentUpload","summary":"Confirm an upload","description":"Call this after you have uploaded the file to the upload_url. We check that the file is there, that it is no bigger than 10 MB, and that its first bytes match its file type. If it passes, the document is added and comes back like POST /documents. If it fails, the file is removed and you get the reason. Needs the documents:write scope. A key limited to some advisors only sees those advisors' clients.","tags":["Documents"],"parameters":[{"$ref":"#/components/parameters/RowId"}],"responses":{"201":{"description":"The file passed, and the document was added.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/documents"}}},"example":{"data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","name":"Q3 2026 statement.pdf","type":"statement","mime_type":"application/pdf","file_size":182340,"period_start":"2026-07-01","period_end":"2026-09-30","removed":false,"removed_at":null,"archived_at":null,"uploaded_by":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}}}}},"400":{"$ref":"#/components/responses/BadRequest","description":"The body isn't JSON, or an id in the address isn't an id."},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden","description":"The key doesn't have the documents:write scope, or the request came from an address the key doesn't allow."},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Invalid","description":"The file isn't there yet, is bigger than 10 MB, or doesn't look like what its name says. A file that fails is removed."},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/ServerError"}}}}},"webhooks":{"flow.created":{"post":{"operationId":"receiveFlowCreated","summary":"Money in or out","description":"A deposit, withdrawal, or transfer is added, counted the way the flows dataset counts it. amount is in US dollars, and money in is positive. Sent to the address the firm added, once for each address that asked for it. See the Webhooks tag for how to check the signature and what happens when your server doesn't answer.","tags":["Webhooks"],"security":[],"externalDocs":{"description":"HMAC, the way the signature is made (RFC 2104)","url":"https://www.rfc-editor.org/rfc/rfc2104"},"parameters":[{"$ref":"#/components/parameters/RiafrontSignature"},{"$ref":"#/components/parameters/RiafrontEvent"},{"$ref":"#/components/parameters/RiafrontEventId"},{"$ref":"#/components/parameters/RiafrontDelivery"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowCreatedEvent"},"example":{"id":"6d5c4b3a-2918-4776-8554-433221100fed","type":"flow.created","created_at":"2026-09-29T06:10:00Z","data":{"transaction_id":"2b3c4d5e-6f70-4812-9a3b-4c5d6e7f8091","account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","advisor_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","date":"2026-09-28","kind":"deposit","shares":false,"amount":25000}}}}},"responses":{"200":{"description":"Got it. Any 2xx status counts as delivered."},"default":{"description":"Anything else counts as a failure, and the event is sent again later. No answer within 10 seconds is also a failure. Redirects aren't followed."}}}},"client.created":{"post":{"operationId":"receiveClientCreated","summary":"New client","description":"A client is added, in the app or through the API. Sent to the address the firm added, once for each address that asked for it. See the Webhooks tag for how to check the signature and what happens when your server doesn't answer.","tags":["Webhooks"],"security":[],"externalDocs":{"description":"HMAC, the way the signature is made (RFC 2104)","url":"https://www.rfc-editor.org/rfc/rfc2104"},"parameters":[{"$ref":"#/components/parameters/RiafrontSignature"},{"$ref":"#/components/parameters/RiafrontEvent"},{"$ref":"#/components/parameters/RiafrontEventId"},{"$ref":"#/components/parameters/RiafrontDelivery"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientCreatedEvent"},"example":{"id":"6d5c4b3a-2918-4776-8554-433221100fed","type":"client.created","created_at":"2026-09-29T06:10:00Z","data":{"id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","first_name":"Rita","last_name":"Moreno","client_type":"individual","legal_name":null,"email":"rita@example.com","advisor_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b"}}}}},"responses":{"200":{"description":"Got it. Any 2xx status counts as delivered."},"default":{"description":"Anything else counts as a failure, and the event is sent again later. No answer within 10 seconds is also a failure. Redirects aren't followed."}}}},"account.created":{"post":{"operationId":"receiveAccountCreated","summary":"New account","description":"An account is added. Sent to the address the firm added, once for each address that asked for it. See the Webhooks tag for how to check the signature and what happens when your server doesn't answer.","tags":["Webhooks"],"security":[],"externalDocs":{"description":"HMAC, the way the signature is made (RFC 2104)","url":"https://www.rfc-editor.org/rfc/rfc2104"},"parameters":[{"$ref":"#/components/parameters/RiafrontSignature"},{"$ref":"#/components/parameters/RiafrontEvent"},{"$ref":"#/components/parameters/RiafrontEventId"},{"$ref":"#/components/parameters/RiafrontDelivery"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountCreatedEvent"},"example":{"id":"6d5c4b3a-2918-4776-8554-433221100fed","type":"account.created","created_at":"2026-09-29T06:10:00Z","data":{"id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Joint brokerage","account_number":"X1234-5678","account_type":"joint","custodian":"schwab","currency":"USD"}}}}},"responses":{"200":{"description":"Got it. Any 2xx status counts as delivered."},"default":{"description":"Anything else counts as a failure, and the event is sent again later. No answer within 10 seconds is also a failure. Redirects aren't followed."}}}},"note.created":{"post":{"operationId":"receiveNoteCreated","summary":"New note","description":"A note, call, or meeting is logged on a client. Sent to the address the firm added, once for each address that asked for it. See the Webhooks tag for how to check the signature and what happens when your server doesn't answer.","tags":["Webhooks"],"security":[],"externalDocs":{"description":"HMAC, the way the signature is made (RFC 2104)","url":"https://www.rfc-editor.org/rfc/rfc2104"},"parameters":[{"$ref":"#/components/parameters/RiafrontSignature"},{"$ref":"#/components/parameters/RiafrontEvent"},{"$ref":"#/components/parameters/RiafrontEventId"},{"$ref":"#/components/parameters/RiafrontDelivery"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteCreatedEvent"},"example":{"id":"6d5c4b3a-2918-4776-8554-433221100fed","type":"note.created","created_at":"2026-09-29T06:10:00Z","data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","kind":"call","subject":"Quarterly review","occurred_at":"2026-09-28T14:05:00Z","follow_up_on":null,"author_id":null}}}}},"responses":{"200":{"description":"Got it. Any 2xx status counts as delivered."},"default":{"description":"Anything else counts as a failure, and the event is sent again later. No answer within 10 seconds is also a failure. Redirects aren't followed."}}}},"reconciliation.break_opened":{"post":{"operationId":"receiveReconciliationBreakOpened","summary":"Reconciliation break","description":"The custodian's records and ours disagree about an account. Sent to the address the firm added, once for each address that asked for it. See the Webhooks tag for how to check the signature and what happens when your server doesn't answer.","tags":["Webhooks"],"security":[],"externalDocs":{"description":"HMAC, the way the signature is made (RFC 2104)","url":"https://www.rfc-editor.org/rfc/rfc2104"},"parameters":[{"$ref":"#/components/parameters/RiafrontSignature"},{"$ref":"#/components/parameters/RiafrontEvent"},{"$ref":"#/components/parameters/RiafrontEventId"},{"$ref":"#/components/parameters/RiafrontDelivery"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReconciliationBreakOpenedEvent"},"example":{"id":"6d5c4b3a-2918-4776-8554-433221100fed","type":"reconciliation.break_opened","created_at":"2026-09-29T06:10:00Z","data":{"id":"9f8e7d6c-5b4a-4392-8170-6f5e4d3c2b1a","account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","account_number":"X1234-5678","as_of_date":"2026-09-28","break_type":"quantity_mismatch","symbol":"VTI","book_quantity":100,"custodian_quantity":110,"difference":10,"severity":"high"}}}}},"responses":{"200":{"description":"Got it. Any 2xx status counts as delivered."},"default":{"description":"Anything else counts as a failure, and the event is sent again later. No answer within 10 seconds is also a failure. Redirects aren't followed."}}}},"document.created":{"post":{"operationId":"receiveDocumentCreated","summary":"New document","description":"A document is added to a client's documents. The file itself and where it's stored aren't sent. Sent to the address the firm added, once for each address that asked for it. See the Webhooks tag for how to check the signature and what happens when your server doesn't answer.","tags":["Webhooks"],"security":[],"externalDocs":{"description":"HMAC, the way the signature is made (RFC 2104)","url":"https://www.rfc-editor.org/rfc/rfc2104"},"parameters":[{"$ref":"#/components/parameters/RiafrontSignature"},{"$ref":"#/components/parameters/RiafrontEvent"},{"$ref":"#/components/parameters/RiafrontEventId"},{"$ref":"#/components/parameters/RiafrontDelivery"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentCreatedEvent"},"example":{"id":"6d5c4b3a-2918-4776-8554-433221100fed","type":"document.created","created_at":"2026-09-29T06:10:00Z","data":{"id":"7e6d5c4b-3a29-4817-96a5-b4c3d2e1f0a9","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","account_id":null,"name":"Q3 2026 statement.pdf","type":"statement","mime_type":"application/pdf","file_size":182340,"uploaded_by":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","created_at":"2026-09-28T14:05:00Z"}}}}},"responses":{"200":{"description":"Got it. Any 2xx status counts as delivered."},"default":{"description":"Anything else counts as a failure, and the event is sent again later. No answer within 10 seconds is also a failure. Redirects aren't followed."}}}},"task.created":{"post":{"operationId":"receiveTaskCreated","summary":"New task","description":"A follow-up date is set on a client note, so it shows on the Tasks page. Sent to the address the firm added, once for each address that asked for it. See the Webhooks tag for how to check the signature and what happens when your server doesn't answer.","tags":["Webhooks"],"security":[],"externalDocs":{"description":"HMAC, the way the signature is made (RFC 2104)","url":"https://www.rfc-editor.org/rfc/rfc2104"},"parameters":[{"$ref":"#/components/parameters/RiafrontSignature"},{"$ref":"#/components/parameters/RiafrontEvent"},{"$ref":"#/components/parameters/RiafrontEventId"},{"$ref":"#/components/parameters/RiafrontDelivery"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskCreatedEvent"},"example":{"id":"6d5c4b3a-2918-4776-8554-433221100fed","type":"task.created","created_at":"2026-09-29T06:10:00Z","data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","note_id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","kind":"call","subject":"Send the rollover forms","due_on":"2026-10-05","author_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b"}}}}},"responses":{"200":{"description":"Got it. Any 2xx status counts as delivered."},"default":{"description":"Anything else counts as a failure, and the event is sent again later. No answer within 10 seconds is also a failure. Redirects aren't followed."}}}},"task.completed":{"post":{"operationId":"receiveTaskCompleted","summary":"Task done","description":"A follow-up on a client note is marked done. Sent to the address the firm added, once for each address that asked for it. See the Webhooks tag for how to check the signature and what happens when your server doesn't answer.","tags":["Webhooks"],"security":[],"externalDocs":{"description":"HMAC, the way the signature is made (RFC 2104)","url":"https://www.rfc-editor.org/rfc/rfc2104"},"parameters":[{"$ref":"#/components/parameters/RiafrontSignature"},{"$ref":"#/components/parameters/RiafrontEvent"},{"$ref":"#/components/parameters/RiafrontEventId"},{"$ref":"#/components/parameters/RiafrontDelivery"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskCompletedEvent"},"example":{"id":"6d5c4b3a-2918-4776-8554-433221100fed","type":"task.completed","created_at":"2026-09-29T06:10:00Z","data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","note_id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","kind":"call","subject":"Send the rollover forms","due_on":"2026-10-05","completed_at":"2026-10-02T15:30:00Z","completed_by":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b"}}}}},"responses":{"200":{"description":"Got it. Any 2xx status counts as delivered."},"default":{"description":"Anything else counts as a failure, and the event is sent again later. No answer within 10 seconds is also a failure. Redirects aren't followed."}}}},"order.created":{"post":{"operationId":"receiveOrderCreated","summary":"New order","description":"An order is entered, including drafts. Sent to the address the firm added, once for each address that asked for it. See the Webhooks tag for how to check the signature and what happens when your server doesn't answer.","tags":["Webhooks"],"security":[],"externalDocs":{"description":"HMAC, the way the signature is made (RFC 2104)","url":"https://www.rfc-editor.org/rfc/rfc2104"},"parameters":[{"$ref":"#/components/parameters/RiafrontSignature"},{"$ref":"#/components/parameters/RiafrontEvent"},{"$ref":"#/components/parameters/RiafrontEventId"},{"$ref":"#/components/parameters/RiafrontDelivery"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderCreatedEvent"},"example":{"id":"6d5c4b3a-2918-4776-8554-433221100fed","type":"order.created","created_at":"2026-09-29T06:10:00Z","data":{"id":"4a5b6c7d-8e9f-4a0b-9c1d-2e3f4a5b6c7d","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","symbol":"VTI","side":"buy","quantity":50,"order_type":"limit","limit_price":265.5,"status":"draft","entered_by":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","created_at":"2026-09-28T14:05:00Z"}}}}},"responses":{"200":{"description":"Got it. Any 2xx status counts as delivered."},"default":{"description":"Anything else counts as a failure, and the event is sent again later. No answer within 10 seconds is also a failure. Redirects aren't followed."}}}},"order.status_changed":{"post":{"operationId":"receiveOrderStatusChanged","summary":"Order status changed","description":"An order moves to a new status, like approved, sent to the custodian, filled, or rejected. The payload has the old and the new status. Sent to the address the firm added, once for each address that asked for it. See the Webhooks tag for how to check the signature and what happens when your server doesn't answer.","tags":["Webhooks"],"security":[],"externalDocs":{"description":"HMAC, the way the signature is made (RFC 2104)","url":"https://www.rfc-editor.org/rfc/rfc2104"},"parameters":[{"$ref":"#/components/parameters/RiafrontSignature"},{"$ref":"#/components/parameters/RiafrontEvent"},{"$ref":"#/components/parameters/RiafrontEventId"},{"$ref":"#/components/parameters/RiafrontDelivery"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderStatusChangedEvent"},"example":{"id":"6d5c4b3a-2918-4776-8554-433221100fed","type":"order.status_changed","created_at":"2026-09-29T06:10:00Z","data":{"id":"4a5b6c7d-8e9f-4a0b-9c1d-2e3f4a5b6c7d","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","symbol":"VTI","side":"buy","quantity":50,"old_status":"routed","new_status":"filled","filled_quantity":50,"avg_fill_price":265.31,"reject_reason":null}}}}},"responses":{"200":{"description":"Got it. Any 2xx status counts as delivered."},"default":{"description":"Anything else counts as a failure, and the event is sent again later. No answer within 10 seconds is also a failure. Redirects aren't followed."}}}},"signature.completed":{"post":{"operationId":"receiveSignatureCompleted","summary":"Document signed","description":"A client signed a document you asked them to sign. The signed copy is added to their documents too, which sends a New document event. Sent to the address the firm added, once for each address that asked for it. See the Webhooks tag for how to check the signature and what happens when your server doesn't answer.","tags":["Webhooks"],"security":[],"externalDocs":{"description":"HMAC, the way the signature is made (RFC 2104)","url":"https://www.rfc-editor.org/rfc/rfc2104"},"parameters":[{"$ref":"#/components/parameters/RiafrontSignature"},{"$ref":"#/components/parameters/RiafrontEvent"},{"$ref":"#/components/parameters/RiafrontEventId"},{"$ref":"#/components/parameters/RiafrontDelivery"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignatureCompletedEvent"},"example":{"id":"6d5c4b3a-2918-4776-8554-433221100fed","type":"signature.completed","created_at":"2026-09-29T06:10:00Z","data":{"id":"2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","title":"Advisory agreement","document_id":"7e6d5c4b-3a29-4817-96a5-b4c3d2e1f0a9","signed_document_id":"0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d","signed_at":"2026-09-28T16:20:00Z","provider":"builtin"}}}}},"responses":{"200":{"description":"Got it. Any 2xx status counts as delivered."},"default":{"description":"Anything else counts as a failure, and the event is sent again later. No answer within 10 seconds is also a failure. Redirects aren't followed."}}}},"data.ready":{"post":{"operationId":"receiveDataReady","summary":"Day is ready","description":"The last market day's numbers are final: valued, the custodian's prices in, nothing being reworked. Sent once a day. Sent to the address the firm added, once for each address that asked for it. See the Webhooks tag for how to check the signature and what happens when your server doesn't answer.","tags":["Webhooks"],"security":[],"externalDocs":{"description":"HMAC, the way the signature is made (RFC 2104)","url":"https://www.rfc-editor.org/rfc/rfc2104"},"parameters":[{"$ref":"#/components/parameters/RiafrontSignature"},{"$ref":"#/components/parameters/RiafrontEvent"},{"$ref":"#/components/parameters/RiafrontEventId"},{"$ref":"#/components/parameters/RiafrontDelivery"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataReadyEvent"},"example":{"id":"6d5c4b3a-2918-4776-8554-433221100fed","type":"data.ready","created_at":"2026-09-29T06:10:00Z","data":{"date":"2026-09-28","values_through":"2026-09-28","custodian_prices_through":"2026-09-28"}}}}},"responses":{"200":{"description":"Got it. Any 2xx status counts as delivered."},"default":{"description":"Anything else counts as a failure, and the event is sent again later. No answer within 10 seconds is also a failure. Redirects aren't followed."}}}}},"components":{"securitySchemes":{"firmApiKey":{"type":"http","scheme":"bearer","bearerFormat":"riafront_live_ key","description":"A firm API key. It starts with `riafront_live_` and works for everything except /portfolio, /holdings and /performance. A firm admin makes one in Settings → API, ticks what it can read and add, and copies it when it is shown, because it is only shown once. A lost key can't be recovered. Turn it off and make a new one. Send it in the Authorization header as `Authorization: Bearer riafront_live_…`. See [RFC 6750 section 2.1](https://www.rfc-editor.org/rfc/rfc6750#section-2.1) for how a bearer token is sent, and the [authentication guide](https://api.riafront.com/docs/api/authentication) for key options like limiting a key to some advisors or IP addresses."},"clientApiKey":{"type":"http","scheme":"bearer","bearerFormat":"riafront_k1_ key","description":"A client API key. It starts with `riafront_k1_` and only works for /portfolio, /holdings and /performance, where it reads that client's own accounts. A client makes one in the client portal under Settings → API keys, and ticks what it can read: read:portfolio, read:holdings or read:performance. Send it in the Authorization header as `Authorization: Bearer riafront_k1_…`. See [RFC 6750 section 2.1](https://www.rfc-editor.org/rfc/rfc6750#section-2.1) for how a bearer token is sent, and the [authentication guide](https://api.riafront.com/docs/api/authentication)."}},"parameters":{"Cursor":{"name":"cursor","in":"query","required":false,"description":"next_cursor from the page before. Leave it out for the first page. Cursors stay valid, so a sync can stop and carry on later.","schema":{"type":"string"},"example":"M2YyYjFjOWUtN2E0MS00ZDdlLTlhNTUtMWQyYzNiNGE1ZjYw"},"Format":{"name":"format","in":"query","required":false,"description":"json (the default) or csv. With csv the answer is a CSV file with a header row, and the cursor for the next page is in the X-Next-Cursor and Link headers. You can also ask for CSV with the header `Accept: text/csv`.","schema":{"type":"string","enum":["json","csv"],"default":"json"},"example":"csv"},"Limit":{"name":"limit","in":"query","required":false,"description":"Rows per page, from 1 to 1000. 200 if left out.","schema":{"type":"integer","minimum":1,"maximum":1000,"default":200},"example":500},"RowId":{"name":"id","in":"path","required":true,"description":"The row's id, from the id column of the list.","schema":{"type":"string","format":"uuid"},"example":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60"},"ClientId":{"name":"client_id","in":"query","required":false,"description":"Only this client's.","schema":{"type":"string","format":"uuid"},"example":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f"},"AccountId":{"name":"account_id","in":"query","required":false,"description":"Only this account's.","schema":{"type":"string","format":"uuid"},"example":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d"},"HouseholdId":{"name":"household_id","in":"query","required":false,"description":"Only this household's.","schema":{"type":"string","format":"uuid"},"example":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60"},"InvoiceId":{"name":"invoice_id","in":"query","required":false,"description":"Only this invoice's.","schema":{"type":"string","format":"uuid"},"example":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60"},"From":{"name":"from","in":"query","required":false,"description":"On or after this day, as YYYY-MM-DD.","schema":{"type":"string","format":"date"},"example":"2026-09-01"},"To":{"name":"to","in":"query","required":false,"description":"On or before this day, as YYYY-MM-DD.","schema":{"type":"string","format":"date"},"example":"2026-09-30"},"UpdatedSince":{"name":"updated_since","in":"query","required":false,"description":"Changed at or after this time, as an ISO 8601 timestamp. Use it to pick up only what changed since you last asked.","schema":{"type":"string","format":"date-time"},"example":"2026-09-28T00:00:00Z"},"Email":{"name":"email","in":"query","required":false,"description":"Only the client with this email address. It has to match all of it, and capitals don't matter.","schema":{"type":"string","format":"email"},"example":"rita@example.com"},"Symbol":{"name":"symbol","in":"query","required":false,"description":"Only the security with this ticker symbol. Capitals don't matter.","schema":{"type":"string"},"example":"VTI"},"Status":{"name":"status","in":"query","required":false,"description":"Only rows with this status. The description of each list says which values it takes.","schema":{"type":"string"},"example":"active"},"State":{"name":"state","in":"query","required":false,"description":"Only orders in this state. The description of the list says which values it takes.","schema":{"type":"string"},"example":"filled"},"ExternalId":{"name":"external_id","in":"query","required":false,"description":"Only the record with this id from your own system. It has to match all of it, including capitals.","schema":{"type":"string","maxLength":200},"example":"CRM-10442"},"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string, like a UUID, up to 255 characters. If the same request comes again with the same key, you get the first answer back (with Idempotent-Replayed: true) and nothing is added twice. That makes it safe to retry after a timeout. The same key with a different request is a 422. Keys are kept for 24 hours.","schema":{"type":"string","maxLength":255},"example":"5b1e7d62-0c4a-4c58-9d0e-3a6f8b2c9e14"},"RiafrontSignature":{"name":"Riafront-Signature","in":"header","required":true,"description":"Proves the request came from us and wasn't changed on the way. Looks like `t=1790000000,v1=<hex>`, where t is the Unix time in seconds it was signed and v1 is the HMAC-SHA256 of `<t>.<raw body>`, in hex, using the webhook's secret. Refuse a request when t is more than 300 seconds from your clock.","schema":{"type":"string","pattern":"^t=\\d+,v1=[0-9a-f]{64}$"},"example":"t=1790000000,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd"},"RiafrontEvent":{"name":"Riafront-Event","in":"header","required":true,"description":"The event name, like flow.created. The same as `type` in the body.","schema":{"type":"string"},"example":"flow.created"},"RiafrontEventId":{"name":"Riafront-Event-Id","in":"header","required":true,"description":"The id of the event. The same as `id` in the body, and the same on every retry, so use it to spot an event you already handled.","schema":{"type":"string","format":"uuid"},"example":"6d5c4b3a-2918-4776-8554-433221100fed"},"RiafrontDelivery":{"name":"Riafront-Delivery","in":"header","required":true,"description":"The id of this delivery to your address. It stays the same when we try again. Quote it if you ask us about a missing event.","schema":{"type":"string","format":"uuid"},"example":"c4a0e1f2-6b3d-4e5a-8f19-72d0a9b6c3e8"}},"headers":{"X-Request-Id":{"description":"The id of this request in our log. Quote it if you ask us about a request. Every firm API response has it.","schema":{"type":"string","format":"uuid"},"example":"0b6f3c1e-8d24-4f1a-9a77-5e2c41d8b3a9"},"X-RateLimit-Limit":{"description":"How many requests this key can make in a minute. 120 unless the key was set up with its own limit, from 30 to 1,200.","schema":{"type":"integer"},"example":120},"X-RateLimit-Remaining":{"description":"How many requests are left this minute.","schema":{"type":"integer","minimum":0},"example":117},"X-RateLimit-Reset":{"description":"When the minute is up, as a Unix time in seconds.","schema":{"type":"integer"},"example":1790000040},"Retry-After":{"description":"How many seconds to wait before trying again.","schema":{"type":"integer","minimum":1},"example":23},"Idempotent-Replayed":{"description":"true when this is the first answer given again, because the Idempotency-Key was used before. The header is left off the first answer.","schema":{"type":"string","enum":["true"]}}},"responses":{"BadRequest":{"description":"Something in the request is wrong: a filter, the limit, the cursor, the id, or the body isn't JSON. The message says which.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"limit":{"summary":"The limit is out of range","value":{"error":{"code":"bad_request","message":"limit has to be a whole number from 1 to 1000."}}},"filter":{"summary":"A filter this list doesn't take","value":{"error":{"code":"bad_request","message":"transactions doesn't take \"client\". It takes: client_id, account_id, from, to, updated_since, limit, cursor."}}},"date":{"summary":"A date in the wrong shape","value":{"error":{"code":"bad_request","message":"from has to be a date like 2026-09-30."}}},"cursor":{"summary":"A cursor we didn't give out","value":{"error":{"code":"bad_request","message":"That cursor isn't one we gave out. Use next_cursor from the last page."}}},"body":{"summary":"The body isn't JSON","value":{"error":{"code":"bad_request","message":"Send the fields as JSON, with Content-Type: application/json."}}}}}}},"Unauthorized":{"description":"No key, or not a valid firm key. It may have been turned off, rotated past its grace period, or expired. Only X-Request-Id comes back, because the key was never counted.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing":{"summary":"No key sent","value":{"error":{"code":"unauthorized","message":"Send a firm API key as \"Authorization: Bearer riafront_live_…\". Make one on the API page in Settings."}}},"invalid":{"summary":"The key isn't valid","value":{"error":{"code":"unauthorized","message":"That key isn't valid. It may have been turned off, rotated, or have expired."}}}}}}},"Forbidden":{"description":"The key is valid, but it can't do this. It either lacks the scope or the request came from an address the key doesn't allow. The rate limit headers are left off when the address is the problem.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"scope":{"summary":"The key lacks the scope","value":{"error":{"code":"forbidden","message":"This key can't read transactions. It needs the transactions:read scope."}}},"write_scope":{"summary":"The key can't add","value":{"error":{"code":"forbidden","message":"This key can't add notes. It needs the notes:write scope."}}},"address":{"summary":"The address isn't allowed","value":{"error":{"code":"forbidden","message":"This key only works from its allowed addresses, and this request came from 198.51.100.7."}}}}}}},"NotFound":{"description":"There's no row with that id, or the key can't see it. A key limited to some advisors gets this for other advisors' clients.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"row":{"summary":"No such row","value":{"error":{"code":"not_found","message":"No client with that id."}}}}}}},"Conflict":{"description":"It already exists, or the first request with this Idempotency-Key is still being handled.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"email":{"summary":"The email is taken","value":{"error":{"code":"conflict","message":"A client with that email is already here"}}},"account_number":{"summary":"The account number is taken","value":{"error":{"code":"conflict","message":"An account with that account_number is already here"}}},"in_progress":{"summary":"The first request is still running","value":{"error":{"code":"conflict","message":"The first request with this Idempotency-Key is still being handled. Try again in a moment."}}}}}}},"Invalid":{"description":"A field is wrong. error.details says which, one entry for each.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"fields":{"summary":"Some fields are wrong","value":{"error":{"code":"invalid","message":"Some fields aren't right.","details":[{"field":"email","message":"That doesn't look like an email address."},{"field":"nickname","message":"Not a field we take. Use: client_type, first_name, last_name, legal_name, entity_type, email, phone, advisor_id, risk_profile, next_review_date."}]}}},"reused_key":{"summary":"The Idempotency-Key was used for a different request","value":{"error":{"code":"invalid","message":"That Idempotency-Key was already used for a different request. Use a new one for each new thing you add."}}}}}}},"RateLimited":{"description":"The key made more requests than it can in a minute (120 unless set otherwise). Wait Retry-After seconds, then try again.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"limit":{"summary":"Over the limit","value":{"error":{"code":"rate_limited","message":"Too many requests. This key can make 120 a minute."}}}}}}},"ServerError":{"description":"Something failed on our side. Try again, and quote the request id if it keeps happening.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"failed":{"summary":"Something went wrong","value":{"error":{"code":"server_error","message":"Something went wrong on our side. Try again, and quote 0b6f3c1e-8d24-4f1a-9a77-5e2c41d8b3a9 if it keeps happening."}}},"add":{"summary":"The row couldn't be added","value":{"error":{"code":"server_error","message":"Couldn't add it. Try again."}}}}}}},"ClientBadRequest":{"description":"A query parameter is wrong. The message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientApiError"},"examples":{"period":{"summary":"An unknown period","value":{"error":"period must be one of ytd, 1y, 3y, 5y, inception"}},"account":{"summary":"A malformed account_id","value":{"error":"account_id must be an account id, like 3f2a9c1e-5b7d-4e8a-9c21-7d4e5f6a8b90."}}}}}},"ClientUnauthorized":{"description":"No key, or not a valid client key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientApiError"},"examples":{"portfolio":{"summary":"From /portfolio","value":{"error":"Unauthorized. Provide a valid API key in the Authorization header."}},"others":{"summary":"From /holdings and /performance","value":{"error":"Unauthorized"}}}}}},"ClientForbidden":{"description":"The key is valid but doesn't have a scope this route needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientApiError"},"examples":{"portfolio":{"summary":"From /portfolio","value":{"error":"Insufficient scope. Required: read:portfolio"}},"holdings":{"summary":"From /holdings","value":{"error":"Insufficient scope. Required: read:portfolio or read:holdings"}}}}}},"ClientServerError":{"description":"The lookup failed on our side. Try again, and quote the time if you contact us.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientApiError"},"examples":{"portfolio":{"summary":"From /portfolio","value":{"error":"Couldn't load the portfolio. Try again."}},"others":{"summary":"From /holdings and /performance","value":{"error":"Couldn't load this. Try again."}}}}}}},"schemas":{"clients":{"type":"object","description":"Everyone the firm manages money for: people, trusts, and companies.","properties":{"id":{"type":["string","null"],"format":"uuid","description":"The client's id. It never changes."},"client_type":{"type":["string","null"],"description":"individual or entity."},"entity_type":{"type":["string","null"],"description":"For an entity: trust, llc, corporation, foundation, and so on."},"first_name":{"type":["string","null"],"description":"First name."},"last_name":{"type":["string","null"],"description":"Last name."},"legal_name":{"type":["string","null"],"description":"An entity's legal name."},"email":{"type":["string","null"],"description":"Email address."},"phone":{"type":["string","null"],"description":"Phone number."},"status":{"type":["string","null"],"description":"active or archived."},"risk_profile":{"type":["string","null"],"description":"The key of the client's risk profile, from the firm's list."},"advisor_id":{"type":["string","null"],"format":"uuid","description":"Their advisor."},"next_review_date":{"type":["string","null"],"format":"date","description":"When their next review is due."},"external_id":{"type":["string","null"],"description":"The id this record has in your own system, if you gave one."},"created_at":{"type":["string","null"],"format":"date-time","description":"When the record was made."},"updated_at":{"type":["string","null"],"format":"date-time","description":"When the record last changed."}},"examples":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_type":"individual","entity_type":null,"first_name":"Rita","last_name":"Moreno","legal_name":null,"email":"rita@example.com","phone":"+1 555 0100","status":"active","risk_profile":"moderate","advisor_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","next_review_date":"2026-12-15","external_id":"CRM-10442","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}]},"accounts":{"type":"object","description":"Each client's accounts, with today's value.","properties":{"id":{"type":["string","null"],"format":"uuid","description":"The account's id. It never changes."},"client_id":{"type":["string","null"],"format":"uuid","description":"The client it belongs to."},"name":{"type":["string","null"],"description":"What the account is called."},"account_number":{"type":["string","null"],"description":"The number at the custodian."},"account_type":{"type":["string","null"],"description":"Like ira, roth_ira, or taxable."},"custodian":{"type":["string","null"],"description":"Where the account is held."},"status":{"type":["string","null"],"description":"active, inactive, or closed."},"currency":{"type":["string","null"],"description":"The account's currency."},"market_value":{"type":["number","null"],"description":"Value in US dollars."},"market_value_local":{"type":["number","null"],"description":"Value in the account's currency."},"model_portfolio_id":{"type":["string","null"],"format":"uuid","description":"The model it follows, if any."},"benchmark_id":{"type":["string","null"],"format":"uuid","description":"The benchmark it's measured against, if any."},"opened_date":{"type":["string","null"],"format":"date","description":"When it was opened."},"external_id":{"type":["string","null"],"description":"The id this record has in your own system, if you gave one."},"created_at":{"type":["string","null"],"format":"date-time","description":"When the record was made."},"updated_at":{"type":["string","null"],"format":"date-time","description":"When the record last changed."}},"examples":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Joint brokerage","account_number":"X1234-5678","account_type":"joint","custodian":"schwab","status":"active","currency":"USD","market_value":250000,"market_value_local":250000,"model_portfolio_id":null,"benchmark_id":null,"opened_date":"2026-09-28","external_id":"CUST-77120","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}]},"positions":{"type":"object","description":"What each account holds right now, at the latest prices.","properties":{"id":{"type":["string","null"],"format":"uuid","description":"The position's id. It never changes."},"account_id":{"type":["string","null"],"format":"uuid","description":"The account it belongs to."},"client_id":{"type":["string","null"],"format":"uuid","description":"The client it belongs to."},"security_id":{"type":["string","null"],"format":"uuid","description":"The security held."},"symbol":{"type":["string","null"],"description":"Ticker symbol."},"security_name":{"type":["string","null"],"description":"The security's name."},"security_type":{"type":["string","null"],"description":"Like stock, etf, bond, or cash."},"asset_class":{"type":["string","null"],"description":"Like equity or fixed_income."},"quantity":{"type":["number","null"],"description":"Shares or units held."},"price":{"type":["number","null"],"description":"Price per share in US dollars."},"market_value":{"type":["number","null"],"description":"Value in US dollars."},"cost_basis":{"type":["number","null"],"description":"What was paid for it, in US dollars."},"unrealized_gain":{"type":["number","null"],"description":"Value less cost basis."},"currency":{"type":["string","null"],"description":"The security's currency."},"market_value_local":{"type":["number","null"],"description":"Value in the security's currency."},"as_of":{"type":["string","null"],"format":"date-time","description":"When the value was last worked out."}},"examples":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","security_id":"9f8e7d6c-5b4a-4392-8170-6f5e4d3c2b1a","symbol":"VTI","security_name":"Vanguard Total Stock Market ETF","security_type":"etf","asset_class":"equity","quantity":10,"price":245.1,"market_value":250000,"cost_basis":2201.5,"unrealized_gain":249.5,"currency":"USD","market_value_local":250000,"as_of":"2026-09-28T14:05:00Z"}]},"transactions":{"type":"object","description":"Every trade, dividend, fee, deposit, withdrawal, and transfer.","properties":{"id":{"type":["string","null"],"format":"uuid","description":"The transaction's id. It never changes."},"account_id":{"type":["string","null"],"format":"uuid","description":"The account it belongs to."},"client_id":{"type":["string","null"],"format":"uuid","description":"The client it belongs to."},"trade_date":{"type":["string","null"],"format":"date","description":"The day it happened."},"settlement_date":{"type":["string","null"],"format":"date","description":"The day it settled."},"type":{"type":["string","null"],"description":"buy, sell, dividend, interest, deposit, withdrawal, fee, transfer_in, transfer_out, split, or merger."},"security_id":{"type":["string","null"],"format":"uuid","description":"The security, when there is one."},"symbol":{"type":["string","null"],"description":"Ticker symbol."},"quantity":{"type":["number","null"],"description":"Shares or units."},"price":{"type":["number","null"],"description":"Price per share."},"amount":{"type":["number","null"],"description":"Cash amount. Negative when cash left the account."},"fee":{"type":["number","null"],"description":"Commission or fee charged on it."},"description":{"type":["string","null"],"description":"The custodian's description, or a note."},"source":{"type":["string","null"],"description":"Where it came from: manual, custodian, corporate_action, reconciliation, or opening_balance."},"created_at":{"type":["string","null"],"format":"date-time","description":"When the record was made."},"updated_at":{"type":["string","null"],"format":"date-time","description":"When the record last changed."}},"examples":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","trade_date":"2026-09-28","settlement_date":"2026-09-28","type":"buy","security_id":"9f8e7d6c-5b4a-4392-8170-6f5e4d3c2b1a","symbol":"VTI","quantity":10,"price":245.1,"amount":-2451,"fee":0,"description":"Bought 10 VTI","source":"custodian","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}]},"daily_values":{"type":"object","description":"Each account's value and return for each day.","properties":{"account_id":{"type":["string","null"],"format":"uuid","description":"The account it belongs to."},"client_id":{"type":["string","null"],"format":"uuid","description":"The client it belongs to."},"date":{"type":["string","null"],"format":"date","description":"The day."},"market_value":{"type":["number","null"],"description":"Value at the close, in US dollars."},"net_flow":{"type":["number","null"],"description":"Money in less money out that day."},"advisory_fees":{"type":["number","null"],"description":"Advisory fees taken that day."},"daily_return":{"type":["number","null"],"description":"Return that day after fees, as a decimal: 0.01 is 1%."},"gross_daily_return":{"type":["number","null"],"description":"Return that day before fees."},"market_value_local":{"type":["number","null"],"description":"Value in the account's currency."},"source":{"type":["string","null"],"description":"How the value was worked out."}},"examples":[{"account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","date":"2026-09-28","market_value":250000,"net_flow":5000,"advisory_fees":0,"daily_return":0.0042,"gross_daily_return":0.0043,"market_value_local":250000,"source":"custodian"}]},"flows":{"type":"object","description":"Deposits, withdrawals, and cash or shares moved in from or out to other firms, in US dollars.","properties":{"transaction_id":{"type":["string","null"],"format":"uuid","description":"The transaction behind it."},"account_id":{"type":["string","null"],"format":"uuid","description":"The account it belongs to."},"client_id":{"type":["string","null"],"format":"uuid","description":"The client it belongs to."},"advisor_id":{"type":["string","null"],"format":"uuid","description":"The client's advisor."},"date":{"type":["string","null"],"format":"date","description":"The day it happened."},"kind":{"type":["string","null"],"description":"deposit, withdrawal, transfer_in, or transfer_out."},"shares":{"type":["boolean","null"],"description":"True when shares moved rather than cash."},"amount":{"type":["number","null"],"description":"In US dollars. Positive in, negative out. Shares are valued at that day's price."}},"examples":[{"transaction_id":"2b3c4d5e-6f70-4812-9a3b-4c5d6e7f8091","account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","advisor_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","date":"2026-09-28","kind":"deposit","shares":false,"amount":5000}]},"notes":{"type":"object","description":"Calls, meetings, emails, and notes logged against clients.","properties":{"id":{"type":["string","null"],"format":"uuid","description":"The note's id. It never changes."},"client_id":{"type":["string","null"],"format":"uuid","description":"The client it belongs to."},"kind":{"type":["string","null"],"description":"note, call, meeting, or email."},"subject":{"type":["string","null"],"description":"A short subject line."},"body":{"type":["string","null"],"description":"What was said or done."},"occurred_at":{"type":["string","null"],"format":"date-time","description":"When it happened."},"follow_up_on":{"type":["string","null"],"format":"date","description":"When to follow up, if set."},"follow_up_done_at":{"type":["string","null"],"format":"date-time","description":"When the follow-up was done."},"author_id":{"type":["string","null"],"format":"uuid","description":"Who wrote it. Empty when it came through the API."},"created_at":{"type":["string","null"],"format":"date-time","description":"When it was logged. updated_since filters on this."}},"examples":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","kind":"call","subject":"Quarterly review","body":"Talked about the Roth conversion.","occurred_at":"2026-09-28T14:05:00Z","follow_up_on":"2026-12-15","follow_up_done_at":null,"author_id":null,"created_at":"2026-09-28T14:05:00Z"}]},"households":{"type":"object","description":"Groups of clients who are billed or reviewed together, like a family. Members are in household-members.","properties":{"id":{"type":["string","null"],"format":"uuid","description":"The household's id. It never changes."},"name":{"type":["string","null"],"description":"What the household is called."},"advisor_id":{"type":["string","null"],"format":"uuid","description":"Their advisor."},"primary_client_id":{"type":["string","null"],"format":"uuid","description":"The main client in the household, if one is set."},"member_count":{"type":["integer","null"],"description":"How many clients are in it."},"model_portfolio_id":{"type":["string","null"],"format":"uuid","description":"The model the household follows, if any."},"external_id":{"type":["string","null"],"description":"The id this record has in your own system, if you gave one."},"created_at":{"type":["string","null"],"format":"date-time","description":"When the record was made."},"updated_at":{"type":["string","null"],"format":"date-time","description":"When the record last changed."}},"examples":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","name":"Moreno family","advisor_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","primary_client_id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","member_count":2,"model_portfolio_id":null,"external_id":"HH-2031","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}]},"household_members":{"type":"object","description":"Which clients are in which household. Read with the same scope as households.","properties":{"id":{"type":["string","null"],"format":"uuid","description":"The membership's id. It never changes."},"household_id":{"type":["string","null"],"format":"uuid","description":"The household."},"client_id":{"type":["string","null"],"format":"uuid","description":"The client it belongs to."},"relationship":{"type":["string","null"],"description":"How they relate to the household: primary, spouse, dependent, grantor, trustee, beneficiary, entity, next_gen, or other."},"created_at":{"type":["string","null"],"format":"date-time","description":"When they were added. updated_since filters on this."}},"examples":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","household_id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","relationship":"spouse","created_at":"2026-09-28T14:05:00Z"}]},"documents":{"type":"object","description":"Details of the files kept for clients, like statements and agreements. The files themselves come from /documents/{id}/file, which needs the documents:files scope.","properties":{"id":{"type":["string","null"],"format":"uuid","description":"The document's id. It never changes."},"client_id":{"type":["string","null"],"format":"uuid","description":"The client it belongs to."},"account_id":{"type":["string","null"],"format":"uuid","description":"The account it belongs to."},"name":{"type":["string","null"],"description":"The file name."},"type":{"type":["string","null"],"description":"statement, tax, report, agreement, or other."},"mime_type":{"type":["string","null"],"description":"The kind of file, like application/pdf."},"file_size":{"type":["integer","null"],"description":"Size in bytes."},"period_start":{"type":["string","null"],"format":"date","description":"For a statement or report: the first day it covers."},"period_end":{"type":["string","null"],"format":"date","description":"For a statement or report: the last day it covers."},"removed":{"type":["boolean","null"],"description":"True when the document was taken off the client record. It can no longer be downloaded."},"removed_at":{"type":["string","null"],"format":"date-time","description":"When it was removed."},"archived_at":{"type":["string","null"],"format":"date-time","description":"When it was archived, if it was."},"uploaded_by":{"type":["string","null"],"format":"uuid","description":"Who added it."},"created_at":{"type":["string","null"],"format":"date-time","description":"When it was added."},"updated_at":{"type":["string","null"],"format":"date-time","description":"When the record last changed."}},"examples":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","name":"Q3 2026 statement.pdf","type":"statement","mime_type":"application/pdf","file_size":182340,"period_start":"2026-07-01","period_end":"2026-09-30","removed":false,"removed_at":null,"archived_at":null,"uploaded_by":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}]},"held_away":{"type":"object","description":"Things a client owns that are held somewhere else, like another brokerage, a bank, or a private fund. Some come from a linked bank or brokerage and some are typed in. Each has its latest value and the day that value is for.","properties":{"id":{"type":["string","null"],"format":"uuid","description":"The asset's id. It never changes."},"client_id":{"type":["string","null"],"format":"uuid","description":"The client it belongs to."},"name":{"type":["string","null"],"description":"What it is called."},"asset_type":{"type":["string","null"],"description":"held_away_brokerage, held_away_retirement, bank, private_fund, real_estate, business, life_insurance, collectible, or other."},"institution":{"type":["string","null"],"description":"Where it is held."},"asset_class":{"type":["string","null"],"description":"Like equity or fixed_income."},"ownership_percentage":{"type":["number","null"],"description":"How much of it the client owns, from 0 to 100."},"committed_amount":{"type":["number","null"],"description":"For a private fund: what the client agreed to put in."},"value":{"type":["number","null"],"description":"The latest value we have, in US dollars, for the whole asset."},"as_of_date":{"type":["string","null"],"format":"date","description":"The day that value is for."},"source":{"type":["string","null"],"description":"plaid when it comes from a linked account, otherwise manual."},"status":{"type":["string","null"],"description":"active or inactive."},"entered_by":{"type":["string","null"],"description":"advisor when the firm entered it, client when the client typed it in the portal."},"created_at":{"type":["string","null"],"format":"date-time","description":"When the record was made."},"updated_at":{"type":["string","null"],"format":"date-time","description":"When the record last changed."}},"examples":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Fidelity rollover IRA","asset_type":"held_away_retirement","institution":"Fidelity","asset_class":"equity","ownership_percentage":100,"committed_amount":null,"value":410000,"as_of_date":"2026-09-28","source":"plaid","status":"active","entered_by":"advisor","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}]},"liabilities":{"type":"object","description":"What a client owes, like a mortgage, a car loan, or a credit card. Each has its latest balance and the day that balance is for. Nothing is added to a balance since that day.","properties":{"id":{"type":["string","null"],"format":"uuid","description":"The liability's id. It never changes."},"client_id":{"type":["string","null"],"format":"uuid","description":"The client it belongs to."},"client_email":{"type":["string","null"],"description":"The client's email address."},"name":{"type":["string","null"],"description":"What it is called."},"liability_type":{"type":["string","null"],"description":"mortgage, home_equity, auto_loan, student_loan, credit_card, personal_loan, business_loan, margin_loan, or other."},"lender":{"type":["string","null"],"description":"Who it is owed to."},"interest_rate":{"type":["number","null"],"description":"The yearly rate as a percent, so 6.25 means 6.25%."},"monthly_payment":{"type":["number","null"],"description":"The payment each month, in US dollars, for the whole debt."},"maturity_date":{"type":["string","null"],"format":"date","description":"The day it is due to be paid off."},"secured_by_asset_id":{"type":["string","null"],"format":"uuid","description":"The held-away asset the debt is against, like the house for a mortgage."},"ownership_percentage":{"type":["number","null"],"description":"The client's share of the debt, from 0 to 100."},"balance":{"type":["number","null"],"description":"The latest balance we have, in US dollars, for the whole debt. Empty when none has been entered."},"as_of_date":{"type":["string","null"],"format":"date","description":"The day that balance is for."},"balance_source":{"type":["string","null"],"description":"statement, estimate, or client_reported."},"status":{"type":["string","null"],"description":"active or inactive. A paid-off debt is inactive."},"entered_by":{"type":["string","null"],"description":"advisor when the firm entered it, client when the client typed it in the portal."},"created_at":{"type":["string","null"],"format":"date-time","description":"When the record was made."},"updated_at":{"type":["string","null"],"format":"date-time","description":"When the record, or its latest balance, last changed."}},"examples":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","client_email":"rita@example.com","name":"Home mortgage","liability_type":"mortgage","lender":"First Local Bank","interest_rate":6.25,"monthly_payment":2450,"maturity_date":"2051-03-01","secured_by_asset_id":null,"ownership_percentage":100,"balance":412000,"as_of_date":"2026-09-28","balance_source":"statement","status":"active","entered_by":"advisor","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}]},"liability_balances":{"type":"object","description":"Every balance entered for every liability, not only the latest one. A liability has one balance a day. Use client_id to get one client's and match them to liabilities with liability_id.","properties":{"id":{"type":["string","null"],"format":"uuid","description":"The balance's id. It never changes."},"liability_id":{"type":["string","null"],"format":"uuid","description":"The liability it is for."},"client_id":{"type":["string","null"],"format":"uuid","description":"The client it belongs to."},"balance":{"type":["number","null"],"description":"What was owed, in US dollars, for the whole debt."},"as_of_date":{"type":["string","null"],"format":"date","description":"The day the balance is for."},"source":{"type":["string","null"],"description":"statement, estimate, or client_reported."},"created_at":{"type":["string","null"],"format":"date-time","description":"When the balance was entered. A correction for the same day changes it."},"updated_at":{"type":["string","null"],"format":"date-time","description":"The same as created_at."}},"examples":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","liability_id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","balance":0,"as_of_date":"2026-09-28","source":"statement","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}]},"orders":{"type":"object","description":"Trade orders, from draft through to filled, rejected, or cancelled. from and to are on the day the order was made.","properties":{"id":{"type":["string","null"],"format":"uuid","description":"The order's id. It never changes."},"client_id":{"type":["string","null"],"format":"uuid","description":"The client it belongs to."},"account_id":{"type":["string","null"],"format":"uuid","description":"The account it belongs to."},"security_id":{"type":["string","null"],"format":"uuid","description":"The security."},"symbol":{"type":["string","null"],"description":"Ticker symbol."},"side":{"type":["string","null"],"description":"buy, sell, sell_short, or buy_to_cover."},"order_type":{"type":["string","null"],"description":"market, limit, stop, or stop_limit."},"quantity":{"type":["number","null"],"description":"Shares or units ordered."},"limit_price":{"type":["number","null"],"description":"For a limit order: the price to trade at."},"stop_price":{"type":["number","null"],"description":"For a stop order: the price that triggers it."},"time_in_force":{"type":["string","null"],"description":"How long the order stays open, like day or gtc."},"state":{"type":["string","null"],"description":"draft, proposed, approved, routed, partial, filled, rejected, or cancelled."},"filled_quantity":{"type":["number","null"],"description":"How much has traded so far."},"avg_fill_price":{"type":["number","null"],"description":"The average price of what has traded."},"custodian":{"type":["string","null"],"description":"Where the order was sent."},"reject_reason":{"type":["string","null"],"description":"Why it was rejected, if it was."},"entered_by":{"type":["string","null"],"format":"uuid","description":"Who entered it."},"approved_by":{"type":["string","null"],"format":"uuid","description":"Who approved it."},"approved_at":{"type":["string","null"],"format":"date-time","description":"When it was approved."},"routed_at":{"type":["string","null"],"format":"date-time","description":"When it was sent to the custodian."},"completed_at":{"type":["string","null"],"format":"date-time","description":"When it finished."},"created_at":{"type":["string","null"],"format":"date-time","description":"When the order was made."},"updated_at":{"type":["string","null"],"format":"date-time","description":"When the record last changed."}},"examples":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","security_id":"9f8e7d6c-5b4a-4392-8170-6f5e4d3c2b1a","symbol":"VTI","side":"buy","order_type":"limit","quantity":10,"limit_price":245,"stop_price":null,"time_in_force":"day","state":"filled","filled_quantity":10,"avg_fill_price":244.9,"custodian":"schwab","reject_reason":null,"entered_by":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","approved_by":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","approved_at":"2026-09-28T14:05:00Z","routed_at":"2026-09-28T14:05:00Z","completed_at":"2026-09-28T14:05:00Z","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}]},"invoices":{"type":"object","description":"Fee invoices sent to clients. from and to are on the day the billing period ends.","properties":{"id":{"type":["string","null"],"format":"uuid","description":"The invoice's id. It never changes."},"client_id":{"type":["string","null"],"format":"uuid","description":"The client it belongs to."},"household_id":{"type":["string","null"],"format":"uuid","description":"The household it bills, if any."},"account_id":{"type":["string","null"],"format":"uuid","description":"The account it belongs to."},"invoice_number":{"type":["string","null"],"description":"The number on the invoice."},"period_start":{"type":["string","null"],"format":"date","description":"First day it bills for."},"period_end":{"type":["string","null"],"format":"date","description":"Last day it bills for."},"aum_start":{"type":["number","null"],"description":"Assets at the start of the period."},"aum_end":{"type":["number","null"],"description":"Assets at the end of the period."},"average_aum":{"type":["number","null"],"description":"Average assets over the period."},"fee_amount":{"type":["number","null"],"description":"The fee, before tax."},"tax_amount":{"type":["number","null"],"description":"Tax on the fee."},"total_amount":{"type":["number","null"],"description":"What the client owes."},"amount_paid":{"type":["number","null"],"description":"What has been paid so far, from invoice-payments."},"status":{"type":["string","null"],"description":"draft, sent, partial, paid, overdue, cancelled, or void."},"due_date":{"type":["string","null"],"format":"date","description":"When it is due."},"sent_at":{"type":["string","null"],"format":"date-time","description":"When it was sent."},"paid_at":{"type":["string","null"],"format":"date-time","description":"When it was paid in full."},"payment_method":{"type":["string","null"],"description":"How it is to be paid."},"created_at":{"type":["string","null"],"format":"date-time","description":"When the record was made."},"updated_at":{"type":["string","null"],"format":"date-time","description":"When the record last changed."}},"examples":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","household_id":null,"account_id":null,"invoice_number":"INV-2026-0042","period_start":"2026-09-28","period_end":"2026-09-28","aum_start":248000,"aum_end":252000,"average_aum":250000,"fee_amount":625,"tax_amount":0,"total_amount":625,"amount_paid":625,"status":"paid","due_date":"2026-09-28","sent_at":"2026-09-28T14:05:00Z","paid_at":"2026-09-28T14:05:00Z","payment_method":"ach","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}]},"invoice_payments":{"type":"object","description":"Payments recorded against invoices. from and to are on the day it was paid.","properties":{"id":{"type":["string","null"],"format":"uuid","description":"The payment's id. It never changes."},"invoice_id":{"type":["string","null"],"format":"uuid","description":"The invoice it pays."},"client_id":{"type":["string","null"],"format":"uuid","description":"The client it belongs to."},"amount":{"type":["number","null"],"description":"How much was paid."},"method":{"type":["string","null"],"description":"How it was paid."},"paid_on":{"type":["string","null"],"format":"date","description":"The day it was paid."},"note":{"type":["string","null"],"description":"A note on the payment."},"created_at":{"type":["string","null"],"format":"date-time","description":"When it was recorded. updated_since filters on this."}},"examples":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","invoice_id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","amount":625,"method":"ach","paid_on":"2026-09-28","note":"","created_at":"2026-09-28T14:05:00Z"}]},"signature_requests":{"type":"object","description":"Documents sent to clients to sign, and how each one went. from and to are on the day it was sent.","properties":{"id":{"type":["string","null"],"format":"uuid","description":"The request's id. It never changes."},"client_id":{"type":["string","null"],"format":"uuid","description":"The client it belongs to."},"document_id":{"type":["string","null"],"format":"uuid","description":"The document to sign."},"signed_document_id":{"type":["string","null"],"format":"uuid","description":"The signed copy, once it is signed."},"title":{"type":["string","null"],"description":"What the client sees as the title."},"status":{"type":["string","null"],"description":"pending, signed, declined, or cancelled."},"provider":{"type":["string","null"],"description":"builtin or docusign."},"requested_by":{"type":["string","null"],"format":"uuid","description":"Who sent it."},"requested_at":{"type":["string","null"],"format":"date-time","description":"When it was sent."},"signed_at":{"type":["string","null"],"format":"date-time","description":"When it was signed."},"closed_at":{"type":["string","null"],"format":"date-time","description":"When it was signed, declined, or cancelled."},"declined_reason":{"type":["string","null"],"description":"Why the client declined, if they did."}},"examples":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","document_id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","signed_document_id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","title":"Advisory agreement","status":"signed","provider":"builtin","requested_by":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","requested_at":"2026-09-28T14:05:00Z","signed_at":"2026-09-28T14:05:00Z","closed_at":"2026-09-28T14:05:00Z","declined_reason":null}]},"goals":{"type":"object","description":"Clients' financial goals, like retirement or a home.","properties":{"id":{"type":["string","null"],"format":"uuid","description":"The goal's id. It never changes."},"client_id":{"type":["string","null"],"format":"uuid","description":"The client it belongs to."},"name":{"type":["string","null"],"description":"What the goal is called."},"goal_type":{"type":["string","null"],"description":"retirement, home, education, emergency, income, or other."},"target_amount":{"type":["number","null"],"description":"How much the client wants to reach."},"current_amount":{"type":["number","null"],"description":"How much is set aside for it now."},"target_date":{"type":["string","null"],"format":"date","description":"When they want to reach it."},"monthly_contribution":{"type":["number","null"],"description":"What they add each month."},"expected_annual_return":{"type":["number","null"],"description":"The yearly return assumed, as a decimal: 0.07 is 7%."},"inflation_rate":{"type":["number","null"],"description":"The yearly inflation assumed, as a decimal: 0.03 is 3%."},"priority":{"type":["integer","null"],"description":"From 1 (most important) to 5."},"status":{"type":["string","null"],"description":"active, on_track, at_risk, completed, paused, or cancelled."},"created_at":{"type":["string","null"],"format":"date-time","description":"When the record was made."},"updated_at":{"type":["string","null"],"format":"date-time","description":"When the record last changed."}},"examples":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Retire at 62","goal_type":"retirement","target_amount":2000000,"current_amount":650000,"target_date":"2026-09-28","monthly_contribution":2500,"expected_annual_return":0.06,"inflation_rate":0.025,"priority":1,"status":"on_track","created_at":"2026-09-28T14:05:00Z","updated_at":"2026-09-28T14:05:00Z"}]},"risk_scores":{"type":"object","description":"Each time a client's risk questionnaire was taken: the scores and the risk profile they gave. The answers aren't included. from and to are on the day it was taken.","properties":{"id":{"type":["string","null"],"format":"uuid","description":"The assessment's id. It never changes."},"client_id":{"type":["string","null"],"format":"uuid","description":"The client it belongs to."},"version":{"type":["string","null"],"description":"Which version of the questionnaire."},"score":{"type":["integer","null"],"description":"The overall score."},"ability_score":{"type":["integer","null"],"description":"How much risk the client can afford to take."},"willingness_score":{"type":["integer","null"],"description":"How much risk the client is comfortable taking."},"profile":{"type":["string","null"],"description":"The risk profile the score gave."},"suggested_stock_pct":{"type":["integer","null"],"description":"The share in stocks it suggests, from 0 to 100."},"taken_by_role":{"type":["string","null"],"description":"Whether the client or their advisor filled it in."},"accepted_at":{"type":["string","null"],"format":"date-time","description":"When the advisor accepted the result."},"created_at":{"type":["string","null"],"format":"date-time","description":"When it was taken. updated_since filters on this."}},"examples":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","version":"v1","score":58,"ability_score":62,"willingness_score":54,"profile":"moderate","suggested_stock_pct":60,"taken_by_role":"client","accepted_at":"2026-09-28T14:05:00Z","created_at":"2026-09-28T14:05:00Z"}]},"securities":{"type":"object","description":"The stocks, funds, bonds, and cash holdings your clients hold or have traded. Details only, with no prices. Prices come with positions.","properties":{"id":{"type":["string","null"],"format":"uuid","description":"The security's id. It never changes."},"symbol":{"type":["string","null"],"description":"Ticker symbol."},"name":{"type":["string","null"],"description":"The security's name."},"security_type":{"type":["string","null"],"description":"Like stock, etf, bond, or cash."},"asset_class":{"type":["string","null"],"description":"Like equity or fixed_income."},"sector":{"type":["string","null"],"description":"Like technology or health care."},"currency":{"type":["string","null"],"description":"The currency it trades in."},"expense_ratio":{"type":["number","null"],"description":"For a fund: the yearly fee as a decimal: 0.0003 is 0.03%."},"created_at":{"type":["string","null"],"format":"date-time","description":"When it was added. updated_since filters on this."}},"examples":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","symbol":"VTI","name":"Vanguard Total Stock Market ETF","security_type":"etf","asset_class":"equity","sector":null,"currency":"USD","expense_ratio":0.0003,"created_at":"2026-09-28T14:05:00Z"}]},"follow_ups":{"type":"object","description":"Notes that have a follow-up date: the things an advisor said they would do. status is open or done. from and to are on the follow-up date.","properties":{"id":{"type":["string","null"],"format":"uuid","description":"The note's id. It never changes."},"client_id":{"type":["string","null"],"format":"uuid","description":"The client it belongs to."},"kind":{"type":["string","null"],"description":"note, call, meeting, or email."},"subject":{"type":["string","null"],"description":"A short subject line."},"follow_up_on":{"type":["string","null"],"format":"date","description":"When to follow up."},"done":{"type":["boolean","null"],"description":"True once the follow-up was done."},"status":{"type":["string","null"],"description":"open or done."},"follow_up_done_at":{"type":["string","null"],"format":"date-time","description":"When it was done."},"author_id":{"type":["string","null"],"format":"uuid","description":"Who wrote the note."},"occurred_at":{"type":["string","null"],"format":"date-time","description":"When the call or meeting happened."},"created_at":{"type":["string","null"],"format":"date-time","description":"When the note was logged."}},"examples":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","kind":"call","subject":"Send the Roth conversion numbers","follow_up_on":"2026-12-15","done":false,"status":"open","follow_up_done_at":null,"author_id":null,"occurred_at":"2026-09-28T14:05:00Z","created_at":"2026-09-28T14:05:00Z"}]},"clients_create":{"type":"object","additionalProperties":false,"required":["email"],"properties":{"client_type":{"type":"string","enum":["individual","entity"],"description":"individual if left out."},"first_name":{"type":"string","description":"For a person.","maxLength":100},"last_name":{"type":"string","description":"For a person.","maxLength":100},"legal_name":{"type":"string","description":"For an entity, its legal name.","maxLength":200},"entity_type":{"type":"string","enum":["trust","revocable_trust","irrevocable_trust","llc","lp","corporation","foundation","estate","donor_advised_fund","other"],"description":"For an entity."},"email":{"type":"string","format":"email","description":"Has to be unique.","maxLength":254},"phone":{"type":"string","description":"Phone number.","maxLength":40},"advisor_id":{"type":"string","format":"uuid","description":"Their advisor. A key limited to one advisor fills this in."},"risk_profile":{"type":"string","description":"The key of one of the firm's risk profiles, like moderate.","maxLength":40},"next_review_date":{"type":"string","format":"date","description":"When their next review is due."},"mailing_street":{"type":"string","description":"Street address.","maxLength":200},"mailing_city":{"type":"string","description":"City.","maxLength":100},"mailing_region":{"type":"string","description":"State or region.","maxLength":100},"mailing_postal_code":{"type":"string","description":"Postal code.","maxLength":20},"mailing_country":{"type":"string","description":"Country.","maxLength":100},"external_id":{"type":"string","description":"Your own id for this record, like its id in your CRM. Up to 200 characters. Has to be unique in your firm. Use it with PUT /{path}/external/{external_id} to add or change the record without making copies.","maxLength":200}},"examples":[{"first_name":"Rita","last_name":"Moreno","email":"rita@example.com","advisor_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","risk_profile":"moderate","external_id":"crm-10442"}]},"accounts_create":{"type":"object","additionalProperties":false,"required":["client_id","name","account_number","account_type","custodian"],"properties":{"client_id":{"type":"string","format":"uuid","description":"The client it belongs to."},"name":{"type":"string","description":"What the account is called.","maxLength":100},"account_number":{"type":"string","description":"The number at the custodian. Has to be unique.","maxLength":50},"account_type":{"type":"string","enum":["individual","joint","trust","corporate","brokerage","educational","other","ira","traditional_ira","sep_ira","simple_ira","401k","403b","roth","roth_ira","roth_401k","529","hsa","rrsp","rrif","lira","tfsa","fhsa","resp","ca_non_registered","isa","sipp","gia","eu_tax_wrapped","eu_taxable","fr_pea","fr_assurance_vie"],"description":"The kind of account."},"custodian":{"type":"string","description":"Where it is held, like schwab.","maxLength":60},"currency":{"type":"string","pattern":"^[A-Za-z]{3}$","description":"Three letters, like USD. USD if left out."},"opened_date":{"type":"string","format":"date","description":"When it was opened."},"status":{"type":"string","enum":["active","inactive","closed"],"description":"active if left out."},"external_id":{"type":"string","description":"Your own id for this record, like its id in your CRM. Up to 200 characters. Has to be unique in your firm. Use it with PUT /{path}/external/{external_id} to add or change the record without making copies.","maxLength":200}},"examples":[{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Joint brokerage","account_number":"X1234-5678","account_type":"joint","custodian":"schwab"}]},"notes_create":{"type":"object","additionalProperties":false,"required":["client_id","body"],"properties":{"client_id":{"type":"string","format":"uuid","description":"The client it is about."},"kind":{"type":"string","enum":["note","call","meeting","email"],"description":"note if left out."},"subject":{"type":"string","description":"A short subject line.","maxLength":200},"body":{"type":"string","description":"What was said or done.","maxLength":10000},"occurred_at":{"type":"string","format":"date-time","description":"When it happened. Now if left out."},"follow_up_on":{"type":"string","format":"date","description":"When to follow up. It shows on the advisor's tasks."}},"examples":[{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","kind":"call","subject":"Quarterly review","body":"Talked about the Roth conversion.","follow_up_on":"2026-12-15"}]},"households_create":{"type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string","description":"What the household is called.","maxLength":200},"advisor_id":{"type":"string","format":"uuid","description":"Their advisor. A key limited to one advisor fills this in."},"primary_client_id":{"type":"string","format":"uuid","description":"The main client in the household. They are added as a member if you leave them out of members."},"notes":{"type":"string","description":"Anything worth knowing about the household.","maxLength":2000},"members":{"type":"array","maxItems":50,"description":"The clients in it, as a list of {\"client_id\": \"…\", \"relationship\": \"spouse\"}. relationship is one of: primary, spouse, dependent, other, grantor, trustee, beneficiary, entity, next_gen, and other if left out. In a CSV file, write them as client_id:relationship separated by semicolons. With PATCH, the list you send replaces the one there.","items":{"type":"object","additionalProperties":false,"required":["client_id"],"properties":{"client_id":{"type":"string","format":"uuid"},"relationship":{"type":"string"}}}},"external_id":{"type":"string","description":"Your own id for this record, like its id in your CRM. Up to 200 characters. Has to be unique in your firm. Use it with PUT /{path}/external/{external_id} to add or change the record without making copies.","maxLength":200}},"examples":[{"name":"Moreno family","advisor_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","primary_client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","members":[{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","relationship":"primary"}]}]},"held_away_create":{"type":"object","additionalProperties":false,"required":["client_id","name"],"properties":{"client_id":{"type":"string","format":"uuid","description":"The client who owns it."},"name":{"type":"string","description":"What it is called.","maxLength":200},"asset_type":{"type":"string","enum":["held_away_brokerage","held_away_retirement","bank","private_fund","real_estate","business","life_insurance","collectible","other"],"description":"other if left out."},"institution":{"type":"string","description":"Where it is held.","maxLength":200},"asset_class":{"type":"string","description":"Like equity or fixed_income.","maxLength":100},"ownership_percentage":{"type":"number","description":"How much of it the client owns, as a number from 0 to 100. 100 if left out.","maximum":100,"exclusiveMinimum":0},"committed_amount":{"type":"number","description":"For a private fund: what the client agreed to put in.","minimum":0},"notes":{"type":"string","description":"Anything worth knowing.","maxLength":2000},"value":{"type":"number","description":"Its value now, for the whole asset. It can't be changed with PATCH."},"as_of_date":{"type":"string","format":"date","description":"The day that value is for. Today if left out."},"value_source":{"type":"string","enum":["statement","appraisal","estimate","client_reported","aggregator"],"description":"Where the value came from. client_reported if left out."}},"examples":[{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Fidelity rollover IRA","asset_type":"held_away_retirement","institution":"Fidelity","value":250000,"as_of_date":"2026-09-30"}]},"liabilities_create":{"type":"object","additionalProperties":false,"required":["client_id","name"],"properties":{"client_id":{"type":"string","format":"uuid","description":"The client who owes it."},"name":{"type":"string","description":"What it is called.","maxLength":200},"liability_type":{"type":"string","enum":["mortgage","home_equity","auto_loan","student_loan","credit_card","personal_loan","business_loan","margin_loan","other"],"description":"other if left out."},"lender":{"type":"string","description":"Who it is owed to.","maxLength":200},"interest_rate":{"type":"number","description":"The yearly rate as a percent, so 6.25 means 6.25%.","minimum":0,"maximum":100},"monthly_payment":{"type":"number","description":"The payment each month, for the whole debt.","minimum":0},"maturity_date":{"type":"string","format":"date","description":"The day it is due to be paid off."},"secured_by_asset_id":{"type":"string","format":"uuid","description":"The held-away asset it is against. It has to be one of this client's."},"ownership_percentage":{"type":"number","description":"The client's share of the debt, as a number from 0 to 100. 100 if left out.","maximum":100,"exclusiveMinimum":0},"notes":{"type":"string","description":"Anything worth knowing.","maxLength":2000},"balance":{"type":"number","description":"What is owed now, for the whole debt. It can't be changed with PATCH. Add a new one with POST /liability-balances.","minimum":0},"as_of_date":{"type":"string","format":"date","description":"The day that balance is for. Today if left out."},"balance_source":{"type":"string","enum":["statement","estimate","client_reported"],"description":"Where the balance came from. client_reported if left out."}},"examples":[{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Home mortgage","liability_type":"mortgage","lender":"First Local Bank","interest_rate":6.25,"monthly_payment":2450,"balance":412000,"as_of_date":"2026-09-30","balance_source":"statement"}]},"liability_balances_create":{"type":"object","additionalProperties":false,"required":["liability_id","balance"],"properties":{"liability_id":{"type":"string","format":"uuid","description":"The liability it is for."},"balance":{"type":"number","description":"What is owed, for the whole debt.","minimum":0},"as_of_date":{"type":"string","format":"date","description":"The day the balance is for. Today if left out."},"source":{"type":"string","enum":["statement","estimate","client_reported"],"description":"Where it came from. client_reported if left out."},"notes":{"type":"string","description":"Anything worth knowing.","maxLength":2000}},"examples":[{"liability_id":"3b4c5d6e-7f80-4a91-b2c3-d4e5f6a7b8c9","balance":408500,"as_of_date":"2026-10-31","source":"statement"}]},"goals_create":{"type":"object","additionalProperties":false,"required":["client_id","name","goal_type","target_amount"],"properties":{"client_id":{"type":"string","format":"uuid","description":"The client it is for."},"name":{"type":"string","description":"What the goal is called.","maxLength":200},"goal_type":{"type":"string","enum":["retirement","home","education","emergency","income","other"],"description":"The kind of goal."},"target_amount":{"type":"number","description":"How much money it needs.","exclusiveMinimum":0},"current_amount":{"type":"number","description":"How much is set aside for it now. 0 if left out. It can't be changed with PATCH.","minimum":0},"target_date":{"type":"string","format":"date","description":"When the money is needed. Can't be in the past."},"monthly_contribution":{"type":"number","description":"What is added each month. 0 if left out.","minimum":0},"expected_annual_return":{"type":"number","description":"A decimal, so 7% is 0.07. 0.07 if left out.","minimum":0,"maximum":1},"inflation_rate":{"type":"number","description":"A decimal, so 3% is 0.03. 0.03 if left out.","minimum":0,"maximum":1},"priority":{"type":"integer","description":"From 1 (first) to 5. 1 if left out.","minimum":1,"maximum":5},"status":{"type":"string","enum":["active","on_track","at_risk","completed","paused","cancelled"],"description":"active if left out."},"notes":{"type":"string","description":"Anything worth knowing.","maxLength":2000}},"examples":[{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Retire at 62","goal_type":"retirement","target_amount":2500000,"target_date":"2040-06-30","monthly_contribution":3000}]},"follow_ups_create":{"type":"object","additionalProperties":false,"required":["client_id","subject","follow_up_on"],"properties":{"client_id":{"type":"string","format":"uuid","description":"The client it is about."},"subject":{"type":"string","description":"What needs doing.","maxLength":200},"follow_up_on":{"type":"string","format":"date","description":"The day it is due."},"body":{"type":"string","description":"More detail. The subject is used if left out.","maxLength":10000},"kind":{"type":"string","enum":["note","call","meeting","email"],"description":"note if left out."}},"examples":[{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","subject":"Send the Roth conversion numbers","follow_up_on":"2026-12-15","kind":"call"}]},"transactions_create":{"type":"object","additionalProperties":false,"required":["account_id","trade_date","type","amount"],"properties":{"account_id":{"type":"string","format":"uuid","description":"The account it belongs to."},"trade_date":{"type":"string","format":"date","description":"The day it happened."},"type":{"type":"string","enum":["buy","sell","dividend","interest","fee","deposit","withdrawal","transfer_in","transfer_out","split","merger"],"description":"What kind of transaction it is."},"amount":{"type":"number","description":"Money in (positive) or out (negative). A buy is negative. For a transfer of shares, send what they were worth that day so performance counts them as paid in, or 0 and we use the price."},"symbol":{"type":"string","description":"Ticker symbol. A buy or sell needs one. A transfer with one moves shares, and without one it moves cash.","maxLength":20},"quantity":{"type":"number","description":"Shares or units. A buy, a sell, or a transfer of shares needs it. For a transfer of cash, the dollar amount."},"price":{"type":"number","description":"Price for one.","minimum":0},"fee":{"type":"number","description":"Fees.","minimum":0},"settlement_date":{"type":"string","format":"date","description":"The day it settled."},"description":{"type":"string","description":"What it was.","maxLength":500},"acquired_on":{"type":"string","format":"date","description":"Only for a transfer_in of shares: the day they were first bought, so the tax lot keeps its age. The trade date if left out."},"cost_basis":{"type":"number","description":"Only for a transfer_in of shares: what they cost in total, so gains come out right. Worked out from the amount or price if left out.","minimum":0},"external_id":{"type":"string","description":"Your id for it. Sending the same one for the same custodian twice is refused, so a retry can't double it.","maxLength":100}},"examples":[{"account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","trade_date":"2026-09-28","type":"buy","symbol":"VTI","quantity":10,"price":245.1,"amount":-2451,"external_id":"trade-88123"}]},"positions_create":{"type":"object","additionalProperties":false,"required":["account_id","symbol","quantity","as_of_date"],"properties":{"account_id":{"type":"string","format":"uuid","description":"The account it belongs to."},"symbol":{"type":"string","description":"Ticker symbol, or CASH for the account's cash.","maxLength":20},"quantity":{"type":"number","description":"Shares or units held. For CASH, the dollar amount. 0 removes it.","minimum":0},"as_of_date":{"type":"string","format":"date","description":"The day it was held. Can't be in the future."},"cost_basis":{"type":"number","description":"What it cost in total, not per share. Not for CASH. Worked out from price if left out.","minimum":0},"acquired_on":{"type":"string","format":"date","description":"The day it was first bought. as_of_date if left out. Not for CASH."},"price":{"type":"number","description":"Price for one at the time, to work out cost when cost_basis is left out. Not for CASH.","minimum":0},"name":{"type":"string","description":"The security's name, used only when we have no record of the symbol yet.","maxLength":200}},"examples":[{"account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","symbol":"VTI","quantity":120,"as_of_date":"2026-09-30","cost_basis":24500,"acquired_on":"2021-03-15"}]},"daily_values_create":{"type":"object","additionalProperties":false,"required":["account_id","date","market_value"],"properties":{"account_id":{"type":"string","format":"uuid","description":"The account it belongs to."},"date":{"type":"string","format":"date","description":"The day. Can't be in the future."},"market_value":{"type":"number","description":"Value at the close of that day.","minimum":0},"net_flow":{"type":"number","description":"Money in less money out that day. 0 if left out."},"daily_return":{"type":"number","description":"Return that day, as a decimal: 0.01 is 1%. Worked out from the values if left out. When you send it, we keep it as it is.","exclusiveMinimum":-1},"advisory_fees":{"type":"number","description":"Advisory fees taken from the account that day, as a positive amount in the account's currency. Kept as sent, and added back for the return before fees. 0 if left out.","minimum":0}},"examples":[{"account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","date":"2026-09-30","market_value":1250000,"net_flow":10000,"daily_return":0.0042,"advisory_fees":85}]},"prices_create":{"type":"object","additionalProperties":false,"required":["symbol","date","price"],"properties":{"symbol":{"type":"string","description":"Ticker symbol. If we have no record of it yet, we add it.","maxLength":20},"date":{"type":"string","format":"date","description":"The day of the price. Can't be in the future."},"price":{"type":"number","description":"The price for one share or unit.","exclusiveMinimum":0},"currency":{"type":"string","pattern":"^[A-Za-z]{3}$","description":"The price's currency. The security's own currency if left out. We convert it with that day's exchange rate."},"name":{"type":"string","description":"The security's name, used only when we have no record of the symbol yet.","maxLength":200}},"examples":[{"symbol":"RIVERFUND","date":"2026-11-10","price":104.25,"currency":"USD"}]},"period-returns_create":{"type":"object","additionalProperties":false,"required":["account_id","period_end","period","return"],"properties":{"account_id":{"type":"string","format":"uuid","description":"The account it belongs to."},"period_end":{"type":"string","format":"date","description":"The last day of the period. Can't be in the future."},"period":{"type":"string","enum":["1D","WTD","MTD","1M","QTD","3M","6M","YTD","1Y","3Y","5Y","ITD"],"description":"Which period: 1D, WTD, MTD, 1M, QTD, 3M, 6M, YTD, 1Y, 3Y, 5Y, or ITD (since the account started)."},"return":{"type":"number","description":"The return over the period, as a decimal: 0.01 is 1%. Not a yearly rate, unless the period is a year.","exclusiveMinimum":-1}},"examples":[{"account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","period_end":"2026-11-10","period":"YTD","return":0.0712}]},"invoices_create":{"type":"object","additionalProperties":false,"required":["number","client_id","period_start","period_end","amount"],"properties":{"number":{"type":"string","description":"Your invoice number. Sending it again changes the invoice.","maxLength":50},"client_id":{"type":"string","format":"uuid","description":"The client billed."},"account_id":{"type":"string","format":"uuid","description":"The account billed, if it is for one. It has to be one of the client's accounts."},"period_start":{"type":"string","format":"date","description":"The first day billed."},"period_end":{"type":"string","format":"date","description":"The last day billed."},"amount":{"type":"number","description":"The total billed, with tax.","minimum":0},"tax_amount":{"type":"number","description":"The part of amount that is tax. 0 if left out.","minimum":0},"due_date":{"type":"string","format":"date","description":"When it is due. Once it passes, an unpaid invoice shows as overdue."},"status":{"type":"string","enum":["sent","paid","overdue","cancelled","void"],"description":"sent if left out. Use paid with paid_on once it is paid."},"paid_on":{"type":"string","format":"date","description":"For a paid invoice: the day it was paid. Today if left out."},"document_id":{"type":"string","format":"uuid","description":"A PDF of the invoice, as the id of a document of the same client. Send the file with POST /documents first."}},"examples":[{"number":"INV-2026-1042","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","period_start":"2026-07-01","period_end":"2026-09-30","amount":3125,"due_date":"2026-10-30","status":"sent"}]},"documents_create":{"type":"object","additionalProperties":false,"required":["client_id","name","content_base64"],"properties":{"client_id":{"type":"string","format":"uuid","description":"The client it belongs to."},"name":{"type":"string","description":"The file name, with its ending, like march-statement.pdf. The ending has to be one of: pdf, png, jpg, jpeg, gif, webp, doc, docx, xls, xlsx, ppt, pptx, csv, txt.","maxLength":200},"type":{"type":"string","enum":["statement","tax","report","agreement","other"],"description":"What kind of document it is. other if left out. Statements, tax documents, and reports show up in the client portal."},"account_id":{"type":"string","format":"uuid","description":"The account it is about, if it is about one. It has to be one of the client's accounts."},"description":{"type":"string","description":"A short note about the file.","maxLength":500},"period_start":{"type":"string","format":"date","description":"For a statement or report: the first day it covers."},"period_end":{"type":"string","format":"date","description":"For a statement or report: the last day it covers."},"content_base64":{"type":"string","description":"The file, base64 encoded. Up to 10 MB before encoding.","maxLength":20000000}},"examples":[{"client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"september-statement.pdf","type":"statement","period_start":"2026-09-01","period_end":"2026-09-30","content_base64":"JVBERi0xLjQK…"}]},"Error":{"type":"object","required":["error"],"description":"What every firm API error looks like. The client routes (/portfolio, /holdings, /performance) use ClientApiError instead.","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["unauthorized","forbidden","bad_request","not_found","conflict","invalid","rate_limited","server_error"],"description":"Goes with the HTTP status: unauthorized 401, forbidden 403, bad_request 400, not_found 404, conflict 409, invalid 422, rate_limited 429, server_error 500."},"message":{"type":"string","description":"What happened and what to do about it."},"details":{"type":"array","description":"For invalid: which fields are wrong.","items":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string"},"message":{"type":"string"}}}}}}},"examples":[{"error":{"code":"forbidden","message":"This key can't read transactions. It needs the transactions:read scope."}}]},"ClientApiError":{"type":"object","required":["error"],"description":"What an error from /portfolio, /holdings or /performance looks like. It is a plain message, with no code.","properties":{"error":{"type":"string"}},"examples":[{"error":"Insufficient scope. Required: read:portfolio"}]},"DataReady":{"type":"object","required":["values_through","custodian_prices_through","accounts_updating"],"properties":{"values_through":{"type":["string","null"],"format":"date","description":"The last market day the evening run valued."},"custodian_prices_through":{"type":["string","null"],"format":"date","description":"The latest day the firm's custodian positions came in for, or null if it has none."},"accounts_updating":{"type":"integer","minimum":0,"description":"Accounts whose past values are still being worked out again. 0 when they are all up to date."}},"description":"How far the firm's data has got. The day is done when the two dates match and accounts_updating is 0."},"Me":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["firm","key","data_ready"],"properties":{"firm":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string","format":"uuid","description":"The firm's id."},"name":{"type":["string","null"],"description":"The firm's name."}}},"key":{"type":"object","required":["id","scopes"],"properties":{"id":{"type":"string","format":"uuid","description":"The key's id."},"name":{"type":["string","null"],"description":"The name it was given when it was made."},"prefix":{"type":["string","null"],"description":"The first characters of the key, so you can tell keys apart."},"scopes":{"type":"array","items":{"type":"string"},"description":"What the key can read and add, like clients:read."},"expires_at":{"type":["string","null"],"format":"date-time","description":"When the key stops working. Null if it has no expiry."}}},"data_ready":{"$ref":"#/components/schemas/DataReady"}}}}},"ClientAccount":{"type":"object","description":"One of the client's accounts. Other columns of the account come back too.","required":["id","client_id"],"properties":{"id":{"type":"string","format":"uuid","description":"The account's id."},"client_id":{"type":"string","format":"uuid","description":"The client it belongs to."},"account_name":{"type":["string","null"],"description":"What the account is called."},"account_type":{"type":["string","null"],"description":"Like ira or brokerage."},"holdings":{"type":"array","items":{"$ref":"#/components/schemas/ClientAccountHolding"},"description":"What the account holds. Only there when include_holdings=true."}},"examples":[{"id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","account_name":"Joint brokerage","account_type":"brokerage","holdings":[{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","quantity":100,"current_value":18520,"cost_basis":15000,"unrealized_gain_loss":3520}]}]},"ClientAccountHolding":{"type":"object","description":"One holding, as stored. Other columns come back too.","required":["id","account_id"],"properties":{"id":{"type":"string","format":"uuid","description":"The holding's id."},"account_id":{"type":"string","format":"uuid","description":"The account that holds it."},"quantity":{"type":"number","description":"Shares or units held."},"current_value":{"type":"number","description":"Value in US dollars."},"cost_basis":{"type":"number","description":"What was paid for it, in US dollars."},"unrealized_gain_loss":{"type":["number","null"],"description":"Value less cost basis."}}},"ClientHolding":{"type":"object","required":["account_id","account_name","symbol","security_name","asset_class","quantity","current_price","current_value","cost_basis","unrealized_gain","gain_return","gain_percent"],"properties":{"account_id":{"type":"string","format":"uuid","description":"The account that holds it."},"account_name":{"type":["string","null"],"description":"What the account is called."},"symbol":{"type":["string","null"],"description":"Ticker symbol."},"security_name":{"type":["string","null"],"description":"The security's name."},"asset_class":{"type":["string","null"],"description":"Like equity or fixed_income."},"quantity":{"type":"number","description":"Shares or units held."},"current_price":{"type":["number","null"],"description":"Value divided by quantity. Null when the quantity is 0."},"current_value":{"type":"number","description":"Value in US dollars."},"cost_basis":{"type":"number","description":"What was paid for it, in US dollars. For a bond bought above or below face value this is its adjusted cost, the same as in the app and reports."},"unadjusted_cost_basis":{"type":"number","description":"For an adjusted bond only: what was paid for it before the adjustment."},"basis_adjustment":{"type":"number","description":"For an adjusted bond only: how far the cost moved. Negative for a bond bought above face value."},"unrealized_gain":{"type":["number","null"],"description":"Value less cost basis, in US dollars. Null when the position has no cost basis."},"gain_return":{"type":["number","null"],"description":"Gain as a decimal of cost basis, so 0.2347 is 23.47%. Null when there's no cost basis."},"gain_percent":{"type":["number","null"],"description":"Use gain_return. This one is 23.47 for 23.47%, and will be removed. Null when the cost basis is 0.","deprecated":true}},"examples":[{"account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","account_name":"Joint brokerage","symbol":"VTI","security_name":"Vanguard Total Stock Market ETF","asset_class":"equity","quantity":100,"current_price":285.2,"current_value":28520,"cost_basis":23100,"unrealized_gain":5420,"gain_return":0.234632,"gain_percent":23.46}]},"PerformanceSummary":{"type":"object","required":["start_date","end_date","start_value","end_value","net_flows","return","annualized_return","volatility","max_drawdown","days"],"properties":{"start_date":{"type":"string","format":"date","description":"The last day before the period, whose closing value the period starts from. With no earlier day on record, the first day with a value."},"end_date":{"type":"string","format":"date","description":"The last day with a value."},"start_value":{"type":"number","description":"Value on the start date, in US dollars."},"end_value":{"type":"number","description":"Value on the last day, in US dollars."},"net_flows":{"type":"number","description":"Money in less money out after the start date, in US dollars. It isn't counted as a gain."},"return":{"type":["number","null"],"description":"Time-weighted return over the period, after fees, as a decimal: 0.0654 is 6.54%. Null when no day in the period has a return."},"annualized_return":{"type":["number","null"],"description":"The same return per year. Null for a period of a year or less."},"volatility":{"type":["number","null"],"description":"How much daily returns vary, as a yearly figure (the standard deviation of daily returns times the square root of 252). Null when there are too few days."},"max_drawdown":{"type":"number","description":"The largest fall from a high, as a negative decimal: -0.071 is a 7.1% fall."},"days":{"type":"integer","description":"How many days of values it is worked out from."}},"description":"How the accounts did over the period."},"HoldingsSummary":{"type":"object","required":["total_value","total_gain_loss","position_count"],"properties":{"total_value":{"type":"number","description":"The holdings' value added up, in US dollars."},"total_gain_loss":{"type":"number","description":"The unrealized gains added up, in US dollars."},"position_count":{"type":"integer","description":"How many holdings are in data."}}},"FlowCreatedData":{"type":"object","required":["transaction_id","account_id","client_id","date","kind","shares","amount"],"properties":{"transaction_id":{"type":"string","format":"uuid","description":"The transaction behind the flow."},"account_id":{"type":"string","format":"uuid","description":"The account the money moved in or out of."},"client_id":{"type":"string","format":"uuid","description":"The account's client."},"advisor_id":{"type":["string","null"],"format":"uuid","description":"The client's advisor."},"date":{"type":"string","format":"date","description":"The day it happened."},"kind":{"type":"string","enum":["deposit","withdrawal","transfer_in","transfer_out"],"description":"What kind of transaction it was."},"shares":{"type":"boolean","description":"True when shares moved rather than cash."},"amount":{"type":"number","description":"In US dollars. Money in is positive and money out is negative. Shares are valued at that day's price."}},"description":"The data for flow.created."},"FlowCreatedEvent":{"type":"object","required":["id","type","created_at","data"],"properties":{"id":{"type":"string","format":"uuid","description":"The id of the event. The same on every retry, so use it to spot one you already handled."},"type":{"const":"flow.created","description":"The event name."},"created_at":{"type":"string","format":"date-time","description":"When the event happened."},"data":{"$ref":"#/components/schemas/FlowCreatedData"}},"description":"A deposit, withdrawal, or transfer is added, counted the way the flows dataset counts it. amount is in US dollars, and money in is positive.","examples":[{"id":"6d5c4b3a-2918-4776-8554-433221100fed","type":"flow.created","created_at":"2026-09-29T06:10:00Z","data":{"transaction_id":"2b3c4d5e-6f70-4812-9a3b-4c5d6e7f8091","account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","advisor_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","date":"2026-09-28","kind":"deposit","shares":false,"amount":25000}}]},"ClientCreatedData":{"type":"object","required":["id","email"],"properties":{"id":{"type":"string","format":"uuid","description":"The new client's id."},"first_name":{"type":["string","null"],"description":"First name."},"last_name":{"type":["string","null"],"description":"Last name."},"client_type":{"type":"string","enum":["individual","entity"],"description":"A person, or an entity like a trust or company."},"legal_name":{"type":["string","null"],"description":"The name of an entity, like a trust or company. Null for a person. An entity's first and last name are blank."},"email":{"type":"string","description":"Email address."},"advisor_id":{"type":["string","null"],"format":"uuid","description":"Their advisor."}},"description":"The data for client.created."},"ClientCreatedEvent":{"type":"object","required":["id","type","created_at","data"],"properties":{"id":{"type":"string","format":"uuid","description":"The id of the event. The same on every retry, so use it to spot one you already handled."},"type":{"const":"client.created","description":"The event name."},"created_at":{"type":"string","format":"date-time","description":"When the event happened."},"data":{"$ref":"#/components/schemas/ClientCreatedData"}},"description":"A client is added, in the app or through the API.","examples":[{"id":"6d5c4b3a-2918-4776-8554-433221100fed","type":"client.created","created_at":"2026-09-29T06:10:00Z","data":{"id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","first_name":"Rita","last_name":"Moreno","client_type":"individual","legal_name":null,"email":"rita@example.com","advisor_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b"}}]},"AccountCreatedData":{"type":"object","required":["id","client_id","account_number"],"properties":{"id":{"type":"string","format":"uuid","description":"The new account's id."},"client_id":{"type":"string","format":"uuid","description":"The client it belongs to."},"name":{"type":["string","null"],"description":"What the account is called."},"account_number":{"type":"string","description":"The number at the custodian."},"account_type":{"type":["string","null"],"description":"Like ira, roth_ira, or joint."},"custodian":{"type":["string","null"],"description":"Where the account is held."},"currency":{"type":["string","null"],"description":"The account's currency, like USD."}},"description":"The data for account.created."},"AccountCreatedEvent":{"type":"object","required":["id","type","created_at","data"],"properties":{"id":{"type":"string","format":"uuid","description":"The id of the event. The same on every retry, so use it to spot one you already handled."},"type":{"const":"account.created","description":"The event name."},"created_at":{"type":"string","format":"date-time","description":"When the event happened."},"data":{"$ref":"#/components/schemas/AccountCreatedData"}},"description":"An account is added.","examples":[{"id":"6d5c4b3a-2918-4776-8554-433221100fed","type":"account.created","created_at":"2026-09-29T06:10:00Z","data":{"id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","name":"Joint brokerage","account_number":"X1234-5678","account_type":"joint","custodian":"schwab","currency":"USD"}}]},"NoteCreatedData":{"type":"object","required":["id","client_id","kind"],"properties":{"id":{"type":"string","format":"uuid","description":"The new note's id. The text of the note isn't sent. Read it from /notes/{id}."},"client_id":{"type":"string","format":"uuid","description":"The client it is about."},"kind":{"type":"string","description":"note, call, meeting, or email."},"subject":{"type":["string","null"],"description":"A short subject line."},"occurred_at":{"type":["string","null"],"format":"date-time","description":"When it happened."},"follow_up_on":{"type":["string","null"],"format":"date","description":"When to follow up, if set."},"author_id":{"type":["string","null"],"format":"uuid","description":"Who wrote it. Null when it came through the API."}},"description":"The data for note.created."},"NoteCreatedEvent":{"type":"object","required":["id","type","created_at","data"],"properties":{"id":{"type":"string","format":"uuid","description":"The id of the event. The same on every retry, so use it to spot one you already handled."},"type":{"const":"note.created","description":"The event name."},"created_at":{"type":"string","format":"date-time","description":"When the event happened."},"data":{"$ref":"#/components/schemas/NoteCreatedData"}},"description":"A note, call, or meeting is logged on a client.","examples":[{"id":"6d5c4b3a-2918-4776-8554-433221100fed","type":"note.created","created_at":"2026-09-29T06:10:00Z","data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","kind":"call","subject":"Quarterly review","occurred_at":"2026-09-28T14:05:00Z","follow_up_on":null,"author_id":null}}]},"ReconciliationBreakOpenedData":{"type":"object","required":["id","account_id","as_of_date","break_type"],"properties":{"id":{"type":"string","format":"uuid","description":"The break's id."},"account_id":{"type":"string","format":"uuid","description":"The account that doesn't match."},"account_number":{"type":["string","null"],"description":"The account's number at the custodian."},"as_of_date":{"type":"string","format":"date","description":"The day the two records were compared for."},"break_type":{"type":"string","description":"What kind of difference it is, like quantity_mismatch."},"symbol":{"type":["string","null"],"description":"The security it is about, if there is one."},"book_quantity":{"type":["number","null"],"description":"How many our records show."},"custodian_quantity":{"type":["number","null"],"description":"How many the custodian shows."},"difference":{"type":["number","null"],"description":"The gap between the two."},"severity":{"type":["string","null"],"description":"How much it matters, like high."}},"description":"The data for reconciliation.break_opened."},"ReconciliationBreakOpenedEvent":{"type":"object","required":["id","type","created_at","data"],"properties":{"id":{"type":"string","format":"uuid","description":"The id of the event. The same on every retry, so use it to spot one you already handled."},"type":{"const":"reconciliation.break_opened","description":"The event name."},"created_at":{"type":"string","format":"date-time","description":"When the event happened."},"data":{"$ref":"#/components/schemas/ReconciliationBreakOpenedData"}},"description":"The custodian's records and ours disagree about an account.","examples":[{"id":"6d5c4b3a-2918-4776-8554-433221100fed","type":"reconciliation.break_opened","created_at":"2026-09-29T06:10:00Z","data":{"id":"9f8e7d6c-5b4a-4392-8170-6f5e4d3c2b1a","account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","account_number":"X1234-5678","as_of_date":"2026-09-28","break_type":"quantity_mismatch","symbol":"VTI","book_quantity":100,"custodian_quantity":110,"difference":10,"severity":"high"}}]},"DocumentCreatedData":{"type":"object","required":["id","client_id","name","type"],"properties":{"id":{"type":"string","format":"uuid","description":"The new document's id."},"client_id":{"type":"string","format":"uuid","description":"The client it was added for."},"account_id":{"type":["string","null"],"format":"uuid","description":"The account it is about, if there is one."},"name":{"type":"string","description":"The file name."},"type":{"type":"string","description":"statement, tax, report, agreement, or other."},"mime_type":{"type":["string","null"],"description":"The kind of file, like application/pdf."},"file_size":{"type":["integer","null"],"description":"Size in bytes."},"uploaded_by":{"type":["string","null"],"format":"uuid","description":"Who added it. Null when the system made it."},"created_at":{"type":"string","format":"date-time","description":"When it was added."}},"description":"The data for document.created."},"DocumentCreatedEvent":{"type":"object","required":["id","type","created_at","data"],"properties":{"id":{"type":"string","format":"uuid","description":"The id of the event. The same on every retry, so use it to spot one you already handled."},"type":{"const":"document.created","description":"The event name."},"created_at":{"type":"string","format":"date-time","description":"When the event happened."},"data":{"$ref":"#/components/schemas/DocumentCreatedData"}},"description":"A document is added to a client's documents. The file itself and where it's stored aren't sent.","examples":[{"id":"6d5c4b3a-2918-4776-8554-433221100fed","type":"document.created","created_at":"2026-09-29T06:10:00Z","data":{"id":"7e6d5c4b-3a29-4817-96a5-b4c3d2e1f0a9","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","account_id":null,"name":"Q3 2026 statement.pdf","type":"statement","mime_type":"application/pdf","file_size":182340,"uploaded_by":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","created_at":"2026-09-28T14:05:00Z"}}]},"TaskCreatedData":{"type":"object","required":["id","client_id","due_on"],"properties":{"id":{"type":"string","format":"uuid","description":"The task's id. A task is a follow-up on a note, so this is the note's id."},"note_id":{"type":"string","format":"uuid","description":"The note the follow-up is on. The same as id."},"client_id":{"type":"string","format":"uuid","description":"The client it is about."},"kind":{"type":"string","description":"note, call, meeting, or email."},"subject":{"type":["string","null"],"description":"The note's subject line."},"due_on":{"type":"string","format":"date","description":"The follow-up date."},"author_id":{"type":["string","null"],"format":"uuid","description":"Who wrote the note."}},"description":"The data for task.created."},"TaskCreatedEvent":{"type":"object","required":["id","type","created_at","data"],"properties":{"id":{"type":"string","format":"uuid","description":"The id of the event. The same on every retry, so use it to spot one you already handled."},"type":{"const":"task.created","description":"The event name."},"created_at":{"type":"string","format":"date-time","description":"When the event happened."},"data":{"$ref":"#/components/schemas/TaskCreatedData"}},"description":"A follow-up date is set on a client note, so it shows on the Tasks page.","examples":[{"id":"6d5c4b3a-2918-4776-8554-433221100fed","type":"task.created","created_at":"2026-09-29T06:10:00Z","data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","note_id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","kind":"call","subject":"Send the rollover forms","due_on":"2026-10-05","author_id":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b"}}]},"TaskCompletedData":{"type":"object","required":["id","client_id"],"properties":{"id":{"type":"string","format":"uuid","description":"The task's id. A task is a follow-up on a note, so this is the note's id."},"note_id":{"type":"string","format":"uuid","description":"The note the follow-up is on. The same as id."},"client_id":{"type":"string","format":"uuid","description":"The client it is about."},"kind":{"type":"string","description":"note, call, meeting, or email."},"subject":{"type":["string","null"],"description":"The note's subject line."},"due_on":{"type":["string","null"],"format":"date","description":"The follow-up date."},"completed_at":{"type":"string","format":"date-time","description":"When it was marked done."},"completed_by":{"type":["string","null"],"format":"uuid","description":"Who marked it done."}},"description":"The data for task.completed."},"TaskCompletedEvent":{"type":"object","required":["id","type","created_at","data"],"properties":{"id":{"type":"string","format":"uuid","description":"The id of the event. The same on every retry, so use it to spot one you already handled."},"type":{"const":"task.completed","description":"The event name."},"created_at":{"type":"string","format":"date-time","description":"When the event happened."},"data":{"$ref":"#/components/schemas/TaskCompletedData"}},"description":"A follow-up on a client note is marked done.","examples":[{"id":"6d5c4b3a-2918-4776-8554-433221100fed","type":"task.completed","created_at":"2026-09-29T06:10:00Z","data":{"id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","note_id":"3f2b1c9e-7a41-4d7e-9a55-1d2c3b4a5f60","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","kind":"call","subject":"Send the rollover forms","due_on":"2026-10-05","completed_at":"2026-10-02T15:30:00Z","completed_by":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b"}}]},"OrderCreatedData":{"type":"object","required":["id","client_id","account_id","symbol","side","quantity","status"],"properties":{"id":{"type":"string","format":"uuid","description":"The new order's id."},"client_id":{"type":"string","format":"uuid","description":"The client it is for."},"account_id":{"type":"string","format":"uuid","description":"The account it is for."},"symbol":{"type":"string","description":"The security's ticker."},"side":{"type":"string","description":"buy or sell."},"quantity":{"type":"number","description":"How many shares."},"order_type":{"type":"string","description":"market, limit, stop, or stop_limit."},"limit_price":{"type":["number","null"],"description":"The limit price, for limit orders."},"status":{"type":"string","description":"draft, proposed, approved, routed, partial, filled, rejected, or cancelled."},"entered_by":{"type":"string","format":"uuid","description":"Who entered it."},"created_at":{"type":"string","format":"date-time","description":"When it was entered."}},"description":"The data for order.created."},"OrderCreatedEvent":{"type":"object","required":["id","type","created_at","data"],"properties":{"id":{"type":"string","format":"uuid","description":"The id of the event. The same on every retry, so use it to spot one you already handled."},"type":{"const":"order.created","description":"The event name."},"created_at":{"type":"string","format":"date-time","description":"When the event happened."},"data":{"$ref":"#/components/schemas/OrderCreatedData"}},"description":"An order is entered, including drafts.","examples":[{"id":"6d5c4b3a-2918-4776-8554-433221100fed","type":"order.created","created_at":"2026-09-29T06:10:00Z","data":{"id":"4a5b6c7d-8e9f-4a0b-9c1d-2e3f4a5b6c7d","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","symbol":"VTI","side":"buy","quantity":50,"order_type":"limit","limit_price":265.5,"status":"draft","entered_by":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","created_at":"2026-09-28T14:05:00Z"}}]},"OrderStatusChangedData":{"type":"object","required":["id","client_id","account_id","old_status","new_status"],"properties":{"id":{"type":"string","format":"uuid","description":"The order's id."},"client_id":{"type":"string","format":"uuid","description":"The client it is for."},"account_id":{"type":"string","format":"uuid","description":"The account it is for."},"symbol":{"type":"string","description":"The security's ticker."},"side":{"type":"string","description":"buy or sell."},"quantity":{"type":"number","description":"How many shares were ordered."},"old_status":{"type":"string","description":"Where it was: draft, proposed, approved, routed, partial, filled, rejected, or cancelled."},"new_status":{"type":"string","description":"Where it is now. Same choices as old_status."},"filled_quantity":{"type":"number","description":"How many shares have been filled so far."},"avg_fill_price":{"type":["number","null"],"description":"The average price of the fills, in the security's currency."},"reject_reason":{"type":["string","null"],"description":"Why it was rejected, if it was."}},"description":"The data for order.status_changed."},"OrderStatusChangedEvent":{"type":"object","required":["id","type","created_at","data"],"properties":{"id":{"type":"string","format":"uuid","description":"The id of the event. The same on every retry, so use it to spot one you already handled."},"type":{"const":"order.status_changed","description":"The event name."},"created_at":{"type":"string","format":"date-time","description":"When the event happened."},"data":{"$ref":"#/components/schemas/OrderStatusChangedData"}},"description":"An order moves to a new status, like approved, sent to the custodian, filled, or rejected. The payload has the old and the new status.","examples":[{"id":"6d5c4b3a-2918-4776-8554-433221100fed","type":"order.status_changed","created_at":"2026-09-29T06:10:00Z","data":{"id":"4a5b6c7d-8e9f-4a0b-9c1d-2e3f4a5b6c7d","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","account_id":"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d","symbol":"VTI","side":"buy","quantity":50,"old_status":"routed","new_status":"filled","filled_quantity":50,"avg_fill_price":265.31,"reject_reason":null}}]},"SignatureCompletedData":{"type":"object","required":["id","client_id","document_id"],"properties":{"id":{"type":"string","format":"uuid","description":"The signature request's id."},"client_id":{"type":"string","format":"uuid","description":"The client who signed."},"title":{"type":"string","description":"What the request was called."},"document_id":{"type":"string","format":"uuid","description":"The document that was sent to sign."},"signed_document_id":{"type":["string","null"],"format":"uuid","description":"The signed copy, once it has been saved to the client's documents."},"signed_at":{"type":["string","null"],"format":"date-time","description":"When they signed."},"provider":{"type":"string","description":"builtin, or docusign."}},"description":"The data for signature.completed."},"SignatureCompletedEvent":{"type":"object","required":["id","type","created_at","data"],"properties":{"id":{"type":"string","format":"uuid","description":"The id of the event. The same on every retry, so use it to spot one you already handled."},"type":{"const":"signature.completed","description":"The event name."},"created_at":{"type":"string","format":"date-time","description":"When the event happened."},"data":{"$ref":"#/components/schemas/SignatureCompletedData"}},"description":"A client signed a document you asked them to sign. The signed copy is added to their documents too, which sends a New document event.","examples":[{"id":"6d5c4b3a-2918-4776-8554-433221100fed","type":"signature.completed","created_at":"2026-09-29T06:10:00Z","data":{"id":"2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f","client_id":"8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f","title":"Advisory agreement","document_id":"7e6d5c4b-3a29-4817-96a5-b4c3d2e1f0a9","signed_document_id":"0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d","signed_at":"2026-09-28T16:20:00Z","provider":"builtin"}}]},"DataReadyData":{"type":"object","required":["date"],"properties":{"date":{"type":"string","format":"date","description":"The market day that is now final."},"values_through":{"type":["string","null"],"format":"date","description":"The last market day valued."},"custodian_prices_through":{"type":["string","null"],"format":"date","description":"The latest day custodian positions came in for. Null if the firm doesn't load them."}},"description":"The data for data.ready."},"DataReadyEvent":{"type":"object","required":["id","type","created_at","data"],"properties":{"id":{"type":"string","format":"uuid","description":"The id of the event. The same on every retry, so use it to spot one you already handled."},"type":{"const":"data.ready","description":"The event name."},"created_at":{"type":"string","format":"date-time","description":"When the event happened."},"data":{"$ref":"#/components/schemas/DataReadyData"}},"description":"The last market day's numbers are final: valued, the custodian's prices in, nothing being reworked. Sent once a day.","examples":[{"id":"6d5c4b3a-2918-4776-8554-433221100fed","type":"data.ready","created_at":"2026-09-29T06:10:00Z","data":{"date":"2026-09-28","values_through":"2026-09-28","custodian_prices_through":"2026-09-28"}}]}}}}