Partner API Documentation
Order expert-reviewed valuations for your customers from inside your product: create the customer, open the valuation, upload documents, and collect the draft and the final report PDF, with a webhook each time something changes. The Partner API is available to approved partners. Your team generates its own credentials in the partner portal.
Overview
The 409.AI Partner API lets your product order valuations for your own customers and follow each one to the final report, without your customers ever leaving your product. Your integration creates the customer and their company, opens the valuation, uploads the documents, and collects the draft and the final report PDF.
Every report is prepared and reviewed by credentialed professionals, so the flow is asynchronous: a valuation moves through a small set of statuses, and you follow it by webhook or by reading the valuation. A draft comes back for your customer's answer before the final report is issued.
- Your server exchanges its client id and secret for a bearer token (POST /tokens).
- Your server creates the customer and their company (POST /customers), opens the valuation (POST /valuations) and uploads the documents (POST /valuations/{id}/documents).
- Your server submits it (POST /valuations/{id}/submit), or the valuation is submitted on its own once it is paid for and complete.
- 409.AI's credentialed analysts prepare the report, and a webhook reaches your endpoint each time the valuation moves on.
- At draft_ready your server downloads the draft (GET /valuations/{id}/draft) and answers it for the customer: accept, or request changes.
- Once published, your server downloads the final report (GET /valuations/{id}/report).
- Base URL:
https://onboard.app.409.ai/api/partner/v1, JSON in and out - Auth: a client id and secret, exchanged for a bearer token that lasts 6 hours. Server-side only
- Interactive reference: every schema, with a try-it console, at onboard.app.409.ai/partner/docs
- Partner portal: your team generates its API credentials and sets the webhook at partners.app.409.ai, under API & webhooks
- Data isolation: a partnership's credentials reach its own customers, companies and valuations, and nothing of another partner's
The Partner API is available to approved partners. Request access and the partnerships team sets up your partnership and your team's logins to the partner portal, where the credentials are generated.
How it works
A valuation is opened for a company of one of your customers and moves through the statuses below. GET /valuations/{id} always says where it is and what is still missing (missing_documents, missing_details, missing_profile_fields).
| Status | What it means | What your system does |
|---|---|---|
draft | Opened, still missing documents, details or company profile fields | Send what is missing. A prepaid partnership then calls POST /valuations/{id}/submit |
payment_pending | Complete, waiting for the customer to pay (never for a prepaid partnership) | Send the customer to the checkout from POST /valuations/{id}/checkout |
under_review | Submitted, our team is checking the inputs | Nothing, wait for the next change |
in_progress | The analysis is being prepared | Nothing. expected_at says when we expect to deliver |
draft_ready | A draft report waits for the customer's answer | Download the draft, show it, then accept it or request changes |
changes_requested | The customer asked for changes to the draft | Nothing, a new draft follows |
approved | Draft approved, the final report is being issued | Nothing, wait for published |
published | The final report is available | Download it from GET /valuations/{id}/report |
archived | Cancelled or set aside by the 409.AI team | Treat it as ended |
- draft: opened, something is still missing. A prepaid partnership submits it once it is complete.
- payment_pending: complete, waiting for the customer to pay. Paid, it is submitted on its own.
- under_review: submitted, our team is checking the inputs.
- in_progress: the analysis is being prepared.
- draft_ready: a draft waits for the customer's answer. Requesting changes moves it to changes_requested, and a new draft brings it back.
- approved: the draft was accepted and the final report is being issued.
- published: the final report is available for download.
- archived: cancelled or set aside by the 409.AI team, from any status.
Prepaid partnerships must submit. With no payment to mark the moment an order is placed, a prepaid valuation stays draft, with ready_to_submit: true once nothing is missing, until you call POST /valuations/{id}/submit. A valuation that is paid for is submitted automatically when the last missing piece arrives.
Authentication
Your team generates API credentials in the partner portal, under API & webhooks: a client id and a client secret. The secret is shown once, when it is generated, and only its digest is kept on our side. A partnership can hold several credentials, each with a name, so every system of yours can have its own and be replaced or revoked without touching the others.
- Sign in to the partner portal and generate API credentials under API & webhooks.
- Copy the client secret once, when it is shown, and store it in a secret manager (server-side only).
- Exchange the client id and secret for a bearer token with POST /tokens, and check it with GET /me.
- Set your webhook address and key in the portal, and send a test event to it.
curl -X POST https://onboard.app.409.ai/api/partner/v1/tokens \
-H "Content-Type: application/json" \
-d '{"client_id": "acme_4f8a1c2e9b7d3a65", "client_secret": "..."}'Responds 201 with {"token": "...", "token_type": "Bearer", "expires_at": "..."}. Send the token as Authorization: Bearer <token> on every other request. A token lasts 6 hours and is not refreshable: request a new one when it expires. GET /me verifies a token and returns the partnership it belongs to.
Treat the secret like a password: call the API from your servers only, never from a browser or a mobile app. If a secret is ever exposed, generate a new one in the portal: the old secret and every token it issued stop working at once, and your other credentials are not affected.
Quickstart: customer to report
Six calls take a valuation from a new customer to a delivered report. Every schema is in the interactive reference, and GET /kinds lists the kinds your partnership can order, with their prices and what each one needs.
curl -X POST https://onboard.app.409.ai/api/partner/v1/customers \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"email": "founder@acme.com", "first_name": "Maya", "last_name": "Chen",
"company": {"legal_name": "Acme Robotics, Inc."}}'Responds 201 with the customer, their workspace and their companies. The call is idempotent per email: sending it again returns the same customer with 200. This is also the customer's account in the portal, so there is no separate call to create a user.
curl -X POST https://onboard.app.409.ai/api/partner/v1/valuations \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"company_id": 4821, "kind": "409a", "external_id": "your-order-91",
"details": {"valuation_date": "2026-09-30"}}'Responds 201 with the valuation, status: "draft", and what it still needs. A company has one open valuation of a kind at a time: opening another responds 409 already_open with the open one's id, so a retry never creates a duplicate.
curl -X POST https://onboard.app.409.ai/api/partner/v1/valuations/01JB2Z6Q4N8XKJ4M4Q8Q1Y9Z7A/documents \
-H "Authorization: Bearer $TOKEN" \
-F "slot=captable" \
-F "file=@captable.xlsx"Responds 201 per file, any file type up to 50 MB. The valuation's documents lists the slots of its kind (captable, financials, articles, and so on). When the customer does not have a required document, say so with PATCH /valuations/{id}/documents/{slot} and waived: true instead of uploading something in its place.
curl -X POST https://onboard.app.409.ai/api/partner/v1/valuations/01JB2Z6Q4N8XKJ4M4Q8Q1Y9Z7A/submit \
-H "Authorization: Bearer $TOKEN"Responds 200 when the valuation is complete, and 422 incomplete with missing_documents, missing_details and missing_profile_fields naming exactly what to add. When the customer pays by card, POST /valuations/{id}/checkout returns a Stripe hosted page first, and the valuation is submitted on its own once paid and complete.
curl -L https://onboard.app.409.ai/api/partner/v1/valuations/01JB2Z6Q4N8XKJ4M4Q8Q1Y9Z7A/draft \
-H "Authorization: Bearer $TOKEN" -o draft.pdf
curl -X POST https://onboard.app.409.ai/api/partner/v1/valuations/01JB2Z6Q4N8XKJ4M4Q8Q1Y9Z7A/draft/accept \
-H "Authorization: Bearer $TOKEN"At draft_ready the valuation carries its result (the price per share) and the draft PDF. Show both to your customer, then answer in their name: accept, or POST /valuations/{id}/draft/request_changes with what should change. A draft has to be downloaded before it can be answered.
curl -L https://onboard.app.409.ai/api/partner/v1/valuations/01JB2Z6Q4N8XKJ4M4Q8Q1Y9Z7A/report \
-H "Authorization: Bearer $TOKEN" -o report.pdfResponds with the PDF once the valuation is published. Your customer can do all of this themselves too: POST /customers/{id}/login_link returns a link, good for 6 hours, that signs them in to the portal under your brand without a password.
Endpoints
| Method | Path | Purpose |
|---|---|---|
POST | /tokens | Exchange the client id and secret for a bearer token |
GET | /me | Verify the token and identify the partnership |
GET | /kinds | The kinds you can order, with prices, required details and documents |
POST | /customers | Create a customer with their workspace and first company (idempotent per email) |
GET | /customers, /customers/{id} | List your customers, or read one |
POST | /customers/{id}/companies | Add a company to a customer |
POST | /customers/{id}/login_link | A link that signs the customer in to the portal, valid for 6 hours |
GET PATCH | /companies/{id} | Read a company, or fill in its profile |
POST | /valuations | Open a valuation of a kind for a company |
GET | /valuations, /valuations/{id} | List the partnership's valuations, or read one with its status and what is missing |
PATCH | /valuations/{id} | Update the details of a valuation |
POST | /valuations/{id}/documents | Upload a file into a slot (multipart: slot + file) |
PATCH | /valuations/{id}/documents/{slot} | Say the customer does not have a document (waived) |
DELETE | /valuations/{id}/documents/{file_id} | Remove a file |
GET | /valuations/{id}/pricing, /valuations/{id}/payments | The prices of the valuation, and its charges |
POST | /valuations/{id}/checkout | Open a Stripe hosted checkout for the customer |
POST | /valuations/{id}/submit | Submit for review |
GET | /valuations/{id}/draft | Download the draft PDF |
POST | /valuations/{id}/draft/accept, /draft/request_changes | Answer the draft in the customer's name |
GET | /valuations/{id}/report | Download the final report PDF |
Request and response schemas for every endpoint, with a try-it console, are in the interactive API reference.
Which kinds a partnership can order is part of its agreement: GET /kinds is the source of truth, and returns each kind with its price, its standard delivery time, the details it asks for and the documents it needs.
Webhooks
A partnership registers one HTTPS endpoint, in the partner portal under API & webhooks: the address, and a key of your own choosing. There is nothing to register through the API.
- Events:
valuation_state_changewhen a valuation moves on,valuation_payment_changewhen it is paid, andvaluation_account_changewhen the company's accounting system is connected or disconnected - Envelope: a POST of
{"uuid", "from", "to", "changed_at", "kind"}, whereuuidis the valuation's id andkindis the event. A payment event also carries apaymentobject - Authentication: the
Authorizationheader carries the key you set, as it is. Compare it before trusting a call - Retries: a call that is not answered with a 2xx is tried five times
{
"kind": "valuation_state_change",
"uuid": "01JB2Z6Q4N8XKJ4M4Q8Q1Y9Z7A",
"from": "review",
"to": "drafted",
"changed_at": "2026-10-02T14:31:07Z"
}from and to are the steps of our pipeline, which are finer than a valuation's status. Treat a delivery as "something changed" and read the valuation for where it is now.
- 409.AI POSTs the event to your endpoint with your key in the Authorization header.
- Compare the header with the key you set, in constant time, and reject the call if it differs.
- Read the valuation (GET /valuations/{uuid}) for its current status and what it needs.
- Answer with a 2xx. A call that is not answered with one is tried five times.
import hmac
def handle(headers, event, webhook_key, api):
if not hmac.compare_digest(headers.get("Authorization", ""), webhook_key):
return 401
if event["kind"] == "webhook_test":
return 200
valuation = api.get(f"/valuations/{event['uuid']}")
sync(valuation) # status, missing_documents, draft, result...
return 200Send test event in the portal makes one call to your endpoint from our servers, the same servers every event comes from, with kind: webhook_test and a uuid of zeros. Answer it with a 2xx and ignore it.
Errors
Every non-2xx response uses one envelope. Where it helps, it also carries details, the missing_* lists of a valuation, or the existing_id of the valuation that is already open.
{
"error": {
"code": "incomplete",
"message": "The valuation is missing documents"
},
"missing_documents": ["captable", "financials"]
}| Code | HTTP | Meaning |
|---|---|---|
unauthorized | 401 | Missing, invalid or expired token, or unknown client id and secret |
payment_required | 402 | The valuation has to be paid for first |
not_found | 404 | It does not exist, or belongs to another partnership |
no_draft | 404 | The valuation has no draft to download or answer |
already_open | 409 | The company already has an open valuation of that kind (existing_id) |
invalid_request | 422 | The request is malformed or fails validation |
incomplete | 422 | Something is missing, and the missing_* lists say what |
locked | 422 | The valuation can no longer be changed |
already_paid, already_submitted | 422 | It was already done |
prepaid, not_payable | 422 | There is nothing for the customer to pay |
draft_not_opened | 422 | Download the draft before answering it |
payment_provider_error | 502 | The payment provider failed: try again |
not_ready | 503 | The draft is still being prepared: try again shortly |
Limits and versioning
- Tokens: a bearer token lasts 6 hours. Cache it and request a new one when it expires, rather than one per call
- Retries: creating a customer is idempotent per email, and a second open valuation of the same kind for a company answers
409already_open, so a retried request never creates a duplicate. Sendforce: truewhen a second one is really wanted, for another valuation date for example - Your own reference: pass
external_idwhen opening a valuation to carry your order id alongside ours - Files: any file type, up to 50 MB each
The API is versioned in the path: everything documented here lives under /api/partner/v1. Additive changes (new optional fields, new statuses, new endpoints, new webhook events) may ship within v1, so build your parsers to ignore what they do not recognize. Breaking changes will only ever arrive under a new version path.
Frequently asked questions
How do I get API credentials?
The Partner API is available to approved partners. Request access through the partner form on the partners page or write to partners@409.ai, and the partnerships team sets up your partnership and your team's logins to the partner portal. There, under API & webhooks, your team generates its own credentials: a client id and a client secret, shown once.
Can we have more than one set of credentials?
Yes. A partnership can hold several credentials at once, each with a name, so every system of yours can have its own. Replacing the secret of one, or revoking it, stops that one and the tokens it issued at once and leaves the others working. The credentials belong to the partnership, not to the person who generated them, so nobody leaving your team breaks an integration.
Is there a sandbox?
Onboarding is hands-on: the partnerships team sets up a staging environment with you, with credentials of its own, so you can run the whole flow before real customers arrive. In the partner portal, "Send test event" calls your webhook endpoint from our servers on demand, so you can build and verify your handler end to end.
Which report types can I order?
The kinds a partnership can order are part of its agreement, and GET /kinds lists them with their prices, their standard delivery time, the details each one asks for and the documents it needs. One integration covers every kind: the calls are the same, only the kind and its details change.
Do my customers see 409.AI?
Not unless you want them to. Everything can happen through the API, inside your product. When you prefer to send a customer to a ready-made page, the customer portal runs under your brand at an address of its own, and a login link from the API signs them in without a password.
How fast are reports delivered?
A draft is ready in about 24 hours and the final report within 5 business days, with express delivery available. Every report is prepared and reviewed by credentialed professionals, and the draft comes back for your customer's answer before the final is issued. Each valuation's expected_at says when we expect to deliver it.
How is my customers' data used?
Customer data is used only to prepare that customer's report. We never market to your customers or resell their data, and a partnership's credentials only ever reach its own customers and valuations.
Request API access or open the interactive API reference.