autessa.notion
10 methods in the notion namespace.
autessa.notion.connectors.allREAD
autessa.notion.connectors.all()List every Notion connector you can access in your company.
Returns all Notion connectors in your current company that you have at least READ access to, newest-relevant first. Use a connector's connectorId with the other notion.connectors.* methods. Credentials are never included in the returned DTOs.
Request fields
No fields.
Response fields
- Name
errors- Type
- string[]
- Description
- Name
deprecationWarnings- Type
- string[]
- Description
- Name
sessionToken- Type
- string
- Description
- Name
connectors- Type
- NotionConnectorDto[]
- Description
autessa.notion.connectors.deleteMUTATE
autessa.notion.connectors.delete({ connectorId })Permanently delete a Notion connector and its stored credential.
Removes the Notion connector for connectorId, revoking every tool and script that relied on it. The stored credential is destroyed and cannot be recovered — reconnecting requires the full auth flow again. Requires WRITE (owner-level) access.
Request fields
- Name
connectorId- Type
- string (opaque id)
- Description
- References external connector by opaque id.
Response fields
- Name
errors- Type
- string[]
- Description
- Name
deprecationWarnings- Type
- string[]
- Description
- Name
sessionToken- Type
- string
- Description
- Name
message- Type
- string
- Description
autessa.notion.connectors.getREAD
autessa.notion.connectors.get({ connectorId })Fetch one Notion connector by id.
Returns the full Notion connector for connectorId, including its sharing/active state and the linked account metadata — but never the stored credential. Fails if you lack READ access to the connector.
Request fields
- Name
connectorId- Type
- string (opaque id)
- Description
- References external connector by opaque id.
Response fields
- Name
errors- Type
- string[]
- Description
- Name
deprecationWarnings- Type
- string[]
- Description
- Name
sessionToken- Type
- string
- Description
- Name
connector- Type
- NotionConnectorDto
- Description
autessa.notion.connectors.getSharingDetailsREAD
autessa.notion.connectors.getSharingDetails({ connectorId })Read the current sharing configuration of a Notion connector.
Returns how the Notion connector is shared: the overall sharingLevel, the companyPermissionLevel granted for COMPANY sharing, the explicit sharedWith members, and your own userAccessLevel. Use before share to see the current state.
Request fields
- Name
connectorId- Type
- string (opaque id)
- Description
- References external connector by opaque id.
Response fields
- Name
errors- Type
- string[]
- Description
- Name
deprecationWarnings- Type
- string[]
- Description
- Name
sessionToken- Type
- string
- Description
- Name
sharingLevel- Type
- "PRIVATE" | "SPECIFIC_MEMBER" | "COMPANY"
- Description
- Name
companyPermissionLevel- Type
- "READ" | "WRITE" | "PUBLISH" | "ADMIN"
- Description
- Name
sharedWith- Type
- UserShareWrapper[]
- Description
- Name
userAccessLevel- Type
- "READ" | "WRITE" | "PUBLISH" | "ADMIN"
- Description
autessa.notion.connectors.updateMUTATE
autessa.notion.connectors.update({ connectorId, connectorName, isActive })Rename a Notion connector or toggle whether it is active.
Applies a sparse patch to the Notion connector for connectorId: send connectorName to rename it, isActive to enable/disable it. This is a partial update — omit a field to leave it unchanged; sending null or an empty name is ignored. Does not touch the stored credential or sharing. Requires WRITE access.
Request fields
- Name
connectorId- Type
- string (opaque id)
- Description
- References external connector by opaque id.
- Name
connectorName- Type
- string
- Description
- Name
isActive- Type
- boolean
- Description
Response fields
- Name
errors- Type
- string[]
- Description
- Name
deprecationWarnings- Type
- string[]
- Description
- Name
sessionToken- Type
- string
- Description
- Name
message- Type
- string
- Description
- Name
connector- Type
- NotionConnectorDto
- Description
autessa.notion.lookup.databasesREAD
autessa.notion.lookup.databases({ connectorId, query })List the databases in a Notion connector's workspace.
Returns the databases the connector's Notion integration can see, each with its Notion id, title, and last-edited time. Pass query to filter by a case-insensitive title substring. This is a live read against the Notion API using the connector's OAuth token. Use the returned database id with lookup.databaseSchema. Requires READ access to the connector.
Request fields
- Name
connectorId- Type
- string (opaque id)
- Description
- References external connector by opaque id.
- Name
query- Type
- string
- Description
Response fields
- Name
errors- Type
- string[]
- Description
- Name
deprecationWarnings- Type
- string[]
- Description
- Name
sessionToken- Type
- string
- Description
- Name
databases- Type
- NotionDatabaseRef[]
- Description
autessa.notion.lookup.databaseSchemaREAD
autessa.notion.lookup.databaseSchema({ connectorId, databaseId })Fetch the column schema of one Notion database.
Returns the title and property (column) schema of the Notion database identified by databaseId, so a script knows the columns and their types before reading or writing rows. Each property carries its name, Notion type, and — for select/multi-select/status columns — the list of allowed option names. databaseId is the raw Notion database id (from lookup.databases), not an Autessa resource id. This is a live read using the connector's OAuth token; requires READ access to the connector.
Request fields
- Name
connectorId- Type
- string (opaque id)
- Description
- References external connector by opaque id.
- Name
databaseId- Type
- string
- Description
Response fields
- Name
errors- Type
- string[]
- Description
- Name
deprecationWarnings- Type
- string[]
- Description
- Name
sessionToken- Type
- string
- Description
- Name
databaseId- Type
- string
- Description
- Name
title- Type
- string
- Description
- Name
properties- Type
- NotionPropertySchema[]
- Description
autessa.notion.lookup.pagesREAD
autessa.notion.lookup.pages({ connectorId, query })List the pages in a Notion connector's workspace.
Returns the pages the connector's Notion integration can see, each with its Notion id, title, parent type, and last-edited time. Pass query to filter by a case-insensitive title substring. This is a live read against the Notion API using the connector's OAuth token. Requires READ access to the connector.
Request fields
- Name
connectorId- Type
- string (opaque id)
- Description
- References external connector by opaque id.
- Name
query- Type
- string
- Description
Response fields
- Name
errors- Type
- string[]
- Description
- Name
deprecationWarnings- Type
- string[]
- Description
- Name
sessionToken- Type
- string
- Description
- Name
pages- Type
- NotionPageRef[]
- Description