GET
/
v1
/
objects
JavaScript
import Runloop from '@runloop/api-client';

const client = new Runloop({
  bearerToken: 'My Bearer Token',
});

// Automatically fetches more pages as needed.
for await (const objectView of client.objects.list()) {
  console.log(objectView.id);
}
{
  "objects": [
    {
      "id": "<string>",
      "name": "<string>",
      "state": "<string>",
      "size_bytes": 123,
      "content_type": "unspecified",
      "upload_url": "<string>"
    }
  ],
  "has_more": true,
  "total_count": 123,
  "remaining_count": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

limit
integer

The limit of items to return. Default is 20.

starting_after
string

Load the next page of data starting after the item with the given ID.

name
string

Filter objects by name (partial match supported).

content_type
string

Filter objects by content type.

state
string

Filter objects by state (UPLOADING, READ_ONLY, DELETED).

Search by object ID or name.

Response

200
application/json

Successfully retrieved list of Objects.

A paginated list of Objects.