Listing your Assets

You can list your assets using the following:

curl -u $ONE_CODEX_API_KEY: \
     -X GET -H "Content-Type: application/json" \
     "https://app.onecodex.com/api/v1_experimental/assets"

This will return a list of JSON items such as the below.

[
  {
    "$uri": "/api/v1_experimental/assets/xxxxxxxxxxxxxxxx",
    "created_at": "2023-11-15T18:33:18.884095+00:00", 
    "name": "my_filename.json", 
    "organization_id": 01, 
    "s3_uri": "s3://refgenomics-userdata-production-encrypted/user_YYYYYYYYYYYYYYYY/asset_xxxxxxxxxxxxxxxx/my_filename.json", 
    "status": "available", 
    "uploaded_by": {
      "$ref": "/api/v1_experimental/users/YYYYYYYYYYYYYYYY"
    }, 
    "uuid": "xxxxxxxxxxxxxxxx"
  }
]