coda.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
Account
getMutationStatus
account.getMutationStatus
Check whether an asynchronous mutation has been applied
Risk: read
await corsair.coda.api.account.getMutationStatus({});
| Name | Type | Required | Description |
|---|---|---|---|
requestId | string | Yes | ID of the request. |
| Name | Type | Required | Description |
|---|---|---|---|
completed | boolean | Yes | — |
warning | string | No | — |
resolveBrowserLink
account.resolveBrowserLink
Resolve a Coda browser URL to the API object it points at
Risk: read
await corsair.coda.api.account.resolveBrowserLink({});
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | The browser link to try to resolve. |
degradeGracefully | boolean | No | By default, attempting to resolve the Coda URL of a deleted object will result in an error. If this flag is set, the next-available object, all the way up to the doc itself, will be resolved. |
| Name | Type | Required | Description |
|---|---|---|---|
type | apiLink | Yes | — |
href | string | Yes | — |
browserLink | string | No | — |
resource | object | Yes | — |
resource full type
resource full type
{
type: aclMetadata | aclPermissions | aclSettings | agentPackLog | agentRun | analyticsLastUpdated | apiLink | automation | column | control | doc | customDocDomain | customDocDomainProvider | docAnalytics | docAnalyticsSummary | docAnalyticsV2 | folder | formula | goLink | ingestionBatchExecution | ingestionExecution | ingestionExecutionAttempt | ingestionPackLog | ingestionParentItem | mutationStatus | pack | packAclPermissions | packAnalytics | packAnalyticsSummary | packAsset | packCategory | packConfigurationSchema | packFeaturedDocs | packFormulaAnalytics | packInvitation | packListingDraft | packLog | packMaker | packOauthConfig | packRelease | packReview | packSourceCode | packSystemConnection | packVersion | page | pageContentExport | pageContentExportStatus | principal | row | table | user | workspace,
id: string,
name?: string,
href: string
}
whoami
account.whoami
Get info about the user that owns the API token
Risk: read
await corsair.coda.api.account.whoami({});
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | — |
loginId | string | Yes | — |
type | user | Yes | — |
pictureLink | string | No | — |
scoped | boolean | Yes | — |
tokenName | string | Yes | — |
href | string | Yes | — |
workspace | object | Yes | — |
workspace full type
workspace full type
{
id: string,
type: workspace,
organizationId?: string,
browserLink: string,
name?: string
}
Analytics
getDocsSummary
analytics.getDocsSummary
Get a summary of doc analytics
Risk: read
await corsair.coda.api.analytics.getDocsSummary({});
| Name | Type | Required | Description |
|---|---|---|---|
isPublished | boolean | No | Limit results to only published items. |
sinceDate | string | No | Limit results to activity on or after this date. |
untilDate | string | No | Limit results to activity on or before this date. |
workspaceId | string | No | ID of the workspace. |
| Name | Type | Required | Description |
|---|---|---|---|
totalSessions | number | Yes | — |
getLastUpdated
analytics.getLastUpdated
Get the days analytics were last updated
Risk: read
await corsair.coda.api.analytics.getLastUpdated({});
| Name | Type | Required | Description |
|---|---|---|---|
docAnalyticsLastUpdated | string | Yes | — |
packAnalyticsLastUpdated | string | Yes | — |
packFormulaAnalyticsLastUpdated | string | Yes | — |
getPacksSummary
analytics.getPacksSummary
Get a summary of Pack analytics
Risk: read
await corsair.coda.api.analytics.getPacksSummary({});
| Name | Type | Required | Description |
|---|---|---|---|
packIds | number[] | No | Which Pack IDs to fetch. |
workspaceId | string | No | ID of the workspace. |
isPublished | boolean | No | Limit results to only published items. If false or unspecified, returns all items including published ones. |
sinceDate | string | No | Limit results to activity on or after this date. |
untilDate | string | No | Limit results to activity on or before this date. |
| Name | Type | Required | Description |
|---|---|---|---|
totalDocInstalls | number | Yes | — |
totalWorkspaceInstalls | number | Yes | — |
totalInvocations | number | Yes | — |
listDocs
analytics.listDocs
List analytics for docs
Risk: read
await corsair.coda.api.analytics.listDocs({});
| Name | Type | Required | Description |
|---|---|---|---|
docIds | string[] | No | List of docIds to fetch. |
workspaceId | string | No | ID of the workspace. |
query | string | No | Search term used to filter down results. |
isPublished | boolean | No | Limit results to only published items. |
sinceDate | string | No | Limit results to activity on or after this date. |
untilDate | string | No | Limit results to activity on or before this date. |
scale | daily | cumulative | No | Quantization period over which to view analytics. Defaults to daily. |
pageToken | string | No | An opaque token used to fetch the next page of results. |
orderBy | date | docId | title | createdAt | publishedAt | likes | copies | views | sessionsDesktop | sessionsMobile | sessionsOther | totalSessions | aiCreditsChat | aiCreditsBlock | aiCreditsColumn | aiCreditsAssistant | aiCreditsReviewer | aiCredits | No | Use this parameter to order the doc analytics returned. |
direction | ascending | descending | No | Direction to sort results in. |
limit | number | No | Maximum number of results to return in this query. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | — |
nextPageToken | string | No | — |
nextPageLink | string | No | — |
items full type
items full type
{
doc: {
id: string,
type: doc,
href: string,
browserLink: string,
title: string,
icon?: {
name: string,
type: string,
browserLink: string
},
createdAt: string,
publishedAt?: string
},
metrics: {
date: string,
views: number,
copies: number,
likes: number,
sessionsMobile: number,
sessionsDesktop: number,
sessionsOther: number,
totalSessions: number,
aiCreditsChat?: number,
aiCreditsBlock?: number,
aiCreditsColumn?: number,
aiCreditsAssistant?: number,
aiCreditsReviewer?: number,
aiCredits?: number
}[]
}[]
listPackFormulas
analytics.listPackFormulas
List analytics for the formulas of a Pack
Risk: read
await corsair.coda.api.analytics.listPackFormulas({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
packFormulaNames | string[] | No | A list of Pack formula names (case-sensitive) for which to retrieve analytics. |
packFormulaTypes | action | formula | sync | metadata[] | No | A list of Pack formula types corresponding to the packFormulaNames. If specified, this must have the same length as packFormulaNames. |
sinceDate | string | No | Limit results to activity on or after this date. |
untilDate | string | No | Limit results to activity on or before this date. |
scale | daily | cumulative | No | Quantization period over which to view analytics. Defaults to daily. |
pageToken | string | No | An opaque token used to fetch the next page of results. |
orderBy | date | formulaName | formulaType | formulaInvocations | medianLatencyMs | medianResponseSizeBytes | errors | docsActivelyUsing | docsActivelyUsing7Day | docsActivelyUsing30Day | docsActivelyUsing90Day | docsActivelyUsingAllTime | workspacesActivelyUsing | workspacesActivelyUsing7Day | workspacesActivelyUsing30Day | workspacesActivelyUsing90Day | workspacesActivelyUsingAllTime | No | Use this parameter to order the Pack formula analytics returned. |
direction | ascending | descending | No | Direction to sort results in. |
limit | number | No | Maximum number of results to return in this query. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | — |
nextPageToken | string | No | — |
nextPageLink | string | No | — |
items full type
items full type
{
formula: {
name: string,
type: action | formula | sync | metadata
},
metrics: {
date: string,
formulaInvocations: number,
errors: number,
medianLatencyMs?: number,
medianResponseSizeBytes?: number,
docsActivelyUsing: number,
docsActivelyUsing7Day: number,
docsActivelyUsing30Day: number,
docsActivelyUsing90Day: number,
docsActivelyUsingAllTime: number,
workspacesActivelyUsing: number,
workspacesActivelyUsing7Day: number,
workspacesActivelyUsing30Day: number,
workspacesActivelyUsing90Day: number,
workspacesActivelyUsingAllTime: number,
workspacesActivelyTrialing?: number,
workspacesActivelyTrialing7Day?: number,
workspacesActivelyTrialing30Day?: number,
workspacesActivelyTrialing90Day?: number,
workspacesActivelyTrialingAllTime?: number,
workspacesNewlySubscribed?: number,
workspacesWithActiveSubscriptions?: number,
workspacesWithSuccessfulTrials?: number,
revenueUsd?: string
}[]
}[]
listPacks
analytics.listPacks
List analytics for Packs the user can edit
Risk: read
await corsair.coda.api.analytics.listPacks({});
| Name | Type | Required | Description |
|---|---|---|---|
packIds | number[] | No | Which Pack IDs to fetch. |
workspaceId | string | No | ID of the workspace. |
query | string | No | Search term used to filter down results. |
sinceDate | string | No | Limit results to activity on or after this date. |
untilDate | string | No | Limit results to activity on or before this date. |
scale | daily | cumulative | No | Quantization period over which to view analytics. Defaults to daily. |
pageToken | string | No | An opaque token used to fetch the next page of results. |
orderBy | date | packId | name | createdAt | docInstalls | workspaceInstalls | numFormulaInvocations | numActionInvocations | numSyncInvocations | numMetadataInvocations | docsActivelyUsing | docsActivelyUsing7Day | docsActivelyUsing30Day | docsActivelyUsing90Day | docsActivelyUsingAllTime | workspacesActivelyUsing | workspacesActivelyUsing7Day | workspacesActivelyUsing30Day | workspacesActivelyUsing90Day | workspacesActivelyUsingAllTime | workspacesWithActiveSubscriptions | workspacesWithSuccessfulTrials | revenueUsd | No | Use this parameter to order the Pack analytics returned. |
direction | ascending | descending | No | Direction to sort results in. |
isPublished | boolean | No | Limit results to only published items. If false or unspecified, returns all items including published ones. |
limit | number | No | Maximum number of results to return in this query. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | — |
nextPageToken | string | No | — |
nextPageLink | string | No | — |
items full type
items full type
{
pack: {
id: number,
name: string,
logoUrl?: string,
createdAt: string
},
metrics: {
date: string,
docInstalls: number,
workspaceInstalls: number,
numFormulaInvocations: number,
numActionInvocations: number,
numSyncInvocations: number,
numMetadataInvocations: number,
docsActivelyUsing: number,
docsActivelyUsing7Day: number,
docsActivelyUsing30Day: number,
docsActivelyUsing90Day: number,
docsActivelyUsingAllTime: number,
workspacesActivelyUsing: number,
workspacesActivelyUsing7Day: number,
workspacesActivelyUsing30Day: number,
workspacesActivelyUsing90Day: number,
workspacesActivelyUsingAllTime: number,
workspacesActivelyTrialing: number,
workspacesActivelyTrialing7Day: number,
workspacesActivelyTrialing30Day: number,
workspacesActivelyTrialing90Day: number,
workspacesActivelyTrialingAllTime: number,
workspacesNewlySubscribed: number,
workspacesWithActiveSubscriptions: number,
workspacesWithSuccessfulTrials: number,
revenueUsd: string
}[]
}[]
listPages
analytics.listPages
List page-level analytics for a doc
Risk: read
await corsair.coda.api.analytics.listPages({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
sinceDate | string | No | Limit results to activity on or after this date. |
untilDate | string | No | Limit results to activity on or before this date. |
pageToken | string | No | An opaque token used to fetch the next page of results. |
limit | number | No | Maximum number of results to return in this query. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | — |
nextPageToken | string | No | — |
nextPageLink | string | No | — |
items full type
items full type
{
page: {
id: string,
name: string,
icon?: {
name: string,
type: string,
browserLink: string
}
},
metrics: {
date: string,
views: number,
sessions: number,
users: number,
averageSecondsViewed: number,
medianSecondsViewed: number,
tabs: number
}[]
}[]
Automations
trigger
automations.trigger
Trigger a webhook-invoked automation in a doc
Risk: write
await corsair.coda.api.automations.trigger({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
ruleId | string | Yes | ID of the automation rule. |
payload | object | No | JSON payload passed to the automation. |
payload full type
payload full type
Record<string, string | number | boolean | null | object | array>
| Name | Type | Required | Description |
|---|---|---|---|
requestId | string | Yes | — |
Categories
list
categories.list
List the categories available for docs
Risk: read
await corsair.coda.api.categories.list({});
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | — |
items full type
items full type
{
name: string
}[]
Columns
get
columns.get
Get details about a column
Risk: read
await corsair.coda.api.columns.get({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
tableIdOrName | string | Yes | 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. |
columnIdOrName | string | Yes | 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. |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
type | column | Yes | — |
href | string | Yes | — |
name | string | Yes | — |
display | boolean | No | — |
calculated | boolean | No | — |
formula | string | No | — |
defaultValue | string | No | — |
format | object | Yes | — |
parent | object | Yes | — |
format full type
format full type
{
type: text | person | lookup | number | percent | currency | date | dateTime | time | duration | email | link | slider | scale | image | imageReference | attachments | button | checkbox | select | packObject | reaction | canvas | other,
isArray: boolean,
label?: string,
disableIf?: string,
action?: string
} | {
type: text | person | lookup | number | percent | currency | date | dateTime | time | duration | email | link | slider | scale | image | imageReference | attachments | button | checkbox | select | packObject | reaction | canvas | other,
isArray: boolean,
displayType: toggle | check
} | {
type: text | person | lookup | number | percent | currency | date | dateTime | time | duration | email | link | slider | scale | image | imageReference | attachments | button | checkbox | select | packObject | reaction | canvas | other,
isArray: boolean,
format?: string
} | {
type: text | person | lookup | number | percent | currency | date | dateTime | time | duration | email | link | slider | scale | image | imageReference | attachments | button | checkbox | select | packObject | reaction | canvas | other,
isArray: boolean,
dateFormat?: string,
timeFormat?: string
} | {
type: text | person | lookup | number | percent | currency | date | dateTime | time | duration | email | link | slider | scale | image | imageReference | attachments | button | checkbox | select | packObject | reaction | canvas | other,
isArray: boolean,
precision?: number,
maxUnit?: days | hours | minutes | seconds
} | {
type: text | person | lookup | number | percent | currency | date | dateTime | time | duration | email | link | slider | scale | image | imageReference | attachments | button | checkbox | select | packObject | reaction | canvas | other,
isArray: boolean,
display?: iconAndEmail | iconOnly | emailOnly,
autocomplete?: boolean
} | {
type: text | person | lookup | number | percent | currency | date | dateTime | time | duration | email | link | slider | scale | image | imageReference | attachments | button | checkbox | select | packObject | reaction | canvas | other,
isArray: boolean,
display?: iconOnly | url | title | card | embed,
force?: boolean
} | {
type: text | person | lookup | number | percent | currency | date | dateTime | time | duration | email | link | slider | scale | image | imageReference | attachments | button | checkbox | select | packObject | reaction | canvas | other,
isArray: boolean,
currencyCode?: string,
precision?: number,
format?: currency | accounting | financial
} | {
type: text | person | lookup | number | percent | currency | date | dateTime | time | duration | email | link | slider | scale | image | imageReference | attachments | button | checkbox | select | packObject | reaction | canvas | other,
isArray: boolean,
width: number | string,
height: number | string,
style: auto | circle
} | {
type: text | person | lookup | number | percent | currency | date | dateTime | time | duration | email | link | slider | scale | image | imageReference | attachments | button | checkbox | select | packObject | reaction | canvas | other,
isArray: boolean,
precision?: number,
useThousandsSeparator?: boolean
} | {
type: text | person | lookup | number | percent | currency | date | dateTime | time | duration | email | link | slider | scale | image | imageReference | attachments | button | checkbox | select | packObject | reaction | canvas | other,
isArray: boolean,
table: {
id: string,
type: table,
tableType: table | view | database,
href: string,
browserLink: string,
name: string,
parent?: {
id: string,
type: page,
href: string,
browserLink: string,
name: string
}
}
} | {
type: text | person | lookup | number | percent | currency | date | dateTime | time | duration | email | link | slider | scale | image | imageReference | attachments | button | checkbox | select | packObject | reaction | canvas | other,
isArray: boolean,
options?: {
name: string,
backgroundColor?: string,
foregroundColor?: string
}[]
} | {
type: text | person | lookup | number | percent | currency | date | dateTime | time | duration | email | link | slider | scale | image | imageReference | attachments | button | checkbox | select | packObject | reaction | canvas | other,
isArray: boolean
} | {
type: text | person | lookup | number | percent | currency | date | dateTime | time | duration | email | link | slider | scale | image | imageReference | attachments | button | checkbox | select | packObject | reaction | canvas | other,
isArray: boolean,
maximum: number,
icon: star | circle | fire | bug | diamond | bell | thumbsup | heart | chili | smiley | lightning | currency | coffee | person | battery | cocktail | cloud | sun | checkmark | lightbulb
} | {
type: text | person | lookup | number | percent | currency | date | dateTime | time | duration | email | link | slider | scale | image | imageReference | attachments | button | checkbox | select | packObject | reaction | canvas | other,
isArray: boolean,
minimum?: number | string,
maximum?: number | string,
step?: number | string,
displayType?: slider | progress,
showValue?: boolean
} | {
type: text | person | lookup | number | percent | currency | date | dateTime | time | duration | email | link | slider | scale | image | imageReference | attachments | button | checkbox | select | packObject | reaction | canvas | other,
isArray: boolean,
format?: string
}
parent full type
parent full type
{
id: string,
type: table,
tableType: table | view | database,
href: string,
browserLink: string,
name: string,
parent?: {
id: string,
type: page,
href: string,
browserLink: string,
name: string
}
}
list
columns.list
List columns in a table
Risk: read
await corsair.coda.api.columns.list({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
tableIdOrName | string | Yes | 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. |
limit | number | No | Maximum number of results to return in this query. |
pageToken | string | No | An opaque token used to fetch the next page of results. |
visibleOnly | boolean | No | If true, returns only visible columns for the table. This parameter only applies to base tables, and not views. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | — |
href | string | No | — |
nextPageToken | string | No | — |
nextPageLink | string | No | — |
items full type
items full type
{
id: string,
type: column,
href: string,
name: string,
display?: boolean,
calculated?: boolean,
formula?: string,
defaultValue?: string,
format: {
type: text | person | lookup | number | percent | currency | date | dateTime | time | duration | email | link | slider | scale | image | imageReference | attachments | button | checkbox | select | packObject | reaction | canvas | other,
isArray: boolean,
label?: string,
disableIf?: string,
action?: string
} | {
type: text | person | lookup | number | percent | currency | date | dateTime | time | duration | email | link | slider | scale | image | imageReference | attachments | button | checkbox | select | packObject | reaction | canvas | other,
isArray: boolean,
displayType: toggle | check
} | {
type: text | person | lookup | number | percent | currency | date | dateTime | time | duration | email | link | slider | scale | image | imageReference | attachments | button | checkbox | select | packObject | reaction | canvas | other,
isArray: boolean,
format?: string
} | {
type: text | person | lookup | number | percent | currency | date | dateTime | time | duration | email | link | slider | scale | image | imageReference | attachments | button | checkbox | select | packObject | reaction | canvas | other,
isArray: boolean,
dateFormat?: string,
timeFormat?: string
} | {
type: text | person | lookup | number | percent | currency | date | dateTime | time | duration | email | link | slider | scale | image | imageReference | attachments | button | checkbox | select | packObject | reaction | canvas | other,
isArray: boolean,
precision?: number,
maxUnit?: days | hours | minutes | seconds
} | {
type: text | person | lookup | number | percent | currency | date | dateTime | time | duration | email | link | slider | scale | image | imageReference | attachments | button | checkbox | select | packObject | reaction | canvas | other,
isArray: boolean,
display?: iconAndEmail | iconOnly | emailOnly,
autocomplete?: boolean
} | {
type: text | person | lookup | number | percent | currency | date | dateTime | time | duration | email | link | slider | scale | image | imageReference | attachments | button | checkbox | select | packObject | reaction | canvas | other,
isArray: boolean,
display?: iconOnly | url | title | card | embed,
force?: boolean
} | {
type: text | person | lookup | number | percent | currency | date | dateTime | time | duration | email | link | slider | scale | image | imageReference | attachments | button | checkbox | select | packObject | reaction | canvas | other,
isArray: boolean,
currencyCode?: string,
precision?: number,
format?: currency | accounting | financial
} | {
type: text | person | lookup | number | percent | currency | date | dateTime | time | duration | email | link | slider | scale | image | imageReference | attachments | button | checkbox | select | packObject | reaction | canvas | other,
isArray: boolean,
width: number | string,
height: number | string,
style: auto | circle
} | {
type: text | person | lookup | number | percent | currency | date | dateTime | time | duration | email | link | slider | scale | image | imageReference | attachments | button | checkbox | select | packObject | reaction | canvas | other,
isArray: boolean,
precision?: number,
useThousandsSeparator?: boolean
} | {
type: text | person | lookup | number | percent | currency | date | dateTime | time | duration | email | link | slider | scale | image | imageReference | attachments | button | checkbox | select | packObject | reaction | canvas | other,
isArray: boolean,
table: {
id: string,
type: table,
tableType: table | view | database,
href: string,
browserLink: string,
name: string,
parent?: {
id: string,
type: page,
href: string,
browserLink: string,
name: string
}
}
} | {
type: text | person | lookup | number | percent | currency | date | dateTime | time | duration | email | link | slider | scale | image | imageReference | attachments | button | checkbox | select | packObject | reaction | canvas | other,
isArray: boolean,
options?: {
name: string,
backgroundColor?: string,
foregroundColor?: string
}[]
} | {
type: text | person | lookup | number | percent | currency | date | dateTime | time | duration | email | link | slider | scale | image | imageReference | attachments | button | checkbox | select | packObject | reaction | canvas | other,
isArray: boolean
} | {
type: text | person | lookup | number | percent | currency | date | dateTime | time | duration | email | link | slider | scale | image | imageReference | attachments | button | checkbox | select | packObject | reaction | canvas | other,
isArray: boolean,
maximum: number,
icon: star | circle | fire | bug | diamond | bell | thumbsup | heart | chili | smiley | lightning | currency | coffee | person | battery | cocktail | cloud | sun | checkmark | lightbulb
} | {
type: text | person | lookup | number | percent | currency | date | dateTime | time | duration | email | link | slider | scale | image | imageReference | attachments | button | checkbox | select | packObject | reaction | canvas | other,
isArray: boolean,
minimum?: number | string,
maximum?: number | string,
step?: number | string,
displayType?: slider | progress,
showValue?: boolean
} | {
type: text | person | lookup | number | percent | currency | date | dateTime | time | duration | email | link | slider | scale | image | imageReference | attachments | button | checkbox | select | packObject | reaction | canvas | other,
isArray: boolean,
format?: string
}
}[]
Controls
get
controls.get
Get a control and its value
Risk: read
await corsair.coda.api.controls.get({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
controlIdOrName | string | Yes | ID or name of the control. 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. |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
type | control | Yes | — |
href | string | Yes | — |
name | string | Yes | — |
parent | object | No | — |
controlType | aiBlock | button | checkbox | datePicker | dateRangePicker | dateTimePicker | lookup | multiselect | select | scale | slider | reaction | textbox | timePicker | Yes | — |
value | string | number | boolean | (string | number | boolean | (string | number | boolean)[])[] | Yes | — |
parent full type
parent full type
{
id: string,
type: page,
href: string,
browserLink: string,
name: string
}
list
controls.list
List controls in a doc
Risk: read
await corsair.coda.api.controls.list({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
limit | number | No | Maximum number of results to return in this query. |
pageToken | string | No | An opaque token used to fetch the next page of results. |
sortBy | name | No | Determines how to sort the given objects. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | — |
href | string | No | — |
nextPageToken | string | No | — |
nextPageLink | string | No | — |
items full type
items full type
{
id: string,
type: control,
href: string,
name: string,
parent?: {
id: string,
type: page,
href: string,
browserLink: string,
name: string
}
}[]
Docs
copy
docs.copy
Create a copy of an existing doc
Risk: write
await corsair.coda.api.docs.copy({});
| Name | Type | Required | Description |
|---|---|---|---|
title | string | No | Title of the new doc. Defaults to ‘Untitled’. |
sourceDoc | string | Yes | ID of the doc to copy. |
timezone | string | No | The timezone to use for the newly created doc. |
folderId | string | No | The ID of the folder within which to create this doc. Defaults to your “My docs” folder in the oldest workspace you joined; this is subject to change. You can get this ID by opening the folder in the docs list on your computer and grabbing the folderId query parameter. |
initialPage | object | No | — |
initialPage full type
initialPage full type
{
name?: string,
subtitle?: string,
iconName?: string,
imageUrl?: string,
parentPageId?: string,
pageContent?: {
type: canvas,
canvasContent: {
format: html | markdown,
content: string
}
} | {
type: embed,
url: string,
renderMethod?: compatibility | standard
} | {
type: syncPage,
mode: page,
includeSubpages: boolean,
sourcePageId: string,
sourceDocId: string
} | {
type: syncPage,
mode: document,
sourceDocId: string
}
}
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
type | doc | Yes | — |
href | string | Yes | — |
browserLink | string | Yes | — |
icon | object | No | — |
name | string | Yes | — |
owner | string | Yes | — |
ownerName | string | Yes | — |
docSize | object | No | — |
sourceDoc | object | No | — |
createdAt | string | Yes | — |
updatedAt | string | Yes | — |
published | object | No | — |
folder | object | Yes | — |
workspace | object | Yes | — |
workspaceId | string | Yes | — |
folderId | string | Yes | — |
requestId | string | No | — |
icon full type
icon full type
{
name: string,
type: string,
browserLink: string
}
docSize full type
docSize full type
{
totalRowCount: number,
tableAndViewCount: number,
baseTableCount?: number,
pageCount: number,
overApiSizeLimit: boolean
}
sourceDoc full type
sourceDoc full type
{
id: string,
type: doc,
href: string,
browserLink: string
}
published full type
published full type
{
description?: string,
browserLink: string,
imageLink?: string,
discoverable: boolean,
earnCredit: boolean,
mode: view | play | edit,
categories: {
name: string
}[]
}
folder full type
folder full type
{
id: string,
type: folder,
browserLink: string,
name?: string
}
workspace full type
workspace full type
{
id: string,
type: workspace,
organizationId?: string,
browserLink: string,
name?: string
}
create
docs.create
Create a new doc
Risk: write
await corsair.coda.api.docs.create({});
| Name | Type | Required | Description |
|---|---|---|---|
title | string | No | Title of the new doc. Defaults to ‘Untitled’. |
sourceDoc | string | No | An optional doc ID from which to create a copy. |
timezone | string | No | The timezone to use for the newly created doc. |
folderId | string | No | The ID of the folder within which to create this doc. Defaults to your “My docs” folder in the oldest workspace you joined; this is subject to change. You can get this ID by opening the folder in the docs list on your computer and grabbing the folderId query parameter. |
initialPage | object | No | — |
initialPage full type
initialPage full type
{
name?: string,
subtitle?: string,
iconName?: string,
imageUrl?: string,
parentPageId?: string,
pageContent?: {
type: canvas,
canvasContent: {
format: html | markdown,
content: string
}
} | {
type: embed,
url: string,
renderMethod?: compatibility | standard
} | {
type: syncPage,
mode: page,
includeSubpages: boolean,
sourcePageId: string,
sourceDocId: string
} | {
type: syncPage,
mode: document,
sourceDocId: string
}
}
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
type | doc | Yes | — |
href | string | Yes | — |
browserLink | string | Yes | — |
icon | object | No | — |
name | string | Yes | — |
owner | string | Yes | — |
ownerName | string | Yes | — |
docSize | object | No | — |
sourceDoc | object | No | — |
createdAt | string | Yes | — |
updatedAt | string | Yes | — |
published | object | No | — |
folder | object | Yes | — |
workspace | object | Yes | — |
workspaceId | string | Yes | — |
folderId | string | Yes | — |
requestId | string | No | — |
icon full type
icon full type
{
name: string,
type: string,
browserLink: string
}
docSize full type
docSize full type
{
totalRowCount: number,
tableAndViewCount: number,
baseTableCount?: number,
pageCount: number,
overApiSizeLimit: boolean
}
sourceDoc full type
sourceDoc full type
{
id: string,
type: doc,
href: string,
browserLink: string
}
published full type
published full type
{
description?: string,
browserLink: string,
imageLink?: string,
discoverable: boolean,
earnCredit: boolean,
mode: view | play | edit,
categories: {
name: string
}[]
}
folder full type
folder full type
{
id: string,
type: folder,
browserLink: string,
name?: string
}
workspace full type
workspace full type
{
id: string,
type: workspace,
organizationId?: string,
browserLink: string,
name?: string
}
delete
docs.delete
Permanently delete a doc
Risk: destructive · Irreversible
await corsair.coda.api.docs.delete({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
get
docs.get
Get metadata for a doc
Risk: read
await corsair.coda.api.docs.get({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
type | doc | Yes | — |
href | string | Yes | — |
browserLink | string | Yes | — |
icon | object | No | — |
name | string | Yes | — |
owner | string | Yes | — |
ownerName | string | Yes | — |
docSize | object | No | — |
sourceDoc | object | No | — |
createdAt | string | Yes | — |
updatedAt | string | Yes | — |
published | object | No | — |
folder | object | Yes | — |
workspace | object | Yes | — |
workspaceId | string | Yes | — |
folderId | string | Yes | — |
icon full type
icon full type
{
name: string,
type: string,
browserLink: string
}
docSize full type
docSize full type
{
totalRowCount: number,
tableAndViewCount: number,
baseTableCount?: number,
pageCount: number,
overApiSizeLimit: boolean
}
sourceDoc full type
sourceDoc full type
{
id: string,
type: doc,
href: string,
browserLink: string
}
published full type
published full type
{
description?: string,
browserLink: string,
imageLink?: string,
discoverable: boolean,
earnCredit: boolean,
mode: view | play | edit,
categories: {
name: string
}[]
}
folder full type
folder full type
{
id: string,
type: folder,
browserLink: string,
name?: string
}
workspace full type
workspace full type
{
id: string,
type: workspace,
organizationId?: string,
browserLink: string,
name?: string
}
list
docs.list
List docs the user can access
Risk: read
await corsair.coda.api.docs.list({});
| Name | Type | Required | Description |
|---|---|---|---|
isOwner | boolean | No | Show only docs owned by the user. |
isPublished | boolean | No | Show only published docs. |
query | string | No | Search term used to filter down results. |
sourceDoc | string | No | Show only docs copied from the specified doc ID. |
isStarred | boolean | No | If true, returns docs that are starred. If false, returns docs that are not starred. |
inGallery | boolean | No | Show only docs visible within the gallery. |
workspaceId | string | No | Show only docs belonging to the given workspace. |
folderId | string | No | Show only docs belonging to the given folder. |
minimumAccess | readonly | write | comment | No | Show only docs where the user has at least this access. Uses the same access values as doc permissions (readonly, comment, write). write includes both editors and managers. |
limit | number | No | Maximum number of results to return in this query. |
pageToken | string | No | An opaque token used to fetch the next page of results. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | — |
href | string | No | — |
nextPageToken | string | No | — |
nextPageLink | string | No | — |
items full type
items full type
{
id: string,
type: doc,
href: string,
browserLink: string,
icon?: {
name: string,
type: string,
browserLink: string
},
name: string,
owner: string,
ownerName: string,
docSize?: {
totalRowCount: number,
tableAndViewCount: number,
baseTableCount?: number,
pageCount: number,
overApiSizeLimit: boolean
},
sourceDoc?: {
id: string,
type: doc,
href: string,
browserLink: string
},
createdAt: string,
updatedAt: string,
published?: {
description?: string,
browserLink: string,
imageLink?: string,
discoverable: boolean,
earnCredit: boolean,
mode: view | play | edit,
categories: {
name: string
}[]
},
folder: {
id: string,
type: folder,
browserLink: string,
name?: string
},
workspace: {
id: string,
type: workspace,
organizationId?: string,
browserLink: string,
name?: string
},
workspaceId: string,
folderId: string
}[]
publish
docs.publish
Publish a doc or update its publish settings
Risk: write
await corsair.coda.api.docs.publish({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
slug | string | No | Slug for the published doc. |
discoverable | boolean | No | If true, indicates that the doc is discoverable. |
categoryNames | string[] | No | The names of categories to apply to the document. |
mode | view | play | edit | No | Which interaction mode the published doc should use. |
| Name | Type | Required | Description |
|---|---|---|---|
requestId | string | Yes | — |
unpublish
docs.unpublish
Unpublish a doc
Risk: destructive · Irreversible
await corsair.coda.api.docs.unpublish({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
update
docs.update
Update the title or icon of a doc
Risk: write
await corsair.coda.api.docs.update({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
title | string | No | Title of the doc. |
iconName | string | No | Name of the icon. |
Domains
add
domains.add
Add a custom domain to a published doc
Risk: write
await corsair.coda.api.domains.add({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
customDocDomain | string | Yes | The custom domain. |
delete
domains.delete
Remove a custom domain from a published doc
Risk: destructive · Irreversible
await corsair.coda.api.domains.delete({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
customDocDomain | string | Yes | A custom domain for a published doc. |
getProvider
domains.getProvider
Identify the registrar of a custom domain
Risk: read
await corsair.coda.api.domains.getProvider({});
| Name | Type | Required | Description |
|---|---|---|---|
customDocDomain | string | Yes | A custom domain for a published doc. |
| Name | Type | Required | Description |
|---|---|---|---|
provider | GoDaddy | Namecheap | Hover (Tucows) | Network Solutions | Google Domains | Other | Yes | — |
list
domains.list
List custom domains of a published doc
Risk: read
await corsair.coda.api.domains.list({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
| Name | Type | Required | Description |
|---|---|---|---|
customDocDomains | object[] | Yes | — |
nextPageToken | string | No | — |
nextPageLink | string | No | — |
customDocDomains full type
customDocDomains full type
{
customDocDomain: string,
hasCertificate: boolean,
hasDnsDocId: boolean,
setupStatus: pending | succeeded | failed,
domainStatus: connected | notConnected,
lastVerifiedTimestamp?: string
}[]
update
domains.update
Update a custom domain of a published doc
Risk: write
await corsair.coda.api.domains.update({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
customDocDomain | string | Yes | A custom domain for a published doc. |
body | object | Yes | Credentials patch for the system connection. |
body full type
body full type
{
}
Folders
create
folders.create
Create a folder in a workspace
Risk: write
await corsair.coda.api.folders.create({});
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name of the folder. |
workspaceId | string | Yes | ID of the workspace where the folder should be created. |
description | string | No | Description of the folder. |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
type | folder | Yes | — |
name | string | Yes | — |
browserLink | string | Yes | — |
description | string | No | — |
icon | object | No | — |
iconColor | DARK_BLUE | DARK_YELLOW | DARK_PURPLE | DARK_PINK | DARK_ORANGE | DARK_GREEN | DARK_RED | DARK_GRAY | LIGHT_BLUE | LIGHT_YELLOW | LIGHT_PURPLE | LIGHT_PINK | LIGHT_ORANGE | LIGHT_GREEN | LIGHT_RED | LIGHT_GRAY | No | — |
createdAt | string | No | — |
canEdit | boolean | No | — |
workspace | object | Yes | — |
icon full type
icon full type
{
name: string,
type: string,
browserLink: string
}
workspace full type
workspace full type
{
id: string,
type: workspace,
organizationId?: string,
browserLink: string,
name?: string
}
delete
folders.delete
Delete a folder
Risk: destructive · Irreversible
await corsair.coda.api.folders.delete({});
| Name | Type | Required | Description |
|---|---|---|---|
folderId | string | Yes | ID of the folder. |
get
folders.get
Get metadata about a folder
Risk: read
await corsair.coda.api.folders.get({});
| Name | Type | Required | Description |
|---|---|---|---|
folderId | string | Yes | ID of the folder. |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
type | folder | Yes | — |
name | string | Yes | — |
browserLink | string | Yes | — |
description | string | No | — |
icon | object | No | — |
iconColor | DARK_BLUE | DARK_YELLOW | DARK_PURPLE | DARK_PINK | DARK_ORANGE | DARK_GREEN | DARK_RED | DARK_GRAY | LIGHT_BLUE | LIGHT_YELLOW | LIGHT_PURPLE | LIGHT_PINK | LIGHT_ORANGE | LIGHT_GREEN | LIGHT_RED | LIGHT_GRAY | No | — |
createdAt | string | No | — |
canEdit | boolean | No | — |
workspace | object | Yes | — |
icon full type
icon full type
{
name: string,
type: string,
browserLink: string
}
workspace full type
workspace full type
{
id: string,
type: workspace,
organizationId?: string,
browserLink: string,
name?: string
}
list
folders.list
List folders the user can access
Risk: read
await corsair.coda.api.folders.list({});
| Name | Type | Required | Description |
|---|---|---|---|
workspaceId | string | No | Show only folders belonging to the given workspace. |
isStarred | boolean | No | If true, returns folders that are starred. If false, returns folders that are not starred. If not specified, returns all folders. |
limit | number | No | Maximum number of results to return in this query. |
pageToken | string | No | An opaque token used to fetch the next page of results. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | — |
href | string | No | — |
nextPageToken | string | No | — |
nextPageLink | string | No | — |
items full type
items full type
{
id: string,
type: folder,
name: string,
browserLink: string,
description?: string,
icon?: {
name: string,
type: string,
browserLink: string
},
iconColor?: DARK_BLUE | DARK_YELLOW | DARK_PURPLE | DARK_PINK | DARK_ORANGE | DARK_GREEN | DARK_RED | DARK_GRAY | LIGHT_BLUE | LIGHT_YELLOW | LIGHT_PURPLE | LIGHT_PINK | LIGHT_ORANGE | LIGHT_GREEN | LIGHT_RED | LIGHT_GRAY,
createdAt?: string,
canEdit?: boolean,
workspace: {
id: string,
type: workspace,
organizationId?: string,
browserLink: string,
name?: string
}
}[]
update
folders.update
Update the name or description of a folder
Risk: write
await corsair.coda.api.folders.update({});
| Name | Type | Required | Description |
|---|---|---|---|
folderId | string | Yes | ID of the folder. |
name | string | No | Name of the folder. |
description | string | No | Description of the folder. |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
type | folder | Yes | — |
name | string | Yes | — |
browserLink | string | Yes | — |
description | string | No | — |
icon | object | No | — |
iconColor | DARK_BLUE | DARK_YELLOW | DARK_PURPLE | DARK_PINK | DARK_ORANGE | DARK_GREEN | DARK_RED | DARK_GRAY | LIGHT_BLUE | LIGHT_YELLOW | LIGHT_PURPLE | LIGHT_PINK | LIGHT_ORANGE | LIGHT_GREEN | LIGHT_RED | LIGHT_GRAY | No | — |
createdAt | string | No | — |
canEdit | boolean | No | — |
workspace | object | Yes | — |
icon full type
icon full type
{
name: string,
type: string,
browserLink: string
}
workspace full type
workspace full type
{
id: string,
type: workspace,
organizationId?: string,
browserLink: string,
name?: string
}
Formulas
get
formulas.get
Get a named formula and its value
Risk: read
await corsair.coda.api.formulas.get({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
formulaIdOrName | string | Yes | ID or name of the formula. 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. |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
type | formula | Yes | — |
href | string | Yes | — |
name | string | Yes | — |
parent | object | No | — |
value | string | number | boolean | (string | number | boolean | (string | number | boolean)[])[] | Yes | — |
parent full type
parent full type
{
id: string,
type: page,
href: string,
browserLink: string,
name: string
}
list
formulas.list
List named formulas in a doc
Risk: read
await corsair.coda.api.formulas.list({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
limit | number | No | Maximum number of results to return in this query. |
pageToken | string | No | An opaque token used to fetch the next page of results. |
sortBy | name | No | Determines how to sort the given objects. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | — |
href | string | No | — |
nextPageToken | string | No | — |
nextPageLink | string | No | — |
items full type
items full type
{
id: string,
type: formula,
href: string,
name: string,
parent?: {
id: string,
type: page,
href: string,
browserLink: string,
name: string
}
}[]
Pack Assets
upload
packAssets.upload
Get a signed URL to upload a Pack asset
Risk: write
await corsair.coda.api.packAssets.upload({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
packAssetType | logo | cover | exampleImage | agentImage | Yes | — |
imageHash | string | Yes | The SHA-256 hash of the image to be uploaded. |
mimeType | string | Yes | The media type of the image being sent. |
filename | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
uploadUrl | string | Yes | — |
packAssetUploadedPathName | string | Yes | — |
headers | object | Yes | — |
headers full type
headers full type
Record<string, string>
uploadComplete
packAssets.uploadComplete
Mark the upload of a Pack asset as complete
Risk: write
await corsair.coda.api.packAssets.uploadComplete({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
packAssetId | string | Yes | Unique identifier for a Pack asset. |
packAssetType | logo | cover | exampleImage | agentImage | Yes | Pack asset type. |
| Name | Type | Required | Description |
|---|---|---|---|
requestId | string | Yes | — |
assetId | string | Yes | — |
Pack Categories
add
packCategories.add
Add a publishing category to a Pack
Risk: write
await corsair.coda.api.packCategories.add({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
categoryName | string | Yes | Name of the publishing category. |
delete
packCategories.delete
Remove a publishing category from a Pack
Risk: destructive · Irreversible
await corsair.coda.api.packCategories.delete({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
categoryName | string | Yes | Name of a publishing category |
list
packCategories.list
List the publishing categories of a Pack
Risk: read
await corsair.coda.api.packCategories.list({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
| Name | Type | Required | Description |
|---|---|---|---|
categories | object[] | Yes | — |
categories full type
categories full type
{
categoryId: string,
categoryName: string,
categorySlug?: string
}[]
Pack Connections
getOauthConfig
packConnections.getOauthConfig
Get the OAuth configuration of a Pack
Risk: read
await corsair.coda.api.packConnections.getOauthConfig({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
| Name | Type | Required | Description |
|---|---|---|---|
maskedClientId | string | Yes | — |
maskedClientSecret | string | Yes | — |
authorizationUrl | string | Yes | — |
tokenUrl | string | Yes | — |
tokenPrefix | string | No | — |
scopes | string | No | — |
redirectUri | string | Yes | — |
useDynamicClientRegistration | boolean | No | — |
getSystemConnection
packConnections.getSystemConnection
Get the system connection metadata of a Pack
Risk: read
await corsair.coda.api.packConnections.getSystemConnection({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
object
Output full type
Output full type
{
type: header,
maskedToken?: string,
headerName: string,
tokenPrefix: string
} | {
type: multiHeader,
headers: {
headerName: string,
maskedToken: string,
tokenPrefix?: string
}[],
presets: {
headerName: string,
tokenPrefix?: string
}[]
} | {
type: urlParam,
params: {
key: string,
maskedValue: string
}[],
domain: string,
presetKeys: string[]
} | {
type: httpBasic,
maskedUsername?: string,
maskedPassword?: string
} | {
type: custom,
params: {
key: string,
maskedValue: string
}[],
domain: string,
presetKeys: string[]
} | {
type: oauth2ClientCredentials,
location: automatic | body | header,
maskedClientId: string,
maskedClientSecret: string
} | {
type: googleServiceAccount,
maskedServiceAccountKey: string
} | {
type: awsAssumeRole,
service: string,
roleArn: string,
externalId: string
} | {
type: awsAccessKey,
service: string,
maskedAccessKeyId: string,
maskedSecretAccessKey: string
}
patchSystemConnection
packConnections.patchSystemConnection
Patch the system connection credentials of a Pack
Risk: write
await corsair.coda.api.packConnections.patchSystemConnection({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
body | object | Yes | Credentials patch for the system connection. |
body full type
body full type
{
type: header,
token?: string
} | {
type: multiHeader,
tokensToPatch?: {
key: string,
value: string
}[]
} | {
type: urlParam,
paramsToPatch?: {
key: string,
value: string
}[]
} | {
type: httpBasic,
username?: string,
password?: string
} | {
type: custom,
paramsToPatch?: {
key: string,
value: string
}[]
} | {
type: oauth2ClientCredentials,
clientId?: string,
clientSecret?: string
} | {
type: googleServiceAccount,
serviceAccountKey?: string
} | {
type: awsAssumeRole,
roleArn?: string,
externalId?: string
} | {
type: awsAccessKey,
accessKeyId?: string,
secretAccessKey?: string
}
object
Output full type
Output full type
{
type: header,
maskedToken?: string,
headerName: string,
tokenPrefix: string
} | {
type: multiHeader,
headers: {
headerName: string,
maskedToken: string,
tokenPrefix?: string
}[],
presets: {
headerName: string,
tokenPrefix?: string
}[]
} | {
type: urlParam,
params: {
key: string,
maskedValue: string
}[],
domain: string,
presetKeys: string[]
} | {
type: httpBasic,
maskedUsername?: string,
maskedPassword?: string
} | {
type: custom,
params: {
key: string,
maskedValue: string
}[],
domain: string,
presetKeys: string[]
} | {
type: oauth2ClientCredentials,
location: automatic | body | header,
maskedClientId: string,
maskedClientSecret: string
} | {
type: googleServiceAccount,
maskedServiceAccountKey: string
} | {
type: awsAssumeRole,
service: string,
roleArn: string,
externalId: string
} | {
type: awsAccessKey,
service: string,
maskedAccessKeyId: string,
maskedSecretAccessKey: string
}
setOauthConfig
packConnections.setOauthConfig
Set the OAuth client credentials of a Pack
Risk: write
await corsair.coda.api.packConnections.setOauthConfig({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
clientId | string | No | — |
clientSecret | string | No | — |
redirectUri | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
maskedClientId | string | Yes | — |
maskedClientSecret | string | Yes | — |
authorizationUrl | string | Yes | — |
tokenUrl | string | Yes | — |
tokenPrefix | string | No | — |
scopes | string | No | — |
redirectUri | string | Yes | — |
useDynamicClientRegistration | boolean | No | — |
setSystemConnection
packConnections.setSystemConnection
Set the system connection credentials of a Pack
Risk: write
await corsair.coda.api.packConnections.setSystemConnection({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
credentials | object | Yes | Credentials of a Pack connection. |
credentials full type
credentials full type
{
type: header,
token: string
} | {
type: multiHeader,
tokens: {
key: string,
value: string
}[]
} | {
type: urlParam,
params: {
key: string,
value: string
}[]
} | {
type: httpBasic,
username: string,
password?: string
} | {
type: custom,
params: {
key: string,
value: string
}[]
} | {
type: oauth2ClientCredentials,
clientId: string,
clientSecret: string
} | {
type: googleServiceAccount,
serviceAccountKey: string
} | {
type: awsAssumeRole,
roleArn: string,
externalId: string
} | {
type: awsAccessKey,
accessKeyId: string,
secretAccessKey: string
}
object
Output full type
Output full type
{
type: header,
maskedToken?: string,
headerName: string,
tokenPrefix: string
} | {
type: multiHeader,
headers: {
headerName: string,
maskedToken: string,
tokenPrefix?: string
}[],
presets: {
headerName: string,
tokenPrefix?: string
}[]
} | {
type: urlParam,
params: {
key: string,
maskedValue: string
}[],
domain: string,
presetKeys: string[]
} | {
type: httpBasic,
maskedUsername?: string,
maskedPassword?: string
} | {
type: custom,
params: {
key: string,
maskedValue: string
}[],
domain: string,
presetKeys: string[]
} | {
type: oauth2ClientCredentials,
location: automatic | body | header,
maskedClientId: string,
maskedClientSecret: string
} | {
type: googleServiceAccount,
maskedServiceAccountKey: string
} | {
type: awsAssumeRole,
service: string,
roleArn: string,
externalId: string
} | {
type: awsAccessKey,
service: string,
maskedAccessKeyId: string,
maskedSecretAccessKey: string
}
Pack Featured Docs
list
packFeaturedDocs.list
List the featured docs of a Pack
Risk: read
await corsair.coda.api.packFeaturedDocs.list({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | — |
items full type
items full type
{
doc: {
id: string,
type: doc,
href: string,
browserLink: string
},
isPinned: boolean,
docStatus?: docInaccessibleOrDoesNotExist | invalidPublishedDocUrl,
publishedUrl?: string
}[]
update
packFeaturedDocs.update
Replace the featured docs of a Pack
Risk: write
await corsair.coda.api.packFeaturedDocs.update({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
items | object[] | Yes | A list of docs to set as the featured docs for a Pack. |
items full type
items full type
{
url: string,
isPinned?: boolean
}[]
Pack Invitations
create
packInvitations.create
Invite a user to collaborate on a Pack
Risk: write
await corsair.coda.api.packInvitations.create({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
email | string | Yes | Email address of the user to invite |
access | none | view | test | edit | admin | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
invitationId | string | Yes | — |
listForUser
packInvitations.listForUser
List pending Pack invitations for the user
Risk: read
await corsair.coda.api.packInvitations.listForUser({});
| Name | Type | Required | Description |
|---|---|---|---|
limit | number | No | Maximum number of results to return in this query. |
pageToken | string | No | An opaque token used to fetch the next page of results. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | — |
nextPageToken | string | No | — |
nextPageLink | string | No | — |
items full type
items full type
{
invitation: {
invitationId: string,
packId: number,
inviteeEmail: string,
inviterUserId: number,
access: none | view | test | edit | admin,
createdAt: string,
expiresAt: string
},
pack: {
id: number,
logoUrl?: string,
coverUrl?: string,
exampleImages?: {
filename: string,
imageUrl: string,
assetId: string,
altText?: string,
mimeType?: string
}[],
agentImages?: {
filename: string,
imageUrl: string,
assetId: string,
altText?: string,
mimeType?: string
}[],
workspaceId: string,
categories: {
categoryId: string,
categoryName: string,
categorySlug?: string
}[],
certified?: boolean,
certifiedAgent?: boolean,
sourceCodeVisibility?: private | shared,
packEntrypoints?: go | docs[],
verifiedVersion?: string,
name: string,
description: string,
shortDescription: string,
agentShortDescription?: string,
agentDescription?: string,
supportEmail?: string,
termsOfServiceUrl?: string,
privacyPolicyUrl?: string
},
makers: {
name: string,
pictureLink?: string,
slug?: string,
jobTitle?: string,
employer?: string,
description?: string,
loginId: string
}[],
networkDomains: string[]
}[]
Pack Listings
deleteDraft
packListings.deleteDraft
Delete the listing draft of a Pack
Risk: destructive · Irreversible
await corsair.coda.api.packListings.deleteDraft({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
get
packListings.get
Get the public listing of a Pack
Risk: read
await corsair.coda.api.packListings.get({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
workspaceId | string | No | ID of the target workspace (if applicable) for checking installation privileges. |
docId | string | No | ID of the target document for checking installation privileges |
ingestionId | string | No | ID of the target ingestion for checking limit settings |
installContext | workspace | doc | No | Type of installation context for which Pack information is being requested. |
releaseChannel | LIVE | LATEST | No | Release channel for which Pack information is being requested. |
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | — |
packVersion | string | Yes | — |
releaseId | number | No | — |
lastReleasedAt | string | No | — |
logoUrl | string | Yes | — |
logo | object | Yes | — |
coverUrl | string | No | — |
cover | object | No | — |
exampleImages | object[] | No | — |
agentImages | object[] | No | — |
name | string | Yes | — |
description | string | Yes | — |
shortDescription | string | Yes | — |
agentShortDescription | string | No | — |
agentDescription | string | No | — |
supportEmail | string | No | — |
termsOfServiceUrl | string | No | — |
privacyPolicyUrl | string | No | — |
categories | object[] | Yes | — |
makers | object[] | Yes | — |
certified | boolean | No | — |
certifiedAgent | boolean | No | — |
minimumFeatureSet | Basic | Pro | Team | Enterprise | No | — |
unrestrictedFeatureSet | Basic | Pro | Team | Enterprise | No | — |
externalMetadataUrl | string | Yes | — |
standardPackPlan | object | No | — |
bundledPackPlan | object | No | — |
sourceCodeVisibility | private | shared | No | — |
sdkVersion | string | Yes | — |
packCategoryType | connector | agent | customAgent | Yes | — |
discoverability | public | nomosOrganization | group | grammarlyInstitution | workspace | private | Yes | — |
userAccess | object | Yes | — |
codaHelpCenterUrl | string | No | — |
configuration | object | No | — |
logo full type
logo full type
{
filename: string,
imageUrl: string,
assetId: string,
altText?: string,
mimeType?: string
}
cover full type
cover full type
{
filename: string,
imageUrl: string,
assetId: string,
altText?: string,
mimeType?: string
}
exampleImages full type
exampleImages full type
{
filename: string,
imageUrl: string,
assetId: string,
altText?: string,
mimeType?: string
}[]
agentImages full type
agentImages full type
{
filename: string,
imageUrl: string,
assetId: string,
altText?: string,
mimeType?: string
}[]
categories full type
categories full type
{
categoryId: string,
categoryName: string,
categorySlug?: string
}[]
makers full type
makers full type
{
name: string,
pictureLink?: string,
slug?: string,
jobTitle?: string,
employer?: string,
description?: string
}[]
standardPackPlan full type
standardPackPlan full type
{
packPlanId: string,
packId: number,
pricing: {
type: Free
} | {
type: MonthlyDocMaker,
amount: number,
currency: USD
},
createdAt: string
}
bundledPackPlan full type
bundledPackPlan full type
{
packPlanId: string,
packId: number,
pricing: {
type: BundledWithTier,
minimumFeatureSet: Pro | Team | Enterprise
},
createdAt: string
}
userAccess full type
userAccess full type
{
canEdit: boolean,
canTest: boolean,
canView: boolean,
canInstall: boolean,
canPurchase: boolean,
requiresTrial: boolean,
canConnectAccount: boolean,
usesSystemConnection?: boolean,
organization?: {
canRequestAccess: boolean,
hasRequestedAccess: boolean,
requiresConfiguration: boolean,
allowedConfigurations?: {
configurationId: string,
name: string,
policy?: Record<string, string | number | boolean | null | object | array>,
hasSharedConnection?: boolean
}[],
allowedPackIds?: number[],
incompatibleDocPermissions?: {
principal: {
type: email,
email: string
} | {
type: group,
groupId: string,
groupName: string
} | {
type: domain,
domain: string
} | {
type: workspace,
workspaceId: string
} | {
type: anyone
} | {
type: internalAccess,
internalAccessType: string
},
id: string,
access: readonly | write | comment | none
}[],
incompatibleDocOwner?: {
name: string,
loginId: string,
type: user,
pictureLink?: string
},
incompatibleDocFolder?: {
id: string,
type: folder,
browserLink: string,
name?: string
},
isDocOwner?: boolean
} | {
canRequestAccess: boolean,
hasRequestedAccess: boolean,
requiresConfiguration: boolean,
allowedConfigurations?: {
configurationId: string,
name: string,
policy?: Record<string, string | number | boolean | null | object | array>,
hasSharedConnection?: boolean
}[],
allowedPackIds?: number[]
},
ingestionLimitSettings?: {
tableSettings?: Record<string, { maxBytesPerSyncTableOverride?: number | null, excludeIngestionByDefault?: boolean, parameterLimits?: Record<string, { default: string, allowed: string[] }> }>,
maxBytesPerSyncTableDefault?: number | null,
allowedTablesCount: number
}
}
configuration full type
configuration full type
{
configurationId: string,
name: string,
policy?: Record<string, string | number | boolean | null | object | array>,
hasSharedConnection?: boolean
}
list
packListings.list
List the Pack listings the user can access
Risk: read
await corsair.coda.api.packListings.list({});
| Name | Type | Required | Description |
|---|---|---|---|
packAccessTypes | none | view | test | edit | admin[] | No | Pack access types. |
packIds | number[] | No | Which Pack IDs to fetch. |
onlyWorkspaceId | string | No | Use only this workspace (not all of a user’s workspaces) to check for Packs shared via workspace ACL. |
parentWorkspaceIds | string[] | No | Filter to only Packs whose parent workspace is one of the given IDs. |
excludePublicPacks | boolean | No | Only get Packs shared with users/workspaces, not publicly. |
packEntrypoint | go | docs | No | Entrypoint for which this Pack call is being made. Used to filter non relevant Packs |
certifiedAgentsOnly | boolean | No | Only include Packs that are certified for agent use. Depending on server configuration, may also include Packs that the user is an admin of. |
packCategories | connector | agent | customAgent[] | No | Filter Packs by one or more category types. |
sortBy | packId | name | packVersion | packVersionModifiedAt | agentDirectorySort | No | Specify a sort order for the returned Pack listings returned. |
orderBy | packId | name | packVersion | packVersionModifiedAt | agentDirectorySort | No | Deprecated: use sortBy instead. |
direction | ascending | descending | No | Direction to sort results in. |
limit | number | No | Maximum number of results to return in this query. |
pageToken | string | No | An opaque token used to fetch the next page of results. |
installContext | workspace | doc | No | Type of installation context for which Pack information is being requested. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | — |
nextPageToken | string | No | — |
nextPageLink | string | No | — |
items full type
items full type
{
packId: number,
packVersion: string,
releaseId?: number,
lastReleasedAt?: string,
logoUrl: string,
logo: {
filename: string,
imageUrl: string,
assetId: string,
altText?: string,
mimeType?: string
},
coverUrl?: string,
cover?: {
filename: string,
imageUrl: string,
assetId: string,
altText?: string,
mimeType?: string
},
exampleImages?: {
filename: string,
imageUrl: string,
assetId: string,
altText?: string,
mimeType?: string
}[],
agentImages?: {
filename: string,
imageUrl: string,
assetId: string,
altText?: string,
mimeType?: string
}[],
name: string,
description: string,
shortDescription: string,
agentShortDescription?: string,
agentDescription?: string,
supportEmail?: string,
termsOfServiceUrl?: string,
privacyPolicyUrl?: string,
categories: {
categoryId: string,
categoryName: string,
categorySlug?: string
}[],
makers: {
name: string,
pictureLink?: string,
slug?: string,
jobTitle?: string,
employer?: string,
description?: string
}[],
certified?: boolean,
certifiedAgent?: boolean,
minimumFeatureSet?: Basic | Pro | Team | Enterprise,
unrestrictedFeatureSet?: Basic | Pro | Team | Enterprise,
externalMetadataUrl: string,
standardPackPlan?: {
packPlanId: string,
packId: number,
pricing: {
type: Free
} | {
type: MonthlyDocMaker,
amount: number,
currency: USD
},
createdAt: string
},
bundledPackPlan?: {
packPlanId: string,
packId: number,
pricing: {
type: BundledWithTier,
minimumFeatureSet: Pro | Team | Enterprise
},
createdAt: string
},
sourceCodeVisibility?: private | shared,
sdkVersion: string,
packCategoryType: connector | agent | customAgent
}[]
Pack Logs
getDetails
packLogs.getDetails
Get the details of a Pack ingestion log entry
Risk: read
await corsair.coda.api.packLogs.getDetails({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
tenantId | string | Yes | ID of the tenant. |
rootIngestionId | string | Yes | ID of the root ingestion. |
logId | string | Yes | The id of the log to retrieve. |
detailsKey | string | Yes | The key of the details to retrieve. |
object
Output full type
Output full type
{
type: fetcher,
request: string,
response?: string
} | {
type: invocation,
result?: {
stringVal: string,
int64Val: number,
doubleVal: number,
objectVal: string,
boolVal: boolean,
dateVal: number
},
resultDetail?: string,
continuationJson?: string,
completionJson?: string,
deletedItemIdsJson?: string,
permissionsContextJson?: string
} | {
type: agentRuntime,
input?: string,
output?: string
}
list
packLogs.list
List the execution logs of a Pack in a doc
Risk: read
await corsair.coda.api.packLogs.list({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
docId | string | Yes | ID of the doc. |
limit | number | No | Maximum number of results to return in this query. |
pageToken | string | No | An opaque token used to fetch the next page of results. |
logTypes | custom | fetcher | invocation | internal | auth | ingestionLifecycle | ingestionDebug | agentRuntime | mcp[] | No | Only return logs of the given types. |
beforeTimestamp | string | No | Only return logs before the given time (non-inclusive). |
afterTimestamp | string | No | Only return logs after the given time (non-inclusive). |
order | asc | desc | No | Specifies if the logs will be returned in time desc or asc. Default is desc. |
q | string | No | A search query that follows Lucene syntax. |
requestIds | string[] | No | Only return logs matching provided request IDs. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | — |
nextPageToken | string | No | — |
nextPageLink | string | No | — |
items full type
items full type
(
{
type: custom,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
message: string,
level: error | warn | info | debug | trace | "unknown"
} | {
type: invocation,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
cacheHit?: boolean,
duration?: number,
error?: {
message: string,
stack?: string
}
} | {
type: fetcher,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
requestSizeBytes?: number,
responseCode?: number,
responseSizeBytes?: number,
method?: GET | POST | PUT | DELETE | PATCH | HEAD,
baseUrl?: string,
cacheHit?: boolean,
duration?: number
} | {
type: internal,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
message: string,
level: error | warn | info | debug | trace | "unknown"
} | {
type: auth,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
path: string,
errorMessage?: string,
errorStack?: string
} | {
type: ingestionLifecycle,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
message: string,
level: error | warn | info | debug | trace | "unknown"
} | {
type: ingestionDebug,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
message: string,
level: error | warn | info | debug | trace | "unknown"
} | {
type: agentRuntime,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
turnType: string,
durationMs?: number,
name?: string,
model?: string,
tokenUsage?: string,
instructions?: string,
fromAgent?: string,
toAgent?: string
} | {
type: mcp,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
message?: string,
error?: {
message: string,
stack?: string
}
}
)[]
listGrouped
packLogs.listGrouped
List the execution logs of a Pack in a doc grouped by invocation
Risk: read
await corsair.coda.api.packLogs.listGrouped({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
docId | string | Yes | ID of the doc. |
limit | number | No | Maximum number of results to return in this query. |
pageToken | string | No | An opaque token used to fetch the next page of results. |
beforeTimestamp | string | No | Only return logs before the given time (non-inclusive). |
afterTimestamp | string | No | Only return logs after the given time (non-inclusive). |
order | asc | desc | No | Specifies if the logs will be returned in time desc or asc. Default is desc. |
q | string | No | A search query that follows Lucene syntax. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | — |
nextPageToken | string | No | — |
nextPageLink | string | No | — |
incompleteRelatedLogs | boolean | Yes | — |
items full type
items full type
(
{
type: invocation,
invocationLog: {
type: invocation,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
cacheHit?: boolean,
duration?: number,
error?: {
message: string,
stack?: string
}
},
relatedLogs: (
{
type: custom,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
message: string,
level: error | warn | info | debug | trace | "unknown"
} | {
type: invocation,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
cacheHit?: boolean,
duration?: number,
error?: {
message: string,
stack?: string
}
} | {
type: fetcher,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
requestSizeBytes?: number,
responseCode?: number,
responseSizeBytes?: number,
method?: GET | POST | PUT | DELETE | PATCH | HEAD,
baseUrl?: string,
cacheHit?: boolean,
duration?: number
} | {
type: internal,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
message: string,
level: error | warn | info | debug | trace | "unknown"
} | {
type: auth,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
path: string,
errorMessage?: string,
errorStack?: string
} | {
type: ingestionLifecycle,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
message: string,
level: error | warn | info | debug | trace | "unknown"
} | {
type: ingestionDebug,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
message: string,
level: error | warn | info | debug | trace | "unknown"
} | {
type: agentRuntime,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
turnType: string,
durationMs?: number,
name?: string,
model?: string,
tokenUsage?: string,
instructions?: string,
fromAgent?: string,
toAgent?: string
} | {
type: mcp,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
message?: string,
error?: {
message: string,
stack?: string
}
}
)[]
} | {
type: auth,
authLog: {
type: auth,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
path: string,
errorMessage?: string,
errorStack?: string
},
relatedLogs: (
{
type: custom,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
message: string,
level: error | warn | info | debug | trace | "unknown"
} | {
type: invocation,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
cacheHit?: boolean,
duration?: number,
error?: {
message: string,
stack?: string
}
} | {
type: fetcher,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
requestSizeBytes?: number,
responseCode?: number,
responseSizeBytes?: number,
method?: GET | POST | PUT | DELETE | PATCH | HEAD,
baseUrl?: string,
cacheHit?: boolean,
duration?: number
} | {
type: internal,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
message: string,
level: error | warn | info | debug | trace | "unknown"
} | {
type: auth,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
path: string,
errorMessage?: string,
errorStack?: string
} | {
type: ingestionLifecycle,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
message: string,
level: error | warn | info | debug | trace | "unknown"
} | {
type: ingestionDebug,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
message: string,
level: error | warn | info | debug | trace | "unknown"
} | {
type: agentRuntime,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
turnType: string,
durationMs?: number,
name?: string,
model?: string,
tokenUsage?: string,
instructions?: string,
fromAgent?: string,
toAgent?: string
} | {
type: mcp,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
message?: string,
error?: {
message: string,
stack?: string
}
}
)[]
}
)[]
listGroupedIngestion
packLogs.listGroupedIngestion
List the logs of a Pack ingestion grouped by invocation
Risk: read
await corsair.coda.api.packLogs.listGroupedIngestion({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
tenantId | string | Yes | ID of the tenant. |
rootIngestionId | string | Yes | ID of the root ingestion. |
limit | number | No | Maximum number of results to return in this query. |
pageToken | string | No | An opaque token used to fetch the next page of results. |
ingestionExecutionId | string | No | ID of the ingestion execution. |
beforeTimestamp | string | No | Only return logs before the given time (non-inclusive). |
afterTimestamp | string | No | Only return logs after the given time (non-inclusive). |
order | asc | desc | No | Specifies if the logs will be returned in time desc or asc. Default is desc. |
q | string | No | A search query that follows Lucene syntax. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | — |
nextPageToken | string | No | — |
nextPageLink | string | No | — |
incompleteRelatedLogs | boolean | Yes | — |
items full type
items full type
(
{
type: invocation,
invocationLog: {
type: invocation,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
cacheHit?: boolean,
duration?: number,
error?: {
message: string,
stack?: string
}
},
relatedLogs: (
{
type: custom,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
message: string,
level: error | warn | info | debug | trace | "unknown"
} | {
type: invocation,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
cacheHit?: boolean,
duration?: number,
error?: {
message: string,
stack?: string
}
} | {
type: fetcher,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
requestSizeBytes?: number,
responseCode?: number,
responseSizeBytes?: number,
method?: GET | POST | PUT | DELETE | PATCH | HEAD,
baseUrl?: string,
cacheHit?: boolean,
duration?: number
} | {
type: internal,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
message: string,
level: error | warn | info | debug | trace | "unknown"
} | {
type: auth,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
path: string,
errorMessage?: string,
errorStack?: string
} | {
type: ingestionLifecycle,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
message: string,
level: error | warn | info | debug | trace | "unknown"
} | {
type: ingestionDebug,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
message: string,
level: error | warn | info | debug | trace | "unknown"
} | {
type: agentRuntime,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
turnType: string,
durationMs?: number,
name?: string,
model?: string,
tokenUsage?: string,
instructions?: string,
fromAgent?: string,
toAgent?: string
} | {
type: mcp,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
message?: string,
error?: {
message: string,
stack?: string
}
}
)[]
} | {
type: auth,
authLog: {
type: auth,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
path: string,
errorMessage?: string,
errorStack?: string
},
relatedLogs: (
{
type: custom,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
message: string,
level: error | warn | info | debug | trace | "unknown"
} | {
type: invocation,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
cacheHit?: boolean,
duration?: number,
error?: {
message: string,
stack?: string
}
} | {
type: fetcher,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
requestSizeBytes?: number,
responseCode?: number,
responseSizeBytes?: number,
method?: GET | POST | PUT | DELETE | PATCH | HEAD,
baseUrl?: string,
cacheHit?: boolean,
duration?: number
} | {
type: internal,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
message: string,
level: error | warn | info | debug | trace | "unknown"
} | {
type: auth,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
path: string,
errorMessage?: string,
errorStack?: string
} | {
type: ingestionLifecycle,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
message: string,
level: error | warn | info | debug | trace | "unknown"
} | {
type: ingestionDebug,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
message: string,
level: error | warn | info | debug | trace | "unknown"
} | {
type: agentRuntime,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
turnType: string,
durationMs?: number,
name?: string,
model?: string,
tokenUsage?: string,
instructions?: string,
fromAgent?: string,
toAgent?: string
} | {
type: mcp,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
message?: string,
error?: {
message: string,
stack?: string
}
}
)[]
}
)[]
listIngestion
packLogs.listIngestion
List the logs of a Pack ingestion
Risk: read
await corsair.coda.api.packLogs.listIngestion({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
tenantId | string | Yes | ID of the tenant. |
rootIngestionId | string | Yes | ID of the root ingestion. |
limit | number | No | Maximum number of results to return in this query. |
pageToken | string | No | An opaque token used to fetch the next page of results. |
logTypes | custom | fetcher | invocation | internal | auth | ingestionLifecycle | ingestionDebug | agentRuntime | mcp[] | No | Only return logs of the given types. |
ingestionExecutionId | string | No | ID of the ingestion execution. |
beforeTimestamp | string | No | Only return logs before the given time (non-inclusive). |
afterTimestamp | string | No | Only return logs after the given time (non-inclusive). |
ingestionStatus | QUEUED | STARTED | CANCELLED | UP_FOR_RETRY | COMPLETED | FAILED | No | Only fetch logs with the given ingestion status. This only works in combination with the onlyExecutionCompletions parameter. |
onlyExecutionCompletions | boolean | No | Only fetch logs that represent the completion of a child execution. |
order | asc | desc | No | Specifies if the logs will be returned in time desc or asc. Default is desc. |
q | string | No | A search query that follows Lucene syntax. |
requestIds | string[] | No | Only return logs matching provided request IDs. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | — |
nextPageToken | string | No | — |
nextPageLink | string | No | — |
items full type
items full type
(
{
type: custom,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
message: string,
level: error | warn | info | debug | trace | "unknown"
} | {
type: invocation,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
cacheHit?: boolean,
duration?: number,
error?: {
message: string,
stack?: string
}
} | {
type: fetcher,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
requestSizeBytes?: number,
responseCode?: number,
responseSizeBytes?: number,
method?: GET | POST | PUT | DELETE | PATCH | HEAD,
baseUrl?: string,
cacheHit?: boolean,
duration?: number
} | {
type: internal,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
message: string,
level: error | warn | info | debug | trace | "unknown"
} | {
type: auth,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
path: string,
errorMessage?: string,
errorStack?: string
} | {
type: ingestionLifecycle,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
message: string,
level: error | warn | info | debug | trace | "unknown"
} | {
type: ingestionDebug,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
message: string,
level: error | warn | info | debug | trace | "unknown"
} | {
type: agentRuntime,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
turnType: string,
durationMs?: number,
name?: string,
model?: string,
tokenUsage?: string,
instructions?: string,
fromAgent?: string,
toAgent?: string
} | {
type: mcp,
context: {
docId: string,
packId: string,
packVersion: string,
formulaName: string,
userId: string,
connectionId: string,
connectionName?: string,
requestId: string,
requestType: "unknown" | connectionNameMetadataRequest | parameterAutocompleteMetadataRequest | postAuthSetupMetadataRequest | propertyOptionsMetadataRequest | getSyncTableSchemaMetadataRequest | getDynamicSyncTableNameMetadataRequest | listSyncTableDynamicUrlsMetadataRequest | searchSyncTableDynamicUrlsMetadataRequest | getDynamicSyncTableDisplayUrlMetadataRequest | getIdentifiersForConnectionRequest | invokeFormulaRequest | invokeSyncFormulaRequest | invokeSyncUpdateFormulaRequest | invokeExecuteGetPermissionsRequest | validateParametersMetadataRequest | mcp,
createdAt: string,
logId: string,
docObjectId?: string,
docRowId?: string,
docColumnId?: string,
isSyncTable?: boolean,
isContinuedSyncTable?: boolean,
autocompleteParameterName?: string,
invocationSource?: string,
detailsKey: string,
ingestionChildExecutionIndex?: number,
ingestionId?: string,
rootIngestionId?: string,
ingestionExecutionId?: string,
ingestionStage?: string,
ingestionParentStage?: string,
ingestionExecutionAttempt?: number,
ingestionParentItemId?: string,
ingestionProcessId?: string,
additionalMetadata?: {
},
agentSessionId?: string,
agentInstanceId?: string,
executingAgentInstanceId?: string
},
message?: string,
error?: {
message: string,
stack?: string
}
}
)[]
listIngestionExecutions
packLogs.listIngestionExecutions
List the batch executions of a Pack ingestion
Risk: read
await corsair.coda.api.packLogs.listIngestionExecutions({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
tenantId | string | Yes | ID of the tenant. |
rootIngestionId | string | Yes | ID of the root ingestion. |
pageToken | string | No | An opaque token used to fetch the next page of results. |
limit | number | No | Maximum number of results to return in this query. |
datasource | string | No | Only show batch executions for this datasource (sync table). |
executionType | FULL | INCREMENTAL | No | Only show batch executions with this execution type. |
includeDeletedIngestions | boolean | No | Include deleted ingestion executions in the response |
ingestionExecutionId | string | No | Only retrieve this single batch execution. |
ingestionId | string | No | Only show batch executions for this sync table ingestion. |
ingestionStatus | QUEUED | STARTED | CANCELLED | UP_FOR_RETRY | COMPLETED | FAILED | No | Only show batch executions with this status. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | — |
nextPageToken | string | No | — |
items full type
items full type
{
completionTimestamp: number,
creationTimestamp: number,
dynamicLabel?: string,
dynamicUrl?: string,
executionType: FULL | INCREMENTAL,
fullExecutionId: string,
ingestionExecutionId: string,
ingestionId: string,
ingestionName: string,
ingestionStatusCounts?: Record<string, number>,
lastFinishedFullWorkflowExecutionId?: string,
lastFinishedIncrementalWorkflowExecutionId?: string,
latestFullWorkflowExecutionId?: string,
latestIncrementalWorkflowExecutionId?: string,
latestIngestionSequenceId?: string,
liveIngestionSequenceId?: string,
parentSyncTableIngestionId?: string,
startTimestamp: number,
totalRowCount?: number
}[]
Pack Makers
add
packMakers.add
Add a maker to a Pack
Risk: write
await corsair.coda.api.packMakers.add({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
loginId | string | Yes | The email of the Pack maker. |
delete
packMakers.delete
Remove a maker from a Pack
Risk: destructive · Irreversible
await corsair.coda.api.packMakers.delete({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
loginId | string | Yes | Email of a Coda user. |
list
packMakers.list
List the makers of a Pack
Risk: read
await corsair.coda.api.packMakers.list({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
| Name | Type | Required | Description |
|---|---|---|---|
makers | object[] | Yes | — |
makers full type
makers full type
{
name: string,
pictureLink?: string,
slug?: string,
jobTitle?: string,
employer?: string,
description?: string,
loginId: string
}[]
Pack Permissions
add
packPermissions.add
Grant a principal access to a Pack
Risk: write
await corsair.coda.api.packPermissions.add({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
principal | object | Yes | Metadata about a Pack principal. |
access | none | view | test | edit | admin | Yes | — |
principal full type
principal full type
{
type: user,
email: string
} | {
type: workspace,
workspaceId: string
} | {
type: worldwide
} | {
type: nomosOrganization,
nomosOrganizationId: string
} | {
type: group,
groupId: string,
groupName?: string
} | {
type: grammarlyInstitution,
grammarlyInstitutionId: number
}
| Name | Type | Required | Description |
|---|---|---|---|
permissionId | string | Yes | — |
delete
packPermissions.delete
Remove a permission from a Pack
Risk: destructive · Irreversible
await corsair.coda.api.packPermissions.delete({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
permissionId | string | Yes | ID of a permission on a doc. |
list
packPermissions.list
List the permissions of a Pack
Risk: read
await corsair.coda.api.packPermissions.list({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | — |
permissionUsers | object[] | Yes | — |
items full type
items full type
{
id: string,
principal: {
type: user,
email: string
} | {
type: workspace,
workspaceId: string
} | {
type: worldwide
} | {
type: nomosOrganization,
nomosOrganizationId: string
} | {
type: group,
groupId: string,
groupName?: string
} | {
type: grammarlyInstitution,
grammarlyInstitutionId: number
},
access: none | view | test | edit | admin
}[]
permissionUsers full type
permissionUsers full type
{
name: string,
loginId: string,
type: user,
pictureLink?: string
}[]
Pack Releases
create
packReleases.create
Release a Pack version
Risk: write
await corsair.coda.api.packReleases.create({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
packVersion | string | Yes | Which semantic Pack version that the release will be created on. |
releaseNotes | string | No | Developers notes. |
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | — |
releaseNotes | string | Yes | — |
createdAt | string | Yes | — |
releaseId | number | Yes | — |
packVersion | string | Yes | — |
sdkVersion | string | Yes | — |
list
packReleases.list
List the releases of a Pack
Risk: read
await corsair.coda.api.packReleases.list({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
limit | number | No | Maximum number of results to return in this query. |
pageToken | string | No | An opaque token used to fetch the next page of results. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | — |
nextPageToken | string | No | — |
nextPageLink | string | No | — |
items full type
items full type
{
packId: number,
releaseNotes: string,
createdAt: string,
releaseId: number,
packVersion: string,
sdkVersion: string
}[]
update
packReleases.update
Update the release notes of a Pack release
Risk: write
await corsair.coda.api.packReleases.update({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
packReleaseId | number | Yes | ID of a Pack release |
releaseNotes | string | No | Notes about key features or changes in this release that the Pack maker wants to communicate to users. |
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | — |
releaseNotes | string | Yes | — |
createdAt | string | Yes | — |
releaseId | number | Yes | — |
packVersion | string | Yes | — |
sdkVersion | string | Yes | — |
Packs
create
packs.create
Create a Pack
Risk: write
await corsair.coda.api.packs.create({});
| Name | Type | Required | Description |
|---|---|---|---|
workspaceId | string | No | The parent workspace for the Pack. If unspecified, the user’s default workspace will be used. |
name | string | No | The name for the Pack. |
description | string | No | A brief description of the Pack. |
sourcePackId | number | No | The ID of the new Pack’s source, if this new Pack was forked. |
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | — |
delete
packs.delete
Delete a Pack
Risk: destructive · Irreversible
await corsair.coda.api.packs.delete({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
get
packs.get
Get a Pack
Risk: read
await corsair.coda.api.packs.get({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
logoUrl | string | No | — |
coverUrl | string | No | — |
exampleImages | object[] | No | — |
agentImages | object[] | No | — |
workspaceId | string | Yes | — |
categories | object[] | Yes | — |
certified | boolean | No | — |
certifiedAgent | boolean | No | — |
sourceCodeVisibility | private | shared | No | — |
packEntrypoints | go | docs[] | No | — |
verifiedVersion | string | No | — |
name | string | Yes | — |
description | string | Yes | — |
shortDescription | string | Yes | — |
agentShortDescription | string | No | — |
agentDescription | string | No | — |
supportEmail | string | No | — |
termsOfServiceUrl | string | No | — |
privacyPolicyUrl | string | No | — |
overallRateLimit | object | No | — |
perConnectionRateLimit | object | No | — |
featuredDocStatus | docInaccessibleOrDoesNotExist | invalidPublishedDocUrl | No | — |
additionalInformation | object | No | — |
exampleImages full type
exampleImages full type
{
filename: string,
imageUrl: string,
assetId: string,
altText?: string,
mimeType?: string
}[]
agentImages full type
agentImages full type
{
filename: string,
imageUrl: string,
assetId: string,
altText?: string,
mimeType?: string
}[]
categories full type
categories full type
{
categoryId: string,
categoryName: string,
categorySlug?: string
}[]
overallRateLimit full type
overallRateLimit full type
{
intervalSeconds: number,
operationsPerInterval: number
}
perConnectionRateLimit full type
perConnectionRateLimit full type
{
intervalSeconds: number,
operationsPerInterval: number
}
additionalInformation full type
additionalInformation full type
{
privacyCollectsPersonalInfo?: boolean | null,
privacyPersonalInfoCategories?: string[] | null,
privacyDataUsagePurposes?: string[] | null,
privacyDataCollectedBy?: string[] | null
}
getConfigurationSchema
packs.getConfigurationSchema
Get the JSON Schema of the configuration of a Pack
Risk: read
await corsair.coda.api.packs.getConfigurationSchema({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
object
Output full type
Output full type
Record<string, string | number | boolean | null | object | array>
list
packs.list
List Packs the user can access
Risk: read
await corsair.coda.api.packs.list({});
| Name | Type | Required | Description |
|---|---|---|---|
accessType | none | view | test | edit | admin | No | Deprecated, use accessTypes instead. Filter to only return the Packs for which the current user has this access type |
accessTypes | none | view | test | edit | admin[] | No | Filter to only return the Packs for which the current user has these access types. |
sortBy | title | createdAt | updatedAt | No | The sort order of the Packs returned. |
limit | number | No | Maximum number of results to return in this query. |
direction | ascending | descending | No | Direction to sort results in. |
pageToken | string | No | An opaque token used to fetch the next page of results. |
onlyWorkspaceId | string | No | Use only this workspace (not all of a user’s workspaces) to check for Packs shared via workspace ACL. |
parentWorkspaceIds | string[] | No | Filter to only Packs whose parent workspace is one of the given IDs. |
excludePublicPacks | boolean | No | Only get Packs shared with users/workspaces, not publicly. |
packEntrypoint | go | docs | No | Entrypoint for which this Pack call is being made. Used to filter non relevant Packs |
excludePackCategories | connector | agent | customAgent[] | No | Exclude Packs of one or more category types. Categories not listed stay visible. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | — |
nextPageToken | string | No | — |
nextPageLink | string | No | — |
items full type
items full type
{
id: number,
logoUrl?: string,
coverUrl?: string,
exampleImages?: {
filename: string,
imageUrl: string,
assetId: string,
altText?: string,
mimeType?: string
}[],
agentImages?: {
filename: string,
imageUrl: string,
assetId: string,
altText?: string,
mimeType?: string
}[],
workspaceId: string,
categories: {
categoryId: string,
categoryName: string,
categorySlug?: string
}[],
certified?: boolean,
certifiedAgent?: boolean,
sourceCodeVisibility?: private | shared,
packEntrypoints?: go | docs[],
verifiedVersion?: string,
name: string,
description: string,
shortDescription: string,
agentShortDescription?: string,
agentDescription?: string,
supportEmail?: string,
termsOfServiceUrl?: string,
privacyPolicyUrl?: string
}[]
update
packs.update
Update the metadata of a Pack
Risk: write
await corsair.coda.api.packs.update({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
overallRateLimit | object | No | Rate limit in Pack settings. |
perConnectionRateLimit | object | No | Rate limit in Pack settings. |
logo | object | No | Information about an image file for an update Pack request. |
cover | object | No | Information about an image file for an update Pack request. |
exampleImages | object[] | No | The example images for the Pack. |
agentImages | object[] | No | The agent images for the Pack. |
sourceCodeVisibility | private | shared | No | Visibility of a Pack’s source code. |
packEntrypoints | go | docs[] | No | Pack entrypoints where this Pack is available |
name | string | No | The name of the Pack. |
description | string | No | The full description of the Pack. |
shortDescription | string | No | A short version of the description of the Pack. |
agentShortDescription | string | No | A short description for the Pack as an agent. |
agentDescription | string | No | A full description for the Pack as an agent. |
supportEmail | string | No | A contact email for the Pack. |
termsOfServiceUrl | string | No | A Terms of Service URL for the Pack. |
privacyPolicyUrl | string | No | A Privacy Policy URL for the Pack. |
overallRateLimit full type
overallRateLimit full type
{
intervalSeconds: number,
operationsPerInterval: number
}
perConnectionRateLimit full type
perConnectionRateLimit full type
{
intervalSeconds: number,
operationsPerInterval: number
}
logo full type
logo full type
{
assetId: string,
filename: string,
mimeType?: string
}
cover full type
cover full type
{
assetId: string,
filename: string,
mimeType?: string
}
exampleImages full type
exampleImages full type
{
assetId: string,
filename: string,
mimeType?: string
}[]
agentImages full type
agentImages full type
{
assetId: string,
filename: string,
mimeType?: string
}[]
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | — |
logoUrl | string | No | — |
coverUrl | string | No | — |
exampleImages | object[] | No | — |
agentImages | object[] | No | — |
workspaceId | string | Yes | — |
categories | object[] | Yes | — |
certified | boolean | No | — |
certifiedAgent | boolean | No | — |
sourceCodeVisibility | private | shared | No | — |
packEntrypoints | go | docs[] | No | — |
verifiedVersion | string | No | — |
name | string | Yes | — |
description | string | Yes | — |
shortDescription | string | Yes | — |
agentShortDescription | string | No | — |
agentDescription | string | No | — |
supportEmail | string | No | — |
termsOfServiceUrl | string | No | — |
privacyPolicyUrl | string | No | — |
overallRateLimit | object | No | — |
perConnectionRateLimit | object | No | — |
featuredDocStatus | docInaccessibleOrDoesNotExist | invalidPublishedDocUrl | No | — |
additionalInformation | object | No | — |
exampleImages full type
exampleImages full type
{
filename: string,
imageUrl: string,
assetId: string,
altText?: string,
mimeType?: string
}[]
agentImages full type
agentImages full type
{
filename: string,
imageUrl: string,
assetId: string,
altText?: string,
mimeType?: string
}[]
categories full type
categories full type
{
categoryId: string,
categoryName: string,
categorySlug?: string
}[]
overallRateLimit full type
overallRateLimit full type
{
intervalSeconds: number,
operationsPerInterval: number
}
perConnectionRateLimit full type
perConnectionRateLimit full type
{
intervalSeconds: number,
operationsPerInterval: number
}
additionalInformation full type
additionalInformation full type
{
privacyCollectsPersonalInfo?: boolean | null,
privacyPersonalInfoCategories?: string[] | null,
privacyDataUsagePurposes?: string[] | null,
privacyDataCollectedBy?: string[] | null
}
Pack Versions
getDiff
packVersions.getDiff
Get the differences between two Pack versions
Risk: read
await corsair.coda.api.packVersions.getDiff({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
basePackVersion | string | Yes | Semantic version of the previous Pack version. |
targetPackVersion | string | Yes | Semantic version of the new Pack version. |
| Name | Type | Required | Description |
|---|---|---|---|
findings | string[] | Yes | — |
findingDetails | object[] | Yes | — |
findingDetails full type
findingDetails full type
{
finding: string,
path: string
}[]
getNext
packVersions.getNext
Get the next valid version number for a Pack
Risk: write
await corsair.coda.api.packVersions.getNext({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
proposedMetadata | string | No | The metadata for the next version of the Pack. |
sdkVersion | string | No | The SDK version the metadata was built on. |
| Name | Type | Required | Description |
|---|---|---|---|
nextVersion | string | Yes | — |
findings | string[] | Yes | — |
findingDetails | object[] | Yes | — |
findingDetails full type
findingDetails full type
{
finding: string,
path: string
}[]
getSourceCode
packVersions.getSourceCode
Get download URLs for the source code of a Pack version
Risk: read
await corsair.coda.api.packVersions.getSourceCode({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
packVersion | string | Yes | Semantic version of a Pack |
| Name | Type | Required | Description |
|---|---|---|---|
files | object[] | Yes | — |
files full type
files full type
{
filename: string,
url: string
}[]
list
packVersions.list
List the versions of a Pack
Risk: read
await corsair.coda.api.packVersions.list({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
limit | number | No | Maximum number of results to return in this query. |
pageToken | string | No | An opaque token used to fetch the next page of results. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | — |
creationUsers | object[] | Yes | — |
nextPageToken | string | No | — |
nextPageLink | string | No | — |
items full type
items full type
{
packId: number,
buildNotes: string,
createdAt: string,
creationUserLoginId: string,
releaseId?: number,
packVersion: string,
sdkVersion?: string,
source?: web | cli
}[]
creationUsers full type
creationUsers full type
{
name: string,
loginId: string,
type: user,
pictureLink?: string
}[]
register
packVersions.register
Register a new Pack version and get an upload URL for its bundle
Risk: write
await corsair.coda.api.packVersions.register({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
packVersion | string | Yes | Semantic version of a Pack |
bundleHash | string | Yes | The SHA-256 hash of the file to be uploaded. |
| Name | Type | Required | Description |
|---|---|---|---|
uploadUrl | string | Yes | — |
headers | object | Yes | — |
headers full type
headers full type
Record<string, string>
sourceCodeUploadComplete
packVersions.sourceCodeUploadComplete
Mark the upload of Pack source code as complete
Risk: write
await corsair.coda.api.packVersions.sourceCodeUploadComplete({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
packVersion | string | Yes | Semantic version of a Pack |
filename | string | Yes | — |
codeHash | string | Yes | A SHA-256 hash of the source code used to identify duplicate uploads. |
| Name | Type | Required | Description |
|---|---|---|---|
requestId | string | Yes | — |
uploadComplete
packVersions.uploadComplete
Mark the upload of a Pack version bundle as complete
Risk: write
await corsair.coda.api.packVersions.uploadComplete({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
packVersion | string | Yes | Semantic version of a Pack |
notes | string | No | Developer notes of the new Pack version. |
source | web | cli | No | — |
allowOlderSdkVersion | boolean | No | Bypass the Coda protection against SDK version regression when multiple makers build versions. |
| Name | Type | Required | Description |
|---|---|---|---|
deprecationWarnings | object[] | No | — |
deprecationWarnings full type
deprecationWarnings full type
{
path: string,
message: string
}[]
uploadSourceCode
packVersions.uploadSourceCode
Get a signed URL to upload the source code of a Pack version
Risk: write
await corsair.coda.api.packVersions.uploadSourceCode({});
| Name | Type | Required | Description |
|---|---|---|---|
packId | number | Yes | ID of a Pack |
payloadHash | string | Yes | The SHA-256 hash of the image to be uploaded. |
filename | string | Yes | — |
packVersion | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
uploadUrl | string | Yes | — |
uploadedPathName | string | Yes | — |
headers | object | Yes | — |
headers full type
headers full type
Record<string, string>
Pages
beginExport
pages.beginExport
Start an asynchronous export of page content
Risk: write
await corsair.coda.api.pages.beginExport({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
pageIdOrName | string | Yes | ID or name of the page. 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. If you provide a name and there are multiple pages with the same name, an arbitrary one will be selected. |
outputFormat | html | markdown | Yes | Supported output content formats that can be requested for getting content for an existing page. |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
status | string | Yes | — |
href | string | Yes | — |
create
pages.create
Create a new page in a doc
Risk: write
await corsair.coda.api.pages.create({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
name | string | No | Name of the page. |
subtitle | string | No | Subtitle of the page. |
iconName | string | No | Name of the icon. |
imageUrl | string | No | Url of the cover image to use. |
parentPageId | string | No | The ID of this new page’s parent, if creating a subpage. |
pageContent | object | No | Content that can be added to a page at creation time, either text (or rich text) or a URL to create a full-page embed. |
pageContent full type
pageContent full type
{
type: canvas,
canvasContent: {
format: html | markdown,
content: string
}
} | {
type: embed,
url: string,
renderMethod?: compatibility | standard
} | {
type: syncPage,
mode: page,
includeSubpages: boolean,
sourcePageId: string,
sourceDocId: string
} | {
type: syncPage,
mode: document,
sourceDocId: string
}
| Name | Type | Required | Description |
|---|---|---|---|
requestId | string | Yes | — |
id | string | Yes | — |
delete
pages.delete
Delete a page
Risk: destructive · Irreversible
await corsair.coda.api.pages.delete({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
pageIdOrName | string | Yes | ID or name of the page. 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. If you provide a name and there are multiple pages with the same name, an arbitrary one will be selected. |
| Name | Type | Required | Description |
|---|---|---|---|
requestId | string | Yes | — |
id | string | Yes | — |
deleteContent
pages.deleteContent
Delete content elements from a page
Risk: destructive · Irreversible
await corsair.coda.api.pages.deleteContent({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
pageIdOrName | string | Yes | ID or name of the page. 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. If you provide a name and there are multiple pages with the same name, an arbitrary one will be selected. |
elementIds | string[] | No | IDs of the elements to delete from the page. If omitted or empty, all content will be deleted. |
| Name | Type | Required | Description |
|---|---|---|---|
requestId | string | Yes | — |
id | string | Yes | — |
get
pages.get
Get details about a page
Risk: read
await corsair.coda.api.pages.get({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
pageIdOrName | string | Yes | ID or name of the page. 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. If you provide a name and there are multiple pages with the same name, an arbitrary one will be selected. |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
type | page | Yes | — |
href | string | Yes | — |
browserLink | string | Yes | — |
name | string | Yes | — |
subtitle | string | No | — |
icon | object | No | — |
image | object | No | — |
contentType | canvas | embed | syncPage | Yes | — |
isHidden | boolean | Yes | — |
isEffectivelyHidden | boolean | Yes | — |
parent | object | No | — |
children | object[] | Yes | — |
authors | object[] | No | — |
createdAt | string | No | — |
createdBy | object | No | — |
updatedAt | string | No | — |
updatedBy | object | No | — |
icon full type
icon full type
{
name: string,
type: string,
browserLink: string
}
image full type
image full type
{
browserLink: string,
type?: string,
width?: number,
height?: number
}
parent full type
parent full type
{
id: string,
type: page,
href: string,
browserLink: string,
name: string
}
children full type
children full type
{
id: string,
type: page,
href: string,
browserLink: string,
name: string
}[]
authors full type
authors full type
{
@context: string,
@type: Person,
additionalType?: string,
name: string,
email?: string
}[]
createdBy full type
createdBy full type
{
@context: string,
@type: Person,
additionalType?: string,
name: string,
email?: string
}
updatedBy full type
updatedBy full type
{
@context: string,
@type: Person,
additionalType?: string,
name: string,
email?: string
}
getExportStatus
pages.getExportStatus
Check the status of a page content export
Risk: read
await corsair.coda.api.pages.getExportStatus({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
pageIdOrName | string | Yes | ID or name of the page. 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. If you provide a name and there are multiple pages with the same name, an arbitrary one will be selected. |
requestId | string | Yes | ID of the request. |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
status | string | Yes | — |
href | string | Yes | — |
downloadLink | string | No | — |
error | string | No | — |
list
pages.list
List pages in a doc
Risk: read
await corsair.coda.api.pages.list({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
limit | number | No | Maximum number of results to return in this query. |
pageToken | string | No | An opaque token used to fetch the next page of results. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | — |
href | string | No | — |
nextPageToken | string | No | — |
nextPageLink | string | No | — |
items full type
items full type
{
id: string,
type: page,
href: string,
browserLink: string,
name: string,
subtitle?: string,
icon?: {
name: string,
type: string,
browserLink: string
},
image?: {
browserLink: string,
type?: string,
width?: number,
height?: number
},
contentType: canvas | embed | syncPage,
isHidden: boolean,
isEffectivelyHidden: boolean,
parent?: {
id: string,
type: page,
href: string,
browserLink: string,
name: string
},
children: {
id: string,
type: page,
href: string,
browserLink: string,
name: string
}[],
authors?: {
@context: string,
@type: Person,
additionalType?: string,
name: string,
email?: string
}[],
createdAt?: string,
createdBy?: {
@context: string,
@type: Person,
additionalType?: string,
name: string,
email?: string
},
updatedAt?: string,
updatedBy?: {
@context: string,
@type: Person,
additionalType?: string,
name: string,
email?: string
}
}[]
listContent
pages.listContent
List the content elements of a page
Risk: read
await corsair.coda.api.pages.listContent({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
pageIdOrName | string | Yes | ID or name of the page. 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. If you provide a name and there are multiple pages with the same name, an arbitrary one will be selected. |
limit | number | No | Maximum number of content items to return in this query. |
pageToken | string | No | An opaque token used to fetch the next page of results. |
contentFormat | plainText | No | The format to return content in. Defaults to plainText. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | — |
href | string | Yes | — |
nextPageToken | string | No | — |
nextPageLink | string | No | — |
items full type
items full type
{
id: string,
type: line,
itemContent?: {
style: blockQuote | bulletedList | checkboxList | code | collapsibleList | h1 | h2 | h3 | numberedList | paragraph | pullQuote,
format: plainText,
content: string,
lineLevel?: number
}
}[]
update
pages.update
Update the properties or content of a page
Risk: write
await corsair.coda.api.pages.update({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
pageIdOrName | string | Yes | ID or name of the page. 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. If you provide a name and there are multiple pages with the same name, an arbitrary one will be selected. |
name | string | No | Name of the page. |
subtitle | string | No | Subtitle of the page. |
iconName | string | No | Name of the icon. |
imageUrl | string | No | Url of the cover image to use. |
isHidden | boolean | No | Whether the page is hidden or not. Note that for pages that cannot be hidden, like the sole top-level page in a doc, this will be ignored. |
contentUpdate | object | No | — |
contentUpdate full type
contentUpdate full type
{
insertionMode: append | prepend | replace,
elementId?: string,
canvasContent: {
format: html | markdown,
content: string
}
}
| Name | Type | Required | Description |
|---|---|---|---|
requestId | string | Yes | — |
id | string | Yes | — |
Permissions
add
permissions.add
Share a doc with a user, domain or anyone
Risk: write
await corsair.coda.api.permissions.add({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
access | readonly | write | comment | Yes | Type of access (excluding none). |
principal | object | Yes | Metadata about a principal to add to a doc. |
suppressEmail | boolean | No | When true suppresses email notification |
principal full type
principal full type
{
type: email,
email: string
} | {
type: group,
groupId: string
} | {
type: domain,
domain: string
} | {
type: workspace,
workspaceId: string
} | {
type: anyone
}
delete
permissions.delete
Remove a sharing permission from a doc
Risk: destructive · Irreversible
await corsair.coda.api.permissions.delete({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
permissionId | string | Yes | ID of a permission on a doc. |
getAclSettings
permissions.getAclSettings
Get the access control settings of a doc
Risk: read
await corsair.coda.api.permissions.getAclSettings({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
| Name | Type | Required | Description |
|---|---|---|---|
allowEditorsToChangePermissions | boolean | Yes | — |
allowCopying | boolean | Yes | — |
allowViewersToRequestEditing | boolean | Yes | — |
getSharingMetadata
permissions.getSharingMetadata
Get sharing capabilities of the user for a doc
Risk: read
await corsair.coda.api.permissions.getSharingMetadata({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
| Name | Type | Required | Description |
|---|---|---|---|
canShare | boolean | Yes | — |
canShareWithWorkspace | boolean | Yes | — |
canShareWithOrg | boolean | Yes | — |
canCopy | boolean | Yes | — |
list
permissions.list
List the sharing permissions of a doc
Risk: read
await corsair.coda.api.permissions.list({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
limit | number | No | Maximum number of results to return in this query. |
pageToken | string | No | An opaque token used to fetch the next page of results. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | — |
href | string | Yes | — |
nextPageToken | string | No | — |
nextPageLink | string | No | — |
items full type
items full type
{
principal: {
type: email,
email: string
} | {
type: group,
groupId: string,
groupName: string
} | {
type: domain,
domain: string
} | {
type: workspace,
workspaceId: string
} | {
type: anyone
} | {
type: internalAccess,
internalAccessType: string
},
id: string,
access: readonly | write | comment | none
}[]
searchPrincipals
permissions.searchPrincipals
Search users and groups a doc can be shared with
Risk: read
await corsair.coda.api.permissions.searchPrincipals({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
query | string | No | Search term used to filter down results. |
| Name | Type | Required | Description |
|---|---|---|---|
users | object[] | Yes | — |
groups | object[] | Yes | — |
users full type
users full type
{
name: string,
loginId: string,
type: user,
pictureLink?: string
}[]
groups full type
groups full type
{
type: group,
groupId: string,
groupName: string
}[]
updateAclSettings
permissions.updateAclSettings
Update the access control settings of a doc
Risk: write
await corsair.coda.api.permissions.updateAclSettings({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
allowEditorsToChangePermissions | boolean | No | When true, allows editors to change doc permissions. When false, only doc owner can change doc permissions. |
allowCopying | boolean | No | When true, allows doc viewers to copy the doc. |
allowViewersToRequestEditing | boolean | No | When true, allows doc viewers to request editing permissions. |
| Name | Type | Required | Description |
|---|---|---|---|
allowEditorsToChangePermissions | boolean | Yes | — |
allowCopying | boolean | Yes | — |
allowViewersToRequestEditing | boolean | Yes | — |
Rows
delete
rows.delete
Delete a row from a table
Risk: destructive · Irreversible
await corsair.coda.api.rows.delete({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
tableIdOrName | string | Yes | 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. |
rowIdOrName | string | Yes | ID or name of the row. 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. If there are multiple rows with the same value in the identifying column, an arbitrary one will be selected. |
| Name | Type | Required | Description |
|---|---|---|---|
requestId | string | Yes | — |
id | string | Yes | — |
deleteMany
rows.deleteMany
Delete several rows from a table
Risk: destructive · Irreversible
await corsair.coda.api.rows.deleteMany({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
tableIdOrName | string | Yes | 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. |
rowIds | string[] | Yes | Row IDs to delete. |
| Name | Type | Required | Description |
|---|---|---|---|
requestId | string | Yes | — |
rowIds | string[] | Yes | — |
get
rows.get
Get a row in a table
Risk: read
await corsair.coda.api.rows.get({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
tableIdOrName | string | Yes | 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. |
rowIdOrName | string | Yes | ID or name of the row. 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. If there are multiple rows with the same value in the identifying column, an arbitrary one will be selected. |
useColumnNames | boolean | No | Use column names instead of column IDs in the returned output. This is generally discouraged as it is fragile. If columns are renamed, code using original names may throw errors. |
valueFormat | simple | simpleWithArrays | rich | No | The format that cell values are returned as. |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
type | row | Yes | — |
href | string | Yes | — |
name | string | Yes | — |
index | number | Yes | — |
browserLink | string | Yes | — |
createdAt | string | Yes | — |
updatedAt | string | Yes | — |
values | object | Yes | — |
parent | object | Yes | — |
values full type
values full type
Record<string, string | number | boolean | object | array>
parent full type
parent full type
{
id: string,
type: table,
tableType: table | view | database,
href: string,
browserLink: string,
name: string,
parent?: {
id: string,
type: page,
href: string,
browserLink: string,
name: string
}
}
list
rows.list
List rows in a table
Risk: read
await corsair.coda.api.rows.list({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
tableIdOrName | string | Yes | 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. |
query | string | No | Query used to filter returned rows, specified as <column_id_or_name>:<value>. If you’d like to use a column name instead of an ID, you must quote it (e.g., "My Column":123). Also note that value is a JSON value; if you’d like to use a string, you must surround it in quotes (e.g., "groceries"). |
sortBy | createdAt | natural | updatedAt | No | Specifies the sort order of the rows returned. If left unspecified, rows are returned by creation time ascending. “UpdatedAt” sort ordering is the order of rows based upon when they were last updated. This does not include updates to calculated values. “Natural” sort ordering is the order that the rows appear in the table view in the application. This ordering is only meaningfully defined for rows that are visible (unfiltered). Because of this, using this sort order will imply visibleOnly=true, that is, to only return visible rows. If you pass sortBy=natural and visibleOnly=false explicitly, this will result in a Bad Request error as this condition cannot be satisfied. |
useColumnNames | boolean | No | Use column names instead of column IDs in the returned output. This is generally discouraged as it is fragile. If columns are renamed, code using original names may throw errors. |
valueFormat | simple | simpleWithArrays | rich | No | The format that cell values are returned as. |
visibleOnly | boolean | No | If true, returns only visible rows and columns for the table. |
limit | number | No | Maximum number of results to return in this query. |
pageToken | string | No | An opaque token used to fetch the next page of results. |
syncToken | string | No | An opaque token returned from a previous call that can be used to return results that are relevant to the query since the call where the syncToken was generated. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | — |
href | string | No | — |
nextPageToken | string | No | — |
nextPageLink | string | No | — |
nextSyncToken | string | No | — |
items full type
items full type
{
id: string,
type: row,
href: string,
name: string,
index: number,
browserLink: string,
createdAt: string,
updatedAt: string,
values: Record<string, string | number | boolean | object | array>
}[]
pushButton
rows.pushButton
Push a button column in a row
Risk: write
await corsair.coda.api.rows.pushButton({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
tableIdOrName | string | Yes | 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. |
rowIdOrName | string | Yes | ID or name of the row. 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. If there are multiple rows with the same value in the identifying column, an arbitrary one will be selected. |
columnIdOrName | string | Yes | 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. |
| Name | Type | Required | Description |
|---|---|---|---|
requestId | string | Yes | — |
rowId | string | Yes | — |
columnId | string | Yes | — |
update
rows.update
Update a row in a table
Risk: write
await corsair.coda.api.rows.update({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
tableIdOrName | string | Yes | 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. |
rowIdOrName | string | Yes | ID or name of the row. 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. If there are multiple rows with the same value in the identifying column, an arbitrary one will be selected. |
disableParsing | boolean | No | If true, the API will not attempt to parse the data in any way. |
row | object | Yes | An edit made to a particular row. |
row full type
row full type
{
cells: {
column: string,
value: string | number | boolean | (
string | number | boolean | (
string | number | boolean
)[]
)[]
}[]
}
| Name | Type | Required | Description |
|---|---|---|---|
requestId | string | Yes | — |
id | string | Yes | — |
upsert
rows.upsert
Insert rows into a table, or update them when key columns match
Risk: write
await corsair.coda.api.rows.upsert({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
tableIdOrName | string | Yes | 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. |
disableParsing | boolean | No | If true, the API will not attempt to parse the data in any way. |
rows | object[] | Yes | — |
keyColumns | string[] | No | Optional column IDs, URLs, or names (fragile and discouraged), specifying columns to be used as upsert keys. |
rows full type
rows full type
{
cells: {
column: string,
value: string | number | boolean | (
string | number | boolean | (
string | number | boolean
)[]
)[]
}[]
}[]
| Name | Type | Required | Description |
|---|---|---|---|
requestId | string | Yes | — |
addedRowIds | string[] | No | — |
Tables
get
tables.get
Get details about a table or view
Risk: read
await corsair.coda.api.tables.get({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
tableIdOrName | string | Yes | 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. |
useUpdatedTableLayouts | boolean | No | Return “detail” and “form” for the layout field of detail and form layouts respectively (instead of “masterDetail” for both) |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
type | table | Yes | — |
tableType | table | view | database | Yes | — |
href | string | Yes | — |
browserLink | string | Yes | — |
name | string | Yes | — |
parent | object | Yes | — |
parentTable | object | No | — |
displayColumn | object | Yes | — |
rowCount | number | Yes | — |
sorts | object[] | Yes | — |
layout | default | areaChart | barChart | bubbleChart | calendar | card | detail | form | ganttChart | lineChart | masterDetail | pieChart | scatterChart | slide | wordCloud | Yes | — |
filter | object | No | — |
createdAt | string | Yes | — |
updatedAt | string | Yes | — |
parent full type
parent full type
{
id: string,
type: page,
href: string,
browserLink: string,
name: string
}
parentTable full type
parentTable full type
{
id: string,
type: table,
tableType: table | view | database,
href: string,
browserLink: string,
name: string,
parent?: {
id: string,
type: page,
href: string,
browserLink: string,
name: string
}
}
displayColumn full type
displayColumn full type
{
id: string,
type: column,
href: string
}
sorts full type
sorts full type
{
column: {
id: string,
type: column,
href: string
},
direction: ascending | descending
}[]
filter full type
filter full type
{
valid: boolean,
isVolatile?: boolean,
hasUserFormula?: boolean,
hasTodayFormula?: boolean,
hasNowFormula?: boolean
}
list
tables.list
List tables and views in a doc
Risk: read
await corsair.coda.api.tables.list({});
| Name | Type | Required | Description |
|---|---|---|---|
docId | string | Yes | ID of the doc. |
limit | number | No | Maximum number of results to return in this query. |
pageToken | string | No | An opaque token used to fetch the next page of results. |
sortBy | name | No | Determines how to sort the given objects. |
tableTypes | table | view | database[] | No | Comma-separated list of table types to include in results. If omitted, includes tables, views, and databases. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | — |
href | string | No | — |
nextPageToken | string | No | — |
nextPageLink | string | No | — |
items full type
items full type
{
id: string,
type: table,
tableType: table | view | database,
href: string,
browserLink: string,
name: string,
parent?: {
id: string,
type: page,
href: string,
browserLink: string,
name: string
}
}[]
Workspaces
changeUserRole
workspaces.changeUserRole
Change the role of a workspace member
Risk: write
await corsair.coda.api.workspaces.changeUserRole({});
| Name | Type | Required | Description |
|---|---|---|---|
workspaceId | string | Yes | ID of the workspace. |
email | string | Yes | Email of the user. |
newRole | Admin | DocMaker | Editor | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
roleChangedAt | string | Yes | — |
listRoles
workspaces.listRoles
List user counts by role over time for a workspace
Risk: read
await corsair.coda.api.workspaces.listRoles({});
| Name | Type | Required | Description |
|---|---|---|---|
workspaceId | string | Yes | ID of the workspace. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | — |
items full type
items full type
{
month: string,
activeAdminCount: number,
activeDocMakerCount: number,
activeEditorCount: number,
inactiveAdminCount: number,
inactiveDocMakerCount: number,
inactiveEditorCount: number
}[]
listUsers
workspaces.listUsers
List members of a workspace
Risk: read
await corsair.coda.api.workspaces.listUsers({});
| Name | Type | Required | Description |
|---|---|---|---|
workspaceId | string | Yes | ID of the workspace. |
includedRoles | Admin | DocMaker | Editor[] | No | Show only the members that match the included roles. Multiple roles can be specified with a comma-delimited list. |
pageToken | string | No | An opaque token used to fetch the next page of results. |
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Yes | — |
nextPageToken | string | No | — |
nextPageLink | string | No | — |
items full type
items full type
{
email: string,
name: string,
role: Admin | DocMaker | Editor,
pictureUrl?: string,
registeredAt: string,
roleChangedAt?: string,
lastActiveAt?: string,
ownedDocs?: number,
docsLastActiveAt?: string,
docCollaboratorCount?: number,
totalDocs?: number,
totalDocsLastActiveAt?: string,
totalDocCollaboratorsLast90Days?: number
}[]