Retool Developer API (0.0.1)
Download OpenAPI specification:Download
This version of the Retool API is deprecated. Please use Retool API v2.
Get Resources
Returns a paginated list of resources.
Authorizations:
query Parameters
next_token | string An optional pagination token. You can get the token from the response of this endpoint. |
resource_type | string Enum: "airflow" "alloydb" "asana" "athena" "basecamp" "bigid" "bigquery" "cassandra" "circleci" "closeio" "cosmosdb" "couchdb" "databricks" "datadog" "datastore" "denodo" "dynamodb" "elasticsearch" "firebase" "front" "gcs" "github" "googleAnalytics" "googleMaps" "googleSearchConsole" "googlesheets" "graphql" "grpc" "hubspot" "jdbc" "jira" "lambda" "launchdarkly" "microsoftTeams" "mongodb" "mssql" "mysql" "notion" "onesignal" "openAI" "openapi" "oracledb" "postgresql" "presto" "redis" "redshift" "restapi" "rethinkdb" "rockset" "s3" "salesforce" "saphana" "sendgrid" "shell" "slack" "slackopenapi" "smtp" "snowflake" "stripe" "twilio" "vertica" Only resources of the type specified by this parameter are returned. |
Responses
Response samples
- 200
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "airflow",
- "display_name": "string",
- "created_at": "2019-02-08T11:45:48.899Z",
- "updated_at": "2019-02-24T18:28:18.790Z"
}
], - "has_more": true,
- "next": "string"
}
Create a Resource
Creates a new resource, along with a resource configuration for the default environment.
Authorizations:
Request Body schema: application/json
type required | string Enum: "mysql" "postgresql" "redshift" "restapi" "snowflake" The type of resource. |
display_name required | string non-empty |
required | Postgres Options (object) or MySQL Options (object) or Redshift Options (object) or Snowflake Options (object) or Rest API Options (object) |
Responses
Request samples
- Payload
{- "type": "mysql",
- "display_name": "string",
- "options": {
- "database_options": {
- "host": "string",
- "port": "string",
- "name": "string",
- "username": "string",
- "password": "string",
- "ssl_settings": {
- "enabled": true,
- "client_key": "string",
- "client_cert": "string",
- "ca_cert": "string"
}, - "ssh_tunnel_options": {
- "enabled": true,
- "host": "string",
- "port": "string",
- "username": "string",
- "password": "string",
- "private_key_name": "string"
}, - "disable_converting_queries_to_prepared_statements": true,
- "show_write_gui_only": true
}
}
}
Response samples
- 200
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "airflow",
- "display_name": "string",
- "created_at": "2019-02-08T11:45:48.899Z",
- "updated_at": "2019-02-24T18:28:18.790Z"
}
Get a Resource By Id
Returns the resource configuration with the given id.
Authorizations:
path Parameters
resource_id required | string A UUID that uniquely identifies a resource. This is also referenced within the Retool app. For example, when you edit a resource, the ID can be found in the url. |
Responses
Response samples
- 200
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "airflow",
- "display_name": "string",
- "created_at": "2019-02-08T11:45:48.899Z",
- "updated_at": "2019-02-24T18:28:18.790Z"
}
Update a Resource
Updates the resource with the given resource id.
Authorizations:
path Parameters
resource_id required | string A UUID that uniquely identifies a resource. This is also referenced within the Retool app. For example, when you edit a resource, the ID can be found in the url. |
Request Body schema: application/json
display_name required | string non-empty |
Responses
Request samples
- Payload
{- "display_name": "string"
}
Response samples
- 200
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "airflow",
- "display_name": "string",
- "created_at": "2019-02-08T11:45:48.899Z",
- "updated_at": "2019-02-24T18:28:18.790Z"
}
Delete a Resource
Deletes the resource with the given resource id, along with all of its configurations.
Authorizations:
path Parameters
resource_id required | string A UUID that uniquely identifies a resource. This is also referenced within the Retool app. For example, when you edit a resource, the ID can be found in the url. |
Responses
Response samples
- 200
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "airflow",
- "display_name": "string",
- "created_at": "2019-02-08T11:45:48.899Z",
- "updated_at": "2019-02-24T18:28:18.790Z"
}
Get Resource Configurations
Returns a paginated list of resource configurations.
Authorizations:
query Parameters
next_token | string An optional pagination token. You can get the token from the response of this endpoint. |
resource_type | string Enum: "airflow" "alloydb" "asana" "athena" "basecamp" "bigid" "bigquery" "cassandra" "circleci" "closeio" "cosmosdb" "couchdb" "databricks" "datadog" "datastore" "denodo" "dynamodb" "elasticsearch" "firebase" "front" "gcs" "github" "googleAnalytics" "googleMaps" "googleSearchConsole" "googlesheets" "graphql" "grpc" "hubspot" "jdbc" "jira" "lambda" "launchdarkly" "microsoftTeams" "mongodb" "mssql" "mysql" "notion" "onesignal" "openAI" "openapi" "oracledb" "postgresql" "presto" "redis" "redshift" "restapi" "rethinkdb" "rockset" "s3" "salesforce" "saphana" "sendgrid" "shell" "slack" "slackopenapi" "smtp" "snowflake" "stripe" "twilio" "vertica" Only resources of the type specified by this parameter are returned. |
resource_id | string A UUID that uniquely identifies a resource. This is also referenced within the Retool app. For example, when you edit a resource, the ID can be found in the url. |
environment_id | string <uuid> A UUID that uniquely identifies an environment. |
Responses
Response samples
- 200
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "airflow",
- "display_name": "string",
- "created_at": "2019-02-08T11:45:48.899Z",
- "updated_at": "2019-02-24T18:28:18.790Z"
}, - "environment": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "color": "string",
- "default": true,
- "created_at": "string",
- "updated_at": "string"
}, - "options": {
- "database_options": {
- "host": "string",
- "port": "string",
- "name": "string",
- "username": "string",
- "password": "string",
- "ssl_settings": {
- "enabled": true,
- "client_key": "string",
- "client_cert": "string",
- "ca_cert": "string"
}, - "ssh_tunnel_options": {
- "enabled": true,
- "host": "string",
- "port": "string",
- "username": "string",
- "password": "string",
- "private_key_name": "string"
}, - "disable_converting_queries_to_prepared_statements": true,
- "show_write_gui_only": true
}
}, - "created_at": "2019-02-08T11:45:48.899Z",
- "updated_at": "2019-02-24T18:28:18.790Z"
}
], - "has_more": true,
- "next": "string"
}
Create a Resource Configuration
Creates a new resource configuration for a non-default environment.
Authorizations:
Request Body schema: application/json
resource_id required | string A UUID that uniquely identifies a resource. This is also referenced within the Retool app. For example, when you edit a resource, the ID can be found in the url. |
environment_id required | string <uuid> A UUID that uniquely identifies an environment. |
required | Postgres Options (object) or MySQL Options (object) or Redshift Options (object) or Snowflake Options (object) or Rest API Options (object) |
Responses
Request samples
- Payload
{- "resource_id": "string",
- "environment_id": "40ef0e48-a11f-4963-a229-e396c9f7e7c4",
- "options": {
- "database_options": {
- "host": "string",
- "port": "string",
- "name": "string",
- "username": "string",
- "password": "string",
- "ssl_settings": {
- "enabled": true,
- "client_key": "string",
- "client_cert": "string",
- "ca_cert": "string"
}, - "ssh_tunnel_options": {
- "enabled": true,
- "host": "string",
- "port": "string",
- "username": "string",
- "password": "string",
- "private_key_name": "string"
}, - "disable_converting_queries_to_prepared_statements": true,
- "show_write_gui_only": true
}
}
}
Response samples
- 200
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "airflow",
- "display_name": "string",
- "created_at": "2019-02-08T11:45:48.899Z",
- "updated_at": "2019-02-24T18:28:18.790Z"
}, - "environment": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "color": "string",
- "default": true,
- "created_at": "string",
- "updated_at": "string"
}, - "options": {
- "database_options": {
- "host": "string",
- "port": "string",
- "name": "string",
- "username": "string",
- "password": "string",
- "ssl_settings": {
- "enabled": true,
- "client_key": "string",
- "client_cert": "string",
- "ca_cert": "string"
}, - "ssh_tunnel_options": {
- "enabled": true,
- "host": "string",
- "port": "string",
- "username": "string",
- "password": "string",
- "private_key_name": "string"
}, - "disable_converting_queries_to_prepared_statements": true,
- "show_write_gui_only": true
}
}, - "created_at": "2019-02-08T11:45:48.899Z",
- "updated_at": "2019-02-24T18:28:18.790Z"
}
Get a Resource Configuration By Id
Returns the resource configuration with the given resource configuration id.
Authorizations:
path Parameters
resource_configuration_id required | string A UUID that uniquely identifies a resource configuration. |
Responses
Response samples
- 200
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "airflow",
- "display_name": "string",
- "created_at": "2019-02-08T11:45:48.899Z",
- "updated_at": "2019-02-24T18:28:18.790Z"
}
Update a Resource Configuration
Updates the resource configuration with the given resource configuration id.
Authorizations:
path Parameters
resource_configuration_id required | string A UUID that uniquely identifies a resource configuration. |
Request Body schema: application/json
required | Postgres Options (object) or MySQL Options (object) or Redshift Options (object) or Snowflake Options (object) or Rest API Options (object) Note that the entire options object will be replaced. You must include any old options that you would like to keep. | ||||||||||||||||||||||
Any of
|
Responses
Request samples
- Payload
{- "options": {
- "database_options": {
- "host": "string",
- "port": "string",
- "name": "string",
- "username": "string",
- "password": "string",
- "ssl_settings": {
- "enabled": true,
- "client_key": "string",
- "client_cert": "string",
- "ca_cert": "string"
}, - "ssh_tunnel_options": {
- "enabled": true,
- "host": "string",
- "port": "string",
- "username": "string",
- "password": "string",
- "private_key_name": "string"
}, - "disable_converting_queries_to_prepared_statements": true,
- "show_write_gui_only": true
}
}
}
Response samples
- 200
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "airflow",
- "display_name": "string",
- "created_at": "2019-02-08T11:45:48.899Z",
- "updated_at": "2019-02-24T18:28:18.790Z"
}, - "environment": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "color": "string",
- "default": true,
- "created_at": "string",
- "updated_at": "string"
}, - "options": {
- "database_options": {
- "host": "string",
- "port": "string",
- "name": "string",
- "username": "string",
- "password": "string",
- "ssl_settings": {
- "enabled": true,
- "client_key": "string",
- "client_cert": "string",
- "ca_cert": "string"
}, - "ssh_tunnel_options": {
- "enabled": true,
- "host": "string",
- "port": "string",
- "username": "string",
- "password": "string",
- "private_key_name": "string"
}, - "disable_converting_queries_to_prepared_statements": true,
- "show_write_gui_only": true
}
}, - "created_at": "2019-02-08T11:45:48.899Z",
- "updated_at": "2019-02-24T18:28:18.790Z"
}
Delete a Resource Configuration
Deletes the resource configuration with the given resource configuration id. You cannot delete resource configurations in the default environment.
Authorizations:
path Parameters
resource_configuration_id required | string A UUID that uniquely identifies a resource configuration. |
Responses
Response samples
- 200
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "resource": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "airflow",
- "display_name": "string",
- "created_at": "2019-02-08T11:45:48.899Z",
- "updated_at": "2019-02-24T18:28:18.790Z"
}, - "environment": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "color": "string",
- "default": true,
- "created_at": "string",
- "updated_at": "string"
}, - "options": {
- "database_options": {
- "host": "string",
- "port": "string",
- "name": "string",
- "username": "string",
- "password": "string",
- "ssl_settings": {
- "enabled": true,
- "client_key": "string",
- "client_cert": "string",
- "ca_cert": "string"
}, - "ssh_tunnel_options": {
- "enabled": true,
- "host": "string",
- "port": "string",
- "username": "string",
- "password": "string",
- "private_key_name": "string"
}, - "disable_converting_queries_to_prepared_statements": true,
- "show_write_gui_only": true
}
}, - "created_at": "2019-02-08T11:45:48.899Z",
- "updated_at": "2019-02-24T18:28:18.790Z"
}
Response samples
- 200
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "color": "string",
- "default": true,
- "created_at": "string",
- "updated_at": "string"
}
]
}
Response samples
- 200
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "color": "string",
- "default": true,
- "created_at": "string",
- "updated_at": "string"
}
Get an Environment by Id
Returns the environment with the given id.
Authorizations:
path Parameters
environment_id required | string <uuid> |
Responses
Response samples
- 200
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "color": "string",
- "default": true,
- "created_at": "string",
- "updated_at": "string"
}