Skip to navigation

Browse a connected account or one of its sources

Beta

List one page of what a connected account or a source holds, read with the caller’s own sign-in. Start from a connected account’s catalog (the catalogId the React SDK’s useAthenaConnectors gives for each account): its items are its sources (a OneDrive, SharePoint sites). List a source’s catalog_asset_id for its libraries, folders and files, and pass folder_id to open a library or a folder. The caller needs a connected account of their own for the source: being able to see a colleague’s catalog is answered 403 connect_your_own, and nothing is asked of the provider. Listings carry names and ids, never a token or a signed download link.

Authentication

X-API-KEYstring
API Key authentication via header

Path parameters

catalog_asset_idstringRequired
The catalog of a connected account, or of one of its sources.

Headers

X-Athena-Session-CredentialstringOptional

Query parameters

folder_idstring or nullOptional1-512 characters
The id of a library or a folder of the source to open. Omit for the top level.
page_tokenstring or nullOptional1-8192 characters

The next_page_token of the page before, for the next one.

Response

Successful Response
catalog_asset_idstring
The catalog that was listed.
itemslist of objects
kindstring

What was listed: microsoft_365 (a connected account: its items are sources), sharepoint_site or onedrive.

next_page_tokenstring or nullOptional

Pass as page_token, with the same catalog_asset_id and folder_id, for the next page. Opaque. Null on the last page.

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
502
Bad Gateway Error
503
Service Unavailable Error