Getting Your API Key
To access ChainPatrol’s APIs and services, you’ll need an API key. Here’s how to get one:- Go to your Organization Dashboard
- In the sidebar, open Developer › API Keys
- Click Create Key, pick your settings, and click Create
- Copy the key from the confirmation dialog. It is shown only once
Types of API Keys
Key Permissions
- Read only (default): Can query and export data, but cannot submit reports or make other changes
- Read & write: Full API access, including submitting reports and making changes
403 Forbidden from any endpoint that changes data, such as
Create Report. A key’s permission can’t be changed after
it is created, so create a new Read & write key and revoke the old one. Integration
organizations can only create read-only keys; email
support@chainpatrol.io if yours needs write access.
Organization vs User Keys
-
Organization Keys: Grant organization-level attribution
- Reports submitted with organization keys are attributed to a machine user
- Best for automated systems, integrations, and organization-level workflows
- Ideal for bots, automated reporting systems, and CI/CD pipelines
-
User Keys: Grant user-level attribution
- Reports submitted with user keys are attributed directly to your user account
- Best for personal use and when individual accountability is needed
- Ideal for manual reporting and personal tooling
Test vs Live Keys
ChainPatrol provides both test and live environments to help you develop and test your integration safely.-
Test Keys: For distinguishing when being used in development and testing
- Use in development environments
- These keys still affect production data
-
Live Keys: For production use
- Use in production environments
- Affects real data and reports
- Required for actual threat detection and reporting
API Key Format
ChainPatrol API keys follow this format:- Always start with the prefix
cp_ - Are unique to your organization
- Should be kept secure and not shared publicly
Using Your API Key
When making API requests to ChainPatrol, include your API key in the request headers:Support
If you need help with your API key or have any questions, you can:- Email us at engineering@chainpatrol.io
- Visit our documentation for more information about our APIs