getThirdPartyAccounts
ThirdPartyAccountArrayWrapper getThirdPartyAccounts()
GET /api/2.0/files/thirdparty
Get the third-party accounts
Lists the third-party storage accounts the caller has connected, one element per account, with the title it was saved under, the storage service behind it and the portal section it is attached to. Accounts connected by other members are not included, and neither is the portal backup account of GET api/2.0/files/thirdparty/backup, even for an administrator. The providerId of an element is the value to send to DELETE api/2.0/files/thirdparty/{providerId} and, as providerId in POST api/2.0/files/thirdparty, the way to re-authenticate that same account instead of connecting a new one. Credentials are never disclosed: auth_data comes back empty for every element. An element with roomsStorage set is available as storage for a room, while corporate marks an account inherited from the legacy Common section. The call is read-only, returns a plain array with no paging and no contractual ordering, and answers with an empty array when the caller has connected nothing. To browse the content of an account, take the folder ID from the answer of the operation that connected it or from GET api/2.0/files/@root.
Parameters
This endpoint does not need any parameter.
Responses
| Status code | Description | Type | Response headers |
|---|---|---|---|
| 200 | The third-party accounts the caller has connected | ThirdPartyAccountArrayWrapper | X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset |
| 401 | Unauthorized | ErrorApiResponse | - |
| 429 | Too Many Requests. | ErrorApiResponse | Retry-After |
| 500 | Internal Server Error. | ErrorApiResponse | - |
| 502 | Bad Gateway. Returned by the reverse proxy, response body may be HTML and not JSON. | - | - |
| 503 | Service Unavailable. Returned by the reverse proxy, response body may be HTML and not JSON. | - | - |
Return type
Authorization
Basic, OAuth2 (scopes: read, write), ApiKeyBearer, asc_auth_key, Bearer, OpenId
HTTP request headers
- Content-Type: Not defined
- Accept: application/json