Overview
Call ROASForm from your own server with an API key.
The ROASForm API lets your own website or system work with a ROASForm subaccount from your server. The pages here cover what every endpoint shares; each product has its own section.
In this section
- Authentication: test and live keys, permissions
- Errors: the error shape and the codes every endpoint uses
- Repeat protection: the
Idempotency-Keyheader - Rate limits
- Testing: test keys
- Changelog
Products
X-Ray Finance: soft credit checks for people who give consent on your own website, at the same price as on forms.
- Overview: setup, endpoints and what a check costs
- Checks: run a check, read it, and its errors
- Opt-outs: record a person's opt-out
- Consent and privacy policy: the checkbox, the sentence, your policy
- Testing checks: what a test key checks, and the sample result
Base URL
https://api.roasform.com/v1/publicEvery call needs an API key from the dashboard (Connect → API → Create API key). The first time you open the API page, it asks you to set up X-Ray Finance; keys come after that. See Authentication.
The API is turned on per account while it is new. If your dashboard has no API under Connect, contact ROASForm support.
Your first call
Create a test key and read a check with it. With a test key, any check id returns the sample result, so this shows your key works. It is never charged and reaches no provider:
curl https://api.roasform.com/v1/public/xray/finance/checks/0b7c1d2e-5f6a-4b8c-9d0e-1f2a3b4c5d6e \
-H "Authorization: Bearer rf_test_..."{
"id": "0b7c1d2e-5f6a-4b8c-9d0e-1f2a3b4c5d6e",
"apiVersion": "2026-11-10",
"status": "complete",
"skipReason": null,
"reused": false,
"chargedCents": 0,
"leadId": null,
"createdAtUtc": "2026-11-10T12:26:40.142Z",
"completedAtUtc": "2026-11-10T12:26:40.142Z",
"result": {
"creditScore": 720,
"offers": [{ "name": "Credit Pre-Approval", "amount": 25000 }],
"debtToIncome": null,
"income": null
}
}The key needs the xrayFinanceChecksRead permission for this call. See Testing for what test keys do.
Conventions
- Field names and values are camelCase:
status: "complete",skipReason: "consumerOptedOut". - Ids are UUIDs.
leadIdis the same value aslead.idin webhooks. - Times are named
...AtUtc, in ISO 8601, ending inZ. - A field with no value is
null. It is never left out. - New fields can appear in a response at any time. Ignore the ones you don't know.
- Every response has a
ROASForm-Request-Idheader. Quote it when you contact support.
Versions
The /v1/ in the path stays the same. Changes to fields come as dated API versions instead. Each key is pinned to the version that was current when you created it, every successful response says which one in apiVersion, and nothing moves to a newer version by itself. You switch a key's version in the dashboard, on the API page. A change that could break an integration is announced 30 days ahead, unless the credit data provider, the law, security or stability requires less.
To use another version for one call, for example to try a newer one before you switch the key, send its date in the ROASForm-Version header. Any version that isn't retired works, older or newer than the key's:
ROASForm-Version: 2026-11-10The response's apiVersion says which version answered. A date that isn't a version answers 400 invalidRequest. When a version is retired, calls in it answer 400 apiVersionRetired, whether the key is pinned to it or the header names it, until you switch the key or send a supported version.
The current version is 2026-11-10. See the Changelog.

