Connecting any SaaS with the REST API connector
Pravadh MW ships with Salesforce and Postgres connectors written specifically for those systems -- but the product isn't limited to two systems. The REST API connector talks to anything with a JSON REST API and a token, so you're not waiting on a named integration to exist before you can connect something.
When to use it
If the system you want to connect has a REST API (almost everything does) and takes a bearer token, an API key header, or basic auth, you can wire it up right now under Connectors -> Add a connection -> REST API (any SaaS). No new code, no waiting on a dedicated connector to ship.
What you need to know about the target API
Filling in the form takes five pieces of information you'll find in any API's documentation:
- Base URL -- the API's root, e.g.
https://api.hubapi.com - Auth type --
bearer,api_key_header,basic, ornone, plus the token/key itself - Records path -- where the list of records sits in a response. If
the API returns
{"results": [...]}, that'sresults. If it returns a bare JSON array, leave this blank. - Write body encoding --
json(most APIs) orform(a few older ones, notably Stripe) - Resource -- the path you're reading from or writing to, e.g.
/crm/v3/objects/contacts. This is set per connection (or overridden per flow), the same way Salesforce's resource is an object name and Postgres's is a table name.
Presets for common systems
The connector form has one-click presets for HubSpot, Stripe, and Slack that fill in the base URL, auth type, records path, and body encoding for you -- you still paste your own token or key, and every field stays editable if your setup differs from the default.
- HubSpot -- bearer auth with a private app access token; paginates
automatically via
paging.next.after. - Stripe -- basic auth with your secret key as the username (leave the password blank); form-encoded writes, since that's what Stripe's API expects. Pagination isn't automatic for Stripe yet -- a read returns one page.
- Slack -- bearer auth with a bot token. The records path depends on
which Slack method you call (
channelsforconversations.list, something else for other methods) -- change it if you're not using the preset's default endpoint.
These are starting points, not fully hand-tested native integrations for each product -- if a particular endpoint's shape doesn't match what's assumed here (a different pagination style, a nested records path), the fields are all plain text, so adjust them to match what that endpoint actually returns.
What doesn't fit here yet
Some APIs use request-signing schemes the generic connector doesn't support -- NetSuite's OAuth1/token-based auth is the clearest example. If you need one of those, that's a case for a dedicated connector rather than the REST API connector; it's a real per-system integration, not a config difference.
How schema introspection works here
There's no universal "describe this resource" call for an arbitrary REST API, so this connector infers a schema by reading a real sample of records and looking at their shape -- the same "read the live system, don't guess" principle behind the Salesforce and Postgres connectors, just applied to JSON instead of a formal schema endpoint. That means self-healing and drift detection work here too: if a field disappears from the response, that's schema drift like any other connector.