APIAPI Reference
Assets
/assets
List assets for the organization
Authorization
apiKeyAuth AuthorizationBearer <token>
Backend API key for server-to-server calls. Format: sk_live_... or sk_test_...
In: header
Query Parameters
conversation_id?string
Format
uuidstatus?string
Value in
"generating" | "draft" | "approved" | "published" | "archived" | "error"asset_type?string
Value in
"text" | "image" | "audio" | "video" | "presentation"limit?integer
Default
20Range
1 <= value <= 100after?string
before?string
Response Body
application/json
curl -X GET "http://localhost:3002/v1/backend/assets"{
"data": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"title": "string",
"status": "generating",
"asset_type": "text",
"conversation_id": "cc71b11a-25cd-4c2d-9950-df2cc38e3407",
"generation_template_id": "b4f76e8c-400b-4c1c-817c-8ddb9922eeec",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
],
"pagination": {
"has_more": true,
"next_cursor": "string",
"prev_cursor": "string"
}
}/assets/{id}
Get a single asset by ID, including content
Authorization
apiKeyAuth AuthorizationBearer <token>
Backend API key for server-to-server calls. Format: sk_live_... or sk_test_...
In: header
Path Parameters
id*string
Format
uuidResponse Body
application/json
application/json
curl -X GET "http://localhost:3002/v1/backend/assets/497f6eca-6276-4993-bfeb-53cbbbba6f08"{
"data": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"title": "string",
"status": "generating",
"asset_type": "text",
"conversation_id": "cc71b11a-25cd-4c2d-9950-df2cc38e3407",
"generation_template_id": "b4f76e8c-400b-4c1c-817c-8ddb9922eeec",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"content": {
"property1": null,
"property2": null
},
"metadata": {
"property1": null,
"property2": null
},
"current_version_number": 0
}
}{
"error": {
"code": "string",
"message": "string"
}
}