Skip to contentManaged Kafka is live: Apache Kafka on AWS for half the cost of MSK

Connectors

Fetch tables for an unsaved connector

POST/connectors/tables

Lists available tables in a specific database and schema using an unsaved connector configuration. Results are cached when a connector UUID is provided.

Authorizations

  • Authorizationstringheaderrequired

    API key passed as a Bearer token in the Authorization header.

Request

curl --request POST \
  --url https://api.artie.com/connectors/tables \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "allDatabases": true,
  "connector": {
    "dataPlaneName": "<string>",
    "defaultDatabase": "<string>",
    "draftPipelineUUID": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "environmentUUID": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "label": "<string>",
    "privateLinkUUID": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "sharedConfig": {},
    "snapshotPrivateLinkUUID": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "sshTunnelUUID": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "type": "<string>",
    "uuid": "<string>"
  },
  "databaseName": "<string>",
  "forceRefresh": true,
  "schemaName": "<string>"
}'

Body

application/json

  • allDatabasesboolean
  • connectorobjectrequired
    Show child attributes
    • dataPlaneNamestring
    • defaultDatabasestring | null
    • draftPipelineUUIDstring<uuid> | null

      On create only: the draft pipeline this connector is for.

    • environmentUUIDstring<uuid> | null
    • labelstring
    • privateLinkUUIDstring<uuid> | null
    • sharedConfigobject | null
    • snapshotPrivateLinkUUIDstring<uuid> | null
    • sshTunnelUUIDstring<uuid> | null
    • typestring
    • uuidstring
  • databaseNamestringrequired
  • forceRefreshboolean
  • schemaNamestring

Responses

200OKapplication/json

  • itemsobject[]required
    Show child attributes
    • approxDateAddedstring<date-time> | nullrequired
    • columnsobject[]
      Show child attributes
      • metadataobjectrequired
        Show child attributes
        • commentstring
        • dataTypestringrequired
        • defaultValuestring
        • isPrimaryKeyboolean
        • notNullbooleanrequired
      • namestringrequired
    • createdAtstring<date-time> | nullrequired
    • isViewbooleanrequired
    • metadataobject[]
      Show child attributes
      • isDatebooleanrequired
      • keystringrequired
      • valuestring | number | boolean | object | (string | number | boolean | object | null)[] | nullrequired
        Show child attributes
        • Option 1string
        • Option 2number
        • Option 3boolean
        • Option 4object
        • Option 5(string | number | boolean | object | null)[]
          Show child attributes
          • Option 1string
          • Option 2number
          • Option 3boolean
          • Option 4object
          • Option 5null
        • Option 6null
    • modifiedAtstring<date-time> | nullrequired
    • namestringrequired
    • schemastringrequired
    • unreadablebooleanrequired

400Bad Request

500Internal Server Error

200 OK
{
  "items": [
    {
      "approxDateAdded": "2023-11-07T05:31:56Z",
      "columns": [
        {
          "metadata": {
            "comment": "<string>",
            "dataType": "<string>",
            "defaultValue": "<string>",
            "isPrimaryKey": true,
            "notNull": true
          },
          "name": "<string>"
        }
      ],
      "createdAt": "2023-11-07T05:31:56Z",
      "isView": true,
      "metadata": [
        {
          "isDate": true,
          "key": "<string>",
          "value": "<string>"
        }
      ],
      "modifiedAt": "2023-11-07T05:31:56Z",
      "name": "<string>",
      "schema": "<string>",
      "unreadable": true
    }
  ]
}

Was this page helpful?