Skip to main content
This guide walks you through making your first API call — from obtaining an API key to fetching contacts from a connected CRM or invoices from a connected accounting system.

Prerequisites

You’ll need an API key (sk_live_* or sk_test_*) from the RouteMCP dashboard. If you don’t have one yet, sign up at the dashboard and generate a key from the API Keys page.

1. Connect a Provider

Your end users need to authorize their CRM or accounting account before you can access their data. Create a connect token from your backend and use it to launch the Connect widget in their browser.
Response:
Use the token to launch the Connect widget in your frontend:
The widget guides your end user through authorizing their CRM (e.g., HubSpot, Zoho) or accounting system (e.g., QuickBooks Online). See the Connect Widget guide for full integration details.

2. Fetch Contacts

Once a provider is connected, fetch contacts through the unified API. The X-End-User-Id header is required on all resource endpoints — it identifies which end user’s connections to query:
This fans out to all connected providers for that end user. To query a specific provider, add the provider parameter:
Response:
The response format is always the same unified schema, regardless of which provider the data comes from.

3. Create a Contact

To write data, specify which provider to create the record in:

4. Work with Other Resources

The same pattern applies to all supported resource types. All endpoints require the X-End-User-Id header, and write operations require the provider query parameter:
Writable resources: contact, lead, deal, meeting, company, note, task, activity, appointment Read-only resources: owner, pipeline — list and get only, cannot be created or modified.

Next Steps