Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Destination

Create the workspace's destination — the data warehouse its jobs load into — and send its credentials.

Get destination

get

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.

Authorizations
AuthorizationstringRequired
Path parameters
workspace_idstring · uuidRequired
Responses
200Success
application/json

api.helpers.destination_overview.Destination.

destination_idstringRequired
namestringRequired
connector_idstringRequired
connector_namestringRequired
has_valid_credentialsboolean · nullableRequired

null until the credentials are checked, then the last check's result.

has_valid_schemaboolean · nullableRequired

The same for the destination's schema/database setup; both must be true for jobs to load data.

last_successful_connection_atstring · date-time · nullableRequired
get/developers/workspaces/{workspace_id}/destination/
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 destination

post

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.

Authorizations
AuthorizationstringRequired
Path parameters
workspace_idstring · uuidRequired
Body
connector_idstring · uuidRequired
namestringRequired
Responses
201Success
application/json

api.helpers.destination_overview.Destination.

destination_idstringRequired
namestringRequired
connector_idstringRequired
connector_namestringRequired
has_valid_credentialsboolean · nullableRequired

null until the credentials are checked, then the last check's result.

has_valid_schemaboolean · nullableRequired

The same for the destination's schema/database setup; both must be true for jobs to load data.

last_successful_connection_atstring · date-time · nullableRequired
post/developers/workspaces/{workspace_id}/destination/
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"
}

Get destination credentials

get

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.

Authorizations
AuthorizationstringRequired
Path parameters
workspace_idstring · uuidRequired
Responses
200Success
application/json
has_valid_credentialsboolean · nullableRequired

null until the credentials are checked — right after a change.

get/developers/workspaces/{workspace_id}/destination/credentials/
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
    }
  ]
}

Set destination credentials

patch

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.

Authorizations
AuthorizationstringRequired
Path parameters
workspace_idstring · uuidRequired
Body

Only what's sent changes: a field left out keeps its saved value.

Responses
200Success
application/json
has_valid_credentialsboolean · nullableRequired

null until the credentials are checked — right after a change.

patch/developers/workspaces/{workspace_id}/destination/credentials/
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
    }
  ]
}

Authorize destination OAuth

post

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.

Authorizations
AuthorizationstringRequired
Path parameters
oauth_field_idstring · uuidRequired
workspace_idstring · uuidRequired
Body
return_urlstringOptional

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.

Responses
201Success
application/json
_idstring · uuidRead-onlyRequired
_created_atstring · date-timeRead-onlyRequired
connection_idstring · uuidRequired
oauth_field_idstring · uuidRead-onlyRequired
authorization_urlstringRead-onlyRequired

Send the end user here; valid until expires_at, used once.

return_urlstring · nullableOptional
expires_atstring · date-timeRequired
statusstring · enumOptional
  • pending - PENDING
  • success - SUCCESS
  • error - ERROR
Possible values:
errorone of · nullableRequired

Why it failed, as a code; error_message describes it.

  • authorization_failed - authorization_failed
  • save_failed - save_failed
string · enumOptional
  • authorization_failed - authorization_failed
  • save_failed - save_failed
Possible values:
or
undefined · enumOptionalPossible values:
error_messagestring · nullableRead-onlyRequired
completed_atstring · date-time · nullableOptional
post/developers/workspaces/{workspace_id}/destination/oauth/{oauth_field_id}/authorizations/
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