openapi: 3.0.0 info: version: 0.0.2 title: Superhuman Docs Admin Account Columns API license: name: Superhuman Developer Terms url: https://docs.superhuman.com/trust/developer description: "# Introduction\n\nThe Superhuman Docs Admin API is a RESTful API that allows programmatic access to administrative reports & capabilities within Superhuman Docs (formerly Coda).\n\nAccess to the Admin API is limited to enterprise organizations.\nOnly organization admins can use the Admin API for resources related to their organization.\n\nAs we update and release newer versions of the API, we reserve the right to remove\nolder APIs and functionality with a 3-month deprecation notice. We will post about such changes as well as announce\nnew features in the [Developers Central](https://connect.superhuman.com/c/developers-central) section of our Community,\nand update the [API updates](https://docs.superhuman.com/api-updates) doc.\n\n# Using the Admin API\n\nThe Superhuman Docs Admin REST API is designed to be straightforward to use. You can use the language and platform of your choice\nto make requests. To get a feel for the API, you can also use a tool like [Postman](https://www.getpostman.com/) or\n[Insomnia](https://insomnia.rest/).\n\n## API Endpoint\n\nThis API uses a base path of `https://docs.superhuman.com/apis/admin/v1`.\n\n## Object Hierarchy\n\n### Organizations\n\nEnterprise customers have access to the Organization, an object that contains policy, rules, and audit events\nfor a set of workspaces and one or more domains. Users accessing Superhuman Docs via an Organization-registered domain are\nsubject to that Organization's policies including allowed forms of authentication,\ndoc & Pack sharing restrictions, etc.\n\n### Workspaces\n\nA workspace is your home base for all things Superhuman Docs. It will store your documents in an organized way, and you'll invite\nmembers into the workspace to help you get the job done. A workspace can be free or paid (depending on your plan),\nand as the workspace's Doc Maker or Doc Maker (Admin), you'll be able to dictate the rules for how it works.\n\n[Learn more about Workspaces in our help center](https://help.coda.io/hc/en-us/articles/39555775119117-Create-and-manage-your-Coda-workspace).\n\n### Folders\n\nWe use folders to keep docs organized in the workspace (think departments, teams, and projects). Your docs are\nwhere the true work gets done with all of your tables, text, and app-like solutions. Folders contain docs within\nthe workspace.\n\n[Learn more about Folders in our help center](https://help.coda.io/hc/en-us/articles/39555852126605-Create-and-share-folders).\n\n### Docs\n\nDocuments are foundational, top-level collaborative projects that contain pages.\n\n### Pack configurations\n\nPack configurations are the settings that define how a Pack may be used within an organization.\n\n### Pack configuration permissions\n\nPack configuration permissions are the settings that define which principals may use a Pack configuration.\n\n### Pack requests\n\nWhen Pack configurations are turned on inside an organization. Pack requests are requests to use a Pack submitted by\nusers in the organization.\n\n### Pages\n\nIndividual pages within a doc offer canvases containing rich text, tables, controls, and other objects.\n\n## Audit events\n\nAudit events contain records of user login/logout activities and other operations performed within a Superhuman Docs organization.\nAudit events are critical to an enterprise's Security Monitoring efforts. It enables Security professionals to proactively\nanalyze the audit events for any suspicious behavior within a Superhuman Docs organization and help them in forensic investigations\nin case of a security breach. Audit events also enable administrators to write their own applications to understand their\nusers' usage of Superhuman Docs.\n\n### Audit event actions\n\nThe following entity types and actions are audited.\n\n| Entity Type | Action Name | Description |\n| ----------- | ----------- | ----------- |\n| agentInstance | AcceptCustomAgentInvitation | Accept an invitation to access a custom agent |\n| agentInstance | AgentScheduleTriggerFired | A scheduled agent trigger fired |\n| agentInstance | CreateAgentInstance | Create a new agent instance |\n| agentInstance | CreateCustomAgentInvitation | Send an invitation to share a custom agent |\n| agentInstance | DeclineCustomAgentInvitation | Decline an invitation to access a custom agent |\n| agentInstance | DeleteAgentInstance | Delete an agent instance |\n| agentInstance | DeleteCustomAgentInvitation | Revoke a pending invitation to a custom agent |\n| agentInstance | StartAgentChat | Start a new agent chat session |\n| agentInstance | UpdateAgentInstance | Update an agent instance |\n| agentInstance | UpdateAgentInstanceSharing | Update sharing permissions on an agent instance |\n| agentToolCall | ApproveAgentToolCall | Approve a tool call during an agent instance session |\n| agentToolCall | ExecuteAgentToolCall | Execute a tool call during an agent instance session |\n| agentToolCall | IgnoreAgentToolCall | Ignore a tool call during an agent instance session |\n| agentToolCall | RejectAgentToolCall | Reject a tool call during an agent instance session |\n| apiToken | DeleteApiToken | Delete an API token |\n| apiToken | GenerateApiToken | Generate an API token |\n| billingAccount | AddBillingGroup | Add a billing group to a billing account |\n| billingAccount | AddBillingGroupAdmin | Assign a billing group admin |\n| billingAccount | DeleteBillingGroup | Delete a billing group from a billing account |\n| billingAccount | RemoveBillingGroupAdmin | Remove a billing group admin |\n| billingAccount | UpdateBillingAccountSettings | Update settings for a billing account |\n| brainQuery | BrainStructuredQuery | Query Coda Brain for structured data |\n| brainQuery | BrainUnstructuredQuery | Query Coda Brain for unstructured data |\n| doc | AddDocPack | Install a Pack within a doc |\n| doc | CopyDoc | Copy a doc to a new location |\n| doc | CopyPages | Copy pages and sub pages within a doc to a new location |\n| doc | CopyTemplate | Copy template to an existing doc |\n| doc | CreateDoc | Create a new doc |\n| doc | DeleteAllReferencingSyncPageTunnels | Delete all sync page tunnels referencing a doc |\n| doc | DeleteDoc | Delete a doc |\n| doc | DeleteDocPack | Remove usage of a Pack from a doc |\n| doc | EditDoc | Edit a doc |\n| doc | ExportDocContent | Export doc content |\n| doc | MoveDoc | Move a doc to a different folder |\n| doc | OpenDoc | Opening a doc for reading, commenting or editing. |\n| doc | ReviveDoc | Revive a deleted doc |\n| doc | SubmitForm | Submit through a form |\n| doc | UpdateDocPermissions | Update sharing permissions on a doc |\n| docPackConnection | CreateExternalConnection | Create a new Pack connection |\n| docPackConnection | DeleteExternalConnection | Delete a Pack connection |\n| docPackConnection | UpdateExternalConnection | Update a Pack connection |\n| folder | CreateFolder | Create a new folder |\n| folder | DeleteFolder | Delete a folder |\n| folder | MoveFolder | Move a folder to a different parent |\n| folder | UpdateFolderMembership | Update membership on a folder |\n| folder | UpdateFolderPermissions | Update sharing permissions on a folder |\n| folder | UpdateFolderSettings | Update folder settings |\n| group | CreateGroup | Create a new group |\n| group | DeleteGroup | Delete a group |\n| group | UpdateGroup | Update group properties |\n| import | CompleteImport | Complete an import |\n| import | FailImport | Fail an import |\n| import | OnboardItem | Onboard a single source item during an import |\n| import | StartImport | Start an import |\n| importPreference | AddImportPreference | Add an import preference for an importer |\n| importPreference | DeleteImportPreference | Delete an import preference for an importer |\n| importPreference | UpdateImportPreference | Update an import preference for an importer |\n| ingestion | CreateIngestion | Create a new Coda Brain ingestion |\n| ingestion | CreateIngestionPermissions | Create Coda Brain ingestion permissions |\n| ingestion | DeleteIngestion | Delete a Coda Brain ingestion |\n| ingestion | DeleteIngestionPermissions | Delete Coda Brain ingestion permissions |\n| ingestion | UpdateIngestion | Update a Coda Brain ingestion |\n| legalHold | CreateLegalHold | Create a new legal hold |\n| legalHold | DeleteLegalHold | Delete a legal hold |\n| legalHold | UpdateLegalHold | Update legal hold |\n| legalHoldExport | CreateLegalHoldExport | Create a new legal hold export |\n| legalHoldExport | DeleteLegalHoldExport | Delete a legal hold export |\n| organization | AddBlockedDomains | Add domains to the blocked domains list |\n| organization | AddTrustedDomains | Add domains to the trusted domains list |\n| organization | ClaimDocOwnership | Claim ownership of a doc after the owner is deactivated |\n| organization | OrganizationPackAccessRequestBlocked | A user attempted to request Pack access while the organization administrator has disabled Pack access requests |\n| organization | OrganizationPackAccessRequested | A user requested access to a Pack |\n| organization | RemoveBlockedDomains | Remove domains from the blocked domains list |\n| organization | RemoveTrustedDomains | Remove domains from the trusted domains list |\n| organization | TransferDocs | Transfer docs from one user to another |\n| organization | UpdateOrganizationSettings | Update organization settings |\n| organization | UpdateOrganizationUserActivation | Update a user's activation status in an organization |\n| organization | UpdateOrganizationUserRole | Add or remove user from organization roles |\n| organization | UpdateWorkspaceAiControls | Update workspace AI controls |\n| pack | AddPackConfigurationPermission | Add a Pack configuration permission |\n| pack | AllowPackAccessRequest | A user was granted access to a Pack |\n| pack | AutoApprovePack | A Pack was auto-approved upon creation per the organization policy |\n| pack | CancelPackReview | Cancel a pending Pack review |\n| pack | CreatePack | Create a new Pack |\n| pack | CreatePackConfiguration | Create a new Pack configuration |\n| pack | CreatePackInvitation | Create a Pack invitation |\n| pack | CreatePackReview | Submit a Pack for Superhuman GO review |\n| pack | DeleteAllConfigurationsOnPack | Delete all configurations for a Pack |\n| pack | DeletePack | Delete a Pack |\n| pack | DeletePackConfiguration | Delete a Pack configuration |\n| pack | DeletePackConfigurationOAuth | Delete OAuth configuration metadata associated with a Pack configuration |\n| pack | DenyPackAccessRequest | A user was denied access to a Pack |\n| pack | RemovePackConfigurationPermission | Delete a Pack configuration permission |\n| pack | SetPackConfigurationOAuth | Set OAuth configuration metadata associated with the Pack configuration |\n| pack | SetPackConfigurationPermissions | Set permissions for a Pack configuration |\n| pack | UpdatePackConfiguration | Update a Pack configuration |\n| pack | UpdatePackListingDraft | Update a Pack listing draft |\n| pack | UpdatePackPermissions | Update Pack permissions |\n| packControl | SetPackControl | Set Pack control for an organization |\n| syncPage | OpenSyncPage | Opening a sync page for reading. |\n| syncPageTunnel | CreateSyncPageTunnel | Create a sync page tunnel |\n| syncPageTunnel | DeleteSyncPageTunnel | Delete a sync page tunnel |\n| syncPageTunnel | UpdateSyncPageTunnel | Update a sync page tunnel |\n| user | CreateUser | Create a new user |\n| user | DeleteUser | Delete an existing user |\n| user | ExportUserData | Export own personal data |\n| user | IssueOAuthToken | Issue an OAuth access/refresh token for a user |\n| user | LogInUser | Login activity of a user |\n| user | LogOutUser | Logout activity of a user |\n| user | RenewOAuthToken | Renew an OAuth access token for a user |\n| user | ResetUserPassword | Reset a user's password |\n| user | RevokeAllOAuthTokens | Revoke all OAuth tokens for a user |\n| user | RevokeOAuthToken | Revoke a single OAuth refresh token for a user |\n| user | UpdateUserAccount | Update a user's account details |\n| user | UpdateUserPassword | Update a user's password |\n| webhook | CreateWebhook | Create a new webhook subscription |\n| webhook | DeleteWebhook | Delete a webhook subscription |\n| webhook | ResetWebhook | Resets a webhook subscription |\n| webhook | UpdateWebhook | Updates parameters for an existing webhook subscription |\n| workspace | CreateCustomIcon | Create a custom icon in a workspace |\n| workspace | CreateWorkspace | Create a new workspace |\n| workspace | DeleteCustomIcon | Delete a custom icon in a workspace |\n| workspace | DeleteWorkspace | Delete a workspace |\n| workspace | ExportWorkspaceMembers | Export workspace members roster |\n| workspace | OffboardWorkspaceUser | Offboard a removed user from a workspace |\n| workspace | PinDocToWorkspace | Pin a doc to a workspace |\n| workspace | ReinstateWorkspaceUser | Allow a user to be re-added to a workspace |\n| workspace | UnpinDocFromWorkspace | Unpin a doc from a workspace |\n| workspace | UpdateWorkspaceSettings | Update workspace settings |\n| workspace | UpdateWorkspaceUserBrainRole | Update a user's Brain role in a workspace |\n| workspace | UpdateWorkspaceUserRole | Update a user's role in a workspace |\n\n### More information\nFor more information about the Superhuman Docs Admin API and these events,\n[detailed information and examples are available](https://docs.superhuman.com/@documentation/admin-audit-api-events-and-documentation).\n\n## Webhooks\n\nWebhooks enable an application to receive notifications of audit events in Superhuman Docs as they occur.\n\nRather than having to \"poll\" repeatedly for new audit events, a webhook will \"push\" events to your internet-accessible\nendpoint via HTTP `POST` requests. This can be much more efficient and convenient for an internet-accessible service.\n\nIt is important to note that webhooks do require a server or server-like endpoint accesible on the internet at all times\nto receive these notifications. For simpler scenarios, it may be easier to just poll for audit events rather than host\nand maintain a server on the internet.\n\n### Webhook Considerations\n\nThis webhook implementation aims to deliver events within a few minutes of occurring under normal operating conditions.\n\nThe system will attempt retries when it detects failures, so it will be possible for you to receive the same events\nmore than once depending on errors or timeouts occurring in your server or in the network infrastructure between Superhuman Docs\nand your server. Once delivered successfully, it is not possible to replay webhook notifications.\n\nTargets are expected to respond within 10 seconds before delivery times out and is considered a failure.\n\nFailures are retried using exponential backoff timing; after 8 hours of consecutive failures, Superhuman Docs will give up and\nplace the webhook into a disabled state.\n\n### Webhook Setup\n\nOnce a new webhook connection is established, an initial handshake will be attempted in order to prove that the target\nis available on the internet and is owned by the registering entity. In addition, any time the webhook is updated\nto point to a new target URL, the handshake procedure will be kicked off.\n\nAfter the initial handshake completes successfully, new audit events will immediately begin to flow to the target.\n\nIn the event that the handshake fails, the `reset` API can be used to force the webhook to retry the handshake process.\n\n### Webhook Handshake details\n\nTo prove that the target URL is available on the internet and is a valid webhook target, a handshake process is\nstarted anytime a new target URL is set on on a webhook. This process is asynchronous to the webhook setup API call.\n\nSuperhuman Docs will send a HTTP `GET` request to the registered target URL with a HTTP header named `X-Webhook-Code`. The\ntarget must respond with a standard `200` or `204` HTTP response code and echo back the same header key and its value.\n\n### Webhook Payload details\n\nOnce the webhook handshake has completed successfully, Superhuman Docs will send batches of audit events to the target URL using\nHTTP `POST` requests.\n\nEach notifications the target receives will include:\n\n* A `X-Webhook-Signature` header which enables the server to verify the payload is genuine and originated from Superhuman Docs.\nThis code is a SHA-256 HMAC of the stringified body of the POST request using the Superhuman Docs-generated secret key available\non the webhook object.\n* A JSON body with key `events` which contains an array of audit events using the same format as\nreturned by the `listEvents` endpoint detailed below.\n\n### Payload verification\n\nSample javascript code fragment for verifying a webhook payload originated from Superhuman Docs:\n\n```javascript\nconst crypto = require('crypto');\n\n// This field is available on the Superhuman Docs webhook object.\nconst signatureKey = 'some value';\n\n// These come from the webhook `POST` request to your server\nconst headers = {'X-Webhook-Signature': 'abc123'};\nconst body = {events: []};\n\nconst calculatedSignature = crypto\n .createHmac('SHA256', signatureKey)\n .update(JSON.stringify(body))\n .digest(\"hex\");\n\nconst isValidSignature = crypto.timingSafeEqual(\n Buffer.from(calculatedSignature),\n Buffer.from(headers['X-Webhook-Signature']),\n);\n```\n\n## List Endpoints\n\nEndpoints supporting listing of resources have the following fields:\n\n - `items`: An array containing the listed resources, limited by the `limit` or `pageToken` query parameters\n - `nextPageLink`: If more results are available, an API link to the next page of results\n - `nextPageToken`: If more results are available, a page token that can be passed into the `pageToken` query parameter\n\n**The maximum page size may change at any time, and may be different for different endpoints.** Please do not rely on it\nfor any behavior of your application. If you pass a `limit` parameter that is larger than our maximum allowed limit,\nwe will only return as many results as our maximum limit. You should look for the presence of the `nextPageToken` on the\nresponse to see if there are more results available, rather than relying on a result set that matches your provided limit.\n\nTo fetch a subsequent page of results, pass the `pageToken` parameter. Set this parameter to the value given to you as the `nextPageToken`\nin a page response. If no value is provided, there are no more results available. You only need to pass the `pageToken` to get\nthe next page of results, you don't need to pass any of the parameters from your original request, as they are all\nimplied by the `pageToken`. Any other parameters provided alongside a `pageToken` will be ignored.\n\n## Rate Limiting\n\nThe Superhuman Docs Admin API sets a reasonable limit on the number of requests that can be made per minute. Once this limit is\nreached, calls to the API will start returning errors with an HTTP status code of 429.\n\n## OpenAPI/Swagger Spec\n\nIn an effort to standardize our API and make it accessible, we offer an OpenAPI 3.0 specification:\n\n- [OpenAPI 3.0 spec - YAML](https://docs.superhuman.com/apis/admin/v1/openapi.yaml)\n- [OpenAPI 3.0 spec - JSON](https://docs.superhuman.com/apis/admin/v1/openapi.json)\n" termsOfService: https://superhuman.com/legal/terms contact: name: Developer Support url: https://superhuman.com/developers email: care@superhuman.com x-logo: url: https://cdn.coda.io/icons/png/color/superhuman-docs-128.png backgroundColor: transparent altText: Superhuman Docs Admin API href: '#' servers: - url: https://docs.superhuman.com/apis/admin/v1 description: Superhuman Docs Admin API (v1) security: - Bearer: [] tags: - name: Columns description: 'While columns in Superhuman Docs have user-friendly names, they also have immutable IDs that are used when reading and writing rows. These endpoints let you query the columns in a table and get basic information about them. ' paths: /docs/{docId}/tables/{tableIdOrName}/columns: get: summary: List columns description: Returns a list of columns in a table. operationId: listColumns tags: - Columns parameters: - $ref: '#/components/parameters/docId' - $ref: '#/components/parameters/tableIdOrName' - name: limit description: Maximum number of results to return in this query. in: query example: 10 schema: type: integer minimum: 1 maximum: 100 default: 25 - $ref: '#/components/parameters/pageToken' - name: visibleOnly description: If true, returns only visible columns for the table. This parameter only applies to base tables, and not views. in: query example: true schema: type: boolean responses: '200': description: List of columns in the table. content: application/json: schema: $ref: '#/components/schemas/ColumnList' '401': $ref: '#/components/responses/UnauthorizedError' '403': $ref: '#/components/responses/ForbiddenError' '404': $ref: '#/components/responses/NotFoundError' '429': $ref: '#/components/responses/TooManyRequestsError' x-codeSamples: - label: Python 3.13 lang: python source: 'import requests headers = {''Authorization'': ''Bearer ''} uri = f''https://docs.superhuman.com/apis/v1/docs//tables//columns'' res = requests.get(uri, headers=headers).json() print(f''This table\''s columns: {", ".join(c["name"] for c in res["items"])}'') # => This table''s columns: Task, Duration (hr), Duration (min) ' - label: Shell lang: shell source: "curl -s -H 'Authorization: Bearer ' \\\n 'https://docs.superhuman.com/apis/v1/docs//tables/
/columns' |\n jq '.items | map(.name) | join(\", \")'\n# => \"Task, Duration (hr), Duration (min)\"\n" - label: Google Apps Script lang: javascript source: '// Import the SuperhumanDocs library via Resource->Libraries...: // 15IQuWOk8MqT50FDWomh57UqWGH23gjsWVWYFms3ton6L-UHmefYHS9Vl SuperhumanDocs.authenticate(''''); var columns = SuperhumanDocs.listColumns('''', ''
'').items; var names = columns.map(function(column) { return column.name; }); Logger.log(''This table\''s columns: '' + names.join('', '')); // => This table''s columns: Task, Duration (hr), Duration (min) ' /docs/{docId}/tables/{tableIdOrName}/columns/{columnIdOrName}: get: summary: Get a column description: Returns details about a column in a table. operationId: getColumn tags: - Columns parameters: - $ref: '#/components/parameters/docId' - $ref: '#/components/parameters/tableIdOrName' - $ref: '#/components/parameters/columnIdOrName' responses: '200': description: Info about a column. content: application/json: schema: $ref: '#/components/schemas/ColumnDetail' '401': $ref: '#/components/responses/UnauthorizedError' '403': $ref: '#/components/responses/ForbiddenError' '404': $ref: '#/components/responses/NotFoundError' '429': $ref: '#/components/responses/TooManyRequestsError' x-codeSamples: - label: Python 3.13 lang: python source: 'import requests headers = {''Authorization'': ''Bearer ''} uri = f''https://docs.superhuman.com/apis/v1/docs//tables/
/columns/'' res = requests.get(uri, headers=headers).json() is_default = res.get("display", False) print(f''Column {res["name"]} {"is" if is_default else "is not"} the display column'') # => Column Task is the display column ' - label: Shell lang: shell source: "curl -s -H 'Authorization: Bearer ' \\\n 'https://docs.superhuman.com/apis/v1/docs//tables/
/columns/' |\n jq '\"Column \" + .name + (if .display then \" is\" else \" is not\" end) + \" the display column\"'\n# => \"Column Task is the display column\"\n" - label: Google Apps Script lang: javascript source: '// Import the SuperhumanDocs library via Resource->Libraries...: // 15IQuWOk8MqT50FDWomh57UqWGH23gjsWVWYFms3ton6L-UHmefYHS9Vl SuperhumanDocs.authenticate(''''); var column = SuperhumanDocs.getColumn('''', ''
'', ''''); Logger.log(''Column '' + column.name + (column.display ? '' is'' : '' is not'') + '' the display column''); # => Column Task is the display column ' components: parameters: docId: name: docId description: ID of the doc. in: path required: true example: AbCDeFGH schema: type: string columnIdOrName: name: columnIdOrName description: ID or name of the column. Names are discouraged because they're easily prone to being changed by users. If you're using a name, be sure to URI-encode it. x-sdk-description: ID or name of the column. Names are discouraged because they're easily prone to being changed by users. in: path required: true example: c-tuVwxYz schema: type: string tableIdOrName: name: tableIdOrName description: ID or name of the table. Names are discouraged because they're easily prone to being changed by users. If you're using a name, be sure to URI-encode it. x-sdk-description: ID or name of the table. Names are discouraged because they're easily prone to being changed by users. in: path required: true example: grid-pqRst-U schema: type: string pageToken: name: pageToken description: An opaque token used to fetch the next page of results. in: query example: eyJsaW1pd schema: type: string schemas: ScaleColumnFormat: x-schema-name: ScaleColumnFormat description: Format of a numeric column that renders as a scale, like star ratings. allOf: - $ref: '#/components/schemas/SimpleColumnFormat' - type: object additionalProperties: false required: - maximum - icon properties: maximum: type: number description: The maximum number allowed for this scale. example: 5 icon: allOf: - description: The icon set to use when rendering the scale, e.g. render a 5 star scale. additionalProperties: false - $ref: '#/components/schemas/IconSet' SliderDisplayType: x-schema-name: SliderDisplayType description: How the slider should be rendered. type: string enum: - slider - progress x-tsEnumNames: - Slider - Progress LinkColumnFormat: x-schema-name: LinkColumnFormat description: Format of a link column. allOf: - $ref: '#/components/schemas/SimpleColumnFormat' - type: object additionalProperties: false properties: display: $ref: '#/components/schemas/LinkDisplayType' force: type: boolean description: Force embeds to render on the client instead of the server (for sites that require user login). example: true NumericColumnFormat: x-schema-name: NumericColumnFormat description: Format of a numeric column. allOf: - $ref: '#/components/schemas/SimpleColumnFormat' - type: object additionalProperties: false properties: precision: type: integer minimum: 0 maximum: 10 description: The decimal precision. example: 2 useThousandsSeparator: type: boolean description: Whether to use a thousands separator (like ",") to format the numeric value. example: true EmailColumnFormat: x-schema-name: EmailColumnFormat description: Format of an email column. allOf: - $ref: '#/components/schemas/SimpleColumnFormat' - type: object additionalProperties: false properties: display: $ref: '#/components/schemas/EmailDisplayType' autocomplete: type: boolean DateTimeColumnFormat: x-schema-name: DateTimeColumnFormat description: Format of a date column. allOf: - $ref: '#/components/schemas/SimpleColumnFormat' - type: object additionalProperties: false properties: dateFormat: type: string description: 'A format string using Moment syntax: https://momentjs.com/docs/#/displaying/' example: YYYY-MM-DD timeFormat: type: string description: 'A format string using Moment syntax: https://momentjs.com/docs/#/displaying/' example: h:mm:ss A DurationUnit: x-schema-name: DurationUnit description: A time unit used as part of a duration value. type: string enum: - days - hours - minutes - seconds x-tsEnumNames: - Days - Hours - Minutes - Seconds ImageShapeStyle: x-schema-name: ImageShapeStyle description: How an image should be displayed. type: string enum: - auto - circle x-tsEnumNames: - Auto - Circle TimeColumnFormat: x-schema-name: TimeColumnFormat description: Format of a time column. allOf: - $ref: '#/components/schemas/SimpleColumnFormat' - type: object additionalProperties: false properties: format: type: string description: 'A format string using Moment syntax: https://momentjs.com/docs/#/displaying/' example: h:mm:ss A ColumnFormat: x-schema-name: ColumnFormat description: Format of a column. oneOf: - $ref: '#/components/schemas/ButtonColumnFormat' - $ref: '#/components/schemas/CheckboxColumnFormat' - $ref: '#/components/schemas/DateColumnFormat' - $ref: '#/components/schemas/DateTimeColumnFormat' - $ref: '#/components/schemas/DurationColumnFormat' - $ref: '#/components/schemas/EmailColumnFormat' - $ref: '#/components/schemas/LinkColumnFormat' - $ref: '#/components/schemas/CurrencyColumnFormat' - $ref: '#/components/schemas/ImageReferenceColumnFormat' - $ref: '#/components/schemas/NumericColumnFormat' - $ref: '#/components/schemas/ReferenceColumnFormat' - $ref: '#/components/schemas/SelectColumnFormat' - $ref: '#/components/schemas/SimpleColumnFormat' - $ref: '#/components/schemas/ScaleColumnFormat' - $ref: '#/components/schemas/SliderColumnFormat' - $ref: '#/components/schemas/TimeColumnFormat' discriminator: propertyName: type mapping: text: '#/components/schemas/SimpleColumnFormat' person: '#/components/schemas/ReferenceColumnFormat' lookup: '#/components/schemas/ReferenceColumnFormat' number: '#/components/schemas/NumericColumnFormat' percent: '#/components/schemas/NumericColumnFormat' currency: '#/components/schemas/CurrencyColumnFormat' date: '#/components/schemas/DateColumnFormat' dateTime: '#/components/schemas/DateTimeColumnFormat' time: '#/components/schemas/TimeColumnFormat' duration: '#/components/schemas/DurationColumnFormat' slider: '#/components/schemas/SliderColumnFormat' scale: '#/components/schemas/ScaleColumnFormat' image: '#/components/schemas/SimpleColumnFormat' imageReference: '#/components/schemas/ImageReferenceColumnFormat' attachments: '#/components/schemas/SimpleColumnFormat' button: '#/components/schemas/ButtonColumnFormat' checkbox: '#/components/schemas/CheckboxColumnFormat' select: '#/components/schemas/SelectColumnFormat' packObject: '#/components/schemas/SimpleColumnFormat' canvas: '#/components/schemas/SimpleColumnFormat' other: '#/components/schemas/SimpleColumnFormat' SelectColumnFormat: x-schema-name: SelectColumnFormat description: Format of a select column. allOf: - $ref: '#/components/schemas/SimpleColumnFormat' - type: object additionalProperties: false properties: options: type: array description: For select format columns, the list of available options. Only returned for select lists that used a fixed set of options. Returns the first 5000 options. items: $ref: '#/components/schemas/SelectOption' PageReference: x-schema-name: PageReference description: Reference to a page. type: object required: - id - type - browserLink - href - name additionalProperties: false properties: id: type: string description: ID of the page. example: canvas-IjkLmnO type: type: string description: The type of this resource. enum: - page x-tsType: Type.Page href: type: string format: url description: API link to the page. example: https://docs.superhuman.com/apis/v1/docs/AbCDeFGH/pages/canvas-IjkLmnO browserLink: type: string format: url description: Browser-friendly link to the page. example: https://docs.superhuman.com/d/_dAbCDeFGH/Launch-Status_sumnO name: type: string description: Name of the page. example: Launch Status ColumnList: x-schema-name: ColumnList description: List of columns. type: object required: - items additionalProperties: false properties: items: type: array items: $ref: '#/components/schemas/Column' href: type: string format: url description: API link to these results example: https://docs.superhuman.com/apis/v1/docs/AbCDeFGH/tables/grid-pqRst-U/columns?limit=20 nextPageToken: $ref: '#/components/schemas/nextPageToken' nextPageLink: allOf: - $ref: '#/components/schemas/nextPageLink' - type: string example: https://docs.superhuman.com/apis/v1/docs/AbCDeFGH/tables/grid-pqRst-U/columns?pageToken=eyJsaW1pd CheckboxColumnFormat: x-schema-name: CheckboxColumnFormat description: Format of a checkbox column. allOf: - $ref: '#/components/schemas/SimpleColumnFormat' - type: object additionalProperties: false required: - displayType properties: displayType: $ref: '#/components/schemas/CheckboxDisplayType' nextPageToken: description: If specified, an opaque token used to fetch the next page of results. type: string example: eyJsaW1pd SimpleColumnFormat: x-schema-name: SimpleColumnFormat description: Format of a simple column. type: object required: - type - isArray additionalProperties: false properties: type: $ref: '#/components/schemas/ColumnFormatType' isArray: type: boolean description: Whether or not this column is an array. example: true LinkDisplayType: x-schema-name: LinkDisplayType description: How a link should be displayed in the user interface. type: string enum: - iconOnly - url - title - card - embed x-tsEnumNames: - IconOnly - Url - Title - Card - Embed IconSet: x-schema-name: IconSet description: List of available icon sets. type: string enum: - star - circle - fire - bug - diamond - bell - thumbsup - heart - chili - smiley - lightning - currency - coffee - person - battery - cocktail - cloud - sun - checkmark - lightbulb x-tsEnumNames: - Star - Circle - Fire - Bug - Diamond - Bell - ThumbsUp - Heart - Chili - Smiley - Lightning - Currency - Coffee - Person - Battery - Cocktail - Cloud - Sun - Checkmark - LightBulb ReferenceColumnFormat: x-schema-name: ReferenceColumnFormat description: Format of a column that refers to another table. allOf: - $ref: '#/components/schemas/SimpleColumnFormat' - type: object additionalProperties: false required: - table properties: table: allOf: - description: Reference to the table this column refers to, if applicable. additionalProperties: false - $ref: '#/components/schemas/TableReference' ColumnDetail: x-schema-name: ColumnDetail description: Info about a column. type: object required: - id - type - href - name - parent - format additionalProperties: false properties: id: type: string description: ID of the column. example: c-tuVwxYz type: type: string description: The type of this resource. enum: - column x-tsType: Type.Column href: type: string format: url description: API link to the column. example: https://docs.superhuman.com/apis/v1/docs/AbCDeFGH/tables/grid-pqRst-U/columns/c-tuVwxYz name: type: string description: Name of the column. example: Completed display: type: boolean description: Whether the column is the display column. example: true calculated: type: boolean description: Whether the column has a formula set on it. example: true formula: type: string description: Formula on the column. example: thisRow.Created() defaultValue: type: string description: Default value formula for the column. example: Test format: $ref: '#/components/schemas/ColumnFormat' parent: $ref: '#/components/schemas/TableReference' TableReference: x-schema-name: TableReference description: Reference to a table or view. type: object required: - id - type - tableType - browserLink - href - name additionalProperties: false properties: id: type: string description: ID of the table. example: grid-pqRst-U type: type: string description: The type of this resource. enum: - table x-tsType: Type.Table tableType: $ref: '#/components/schemas/TableType' href: type: string format: url description: API link to the table. example: https://docs.superhuman.com/apis/v1/docs/AbCDeFGH/tables/grid-pqRst-U browserLink: type: string format: url description: Browser-friendly link to the table. example: https://docs.superhuman.com/d/_dAbCDeFGH/#Teams-and-Tasks_tpqRst-U name: type: string description: Name of the table. example: Tasks parent: $ref: '#/components/schemas/PageReference' nextPageLink: description: If specified, a link that can be used to fetch the next page of results. type: string format: url ColumnFormatType: x-schema-name: ColumnFormatType description: Format type of the column type: string enum: - text - person - lookup - number - percent - currency - date - dateTime - time - duration - email - link - slider - scale - image - imageReference - attachments - button - checkbox - select - packObject - reaction - canvas - other x-tsEnumNames: - Text - Person - Lookup - Number - Percent - Currency - Date - DateTime - Time - Duration - Email - Link - Slider - Scale - Image - ImageReference - Attachments - Button - Checkbox - Select - PackObject - Reaction - Canvas - Other CurrencyFormatType: x-schema-name: CurrencyFormatType description: How the numeric value should be formatted (with or without symbol, negative numbers in parens). type: string enum: - currency - accounting - financial x-tsEnumNames: - Currency - Accounting - Financial TableType: x-schema-name: TableType type: string enum: - table - view x-tsEnumNames: - Table - View DateColumnFormat: x-schema-name: DateColumnFormat description: Format of a date column. allOf: - $ref: '#/components/schemas/SimpleColumnFormat' - type: object additionalProperties: false properties: format: type: string description: 'A format string using Moment syntax: https://momentjs.com/docs/#/displaying/' example: YYYY-MM-DD CheckboxDisplayType: x-schema-name: CheckboxDisplayType description: How a checkbox should be displayed. type: string enum: - toggle - check x-tsEnumNames: - Toggle - Check Column: x-schema-name: Column description: Info about a column. type: object required: - id - type - href - name - format additionalProperties: false properties: id: type: string description: ID of the column. example: c-tuVwxYz type: type: string description: The type of this resource. enum: - column x-tsType: Type.Column href: type: string format: url description: API link to the column. example: https://docs.superhuman.com/apis/v1/docs/AbCDeFGH/tables/grid-pqRst-U/columns/c-tuVwxYz name: type: string description: Name of the column. example: Completed display: type: boolean description: Whether the column is the display column. example: true calculated: type: boolean description: Whether the column has a formula set on it. example: true formula: type: string description: Formula on the column. example: thisRow.Created() defaultValue: type: string description: Default value formula for the column. example: Test format: $ref: '#/components/schemas/ColumnFormat' CurrencyColumnFormat: x-schema-name: CurrencyColumnFormat description: Format of a currency column. allOf: - $ref: '#/components/schemas/SimpleColumnFormat' - type: object additionalProperties: false properties: currencyCode: type: string description: The currency symbol example: $ precision: type: integer minimum: 0 maximum: 10 description: The decimal precision. example: 2 format: $ref: '#/components/schemas/CurrencyFormatType' NumberOrNumberFormula: x-schema-name: NumberOrNumberFormula description: A number or a string representing a formula that evaluates to a number. oneOf: - type: number description: A numeric value. example: 1 - type: string description: A formula that evaluates to a numeric value. example: 5 * 10 EmailDisplayType: x-schema-name: EmailDisplayType description: How an email address should be displayed in the user interface. type: string enum: - iconAndEmail - iconOnly - emailOnly x-tsEnumNames: - IconAndEmail - IconOnly - EmailOnly SelectOption: x-schema-name: SelectOption description: An option for a select column. type: object required: - name additionalProperties: false properties: name: type: string description: The name of the option. example: Option 1 backgroundColor: type: string description: The background color of the option. example: '#ff0000' foregroundColor: type: string description: The foreground color of the option. example: '#ffffff' SliderColumnFormat: x-schema-name: SliderColumnFormat description: Format of a numeric column that renders as a slider. allOf: - $ref: '#/components/schemas/SimpleColumnFormat' - type: object additionalProperties: false properties: minimum: allOf: - description: The minimum allowed value for this slider. additionalProperties: false - $ref: '#/components/schemas/NumberOrNumberFormula' maximum: allOf: - description: The maximum allowed value for this slider. additionalProperties: false - $ref: '#/components/schemas/NumberOrNumberFormula' step: allOf: - description: The step size (numeric increment) for this slider. additionalProperties: false - $ref: '#/components/schemas/NumberOrNumberFormula' displayType: $ref: '#/components/schemas/SliderDisplayType' showValue: type: boolean description: Whether the underyling numeric value is also displayed. example: true ButtonColumnFormat: x-schema-name: ButtonColumnFormat description: Format of a button column. allOf: - $ref: '#/components/schemas/SimpleColumnFormat' - type: object additionalProperties: false properties: label: type: string description: Label formula for the button. example: Click me disableIf: type: string description: DisableIf formula for the button. example: False() action: type: string description: Action formula for the button. example: OpenUrl("www.google.com") ImageReferenceColumnFormat: x-schema-name: ImageReferenceColumnFormat description: Format of an image reference column. allOf: - $ref: '#/components/schemas/SimpleColumnFormat' - type: object additionalProperties: false required: - width - height - style properties: width: allOf: - description: The image width. additionalProperties: false - $ref: '#/components/schemas/NumberOrNumberFormula' height: allOf: - description: The image height. additionalProperties: false - $ref: '#/components/schemas/NumberOrNumberFormula' style: $ref: '#/components/schemas/ImageShapeStyle' DurationColumnFormat: x-schema-name: DurationColumnFormat description: Format of a duration column. allOf: - $ref: '#/components/schemas/SimpleColumnFormat' - type: object additionalProperties: false properties: precision: type: integer example: 2 maxUnit: allOf: - description: The maximum unit of precision, e.g. "hours" if this duration need not include minutes. additionalProperties: false - $ref: '#/components/schemas/DurationUnit' responses: ForbiddenError: description: The API token does not grant access to this resource. content: application/json: schema: description: An HTTP error resulting from an unsuccessful request. required: - statusCode - statusMessage - message additionalProperties: false properties: statusCode: type: number description: HTTP status code of the error. example: 403 statusMessage: type: string description: HTTP status message of the error. example: Forbidden message: type: string description: Any additional context on the error, or the same as `statusMessage` otherwise. example: Forbidden NotFoundError: description: The resource could not be located with the current API token. content: application/json: schema: description: An HTTP error resulting from an unsuccessful request. required: - statusCode - statusMessage - message additionalProperties: false properties: statusCode: type: number description: HTTP status code of the error. example: 404 statusMessage: type: string description: HTTP status message of the error. example: Not Found message: type: string description: Any additional context on the error, or the same as `statusMessage` otherwise. example: Not Found TooManyRequestsError: description: The client has sent too many requests. content: application/json: schema: description: An HTTP error resulting from an unsuccessful request. required: - statusCode - statusMessage - message additionalProperties: false properties: statusCode: type: number description: HTTP status code of the error. example: 429 statusMessage: type: string description: HTTP status message of the error. example: Too Many Requests message: type: string description: Any additional context on the error, or the same as `statusMessage` otherwise. example: Too Many Requests UnauthorizedError: description: The API token is invalid or has expired. content: application/json: schema: description: An HTTP error resulting from an unsuccessful request. required: - statusCode - statusMessage - message additionalProperties: false properties: statusCode: type: number description: HTTP status code of the error. example: 401 statusMessage: type: string description: HTTP status message of the error. example: Unauthorized message: type: string description: Any additional context on the error, or the same as `statusMessage` otherwise. example: Unauthorized securitySchemes: Bearer: description: 'The Superhuman Docs Admin API can be accessed using an API token, which can be obtained from [*My account*](https://docs.superhuman.com/account) in Superhuman Docs. This token should be specified by setting a header as follows. ```Authorization: Bearer ``` Keep your token safe, as anyone who gets access to it can access your account. Once a token is created it cannot be viewed or modified, so don''t lose it. ' type: http scheme: bearer bearerFormat: UUID x-tagGroups: - name: API Tokens tags: - API Tokens - name: Docs tags: - Docs - Doc Permissions - Doc Export - name: Doc Structure tags: - Pages - name: Events tags: - Events - name: Folders tags: - Folders - Folder Permissions - name: Groups tags: - Groups - name: Import tags: - Preferences - name: LegalHolds tags: - LegalHolds - name: Organizations tags: - Organizations - Organization Users - Pack Controls - Pack Configurations - name: Packs tags: - Packs - name: Webhooks tags: - Webhooks - name: Workspaces tags: - Workspaces - Workspace Users