List Assets
You can get a list of assets from a specific application by making a GET to this endpoint.NB: This endpoint can deliver authenticated and unauthentcicated responses based on your Application's security settings. To see the full authenticated and unauthenticated asset object JSON please see the Video Object Documentation , Photo Object Documentation or the Audio Object Documentation
Request
GET https://www.cameratag.com/api/v15/apps/[YOUR_APP_UUID]/assets.json
Parameters
Below is a list of parameters that this endpoint accepts.
Parameter | Accepted Values | Description | Required |
---|---|---|---|
api_key | valid user api_key | Use your account's api_key to authenticate. Depending on your app's security settings you may be required to authenticate to get a list of assets. You may also need to autheticate to get a non-redacted version of the asset data. | Required for authenticated requests |
state | published, processed, approved, rejected, featured | limit results to assets in a specific sate. ("published" assets are waiting to be processed) | Optional |
name | * | find assets whose name contains the specific string. This query will match substrings | Optional |
description | * | find assets whose description contains the specific string. This query will match substrings | Optional |
metadata | * | find assets whose metadata contains the specific string. This query will match substrings | Optional |
created_before | integer (number of seconds from the Linux Epoch) | limit results to assets created before a specific time | Optional |
created_after | Optional | integer (number of seconds from the Linux Epoch) | limit results to assets created after a specific time |
type | Video, Photo, Audio | filter assets based on their media type. (if blank all assets are returned) | Optional |
page | integer (starts at 1) | return a specific page number in paginated results | Optional |
Example Response
Please note that this is an example of an unauthenticated response. If you include an api_key you will get beack extra information in each asset. For more detail on the different asset object responses please check out the Video Object Documentation , Photo Object Documentation or the Audio Object Documentation
{ "assets": [ ], "current_page": 1 }