Get assets
Get a list of assets
GET
Parameters
Query Parameters
Id
Filter resources by their unique identifier
Name
Filter resources by their name or title
Autocomplete
Search term for autocomplete functionality
Limit
How many items to return at one time (max 100)
Next
Pagination token for retrieving the next page of results
Order
Sort order for the results (ascending or descending)
SortBy
Field name to sort the results by
Type
Folder
When_created[$gt]
When_created[$lt]
When_created[$gte]
When_created[$lte]
| Status code | Description |
|---|---|
| 200 | List of assets |
| 400 | Bad request error - the request contains invalid parameters or malformed data |
| 500 | Internal server error - an unexpected error occurred on the server |
cURL
curl -L \"https://blockv-labs.io/assets?id={id}&name={name}&autocomplete={autocomplete}&limit={limit}&next={next}&order={order}&sortBy={sortBy}&type={type}&folder={folder}&when_created[$gt]={when_created[$gt]}&when_created[$lt]={when_created[$lt]}&when_created[$gte]={when_created[$gte]}&when_created[$lte]={when_created[$lte]}" \-H 'Accept: application/json'
Response
{"assets": [{"id": "string","wallet_id": "string","name": "string","tag": "string","url": "string","path": "string","size": 0,"provider": "ipfs","folder": "avatars","is_public": false,"type": "string","hash": "string","when_created": "2024-01-01T00:00:00Z"}],"next": "string"}
json
{"type": "object","required": ["assets"],"properties": {"assets": {"type": "array","items": {"type": "object","required": ["id","name","tag","provider","folder","org_id","wallet_id","url","path","size","type","when_created"],"properties": {"id": {"type": "string","description": "Unique identifier for the API key.","x-oapi-codegen-extra-tags": {"json": "id,omitempty","bson": "_id,omitempty"},"x-go-type": "id.ID","x-go-type-import": {"path": "github.com/vlabsio/smarttoken/pkg/types/id"}},"wallet_id": {"type": "string","description": "Unique identifier for the API key.","x-oapi-codegen-extra-tags": {"bson": "wallet_id,omitempty"},"x-go-type": "id.ID","x-go-type-import": {"path": "github.com/vlabsio/smarttoken/pkg/types/id"},"x-go-type-skip-optional-pointer": true},"name": {"type": "string","x-oapi-codegen-extra-tags": {"bson": "name,omitempty"}},"tag": {"type": "string","x-oapi-codegen-extra-tags": {"bson": "tag,omitempty"}},"url": {"type": "string","format": "url","x-oapi-codegen-extra-tags": {"bson": "url,omitempty"}},"path": {"type": "string","format": "url","x-oapi-codegen-extra-tags": {"bson": "path,omitempty"}},"size": {"type": "integer","x-oapi-codegen-extra-tags": {"bson": "size,omitempty"}},"provider": {"type": "string","enum": ["ipfs","s3","gcs"],"x-oapi-codegen-extra-tags": {"bson": "provider,omitempty","form": "provider"}},"folder": {"type": "string","enum": ["avatars","assets","support"],"x-oapi-codegen-extra-tags": {"form": "folder","bson": "folder"}},"is_public": {"type": "boolean","x-oapi-codegen-extra-tags": {"bson": "is_public,omitempty"},"x-go-type-skip-optional-pointer": true},"type": {"type": "string","x-oapi-codegen-extra-tags": {"bson": "type,omitempty"}},"hash": {"type": "string","x-oapi-codegen-extra-tags": {"bson": "hash,omitempty"}},"when_created": {"type": "string","format": "date-time","x-oapi-codegen-extra-tags": {"bson": "when_created,omitempty"}}}}},"next": {"type": "string","description": "The next page token. If not present, there are no more pages.","x-go-type-skip-optional-pointer": true}}}