Get pinned Files items
GET
/api/v1/files/pins
const url = 'https://example.com/api/v1/files/pins';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/files/pins \ --header 'Authorization: Bearer <token>'Requires a signed-in User with the data scope. It returns 403 when access is denied or 409 when the saved pin list cannot be read. Route: /api/v1/files/pins. Inputs: . Safe reads can use bounded retries.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Media typeapplication/json
object
pins
required
Array<object>
object
dir
required
True when the item is a folder.
boolean
id
required
Stable Files item identity. It does not change when the item moves or is renamed.
string
name
required
Cached name shown until the Files Index refreshes it.
string
path
required
Last known Home-relative path. It is display metadata, not authority.
string
revision
required
Revision used for compare-and-swap updates.
integer format: int64
Examplegenerated
{ "pins": [ { "dir": true, "id": "example", "name": "example", "path": "example" } ], "revision": 1}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}