Skip to main content
GET
/
organizations
/
{organizationName}
/
workspaces
/
{workspaceName}
/
documents
List workspace documents
curl --request GET \
  --url https://{organization}.admin.credibledata.com/api/v0/organizations/{organizationName}/workspaces/{workspaceName}/documents \
  --header 'Authorization: Bearer <token>'
[
  {
    "path": "<string>",
    "content": "<string>",
    "type": "workbook",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "modifiedBy": "<string>",
    "metadata": {}
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

organizationName
string
required

The unique identifier of the organization Standard identifier pattern for resource names

Pattern: ^[a-zA-Z0-9_-]+$
workspaceName
string
required

The unique identifier of the workspace Standard identifier pattern for resource names

Pattern: ^[a-zA-Z0-9_-]+$

Query Parameters

retrieveContent
boolean
default:false

If true, include the document content in the response. Defaults to false.

Response

List of documents retrieved successfully

path
string

The file path of the document within the workspace

Pattern: ^[a-zA-Z0-9_/.-]+$
content
string

The content of the document, typically Malloy code or configuration

type
enum<string>

The type of document, determining its purpose and behavior

Available options:
workbook,
dashboard,
modeling_chat,
data_chat,
agent_report
createdAt
string<date-time>

ISO 8601 timestamp indicating when the document was created

updatedAt
string<date-time>

ISO 8601 timestamp indicating when the document was last modified

modifiedBy
string | null

The userId of the user who last modified this document

metadata
object

Optional JSON metadata associated with the document (e.g. title, tags)