Destination
Create the workspace's destination — the data warehouse its jobs load into — and send its credentials.
The workspace's destination and whether it's usable: jobs load data only once has_valid_credentials and has_valid_schema are both true. 404 when no destination was created yet.
api.helpers.destination_overview.Destination.
null until the credentials are checked, then the last check's result.
The same for the destination's schema/database setup; both must be true for jobs to load data.
GET /developers/workspaces/{workspace_id}/destination/ HTTP/1.1
Host: api.erathos.com
Authorization: YOUR_API_KEY
Accept: */*
{
"destination_id": "text",
"name": "text",
"connector_id": "text",
"connector_name": "text",
"has_valid_credentials": true,
"has_valid_schema": true,
"last_successful_connection_at": "2026-01-01T00:00:00.000Z"
}Create the workspace's destination on a destination connector — a workspace has at most one. It's created without credentials: send them next to destination/credentials/ (or authorize its OAuth fields). Returns the destination as GET destination/ does.
api.helpers.destination_overview.Destination.
null until the credentials are checked, then the last check's result.
The same for the destination's schema/database setup; both must be true for jobs to load data.
POST /developers/workspaces/{workspace_id}/destination/ 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"
}{
"destination_id": "text",
"name": "text",
"connector_id": "text",
"connector_name": "text",
"has_valid_credentials": true,
"has_valid_schema": true,
"last_successful_connection_at": "2026-01-01T00:00:00.000Z"
}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}/destination/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. Runs loading into the destination are stopped.
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}/destination/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}/destination/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"
}Last updated

