Asset
Asset
List assets.
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to a specific page in a result set.
The number of items per page in a result set.
Defines which field the resource list is sorted by.
ENUM | Description |
---|---|
ASC | Sort in ascending order |
DESC | Sort in descending order |
GET /v2/tenants/{tenantUid}/assets HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Example response
{
"items": [
{
"assetUid": "text",
"name": "text",
"description": "text",
"category": "BRANDING",
"isPublic": true,
"publicUrl": "text",
"mimeType": "text",
"size": "text",
"serviceOrderUids": [
"text"
]
},
{
"createdBy": "text",
"createdAt": "2025-07-30T18:24:23.809Z",
"lastModifiedBy": "text",
"lastModifiedAt": "2025-07-30T18:24:23.809Z"
}
],
"paging": {
"pageNumber": 1,
"pageSize": 1,
"totalCount": 1
}
}
This endpoint lets you create the asset record.
To upload a file, use the Upload asset file
endpoint
where the assetUid
you get here is part of the path.
If you want to point to an asset that you already host, just add the correct URL of the asset and you are good to go.
Reference to a tenant.
^[A-Za-z0-9-_]+
false
for self-hosted asset
^[A-Za-z0-9-_]*
POST /v2/tenants/{tenantUid}/assets HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 134
{
"name": "text",
"category": "BRANDING",
"description": "text",
"isPublic": false,
"url": "text",
"assetUid": "text",
"serviceOrderUids": [
"text"
]
}
Example response
{
"assetUid": "text",
"name": "text",
"description": "text",
"category": "BRANDING",
"isPublic": true,
"publicUrl": "text",
"mimeType": "text",
"size": "text",
"serviceOrderUids": [
"text"
],
"createdBy": "text",
"createdAt": "2025-07-30T18:24:23.809Z",
"lastModifiedBy": "text",
"lastModifiedAt": "2025-07-30T18:24:23.809Z"
}
Get asset details. The asset itself must be loaded from the host.
Private assets are signed URLs with expiry time. They are not included in the regular
asset response but you can get them from the endpoint Get asset private URL
.
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to an asset
GET /v2/tenants/{tenantUid}/assets/{assetUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Example response
{
"assetUid": "text",
"name": "text",
"description": "text",
"category": "BRANDING",
"isPublic": true,
"publicUrl": "text",
"mimeType": "text",
"size": "text",
"serviceOrderUids": [
"text"
],
"createdBy": "text",
"createdAt": "2025-07-30T18:24:23.809Z",
"lastModifiedBy": "text",
"lastModifiedAt": "2025-07-30T18:24:23.809Z"
}
Upload file for the asset which "container" record was created on the Add asset
endpoint.
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to an asset
POST /v2/tenants/{tenantUid}/assets/{assetUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/octet-stream
Accept: */*
Content-Length: 8
"binary"
Example response
{
"assetUid": "text",
"name": "text",
"description": "text",
"category": "BRANDING",
"isPublic": true,
"publicUrl": "text",
"mimeType": "text",
"size": "text",
"serviceOrderUids": [
"text"
],
"createdBy": "text",
"createdAt": "2025-07-30T18:24:23.809Z",
"lastModifiedBy": "text",
"lastModifiedAt": "2025-07-30T18:24:23.809Z"
}
Update asset details.
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to an asset
for self-hosted asset
PUT /v2/tenants/{tenantUid}/assets/{assetUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 115
{
"name": "text",
"category": "BRANDING",
"description": "text",
"isPublic": true,
"url": "text",
"serviceOrderUids": [
"text"
]
}
Example response
{
"assetUid": "text",
"name": "text",
"description": "text",
"category": "BRANDING",
"isPublic": true,
"publicUrl": "text",
"mimeType": "text",
"size": "text",
"serviceOrderUids": [
"text"
],
"createdBy": "text",
"createdAt": "2025-07-30T18:24:23.809Z",
"lastModifiedBy": "text",
"lastModifiedAt": "2025-07-30T18:24:23.809Z"
}
Delete an asset. This also removes the asset from the host.
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to an asset
DELETE /v2/tenants/{tenantUid}/assets/{assetUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No Content
No content
Private asset URLs have signature and expiry parameters so they cannot be accessed randomly.
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to an asset
GET /v2/tenants/{tenantUid}/assets/{assetUid}/download HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
See Other
No content
Was this helpful?