Make your first Raptor Comply API call in under five minutes. List your facilities with curl, Node.js, or Python using your API key.This guide walks you through making your first Raptor Comply API call - listing the facilities in your organization. You’ll be up and running in under five minutes. Before you start, make sure you have your API key. If you haven’t generated one yet, see Authentication to get it from your Organization Admin.
Set your API key
Visit the Settings page (https://app.raptorcomply.com/settings) in Raptor Comply. Note: only Organization Admins can access this page. Export your API key as an environment variable. This keeps your credential out of your code and command history.Replace the placeholder with your actual API key. Every example in this guide reads from this variable.
Inspect the response
A successful Each object includes a stable
200 OK response returns a JSON array of the facilities your API key has access to:id you can use to fetch that facility’s detail record, drill into its associated cyber systems, or scope subsequent queries. Hold on to these IDs, you’ll use them throughout your integration.Next steps
Now that you can list facilities, here are the natural next moves:
- Drill into a facility’s cyber systems. Use a facility
idto queryGET /cyber-systemsand see the CIP-classified systems associated with that location. - Create a cyber asset.
POST /cyber-assetssupports full asset creation, use this to push new assets from your CMDB into Raptor Comply. See the Cyber Assets reference for the full request schema. - Set up a continuous sync. If you’re building a recurring integration between Raptor Comply and a CMDB or CMMS, see the CMDB sync guide for a recommended pattern using the full cyber asset CRUD surface.
If you receive a
401 Unauthorized response, double-check that the X-API-Key header is present in your request and that your API key has not expired. See Authentication for the full list of error shapes and how to resolve each one.