Key on the API preset, or any key whose permissions include the ones this API lists. APIs with no required permission accept any key. Prefix it with "Key ", e.g. Authorization: Key YOUR_API_KEY
Headers
Idempotency-Key
string
Optional idempotency key for safe request retries
Example:
"550e8400-e29b-41d4-a716-446655440000"
Path Parameters
collection_id
string
required
Collection ID
Minimum string length: 1
Example:
"d8b6elcregj72v34jr8g"
Response
Collection favorited
collection
object
required
Asset collection
Hide child attributes
collection.id
string
required
Collection ID
collection.type
enum<string>
required
Collection type
Available options:
manual,
smart,
character
collection.name
string
required
Collection display name
collection.description
string | null
required
Collection description
collection.icon
string | null
required
Optional collection icon
collection.color
string | null
required
Optional collection color
collection.cover_image_url
string | null
required
Optional cover image URL for the collection
collection.character_identifier
string | null
required
Character @mention identifier for character collections
collection.parent_collection_id
string | null
required
Parent collection ID for a nested (manual) collection; null when top-level
collection.is_favorited
boolean
required
Whether the collection is favorited
collection.created_at
string
required
Collection creation time
collection.updated_at
string
required
Collection update time
collection.filters
any
Filter DSL backing smart and character collections
collection.asset_count
number | null
Exact asset count when available; null for smart/character collections
Was this page helpful?
⌘I
Favorite asset collection
curl --request POST \ --url https://api.fal.ai/v1/assets/collections/{collection_id}/favorite \ --header 'Authorization: <api-key>'