sql-sources
GET
https://hermetica.15.204.158.166.sslip.io /v1/sql-sources Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermetica.15.204.158.166.sslip.io/v1/sql-sources" \
-H "Authorization: Bearer $SSLIP_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"kind": "postgres",
"name": "string",
"query": "string",
"target": "profiles",
"objectType": "string",
"mapping": {
"email": "string",
"phone": "string",
"externalId": "string",
"firstName": "string",
"lastName": "string",
"columns": [
"string"
],
"eventName": "string",
"eventNameFixed": "string",
"occurredAt": "string",
"dedupeKey": "string",
"objectName": "string",
"objectExternalId": "string"
},
"cursorColumn": "string",
"cursorValue": "string",
"everyMinutes": 0,
"timeoutMs": 0,
"maxRows": 0,
"enabled": true,
"lastRunAt": "2024-01-01T00:00:00Z",
"lastRowCount": 0,
"lastError": "string",
"createdAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsobject[]requiredShow child parameters
idstringrequiredkindstringrequirednamestringrequiredquerystringrequiredtargetstringrequiredobjectTypestringrequiredmappingobjectrequiredShow child parameters
emailstringphonestringexternalIdstringfirstNamestringlastNamestringcolumnsstring[]eventNamestringeventNameFixedstringoccurredAtstringdedupeKeystringobjectNamestringobjectExternalIdstringcursorColumnstringrequiredcursorValuestringrequiredeveryMinutesintegerrequiredtimeoutMsintegerrequiredmaxRowsintegerrequiredenabledbooleanrequiredlastRunAtstringrequiredlastRowCountintegerrequiredlastErrorstringrequiredcreatedAtstringrequirednextCursorstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermetica.15.204.158.166.sslip.io /v1/sql-sources Add a scheduled SELECT; only SELECT statements are accepted
Request body
application/json
kindstringrequirednamestringrequiredcredentialsobjectrequiredquerystringrequiredtargetstringrequiredobjectTypestringmappingobjectrequiredShow child parameters
emailstringphonestringexternalIdstringfirstNamestringlastNamestringcolumnsstring[]eventNamestringeventNameFixedstringoccurredAtstringdedupeKeystringobjectNamestringobjectExternalIdstringcursorColumnstringeveryMinutesintegertimeoutMsintegermaxRowsintegerenabledboolean{
"kind": "postgres",
"name": "string",
"credentials": {},
"query": "string",
"target": "profiles",
"objectType": "string",
"mapping": {
"email": "string",
"phone": "string",
"externalId": "string",
"firstName": "string",
"lastName": "string",
"columns": [
"string"
],
"eventName": "string",
"eventNameFixed": "string",
"occurredAt": "string",
"dedupeKey": "string",
"objectName": "string",
"objectExternalId": "string"
},
"cursorColumn": "string",
"everyMinutes": 0,
"timeoutMs": 0,
"maxRows": 0,
"enabled": true
}Code samples
cURL
curl -X POST "https://hermetica.15.204.158.166.sslip.io/v1/sql-sources" \
-H "Authorization: Bearer $SSLIP_API_KEY" \
-H "Content-Type: application/json" \
-d '{"kind":"postgres","name":"string","credentials":{},"query":"string","target":"profiles","objectType":"string","mapping":{"email":"string","phone":"string","externalId":"string","firstName":"string","lastName":"string","columns":["string"],"eventName":"string","eventNameFixed":"string","occurredAt":"string","dedupeKey":"string","objectName":"string","objectExternalId":"string"},"cursorColumn":"string","everyMinutes":0,"timeoutMs":0,"maxRows":0,"enabled":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"kind": "postgres",
"name": "string",
"query": "string",
"target": "profiles",
"objectType": "string",
"mapping": {
"email": "string",
"phone": "string",
"externalId": "string",
"firstName": "string",
"lastName": "string",
"columns": [
"string"
],
"eventName": "string",
"eventNameFixed": "string",
"occurredAt": "string",
"dedupeKey": "string",
"objectName": "string",
"objectExternalId": "string"
},
"cursorColumn": "string",
"cursorValue": "string",
"everyMinutes": 0,
"timeoutMs": 0,
"maxRows": 0,
"enabled": true,
"lastRunAt": "2024-01-01T00:00:00Z",
"lastRowCount": 0,
"lastError": "string",
"createdAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequiredkindstringrequirednamestringrequiredquerystringrequiredtargetstringrequiredobjectTypestringrequiredmappingobjectrequiredShow child parameters
emailstringphonestringexternalIdstringfirstNamestringlastNamestringcolumnsstring[]eventNamestringeventNameFixedstringoccurredAtstringdedupeKeystringobjectNamestringobjectExternalIdstringcursorColumnstringrequiredcursorValuestringrequiredeveryMinutesintegerrequiredtimeoutMsintegerrequiredmaxRowsintegerrequiredenabledbooleanrequiredlastRunAtstringrequiredlastRowCountintegerrequiredlastErrorstringrequiredcreatedAtstringrequiredGET
https://hermetica.15.204.158.166.sslip.io /v1/sql-sources/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermetica.15.204.158.166.sslip.io/v1/sql-sources/{id}" \
-H "Authorization: Bearer $SSLIP_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
DELETE
https://hermetica.15.204.158.166.sslip.io /v1/sql-sources/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermetica.15.204.158.166.sslip.io/v1/sql-sources/{id}" \
-H "Authorization: Bearer $SSLIP_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredPATCH
https://hermetica.15.204.158.166.sslip.io /v1/sql-sources/{id} Edit; a blank password or token keeps the stored one
Parameters
idstringpathrequiredRequest body
application/json
namestringcredentialsobjectquerystringtargetstringobjectTypestringmappingobjectShow child parameters
emailstringphonestringexternalIdstringfirstNamestringlastNamestringcolumnsstring[]eventNamestringeventNameFixedstringoccurredAtstringdedupeKeystringobjectNamestringobjectExternalIdstringcursorColumnstringeveryMinutesintegertimeoutMsintegermaxRowsintegerenabledbooleanresetCursorboolean{
"name": "string",
"credentials": {},
"query": "string",
"target": "profiles",
"objectType": "string",
"mapping": {
"email": "string",
"phone": "string",
"externalId": "string",
"firstName": "string",
"lastName": "string",
"columns": [
"string"
],
"eventName": "string",
"eventNameFixed": "string",
"occurredAt": "string",
"dedupeKey": "string",
"objectName": "string",
"objectExternalId": "string"
},
"cursorColumn": "string",
"everyMinutes": 0,
"timeoutMs": 0,
"maxRows": 0,
"enabled": true,
"resetCursor": true
}Code samples
cURL
curl -X PATCH "https://hermetica.15.204.158.166.sslip.io/v1/sql-sources/{id}" \
-H "Authorization: Bearer $SSLIP_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","credentials":{},"query":"string","target":"profiles","objectType":"string","mapping":{"email":"string","phone":"string","externalId":"string","firstName":"string","lastName":"string","columns":["string"],"eventName":"string","eventNameFixed":"string","occurredAt":"string","dedupeKey":"string","objectName":"string","objectExternalId":"string"},"cursorColumn":"string","everyMinutes":0,"timeoutMs":0,"maxRows":0,"enabled":true,"resetCursor":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermetica.15.204.158.166.sslip.io /v1/sql-sources/{id}/preview Test the connection and query: up to 20 rows, nothing imported
Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://hermetica.15.204.158.166.sslip.io/v1/sql-sources/{id}/preview" \
-H "Authorization: Bearer $SSLIP_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"columns": [
"string"
],
"rows": [
{}
]
}Schema
columnsstring[]requiredrowsobject[]requiredPOST
https://hermetica.15.204.158.166.sslip.io /v1/sql-sources/{id}/run Run the pull now (in the background)
Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://hermetica.15.204.158.166.sslip.io/v1/sql-sources/{id}/run" \
-H "Authorization: Bearer $SSLIP_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
Updated