API for deal parties
Outside parties on a deal can do from their own systems what they do in the portal: read the deal, their position and notices, and send indications, questions and covenant reports. Access uses the same login as the portal, so it sees only your deals.
1. Sign in for a token
curl -s https://anjaugjtfgwjyufiynvd.supabase.co/auth/v1/token?grant_type=password \
-H "apikey: sb_publishable_a-8FoSNjoH8TnVtwMP7hXA_zXmH4TY9" -H "Content-Type: application/json" \
-d '{"email":"you@yourfirm.com","password":"…"}'Returns access_token (valid one hour) and refresh_token. Two-factor accounts complete the challenge first. Never put your password in shared scripts; use a secrets store.
2. Read your deals
curl -s -X POST https://anjaugjtfgwjyufiynvd.supabase.co/rest/v1/rpc/party_deals \
-H "apikey: sb_publishable_a-8FoSNjoH8TnVtwMP7hXA_zXmH4TY9" -H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" -d '{}'One entry per deal you are on: terms (a fixed set of fields), mine (your indication, allotment and closing step) or book (totals, for issuers and borrowers), messages with the desk's replies, covenants, notices on terms.board, and your NDA and data-room status.
3. Send a message or indication
curl -s -X POST https://anjaugjtfgwjyufiynvd.supabase.co/rest/v1/rpc/party_submit \
-H "apikey: …" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" \
-d '{"p_deal":"DEAL_ID","p_kind":"indication","p_amount":5,"p_yield":6.25,"p_body":"2036 maturity"}'p_kind: indication (investors and banks; amount in $ millions), question, document, covenant or capex (borrowers; put the figures as JSON in p_body). Limited to 30 messages a day. An indication is not an order until the desk confirms it.
Rules
- Every call is recorded with your login and the server's time.
- You see only deals you were added to; desk data is never reachable with a portal login.
- Data-room files open through the portal or
party_room_grantafter the NDA, as the desk allows.