cURL
curl --request POST \
--url 'https://www.rainbrand.com/api/v1/brands/e6220a5e-4a68-4d39-8bb9-5105e9a3a164/library' \
--header "x-api-key: $RAINBRAND_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"source": {
"type": "upload",
"uploadId": "3f2b8c1e-9a4d-4e7b-8c2f-1d5e6a7b8c9d"
}
}'{
"data": {
"id": "a8dd463a-09ab-4307-93e5-6e4cecd61ffd",
"type": "image",
"source": "uploaded",
"brandSessionId": "e6220a5e-4a68-4d39-8bb9-5105e9a3a164",
"workspaceId": null,
"mimeType": "image/png",
"url": "https://www.rainbrand.com/img/a8dd463a-09ab-4307-93e5-6e4cecd61ffd",
"fileSize": 1458200,
"durationMs": null,
"width": 1536,
"height": 1024,
"description": "Atlas Pro packaging on a white background.",
"inLibrary": true,
"addedToLibraryAt": "2026-10-24T09:00:00.000Z",
"generationId": null,
"createdAt": "2026-10-24T09:00:00.000Z",
"existing": false
}
}{
"error": {
"code": "UPLOAD_UNAVAILABLE",
"status": 400,
"message": "Temporary upload is unavailable",
"data": "<unknown>"
}
}{
"error": {
"code": "UNAUTHORIZED",
"status": 401,
"message": "Invalid or missing API credentials",
"data": "<unknown>"
}
}{
"error": {
"code": "ACCOUNT_BANNED",
"status": 403,
"message": "This account has been suspended.",
"data": "<unknown>"
}
}{
"error": {
"code": "BRAND_NOT_FOUND",
"status": 404,
"message": "Brand not found",
"data": "<unknown>"
}
}{
"error": {
"code": "TOO_MANY_REQUESTS",
"status": 429,
"message": "Rate limit exceeded",
"data": "<unknown>"
}
}{
"error": {
"code": "LIBRARY_UNAVAILABLE",
"status": 503,
"message": "The Library cannot be changed right now",
"data": "<unknown>"
}
}Brand Library
Add to a Brand Library
Save a file in the brand’s asset collection. Identical file contents return the existing item. Images are up to 10 MiB; video and audio (beta) up to 100 MiB.
POST
/
brands
/
{id}
/
library
cURL
curl --request POST \
--url 'https://www.rainbrand.com/api/v1/brands/e6220a5e-4a68-4d39-8bb9-5105e9a3a164/library' \
--header "x-api-key: $RAINBRAND_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"source": {
"type": "upload",
"uploadId": "3f2b8c1e-9a4d-4e7b-8c2f-1d5e6a7b8c9d"
}
}'{
"data": {
"id": "a8dd463a-09ab-4307-93e5-6e4cecd61ffd",
"type": "image",
"source": "uploaded",
"brandSessionId": "e6220a5e-4a68-4d39-8bb9-5105e9a3a164",
"workspaceId": null,
"mimeType": "image/png",
"url": "https://www.rainbrand.com/img/a8dd463a-09ab-4307-93e5-6e4cecd61ffd",
"fileSize": 1458200,
"durationMs": null,
"width": 1536,
"height": 1024,
"description": "Atlas Pro packaging on a white background.",
"inLibrary": true,
"addedToLibraryAt": "2026-10-24T09:00:00.000Z",
"generationId": null,
"createdAt": "2026-10-24T09:00:00.000Z",
"existing": false
}
}{
"error": {
"code": "UPLOAD_UNAVAILABLE",
"status": 400,
"message": "Temporary upload is unavailable",
"data": "<unknown>"
}
}{
"error": {
"code": "UNAUTHORIZED",
"status": 401,
"message": "Invalid or missing API credentials",
"data": "<unknown>"
}
}{
"error": {
"code": "ACCOUNT_BANNED",
"status": 403,
"message": "This account has been suspended.",
"data": "<unknown>"
}
}{
"error": {
"code": "BRAND_NOT_FOUND",
"status": 404,
"message": "Brand not found",
"data": "<unknown>"
}
}{
"error": {
"code": "TOO_MANY_REQUESTS",
"status": 429,
"message": "Rate limit exceeded",
"data": "<unknown>"
}
}{
"error": {
"code": "LIBRARY_UNAVAILABLE",
"status": 503,
"message": "The Library cannot be changed right now",
"data": "<unknown>"
}
}Authorizations
apiKeybeareroauth
Body
application/json
Was this page helpful?