Getting Started with the Cofactr Platform API: Keys, Sub-Orgs, and Sandboxes
Last updated: December 1, 2026
Connect your own systems to Cofactr over a REST API.
Read and write your BOMs, Programs, Stock, and other platform data from your own tools and in-house systems.
Looking for the full endpoint reference? See developers.cofactr.com.
In this article:
What the API is for
Get access
Make your first request
Authenticate
Work with Sub-Orgs
Sandbox Orgs
Upload a BOM
Submit orders through the API
1. What the API Is For
Capabilities: Read and write access to Cofactr Platform data such as BOMs, Programs, and Stock.
Structure: An HTTP REST API structured around the Cofactr Platform App paradigm.
Built for: Integrating Cofactr into 3rd party or custom in-house systems.
Not built for: Data science and analytics, or powering multi-tenant 3rd party products.
The Cofactr Platform and Platform API both run on Cofactr's Unified Data Layer. To learn how different data types connect, we recommend exploring the platform hands-on and using our interactive model explorer.
2. Get Access
Platform API access depends on your Cofactr plan. Usage is subject to the terms of your Subscription Agreement.
Is the API Keys tab greyed out? Your plan may not include API access. Contact success@cofactr.com to check.
Sandbox accounts are available on request for Cofactr customers and 3rd party integration partners. See section 6.
3. Make Your First Request
All requests go to this base URL:
https://flagship-api.cofactr.com/For example, to fetch all BOMs, make a GET request to:
https://flagship-api.cofactr.com/v1/boms/Include the trailing slash. Without the / at the end of the URL, the API answers with a redirect instead of your data, and POST requests will not go through. Use https://flagship-api.cofactr.com/v1/boms/, not https://flagship-api.cofactr.com/v1/boms
Detailed documentation for every endpoint is at developers.cofactr.com.
4. Authenticate
Create an API key
In Cofactr, go to Integrations > API Keys.
Click Create API Key and give the key a name.
Copy the key right away. It's shown only once.
Creating keys requires admin access to the Integrations app.
Add the key to your requests
Include an Authorization header with your API key on every request:
Authorization: Api-Key {your api key here}Api-Key is case sensitive.
Your API key gives you access to data for your account's primary Org and any of its Sub-Orgs.
Keep your API key private. Never expose your API key in front-end code or public Git repos. The Cofactr Platform API is only for server-side usage. Public disclosure of any of your API keys will result in immediate revocation of all of your API keys without prior warning.
5. Work with Sub-Orgs
By default, requests act as the primary Org tied to your API key. To make a request on behalf of a single Sub-Org, add an X-ORG-ID header with the Sub-Org's ID:
X-ORG-ID: {UUID of sub-org here}Without the header: Requests act as your primary Org, and new records are created in the primary Org.
With the header: Requests act as that Sub-Org, and new records are created in that Sub-Org. This works for both reading and creating records.
The Sub-Org must belong to the Org that owns the API key, or the request will fail.
Filtering list results by Org
Some list endpoints, such as GET /v1/boms/, also accept an org_id query parameter to filter results to a single Org:
https://flagship-api.cofactr.com/v1/boms/?org_id={UUID of org here}X-ORG-ID vs. org_id: Use the X-ORG-ID header to control which Org a request acts as and where new records are created. The org_id parameter only filters results. It does not change which Org a new record is created in.
6. Sandbox Orgs
Use a Sandbox Sub-Org for testing and development. To request one, contact success@cofactr.com.
Sandbox Sub-Orgs behave exactly like any other Sub-Org, with these exceptions:
Easy to spot: Sandbox Orgs show a 🏖 beach umbrella icon in the Active Org selector at the top of the page.
Orders aren't processed: Any Order created in a Sandbox Org stays in a requested status indefinitely.
Managed Inventory services aren't carried out: Handling Tasks and Shipments created for a Sandbox Org stay in a requested status indefinitely.
Hidden from Blended View: In Blended View Mode, or in the Warehouse App (which always uses Blended View Mode), Sandbox data is filtered out. Turn on Sandbox Mode to see only Sandbox data.
7. Upload a BOM
Uploading a BOM is one of the most common API use cases. Which endpoint you use depends on whether your parts are already matched to Cofactr IDs.
You already have a Cofactr ID for each part:
POSTthe BOM data to/v1/boms/You have raw BOM line data:
POSTit to/v1/parse_raw_bom_async/. Cofactr does its best to match each part to the correct Cofactr ID, using the same logic as uploading a CSV or Excel file in the platform. The response includes ajob_id. Check the job's progress withGET /v1/jobs/{job_id}/.You have raw BOM line data for a smaller BOM (up to 1,000 lines): You can instead
POSTto/v1/parse_raw_bom/, which returns the created BOM in the same response.
8. Submit Orders Through the API
Order execution needs a conversation first. Because API orders carry a risk of significant inadvertent charges, we need to discuss your use case before enabling order execution through the API. Contact success@cofactr.com to get started.
Still have questions? Reach out to success@cofactr.com or use the in-app chat.