Relativity6Platform Docs
POST/v2/riskBeta

Submit a risk job

Starts an asynchronous risk assessment for a company and returns immediately with a job you can poll. Research runs in the background and can take a few minutes; you never hold a long-lived connection. Use the returned poll_url to check progress and retrieve the final result, or register a webhook to be notified on completion.

Beta. This endpoint is available for production integrations, but fields, categories, and credit weights may change without a version pin.

Base URLhttps://api.relativity6.com

Authentication

Send your API key in the x-api-key header. Send your API key in this header on every request. Production keys use r6-<keyId>.<secret>. Test keys use r6-test-<keyId>.<secret>. See Environments.

Request headers

  • Idempotency-Key

    Optional. Retries with the same key reuse the original job and do not charge credits again.

  • X-R6-Fixture

    Optional. Test keys only. Set to default to queue a canned job that completes without consuming credits. Poll the returned poll_url as usual. Production keys receive HTTP 400 (FIXTURE_TEST_KEY_REQUIRED). See Environments.

Request body

FieldTypeRequiredDescription
company_namestringRequiredLegal or trade name of the business (2–200 characters).
websitestringOptionalPrimary website domain (for example, acmerobotics.com). Improves match accuracy.
addressstringOptionalStreet address.
citystringOptionalCity.
statestringRecommendedState or region code. Strongly recommended to disambiguate the entity.
zipstringOptionalPostal or ZIP code.
countrystringOptionalTwo-letter country code (for example, US).
policy_idstringOptionalYour own reference id, echoed back and stored with the result for reconciliation.
enabled_categoriesstring[]OptionalOptional Core+ category ids to run in addition to Core. Omit or pass [] for a Core-only job. Core ids in this list are ignored. Do not send coming-soon ids (liquor_licenses, ofac_restricted_lists, trade_licenses). Sending plan, addons, or entitlements returns 400. See Core & Core+.
naics_yearstringOptionalNAICS vintage for industry classification. Default is 2017 unless 2022 is sent.2017 · 2022
classifyobjectOptionalIndustry classification options for Core industry_classification. See Core & Core+.
familiesstring[]OptionalCode families to return. Omit or pass [] for naics only.naics · sic · mcc · gl · workers_comp
naics_yearstringOptionalNAICS vintage. Default is 2017 unless 2022 is sent.2017 · 2022
business_risk_flagsobjectOptionalFilters and profile selection for Core+ business_risk_flags. See Core & Core+.
category_filterstring[]OptionalLimit evaluation to specific flag categories.
flag_filterstring[]OptionalLimit evaluation to specific flag names.
profile_sourcestringOptionalWhich risk profile drives flag evaluation when profile_id is omitted. org (the default when omitted) uses the organization's active default; default uses the Business Risk Flags package.default · org
profile_idstringOptionalOptional portfolio override. UUID of an org-owned profile or a global package the organization has installed. Takes precedence over profile_source. Returns 400 if the profile is not available to the organization.
oshaobjectOptionalOptions for Core+ OSHA. See Core & Core+.
layernumberOptionalInspection depth: 1 = inspection list (default), 2 = inspection detail, 3 = violation detail.1 · 2 · 3
cacheobjectOptionalRequest cache control.
modestringOptionaldefault uses the cache; ignore bypasses it for this request.default · ignore

Response

FieldTypeRequiredDescription
job_idstringRequiredUnique id for this job. Use it to poll status and to match webhook deliveries.
statusstringRequiredLifecycle state. Always queued on the initial response.queued · running · completed · failed
company_namestringOptionalCompany name echoed from the request.
poll_urlstringRequiredRelative path to poll for status and the final result (GET /v2/risk/{job_id}).
created_atstring (ISO 8601)OptionalWhen the job was accepted.

Response headers

  • Location

    Path to the job status endpoint for this job (GET /v2/risk/{job_id}).

Errors

StatusDescription
202Accepted. The job was queued; poll the returned poll_url for results.
400Invalid request body (for example, missing company_name, or a removed plan / addons / entitlements field), or X-R6-Fixture sent with a production key.
401Missing or invalid API key.
402Insufficient credits. Body includes code INSUFFICIENT_CREDITS, credits_needed, and remaining_credits.
403Organization is not authorized for Risk API v2 (for example, a v1 account, expired trial, or suspended org).
500Server error. Credits charged for a job that never started are refunded.

Example request

Example response