Coda
  1. Docs
Coda
  • Permissions
    • Get sharing metadata
      GET
    • Delete permission
      DELETE
    • Search principals
      GET
    • Get ACL settings
      GET
    • Update ACL settings
      PATCH
    • List permissions
      GET
    • Add permission
      POST
  • Pages
    • Content export status
      GET
    • List pages
      GET
    • Create a page
      POST
    • Begin content export
      POST
    • Get a page
      GET
    • Delete a page
      DELETE
    • Update a page
      PUT
  • Tables
    • List tables
      GET
    • Get a table
      GET
  • Columns
    • List columns
      GET
    • Get a column
      GET
  • Rows
    • Push a button
      POST
    • List table rows
      GET
    • Insert/upsert rows
      POST
    • Delete multiple rows
      DELETE
    • Get a row
      GET
    • Delete row
      DELETE
    • Update row
      PUT
  • Formulas
    • List formulas
    • Get a formula
  • Controls
    • List controls
    • Get a control
  • CustomDocDomains
    • List custom doc domains
    • Add custom domain
    • Deletes a custom domain
    • Updates a custom domain
    • Gets custom doc domains providers
  • Miscellaneous
    • Resolve browser link
    • Get mutation status
  • Automations
    • Trigger automation
  • Analytics
    • List doc analytics
    • List page analytics
    • Get doc analytics summary
    • List Pack analytics
    • Get Pack analytics summary
    • Get analytics last updated day
    • List Pack formula analytics
  • Workspaces
    • List workspace users
    • List workspace roles
    • Updates user role
  • Packs
    • List Packs
    • Create Pack
    • Gets the JSON Schema for Pack configuration.
    • List the versions for a Pack.
    • Get the next valid version for a Pack.
    • Get the difference between two pack versions.
    • Register Pack version
    • Pack version upload complete
    • Create a new Pack release.
    • List the releases for a Pack.
    • Update an existing Pack release.
    • Set the OAuth configurations of the Pack.
    • Retrieve the OAuth configuration of the Pack.
    • List permissions for a Pack
    • Add a permission for Pack
    • Delete a permission for Pack
    • List makers for Pack
    • Add a maker for Pack
    • Delete a maker for Pack
    • List categories for Pack
    • Add a category for Pack
    • Delete a category for Pack
    • Upload a Pack asset.
    • Upload Pack source code.
    • Pack asset upload complete
    • Pack source code upload complete
    • get the source code for a Pack version.
    • List the Pack listings accessible to a user.
    • Get detailed listing information for a Pack.
    • List featured docs for a Pack
    • Update featured docs for a Pack
    • Get a single Pack
    • Update Pack
    • Delete Pack
    • Set the system connection credentials of the Pack.
    • Patch the system connection credentials of the Pack.
    • Retrieve the system connection metadata of the Pack.
    • Retrieve the logs of a Pack.
    • Retrieve the grouped logs of a Pack.
  • Publishing
    • Get doc categories
    • Unpublish doc
    • Publish doc
  • Docs
    • Get info about a doc
      GET
    • Delete doc
      DELETE
    • Update doc
      PATCH
    • Create doc
      POST
    • List available docs
      GET
  • Account
    • Get user info
  1. Docs

List available docs

开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
GET
/docs
Returns a list of Coda docs accessible by the user. These are returned in the same order as on the docs page: reverse chronological by the latest event relevant to the user (last viewed, edited, or shared).
请求示例请求示例
Shell
JavaScript
Java
Swift
curl -s -H 'Authorization: Bearer <your API token>' \
  'https://coda.io/apis/v1/docs' |
  jq .items[0].name
# => "New Document"
响应示例响应示例
200 - 示例 1
{
    "nextPageToken": "eyJsaW1pd",
    "items": [
        {
            "icon": {
                "name": "string",
                "type": "string",
                "browserLink": "https://cdn.coda.io/icons/png/color/icon-32.png"
            },
            "docSize": {
                "totalRowCount": 31337,
                "tableAndViewCount": 42,
                "pageCount": 10,
                "overApiSizeLimit": false
            },
            "published": {
                "mode": "view",
                "description": "Hello World!",
                "browserLink": "https://coda.io/@coda/hello-world",
                "imageLink": "string",
                "discoverable": true,
                "earnCredit": true,
                "categories": [
                    "Project Management"
                ]
            },
            "folder": {
                "id": "fl-1Ab234",
                "browserLink": "https://coda.io/docs?folderId=fl-1Ab234",
                "name": "My docs",
                "type": "folder"
            },
            "workspace": {
                "id": "ws-1Ab234",
                "organizationId": "org-2Bc456",
                "browserLink": "https://coda.io/docs?workspaceId=ws-1Ab234",
                "name": "My workspace",
                "type": "workspace"
            },
            "id": "AbCDeFGH",
            "href": "https://coda.io/apis/v1/docs/AbCDeFGH",
            "browserLink": "https://coda.io/d/_dAbCDeFGH",
            "name": "Product Launch Hub",
            "owner": "user@example.com",
            "ownerName": "Some User",
            "createdAt": "2018-04-11T00:18:57.946Z",
            "updatedAt": "2018-04-11T00:18:57.946Z",
            "workspaceId": "ws-1Ab234",
            "folderId": "fl-1Ab234",
            "type": "doc",
            "sourceDoc": {
                "id": "AbCDeFGH",
                "href": "https://coda.io/apis/v1/docs/AbCDeFGH",
                "browserLink": "https://coda.io/d/_dAbCDeFGH",
                "type": "doc"
            }
        }
    ],
    "href": "https://coda.io/apis/v1/docs?limit=20",
    "nextPageLink": "https://coda.io/apis/v1/docs?pageToken=eyJsaW1pd"
}

请求参数

Query 参数

返回响应

🟢200List of Coda docs matching the query.
application/json
Body

🟠401401
🟠403403
🟠404404
🟠429429
修改于 2024-03-20 08:13:15
上一页
Create doc
下一页
Get user info
Built with