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.

How the pieces fit: your server creates the customer, opens the valuation and submits it; our credentialed team prepares the report; a webhook tells you when something changed; you collect the draft, answer it, and download the final report.
  1. Your server exchanges its client id and secret for a bearer token (POST /tokens).
  2. Your server creates the customer and their company (POST /customers), opens the valuation (POST /valuations) and uploads the documents (POST /valuations/{id}/documents).
  3. Your server submits it (POST /valuations/{id}/submit), or the valuation is submitted on its own once it is paid for and complete.
  4. 409.AI's credentialed analysts prepare the report, and a webhook reaches your endpoint each time the valuation moves on.
  5. At draft_ready your server downloads the draft (GET /valuations/{id}/draft) and answers it for the customer: accept, or request changes.
  6. 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).

StatusWhat it meansWhat your system does
draftOpened, still missing documents, details or company profile fieldsSend what is missing. A prepaid partnership then calls POST /valuations/{id}/submit
payment_pendingComplete, waiting for the customer to pay (never for a prepaid partnership)Send the customer to the checkout from POST /valuations/{id}/checkout
under_reviewSubmitted, our team is checking the inputsNothing, wait for the next change
in_progressThe analysis is being preparedNothing. expected_at says when we expect to deliver
draft_readyA draft report waits for the customer's answerDownload the draft, show it, then accept it or request changes
changes_requestedThe customer asked for changes to the draftNothing, a new draft follows
approvedDraft approved, the final report is being issuedNothing, wait for published
publishedThe final report is availableDownload it from GET /valuations/{id}/report
archivedCancelled or set aside by the 409.AI teamTreat it as ended
The statuses of a valuation and how they connect: a draft can go back for changes before it is approved, and published is where a valuation ends.
  1. draft: opened, something is still missing. A prepaid partnership submits it once it is complete.
  2. payment_pending: complete, waiting for the customer to pay. Paid, it is submitted on its own.
  3. under_review: submitted, our team is checking the inputs.
  4. in_progress: the analysis is being prepared.
  5. draft_ready: a draft waits for the customer's answer. Requesting changes moves it to changes_requested, and a new draft brings it back.
  6. approved: the draft was accepted and the final report is being issued.
  7. published: the final report is available for download.
  8. 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.

Getting set up, at a glance: from the partner portal to a token that works and a webhook that answers.
  1. Sign in to the partner portal and generate API credentials under API & webhooks.
  2. Copy the client secret once, when it is shown, and store it in a secret manager (server-side only).
  3. Exchange the client id and secret for a bearer token with POST /tokens, and check it with GET /me.
  4. 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.pdf

Responds 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

MethodPathPurpose
POST/tokensExchange the client id and secret for a bearer token
GET/meVerify the token and identify the partnership
GET/kindsThe kinds you can order, with prices, required details and documents
POST/customersCreate a customer with their workspace and first company (idempotent per email)
GET/customers, /customers/{id}List your customers, or read one
POST/customers/{id}/companiesAdd a company to a customer
POST/customers/{id}/login_linkA 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/valuationsOpen 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}/documentsUpload 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}/paymentsThe prices of the valuation, and its charges
POST/valuations/{id}/checkoutOpen a Stripe hosted checkout for the customer
POST/valuations/{id}/submitSubmit for review
GET/valuations/{id}/draftDownload the draft PDF
POST/valuations/{id}/draft/accept, /draft/request_changesAnswer the draft in the customer's name
GET/valuations/{id}/reportDownload 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_change when a valuation moves on, valuation_payment_change when it is paid, and valuation_account_change when the company's accounting system is connected or disconnected
  • Envelope: a POST of {"uuid", "from", "to", "changed_at", "kind"}, where uuid is the valuation's id and kind is the event. A payment event also carries a payment object
  • Authentication: the Authorization header 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.

Handling a delivery: check the key, read the valuation for its status, and answer with a 2xx.
  1. 409.AI POSTs the event to your endpoint with your key in the Authorization header.
  2. Compare the header with the key you set, in constant time, and reject the call if it differs.
  3. Read the valuation (GET /valuations/{uuid}) for its current status and what it needs.
  4. 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 200

Send 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"]
}
CodeHTTPMeaning
unauthorized401Missing, invalid or expired token, or unknown client id and secret
payment_required402The valuation has to be paid for first
not_found404It does not exist, or belongs to another partnership
no_draft404The valuation has no draft to download or answer
already_open409The company already has an open valuation of that kind (existing_id)
invalid_request422The request is malformed or fails validation
incomplete422Something is missing, and the missing_* lists say what
locked422The valuation can no longer be changed
already_paid, already_submitted422It was already done
prepaid, not_payable422There is nothing for the customer to pay
draft_not_opened422Download the draft before answering it
payment_provider_error502The payment provider failed: try again
not_ready503The 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 409 already_open, so a retried request never creates a duplicate. Send force: true when a second one is really wanted, for another valuation date for example
  • Your own reference: pass external_id when 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.