Create Organization (Staff)
Create an organization exactly as ChainPatrol staff do from the app: the owner and the calling staff user are added as members, default asset groups and any initial brands are created, and the website and official assets are allowlisted. Only ChainPatrol staff can call this endpoint, with a staff session or a staff user API key; organization API keys and customer accounts receive 403. The website and official assets are allowlisted automatically, except any that are currently BLOCKED: those are skipped and listed in skippedAssets.
Overview
Create a new customer organization exactly as ChainPatrol staff do from Staff → Organizations → Create in the app. In one call it:- creates the organization with the services you enable
- adds the owner (reusing an existing user with that email) as
OWNER, and the calling staff user asADMIN - creates the default asset groups and any initial brands
- creates the website as a monitored asset and allowlists it, together with any official assets you list
Authentication
Authenticate with a staff user API key in theX-API-KEY header, or a
staff session token as Authorization: Bearer <token>. Organization API keys,
customer users, and read-only staff service accounts are refused.
Example Request
Response
skippedAssets lists assets that were not added or allowlisted because they
are currently blocked, for example a known scam domain passed as an official
asset. Review them before allowlisting anything by hand.
brandAssetErrors lists brands whose official assets could not be added. The
organization and its brands are still created; add those assets again from the
app or the Add Organization Assets
endpoint.
Errors
Notes
- The request is validated with the same rules as the app’s create form, so anything the app refuses is refused here too.
- Omitted settings take the app form’s defaults: reporting, reviewing and
detection on, customer review off, and subscription status
PROSPECT. Other services stay off unless you enable them. - Enabling an automated service (for example
isAutomatedReviewingActive) requires its manual counterpart (isReviewingActive). - Official assets already owned by another organization are skipped rather than reassigned.
- Assets that are currently blocked are never added to the organization or
allowlisted, whether they come in as the website,
officialAssetsor a brand’sofficialAssets. They are listed inskippedAssetsinstead, and the organization is still created.
Authorizations
Your API key. This is required by most endpoints to access our API programatically. Reach out to us at support@chainpatrol.io to get an API key for your use.
Body
Create an organization (staff only)
Creates an organization exactly as ChainPatrol staff do from the app: the owner and the calling staff user are added as members, default asset groups and any initial brands are created, and the website and official assets are added.
Only ChainPatrol staff can call this endpoint, with a staff session or a staff user API key. Organization API keys and customer accounts receive 403.
Official assets of the organization not tied to a brand. Each is created (or claimed when unowned). URLs or pages matching the organization's or a brand's website are allowlisted automatically: a website on its own domain covers that domain, while a page on a shared provider (such as linktr.ee/acme) covers only that same page. Other URLs or pages await a person's confirmation. Social and other non-URL assets are allowlisted automatically. Assets owned by another organization are skipped, and currently BLOCKED assets are skipped and reported in skippedAssets
Create the organization as a Ranger prospect, as Ranger's own prospect setup does: every service off, no public portal, and subscriptionStatus must be PROSPECT. isReportingActive, isReviewingActive, isDetectionActive and requiresCustomerReview are forced to false, even when sent as true. Sending true for any other service flag (protection, takedowns or an automation flag) is refused. The website, officialAssets and the brands' officialAssets are filed as pending for a person to confirm, not allowlisted at once. A Ranger hunt started with organization.slug set to this slug then files its verified threats into it as pending reports
Response
Successful response
Successful operation