Gerra LogoGERRA

List Datasets

Retrieve all datasets for your organization with optional filtering

List Datasets

GET/datasets

Retrieve all datasets for your organization with optional filtering by data type, status, and metadata.

Query Parameters

ParameterTypeRequiredDefaultDescription
data_typestringNo-Filter by data type (episode, synthetic_pov, etc.)
statusstringNo-Filter by status (pending, accepted, rejected)
metadatastringNo-Filter by metadata key:value (can specify multiple)
limitintegerNo100Number of results (max: 1000)
offsetintegerNo0Number of results to skip

Headers

HeaderRequiredDescription
Gerra-Api-KeyYesYour API key

Example Requests

Basic Request

curl "https://api.gerra.com/datasets" \
  -H "Gerra-Api-Key: gerra_1234567890abcdef"

Filter by Status

Get only pending datasets awaiting review:

curl "https://api.gerra.com/datasets?status=pending" \
  -H "Gerra-Api-Key: gerra_1234567890abcdef"

Filter by Data Type

Get only episode recordings:

curl "https://api.gerra.com/datasets?data_type=episode" \
  -H "Gerra-Api-Key: gerra_1234567890abcdef"

Filter by Metadata

Find datasets with specific metadata values:

# Single metadata filter
curl "https://api.gerra.com/datasets?metadata=sensor_type:thermal" \
  -H "Gerra-Api-Key: gerra_1234567890abcdef"

# Multiple metadata filters (AND logic)
curl "https://api.gerra.com/datasets?metadata=location:factory&metadata=shift:morning" \
  -H "Gerra-Api-Key: gerra_1234567890abcdef"

Pagination

# Page 1 (first 50 results)
curl "https://api.gerra.com/datasets?limit=50&offset=0" \
  -H "Gerra-Api-Key: gerra_1234567890abcdef"

# Page 2 (results 51-100)
curl "https://api.gerra.com/datasets?limit=50&offset=50" \
  -H "Gerra-Api-Key: gerra_1234567890abcdef"

Response

{
  "datasets": [
    {
      "id": "770e8400-e29b-41d4-a716-446655440000",
      "date_created": "2025-01-15T10:30:00Z",
      "date_updated": "2025-01-15T14:45:00Z",
      "organization_id": "660e8400-e29b-41d4-a716-446655440000",
      "data_type": "episode",
      "name": "Robot Arm Sensor Data Q1 2025",
      "description": "Telemetry data from robot arm sensors",
      "status": "pending",
      "link": "datasets/robot-arm-q1-2025.zip",
      "data_byte_size": 257355776,
      "metadata": {
        "sensor_type": "thermal",
        "location": "factory_floor_3"
      }
    }
  ],
  "total": 42
}

Response Fields

FieldTypeDescription
datasetsarrayArray of dataset objects
totalintegerTotal number of datasets matching the query

Error Responses

StatusDescription
401Missing or invalid Gerra-Api-Key header
422Invalid query parameters