Skip to content

Get a share

getShare

GET /api/v1/shares/{share_id}

Scope: foldr.readRate cost: 1

One of the person’s shares, by id

A share that does not exist and one that is not the person’s get the same 404.

Terminal window
curl "$FOLDR/api/v1/shares/$SHARE_ID" \
-H "Authorization: Bearer $TOKEN"

$FOLDR is your site’s address (for example https://files.example.com) and $TOKEN is an access token. See Getting access.

NameInTypeRequiredDescription
share_idpathstringYesThe share’s id.
StatusMeaningBody
200The Share.application/json: Share

Share:

FieldTypeDescription
idstring (uuid)Required. The share’s id. Always a uuid.
namestringRequired. The share’s name, as people see it in Foldr.
typestringRequired. The kind of storage behind the share. New values may appear: treat an unknown one as “other”. Known values: smb, local, hosted, s3, b2, azure_blob, sftp, ftp, webdav, edge, google_drive, google_shared_drive, group_drive, onedrive, sharepoint, teams, dropbox, box, other. Clients must accept values not listed here.
indexedbooleanRequired. Whether the share is indexed for GET /search.
read_onlybooleanRequired. True when the person cannot change anything in the share.
reachablebooleanRequired. False when the share’s file server could not be reached just now. It still exists and is the person’s: try again in a few minutes.

Example:

{
"id": "0191f2c4-8a1e-7b52-9d3a-5c1e0b7a4d21",
"name": "string",
"type": "string",
"indexed": false,
"read_only": false,
"reachable": false
}

Every error is an application/problem+json document (ProblemDetails); branch on its type or code. See Errors.

StatusProblem typesWhen
400invalid-requestInvalid request (invalid-request).
401invalid-tokenInvalid token (invalid-token).
403insufficient-scopeInsufficient scope (insufficient-scope).
404not-foundNot found (not-found).
429rate-limitedToo many requests (rate-limited).
500internal-errorInternal error (internal-error).