GET
/
filestorage
/
drives
/
{id}
import { Panora } from "@panora/sdk";

const panora = new Panora({
  apiKey: "<YOUR_API_KEY_HERE>",
});

async function run() {
  const result = await panora.filestorage.drives.retrieve({
    xConnectionToken: "<value>",
    id: "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
    remoteData: false,
  });

  // Handle the result
  console.log(result)
}

run();
{
  "name": "school",
  "remote_created_at": "2024-10-01T12:00:00Z",
  "drive_url": "https://example.com/school",
  "field_mappings": {
    "fav_dish": "broccoli",
    "fav_color": "red"
  },
  "id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
  "remote_id": "id_1",
  "remote_data": {
    "fav_dish": "broccoli",
    "fav_color": "red"
  },
  "created_at": "2024-10-01T12:00:00Z",
  "modified_at": "2024-10-01T12:00:00Z"
}

Authorizations

x-api-key
string
header
required

Headers

x-connection-token
string
required

The connection token

Path Parameters

id
string
required

id of the drive you want to retrieve.

Query Parameters

remote_data
boolean

Set to true to include data from the original file storage service.

Response

200 - application/json
name
string | null
required

The name of the drive

Example:

"school"

remote_created_at
string | null
required

When the third party s drive was created.

Example:

"2024-10-01T12:00:00Z"

drive_url
string | null
required

The url of the drive

Example:

"https://example.com/school"

field_mappings
object | null

The custom field mappings of the object between the remote 3rd party & Panora

Example:
{
  "fav_dish": "broccoli",
  "fav_color": "red"
}
id
string | null

The UUID of the drive

Example:

"801f9ede-c698-4e66-a7fc-48d19eebaa4f"

remote_id
string | null

The id of the drive in the context of the 3rd Party

Example:

"id_1"

remote_data
object | null

The remote data of the drive in the context of the 3rd Party

Example:
{
  "fav_dish": "broccoli",
  "fav_color": "red"
}
created_at
string | null

The created date of the object

Example:

"2024-10-01T12:00:00Z"

modified_at
string | null

The modified date of the object

Example:

"2024-10-01T12:00:00Z"