Connections
Create source connections, send their credentials, choose their settings and see where their setup stands.
Connections
The workspace's source connections and where each stands. setup_status is the connection's next setup step — poll it after sending credentials or settings: validating means a background check (e.g. reading its tables) is still running.
A page number within the paginated result set.
Number of results to return per page.
50311052GET /developers/workspaces/{workspace_id}/connections/ HTTP/1.1
Host: api.erathos.com
Authorization: YOUR_API_KEY
Accept: */*
{
"count": 50,
"next_page": 3,
"previous_page": 1,
"page_size": 10,
"total_pages": 5,
"current_page": 2,
"results": [
{
"connection_id": "text",
"name": "text",
"source_connector_id": "text",
"source_connector_name": "text",
"pipeline_id": "text",
"active_jobs": 1,
"failed_jobs": 1,
"show_warning": true,
"has_valid_credentials": true,
"last_successful_connection_at": "2026-01-01T00:00:00.000Z",
"setup_status": "awaiting_credentials",
"running_validation": "text"
}
]
}Create a source connection on a source connector. It's created without credentials: send them next to its credentials/ (or authorize its OAuth fields), then configure its jobs. Returns the connection as GET connections/<connection_id>/ does.
null until the credentials are checked, then the last check's result.
awaiting_credentials- awaiting_credentialslost_authentication- lost_authenticationvalidating- validatingneeds_settings- needs_settingsno_options_available- no_options_availableschema_unavailable- schema_unavailableready_for_jobs- ready_for_jobsno_destination- no_destinationconfigured- configured
What the background check is doing.
POST /developers/workspaces/{workspace_id}/connections/ HTTP/1.1
Host: api.erathos.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 69
{
"connector_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
}{
"connection_id": "text",
"name": "text",
"source_connector_id": "text",
"source_connector_name": "text",
"pipeline_id": "text",
"active_jobs": 1,
"failed_jobs": 1,
"show_warning": true,
"has_valid_credentials": true,
"last_successful_connection_at": "2026-01-01T00:00:00.000Z",
"setup_status": "awaiting_credentials",
"running_validation": "text"
}Where one connection stands. setup_status is the connection's next setup step — poll it after sending credentials or settings: validating means a background check (e.g. reading its tables) is still running.
null until the credentials are checked, then the last check's result.
awaiting_credentials- awaiting_credentialslost_authentication- lost_authenticationvalidating- validatingneeds_settings- needs_settingsno_options_available- no_options_availableschema_unavailable- schema_unavailableready_for_jobs- ready_for_jobsno_destination- no_destinationconfigured- configured
What the background check is doing.
GET /developers/workspaces/{workspace_id}/connections/{connection_id}/ HTTP/1.1
Host: api.erathos.com
Authorization: YOUR_API_KEY
Accept: */*
{
"connection_id": "text",
"name": "text",
"source_connector_id": "text",
"source_connector_name": "text",
"pipeline_id": "text",
"active_jobs": 1,
"failed_jobs": 1,
"show_warning": true,
"has_valid_credentials": true,
"last_successful_connection_at": "2026-01-01T00:00:00.000Z",
"setup_status": "awaiting_credentials",
"running_validation": "text"
}Credentials
Each field is identified by its _id. A hidden field (a secret) is write-only, and a file's content is never returned — only its filename.
null until the credentials are checked — right after a change.
GET /developers/workspaces/{workspace_id}/connections/{connection_id}/credentials/ HTTP/1.1
Host: api.erathos.com
Authorization: YOUR_API_KEY
Accept: */*
{
"has_valid_credentials": true,
"auth_fields": [
{
"_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text",
"example": "text",
"is_hidden": true,
"is_required": true,
"value": "text"
}
],
"advanced_auth_fields": [
{
"_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text",
"example": "text",
"is_hidden": true,
"is_required": true,
"value": "text"
}
],
"oauth_fields": [
{
"_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"is_custom_oauth": true,
"oauth_value_id": "123e4567-e89b-12d3-a456-426614174000"
}
],
"connector_files": [
{
"_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text",
"accepted_extensions": null,
"kilobyte_size_limit": 1,
"is_required": true,
"existing_filename": "text"
}
],
"advanced_connector_files": [
{
"_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text",
"accepted_extensions": null,
"kilobyte_size_limit": 1,
"is_required": true,
"existing_filename": "text"
}
],
"bigquery_regions": [
{
"region_name": "text",
"region_key": "text",
"subscription_block": true
}
]
}Only what's sent changes; a field left out keeps its saved value. Files go base64-encoded. The credentials are checked in the background: has_valid_credentials is null until then. OAuth fields are authorized through oauth/<oauth_field_id>/authorizations/ instead.
Only what's sent changes: a field left out keeps its saved value.
null until the credentials are checked — right after a change.
PATCH /developers/workspaces/{workspace_id}/connections/{connection_id}/credentials/ HTTP/1.1
Host: api.erathos.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 179
{
"auth_fields": [
{
"_id": "123e4567-e89b-12d3-a456-426614174000",
"value": "text"
}
],
"connector_files": [
{
"_id": "123e4567-e89b-12d3-a456-426614174000",
"value": "text",
"filename": "text"
}
]
}{
"has_valid_credentials": true,
"auth_fields": [
{
"_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text",
"example": "text",
"is_hidden": true,
"is_required": true,
"value": "text"
}
],
"advanced_auth_fields": [
{
"_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text",
"example": "text",
"is_hidden": true,
"is_required": true,
"value": "text"
}
],
"oauth_fields": [
{
"_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"is_custom_oauth": true,
"oauth_value_id": "123e4567-e89b-12d3-a456-426614174000"
}
],
"connector_files": [
{
"_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text",
"accepted_extensions": null,
"kilobyte_size_limit": 1,
"is_required": true,
"existing_filename": "text"
}
],
"advanced_connector_files": [
{
"_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text",
"accepted_extensions": null,
"kilobyte_size_limit": 1,
"is_required": true,
"existing_filename": "text"
}
],
"bigquery_regions": [
{
"region_name": "text",
"region_key": "text",
"subscription_block": true
}
]
}Start authorizing one of the connection's OAuth fields (listed by its credentials). Send the end user to authorization_url: they sign in with the provider, Erathos receives the authorization and saves it on the connection, then sends them to return_url — or shows a page saying they can close the window. Its status (pending/success/error) is also here, and the connection's credentials show the field's oauth_value_id once authorized. For a connector using the customer's own OAuth app, save the app's credentials (its auth fields) first.
Where to send the end user once done (https; http only for localhost), with status, connection_id, authorization_id and, on failure, error (a code: authorization_failed or save_failed) added to its query. Without one, they see a page saying they can close the window.
Send the end user here; valid until expires_at, used once.
pending- PENDINGsuccess- SUCCESSerror- ERROR
Why it failed, as a code; error_message describes it.
authorization_failed- authorization_failedsave_failed- save_failed
authorization_failed- authorization_failedsave_failed- save_failed
POST /developers/workspaces/{workspace_id}/connections/{connection_id}/oauth/{oauth_field_id}/authorizations/ HTTP/1.1
Host: api.erathos.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 21
{
"return_url": "text"
}{
"_id": "123e4567-e89b-12d3-a456-426614174000",
"_created_at": "2026-01-01T00:00:00.000Z",
"connection_id": "123e4567-e89b-12d3-a456-426614174000",
"oauth_field_id": "123e4567-e89b-12d3-a456-426614174000",
"authorization_url": "text",
"return_url": "text",
"expires_at": "2026-01-01T00:00:00.000Z",
"status": "pending",
"error": "authorization_failed",
"error_message": "text",
"completed_at": "2026-01-01T00:00:00.000Z"
}Send the end user here; valid until expires_at, used once.
pending- PENDINGsuccess- SUCCESSerror- ERROR
Why it failed, as a code; error_message describes it.
authorization_failed- authorization_failedsave_failed- save_failed
authorization_failed- authorization_failedsave_failed- save_failed
GET /developers/workspaces/{workspace_id}/oauth-authorizations/{_id}/ HTTP/1.1
Host: api.erathos.com
Authorization: YOUR_API_KEY
Accept: */*
{
"_id": "123e4567-e89b-12d3-a456-426614174000",
"_created_at": "2026-01-01T00:00:00.000Z",
"connection_id": "123e4567-e89b-12d3-a456-426614174000",
"oauth_field_id": "123e4567-e89b-12d3-a456-426614174000",
"authorization_url": "text",
"return_url": "text",
"expires_at": "2026-01-01T00:00:00.000Z",
"status": "pending",
"error": "authorization_failed",
"error_message": "text",
"completed_at": "2026-01-01T00:00:00.000Z"
}Settings
A connection's settings and, for choice settings, the options to pick from (paged per setting with limit/offset; name searches them). options_loaded=false means the options haven't been loaded yet — the connection needs working credentials first. A connector with no settings returns none: configure its jobs directly.
Options per setting.
20Searches the options.
0GET /developers/workspaces/{workspace_id}/connections/{connection_id}/settings/ HTTP/1.1
Host: api.erathos.com
Authorization: YOUR_API_KEY
Accept: */*
{
"connection_id": "text",
"is_configured": true,
"running_validation": "text",
"settings": [
{
"setting_id": "text",
"name": "text",
"description": "text",
"example": "text",
"data_type": "text",
"accept_multiple_values": true,
"is_required": true,
"edit_mode": "locked",
"current_values": [
"text"
],
"options": [
{
"option_id": "text",
"value": "text"
}
],
"options_loaded": true,
"options_has_more": true
}
],
"options_missing": "text"
}Choose a connection's settings, once its credentials are valid. The first call chooses them (every required one) and creates the connection's pipeline. After that, a locked setting can't change (a different value means a new connection), and an append setting only gains values — send just the new ones. Repeating a call changes nothing. background_work_queued: new values are being read (e.g. new files as tables); configuring jobs waits for it.
Names the connection's pipeline, on the first call.
POST /developers/workspaces/{workspace_id}/connections/{connection_id}/settings/ HTTP/1.1
Host: api.erathos.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 100
{
"settings": [
{
"setting_id": "123e4567-e89b-12d3-a456-426614174000",
"values": [
"text"
]
}
],
"name": "text"
}{
"connection_id": "text",
"pipeline_name": "text",
"created": true,
"settings": [
{
"setting_id": "text",
"name": "text",
"values": [
"text"
],
"edit_mode": "text"
}
],
"added": [
{
"setting_id": "text",
"name": "text",
"values": [
"text"
],
"edit_mode": "text"
}
],
"background_work_queued": true
}Tables, endpoints and fields
A database connection's tables — their table_id is what configuring jobs selects by. Only tables whose columns were read are listed.
Substring search.
A page number within the paginated result set.
Number of results to return per page.
50311052GET /developers/workspaces/{workspace_id}/connections/{connection_id}/tables/ HTTP/1.1
Host: api.erathos.com
Authorization: YOUR_API_KEY
Accept: */*
{
"count": 50,
"next_page": 3,
"previous_page": 1,
"page_size": 10,
"total_pages": 5,
"current_page": 2,
"results": [
{
"table_id": "text",
"connection_id": "text",
"schema_name": "text",
"name": "text"
}
]
}A database connection's schemas with their table counts — a cheap first look before selecting whole schemas (schema_names) when configuring jobs.
A page number within the paginated result set.
Number of results to return per page.
50311052GET /developers/workspaces/{workspace_id}/connections/{connection_id}/tables/schemas/ HTTP/1.1
Host: api.erathos.com
Authorization: YOUR_API_KEY
Accept: */*
{
"count": 50,
"next_page": 3,
"previous_page": 1,
"page_size": 10,
"total_pages": 5,
"current_page": 2,
"results": [
{
"schema_name": "text",
"table_count": 1
}
]
}The columns of a database connection's tables (table_id narrows to one), each naming its table — to choose a cursor_column, or columns to exclude or anonymize, when configuring jobs. cursor_candidates_only=true keeps the columns usable to track changes by.
Only columns usable to track changes by (a cursor_column).
falseSubstring of the type the database reports (e.g. 'date').
Substring search.
A page number within the paginated result set.
Number of results to return per page.
One table's columns; omit for all of them.
50311052GET /developers/workspaces/{workspace_id}/connections/{connection_id}/tables/columns/ HTTP/1.1
Host: api.erathos.com
Authorization: YOUR_API_KEY
Accept: */*
{
"count": 50,
"next_page": 3,
"previous_page": 1,
"page_size": 10,
"total_pages": 5,
"current_page": 2,
"results": [
{
"column_id": "text",
"connection_id": "text",
"table_id": "text",
"schema_name": "text",
"table_name": "text",
"name": "text",
"field_type": "text",
"is_nullable": true,
"example": "text",
"description": "text",
"comments": "text",
"is_primary_key": true,
"is_cursor_available": true
}
]
}An API connection's endpoints (e.g. deals, contacts) — their endpoint_id is what configuring jobs selects by. parent_endpoint_id walks the hierarchy; has_children_endpoints says whether an endpoint has any.
Substring search.
A page number within the paginated result set.
Number of results to return per page.
Only the direct children of this endpoint.
50311052GET /developers/workspaces/{workspace_id}/connections/{connection_id}/endpoints/ HTTP/1.1
Host: api.erathos.com
Authorization: YOUR_API_KEY
Accept: */*
{
"count": 50,
"next_page": 3,
"previous_page": 1,
"page_size": 10,
"total_pages": 5,
"current_page": 2,
"results": [
{
"endpoint_id": "text",
"connector_id": "text",
"name": "text",
"parent_endpoint_id": "text",
"description": "text",
"has_children_endpoints": true,
"has_custom_fields": true
}
]
}The base fields of an API connection's endpoints (endpoint_id narrows to one), each naming its endpoint. The connection's own custom fields are listed separately.
Substring search.
A page number within the paginated result set.
Number of results to return per page.
50311052GET /developers/workspaces/{workspace_id}/connections/{connection_id}/endpoint-fields/ HTTP/1.1
Host: api.erathos.com
Authorization: YOUR_API_KEY
Accept: */*
{
"count": 50,
"next_page": 3,
"previous_page": 1,
"page_size": 10,
"total_pages": 5,
"current_page": 2,
"results": [
{
"field_id": "text",
"connector_id": "text",
"endpoint_id": "text",
"endpoint_name": "text",
"name": "text",
"field_type": "text",
"is_nullable": true,
"example": "text",
"description": "text",
"is_primary_key": true,
"is_cursor_available": true
}
]
}An API connection's own custom fields (e.g. a CRM's custom properties), beyond its endpoints' base fields — endpoint_id narrows to those one endpoint picks up.
Substring search.
A page number within the paginated result set.
Number of results to return per page.
50311052GET /developers/workspaces/{workspace_id}/connections/{connection_id}/custom-fields/ HTTP/1.1
Host: api.erathos.com
Authorization: YOUR_API_KEY
Accept: */*
{
"count": 50,
"next_page": 3,
"previous_page": 1,
"page_size": 10,
"total_pages": 5,
"current_page": 2,
"results": [
{
"field_id": "text",
"connection_id": "text",
"field_key": "text",
"name": "text",
"field_type": "text",
"is_nullable": true,
"example": "text",
"description": "text",
"endpoint": "text"
}
]
}Jobs
Create or edit a connection's jobs (tables for a database, endpoints for an API), applying one set of settings to a whole selection; call again for other groups. A dry run by default: send dry_run=false to save. Every setting is optional — an existing job keeps its value, a new one gets the recommendation (syncing daily at 03:00). The response lists the resulting job groups, the tables needing a decision (e.g. a cursor column to sync incrementally) and per-table errors.
Tables to configure (database connections).
Endpoints to configure (API connections).
Existing jobs to configure.
Schemas whose tables to configure; null stands for tables outside any schema.
falseall- allexisting_only- existing_onlynew_only- new_only
recommended- recommendedfull- fullincremental_append- incremental_appendincremental_overwrite- incremental_overwriteincremental_versioned- incremental_versioned
append- appendoverwrite- overwriteversioned- versioned
HH:MM in the user's timezone.
never- neverevery_day- every_daysunday- sundaymonday- mondaytuesday- tuesdaywednesday- wednesdaythursday- thursdayfriday- fridaysaturday- saturday
sunday- sundaymonday- mondaytuesday- tuesdaywednesday- wednesdaythursday- thursdayfriday- fridaysaturday- saturday
skip- skipfull- full
HH:MM in the user's timezone.
Only preview the changes (the default); send false to save them.
trueexisting- existingcreated- createdwill_create- will_create
POST /developers/workspaces/{workspace_id}/connections/{connection_id}/jobs/configure/ HTTP/1.1
Host: api.erathos.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 712
{
"table_ids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"endpoint_ids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"job_ids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"schema_names": [
"text"
],
"name_contains": "text",
"select_all": false,
"scope": "all",
"sync_type": "recommended",
"incremental_mode": "overwrite",
"sync_frequency_id": "123e4567-e89b-12d3-a456-426614174000",
"sync_time": "text",
"full_reload": "never",
"weekly_run_day": "sunday",
"cursor_column": null,
"on_incremental_unavailable": "skip",
"fallback_sync_frequency_id": "123e4567-e89b-12d3-a456-426614174000",
"fallback_sync_time": "text",
"columns": {
"exclude": [
"text"
],
"include": [
"text"
],
"anonymize": [
"text"
],
"deanonymize": [
"text"
]
},
"enabled": true,
"cdc": true,
"dry_run": true
}{
"dry_run": true,
"pipeline": "existing",
"summary": [
{
"sync_type": "full",
"cursor_columns": [
"text"
],
"cdc": true,
"enabled": true,
"is_new": true,
"sync_frequency": "text",
"sync_time": "text",
"schedule": "text",
"count": 1,
"names": [
"text"
],
"explanation": "text",
"updated_through": "text"
}
],
"unchanged": 1,
"fell_back_to_full": {
"count": 1,
"reason_counts": {
"ANY_ADDITIONAL_PROPERTY": 1
},
"explanation": "text"
},
"needs_decision": [
{
"entity_id": "text",
"name": "text",
"reason": "text",
"options": [
"text"
],
"explanation": "text"
}
],
"needs_decision_total": 1,
"full_only": {
"count": 1,
"reason_counts": {
"ANY_ADDITIONAL_PROPERTY": 1
},
"explanation": "text"
},
"impacts": [
{
"kind": "text",
"count": 1,
"explanation": "text"
}
],
"added_ancestors": [
"text"
],
"overridden_by_parent": 1,
"columns_not_present_on": 1,
"errors": [
{
"entity_id": "text",
"name": "text",
"messages": [
"text"
]
}
],
"plan": {
"active_jobs_after": 1,
"jobs_limit": 1,
"over_limit": true
},
"timezone": "text",
"removed_from_source": [
{
"job_id": "text",
"name": "text",
"enabled": true
}
]
}Enable the connection's jobs, or just job_ids. Enabling a job also enables its ancestors, like the platform does. Jobs are admitted in order against the plan's job limit, so a call may partly succeed: what wasn't enabled is in skipped, with why.
Only these jobs; omit for all of the connection's.
POST /developers/workspaces/{workspace_id}/connections/{connection_id}/jobs/enable/ HTTP/1.1
Host: api.erathos.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 52
{
"job_ids": [
"123e4567-e89b-12d3-a456-426614174000"
]
}{
"enabled": [
{
"job_id": "text",
"connection_id": "text",
"cascaded_job_ids": [
"text"
]
}
],
"skipped": [
{
"job_id": "text",
"reason": "not_found",
"detail": "text"
}
]
}Disable the connection's jobs, or just job_ids. Disabling a job also disables every job beneath it and cancels their queued next runs (a run already executing goes on). A job already disabled is in skipped.
Only these jobs; omit for all of the connection's.
POST /developers/workspaces/{workspace_id}/connections/{connection_id}/jobs/disable/ HTTP/1.1
Host: api.erathos.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 52
{
"job_ids": [
"123e4567-e89b-12d3-a456-426614174000"
]
}{
"disabled": [
{
"job_id": "text",
"connection_id": "text",
"cascaded_job_ids": [
"text"
]
}
],
"skipped": [
{
"job_id": "text",
"reason": "not_found",
"detail": "text"
}
]
}Runs
Queue a run of the connection's active jobs now — or of just job_ids. force_full_refresh reloads incremental jobs' full history. Runs then show in the workspace's jobs.
Whether to force a full refresh on incremental jobs.
falsefalse[]No response body
No content
POST /developers/workspaces/{workspace_id}/connections/{connection_id}/run/ HTTP/1.1
Host: api.erathos.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 140
{
"raw_cursor": "text",
"timestamp_cursor": "2026-01-01T00:00:00.000Z",
"enable_delete": false,
"job_ids": [
"123e4567-e89b-12d3-a456-426614174000"
]
}No content
Cancel the connection's queued, waiting and executing runs — or just those of job_ids. 400 when none is in a cancelable state.
No response body
No content
DELETE /developers/workspaces/{workspace_id}/connections/{connection_id}/cancel/ HTTP/1.1
Host: api.erathos.com
Authorization: YOUR_API_KEY
Accept: */*
No content
Last updated

