Skip to main content

Endpoint

GET {prefix}/shares/{share}/all-tables
This API lists all the tables under all schemas in a share. This is a convenience endpoint that allows you to discover all available tables without having to first list schemas.

Authentication

Authorization
string
required
Bearer token for authentication
Authorization: Bearer {token}

Path Parameters

share
string
required
The share name to query. Case-insensitive.

Query Parameters

maxResults
integer
The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, the response will provide a nextPageToken that can be used to get the next page of results in subsequent list requests.The server may return fewer than maxResults items even if there are more available. The client should check nextPageToken in the response to determine if there are more available.Must be non-negative. 0 will return no results but nextPageToken may be populated.
pageToken
string
Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results.nextPageToken will not be returned in a response if there are no more results available.

Response

Success Response (200)

items
array
Array of table objects. May be an empty array or missing when no results are found.
nextPageToken
string
Token for retrieving the next page of results. May be an empty string or missing when there are no additional results. The client must handle both cases.

Example Response

{
  "items": [
    {
      "name": "covid_data",
      "schema": "public_health",
      "share": "vaccine_share",
      "shareId": "edacc4a7-6600-4fbb-85f3-a62a5ce6761f",
      "id": "dcb1e680-7da4-4041-9be8-88aff508d001",
      "location": "s3://my-bucket/delta-tables/covid_data",
      "accessModes": ["url", "dir"]
    },
    {
      "name": "patient_demographics",
      "schema": "healthcare",
      "share": "vaccine_share",
      "shareId": "edacc4a7-6600-4fbb-85f3-a62a5ce6761f",
      "id": "f1234567-89ab-cdef-0123-456789abcdef",
      "location": "s3://my-bucket/delta-tables/patient_demographics",
      "auxiliaryLocations": [
        "s3://my-archive-bucket/patient-demographics-archive"
      ],
      "accessModes": ["url", "dir"]
    }
  ],
  "nextPageToken": "eyJsYXN0X3NjaGVtYSI6ImhlYWx0aGNhcmUiLCJsYXN0X3RhYmxlIjoicGF0aWVudF9kZW1vZ3JhcGhpY3MifQ=="
}

Error Responses

The request is malformed.
{
  "errorCode": "INVALID_PARAMETER_VALUE",
  "message": "Invalid value for maxResults: -1"
}
The request is unauthenticated. The bearer token is missing or incorrect.
{
  "errorCode": "UNAUTHENTICATED",
  "message": "Missing or invalid authorization header"
}
The request is forbidden from being fulfilled.
{
  "errorCode": "PERMISSION_DENIED",
  "message": "User does not have access to share: vaccine_share"
}
The requested resource does not exist.
{
  "errorCode": "RESOURCE_DOES_NOT_EXIST",
  "message": "Share not found: vaccine_share"
}
The request is not handled correctly due to a server error.
{
  "errorCode": "INTERNAL_ERROR",
  "message": "An internal error occurred"
}

Usage Example

curl -X GET \
  https://sharing.delta.io/delta-sharing/shares/vaccine_share/all-tables \
  -H 'Authorization: Bearer {token}'

Notes

The items field may be an empty array or missing when no results are found. The client must handle both cases.
This endpoint is a convenience method that combines listing schemas and listing tables within each schema. For large shares with many tables, consider using pagination with the maxResults and pageToken parameters.
If auxiliaryLocations is present and a client does not support reading from multiple locations, they should either fall back to URL-based access via the Query Table API or throw an error.

Build docs developers (and LLMs) love