Creates a Pipeline with the specified Source, Destination, and Pipeline settings.
You can create a Pipeline for any Source if you can send its credentials in the request. The credentials are of three types:
- Static token: The Source authenticates with a credential that does not expire, such as a Stripe API key or a HubSpot private app token. Send it in
config. - Your own OAuth app: The Source authenticates with OAuth, and you supply the credentials of an OAuth app that you own. This works for the OAuth connectors that Hevo can authorize through the API. A request that sends
authfor a connector that does not authorize with OAuth, or for one that Hevo cannot authorize this way, returns a400. - Database credentials: The Source is a database, such as MySQL or PostgreSQL. Send its host, port, user, password and database name in
config.
To use your own OAuth app, send its credentials in the auth object. Refer to Authenticating SaaS Sources for more information about the credentials that each Source accepts.
You cannot create a Pipeline for a Source that requires you to sign in through a browser. Such a request returns a 400.
Replication does not start by default. The create_disabled value defaults to true, so Hevo creates the Pipeline in a disabled state. Enable it with the Enable a Pipeline endpoint once you are satisfied with it.
Hevo validates the whole request before it writes anything. If you send auth, Hevo first obtains a token. It then tests the Source and Destination connections in parallel, and waits up to five minutes for each. If a test fails, the request returns a 400 with the connector’s reason, and nothing is saved. The 200 response returns once the Pipeline is configured, before Hevo reads the Source schema. Until Hevo has read the Source schema, the object list can be empty and source_schema_status can be incomplete. Before you select objects by name or enable the Pipeline, call Get Details of a Pipeline or List All Pipeline Objects and wait until the schema is ready.
Refer to Creating a Pipeline with Hevo API for more information about the steps for creating a Pipeline.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
400The Pipeline could not be created. This occurs when:
- The Source requires you to sign in through a browser.
- A credential is rejected by the Source.
- A required field for the selected authentication method is missing.
- The
include_all_objectsvalue is false whilecreate_disabledis false. - The Pipeline name is already in use.
- The request has no body.
- A required field or block is missing, or a value fails validation.
403You do not have the permission to create a Pipeline. Creating a Destination along with the Pipeline also needs the permission to create a Destination, which Hevo checks before it validates the body.
404The Destination could not be found. This occurs when:
- No Destination exists with the specified
destination_id. - The Destination is in a different region from the base URL that you call.
500Hevo could not complete the request. This occurs when:
- A connection test is still running after five minutes.
- You send
authand the OAuth provider is unavailable.
A request that the OAuth provider rate-limits returns a 429.