GET
/
api
/
workers
/
{workerId}
/
resources
/
{resourceId}
import os
from brainbase_labs import BrainbaseLabs

client = BrainbaseLabs(
    api_key=os.environ.get("BRAINBASE_LABS_API_KEY"),  # This is the default and can be omitted
)
resource = client.workers.resources.retrieve(
    resource_id="resourceId",
    worker_id="workerId",
)
print(resource.id)
{
  "id": "<string>",
  "ragType": "FILE",
  "lastUpdated": "2023-11-07T05:31:56Z",
  "updateFrequency": "<string>",
  "rawLink": "<string>",
  "key": "<string>",
  "s3FilePath": "<string>",
  "imageS3FilePath": "<string>",
  "signedS3FilePath": "<string>",
  "numScrolls": 123,
  "fileName": "<string>",
  "mimeType": "<string>",
  "status": "<string>",
  "size": 123,
  "uploadedAt": "2023-11-07T05:31:56Z"
}

Authorizations

x-api-key
string
header
required

API key authentication

Path Parameters

workerId
string
required
resourceId
string
required

Response

200
application/json

Resource details

The response is of type object.