# Connector SDK
The following endpoints allow you to generate Workato Schema from sample JSON and CSV documents. These endpoints are also used in the SDK CLI tool for schema generation commands.
# Quick reference
The Custom connectors resource contains the following endpoints:
| Type | Resource | Description |
|---|---|---|
| GET | /api/custom_connectors | Get custom connectors. |
| POST | /api/sdk/generate_schema/json | Generates Workato schema from a stringified JSON sample. |
| POST | /api/sdk/generate_schema/csv | Generates Workato schema from a stringified CSV sample. |
# Search Custom connectors
List custom adapters in your Workspace.
GET /api/custom_connectors
# URL parameters
| Name | Type | Description |
|---|---|---|
| title | string optional | Search for connectors by their titles. Partial matches will be returned. |
| oem_shared | boolean optional | Search for connectors that are shared from your OEM master account. |
# Sample Request
curl -X GET https://www.workato.com/api/custom_connectors \
-H 'Authorization: Bearer <api_token>'
# Response
{
"result": [
{
"id": 3067,
"name": "new_connector_1_connector_4771_1626869205",
"title": "Foobar",
"latest_released_version": null,
"latest_released_version_note": null,
"oem_shared_version": null,
"oem_shared_at": null,
"released_versions": []
},
{
"id": 3066,
"name": "new_connector_1_connector_4771_1626869114",
"title": "Acme Connector",
"latest_released_version": 4,
"latest_released_version_note": null,
"oem_shared_version": 2,
"oem_shared_at": "2022-08-08T08:05:22.047-07:00",
"released_versions": [
{
"version": 4,
"version_note": null,
"created_at": "2022-08-11T07:24:58.890-07:00",
"released_at": "2021-09-26T21:33:41.713-07:00"
},
{
"version": 2,
"version_note": "hello",
"created_at": "2021-07-21T05:05:34.136-07:00",
"released_at": "2021-09-26T21:33:41.713-07:00"
}
]
}
]
}
# Generate schema from JSON
Generates Workato schema from a stringified JSON sample.
POST /api/sdk/generate_schema/json
# URL parameters
| Name | Type | Description |
|---|---|---|
| sample | string optional | Stringified JSON of the sample document to parse. |
# Sample Request
curl -X GET https://www.workato.com/api/sdk/generate_schema/json \
-H 'Authorization: Bearer <api_token>' \
--data-raw '{
"sample": "{ \"test\":\"hello\"}"
}'
# Response
[
{
"control_type": "text",
"label": "Test",
"type": "string",
"name": "test"
}
]
# Generate schema from CSV
Generates Workato schema from a stringified CSV sample.
POST /api/sdk/generate_schema/csv
# URL parameters
| Name | Type | Description |
|---|---|---|
| sample | string optional | Stringified CSV of the sample document to parse. |
| col_sep | string optional | Column delimiter for the CSV sample. Must be one of comma, semicolon, space, tab, colon, pipe. |
# Sample Request
curl -X GET https://www.workato.com/api/sdk/generate_schema/json \
-H 'Authorization: Bearer <api_token>' \
--data-raw '{
"sample": "first_name,5\nhello,world",
"col_sep": "comma"
}'
# Response
[
{
"control_type": "text",
"label": "First name",
"type": "string",
"name": "first_name"
},
{
"control_type": "text",
"label": "Last name",
"type": "string",
"name": "last_name"
}
]
Last updated: 10/18/2023, 7:14:53 PM