Api reference
Imports an external image or video URL into the team asset library (e.g. before starting a process). Spends no credits. Download failures return 400 with code import_failed.
Authorization
bearerAuth assets:writeAuthorizationBearer <token>
In: header
Scope: assets:write
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/assets/import" \ -H "Content-Type: application/json" \ -d '{ "type": "image", "url": "http://example.com" }'{ "id": "string", "type": "image", "name": "string", "url": "http://example.com", "thumbnailUrl": "http://example.com", "width": 0, "height": 0, "duration": 0, "mimeType": "string", "source": "string", "sourceProcessId": "string", "favorite": true, "createdAt": "2019-08-24T14:15:22Z", "links": { "self": "string" }}{ "error": { "code": "string", "message": "string", "requestId": "string" }}{ "error": { "code": "string", "message": "string", "requestId": "string" }}{ "error": { "code": "string", "message": "string", "requestId": "string" }}{ "error": { "code": "string", "message": "string", "requestId": "string" }}Get usage state GET
Returns team credits plus member-limit state for the acting user bound to the API key.
List assets GET
Lists normalized team assets, newest first. type is required. V1 supports at most one of processType, source, model, tool, genType, or folderId per request (unsupported combinations return unsupported_filter_combination); favorite composes with any of them.