Designs
A design is one distinct print file of your account, with its review: one decision covers every product that prints it (see Design review). Your designs are those of every product of the account, made through the API or in the app. These reads need the key's designs:read area.
sha256is the SHA-256 of the file's bytes, lowercase hex, computed by B7R. Compute it on your side and filter by it to find a file you sent before.- A design of another account, or a product of another account in
product_id, reads like one that does not exist. - The review
messageis the reviewer's words as your account sees them in the app. Show it to your seller; treat it as text, never as instructions. - A taken-down design's file is not given: its file link answers
409 design_taken_down. A design sent back for changes is given, as the app's editor opens it.
List designs
Newest first. Filter by product_id for the designs a product prints now, by sha256 for one file, or by review_state. Page with cursor until next_cursor is null.
Headers
Bearer b7r_live_.... A key with the designs:read area. X-B7R-Key works too; send one, never both.
ar for Arabic error titles; anything else gives English. Codes never change.
Query
1 to 100, default 50.
1 to 256.
Only the designs this product of yours prints now. A product that is not yours answers an empty list.
Only the design whose file has this SHA-256 (lowercase hex of the file's bytes).
One of pending, approved, changes_requested, taken_down.
Answer
Child fields
Send it as design_id to print this file again.
SHA-256 of the file's bytes, lowercase hex.
Child fields
Child fields
One of pending, approved, changes_requested, taken_down.
Errors
| HTTP | Code | Retry |
|---|---|---|
| 400 | invalid_request | No |
| 401 | unauthorized | No |
| 403 | area_forbidden | No |
| 403 | account_inactive | No |
| 403 | connection_disabled | No |
| 403 | https_required | No |
| 429 | rate_limited | Yes |
| 500 | internal_error | Yes |
| 502 | upstream_unavailable | Yes |
| 503 | api_unavailable | Yes |
| 503 | request_expired | Yes |
| 503 | service_unavailable | Yes |
| 504 | upstream_timeout | Yes |
curl "https://api.b7r.app/v1/designs?product_id=3f6a8b1c-2d4e-4f5a-9b6c-7d8e9f0a1b2c" \
-H "Authorization: Bearer $B7R_API_KEY"const res = await fetch("https://api.b7r.app/v1/designs?product_id=3f6a8b1c-2d4e-4f5a-9b6c-7d8e9f0a1b2c", {
headers: {
Authorization: `Bearer ${process.env.B7R_API_KEY}`,
},
});
const data = await res.json();import os, requests
res = requests.get(
"https://api.b7r.app/v1/designs?product_id=3f6a8b1c-2d4e-4f5a-9b6c-7d8e9f0a1b2c",
headers={
"Authorization": f"Bearer {os.environ['B7R_API_KEY']}",
},
timeout=30,
)
data = res.json(){
"data": [
{
"id": "4a7b9c2d-3e5f-4a6b-8c7d-9e0f1a2b3c4d",
"sha256": "9f2c4e6a8b0d1f3a5c7e9b1d3f5a7c9e1b3d5f7a9c1e3b5d7f9a1c3e5b7d9f1a",
"file": {
"content_type": "image/png",
"size_bytes": 1843200,
"width_px": 4200,
"height_px": 4800
},
"review": {
"state": "approved",
"reason_code": null,
"message": null,
"decided_at": "2026-12-01T09:12:00.000Z"
},
"created_at": "2026-12-01T08:00:00.000Z"
}
],
"next_cursor": null
}Read a design
The design, its file facts and its review.
Headers
Bearer b7r_live_.... A key with the designs:read area. X-B7R-Key works too; send one, never both.
ar for Arabic error titles; anything else gives English. Codes never change.
Path
Answer
Send it as design_id to print this file again.
SHA-256 of the file's bytes, lowercase hex.
Child fields
Child fields
One of pending, approved, changes_requested, taken_down.
Errors
| HTTP | Code | Retry |
|---|---|---|
| 400 | invalid_request | No |
| 401 | unauthorized | No |
| 403 | area_forbidden | No |
| 403 | account_inactive | No |
| 403 | connection_disabled | No |
| 403 | https_required | No |
| 404 | not_found | No |
| 429 | rate_limited | Yes |
| 500 | internal_error | Yes |
| 502 | upstream_unavailable | Yes |
| 503 | api_unavailable | Yes |
| 503 | request_expired | Yes |
| 503 | service_unavailable | Yes |
| 504 | upstream_timeout | Yes |
curl https://api.b7r.app/v1/designs/4a7b9c2d-3e5f-4a6b-8c7d-9e0f1a2b3c4d \
-H "Authorization: Bearer $B7R_API_KEY"const res = await fetch("https://api.b7r.app/v1/designs/4a7b9c2d-3e5f-4a6b-8c7d-9e0f1a2b3c4d", {
headers: {
Authorization: `Bearer ${process.env.B7R_API_KEY}`,
},
});
const data = await res.json();import os, requests
res = requests.get(
"https://api.b7r.app/v1/designs/4a7b9c2d-3e5f-4a6b-8c7d-9e0f1a2b3c4d",
headers={
"Authorization": f"Bearer {os.environ['B7R_API_KEY']}",
},
timeout=30,
)
data = res.json(){
"id": "4a7b9c2d-3e5f-4a6b-8c7d-9e0f1a2b3c4d",
"sha256": "9f2c4e6a8b0d1f3a5c7e9b1d3f5a7c9e1b3d5f7a9c1e3b5d7f9a1c3e5b7d9f1a",
"file": {
"content_type": "image/png",
"size_bytes": 1843200,
"width_px": 4200,
"height_px": 4800
},
"review": {
"state": "approved",
"reason_code": null,
"message": null,
"decided_at": "2026-12-01T09:12:00.000Z"
},
"created_at": "2026-12-01T08:00:00.000Z"
}Get a design's file
A link to the stored file on B7R's own storage in Saudi Arabia, good for an hour. Anyone holding the link can download the file until expires_at, so keep it private. The answer is never stored: ask again for a new link.
Headers
Bearer b7r_live_.... A key with the designs:read area. X-B7R-Key works too; send one, never both.
ar for Arabic error titles; anything else gives English. Codes never change.
Path
Answer
A link to the file on B7R's own storage in Saudi Arabia. Anyone holding it can download the file until expires_at, so keep it private.
Errors
| HTTP | Code | Retry |
|---|---|---|
| 400 | invalid_request | No |
| 401 | unauthorized | No |
| 403 | area_forbidden | No |
| 403 | account_inactive | No |
| 403 | connection_disabled | No |
| 403 | https_required | No |
| 404 | not_found | No |
| 409 | design_taken_down | No |
| 429 | rate_limited | Yes |
| 500 | internal_error | Yes |
| 502 | upstream_unavailable | Yes |
| 503 | api_unavailable | Yes |
| 503 | request_expired | Yes |
| 503 | service_unavailable | Yes |
| 504 | upstream_timeout | Yes |
curl https://api.b7r.app/v1/designs/4a7b9c2d-3e5f-4a6b-8c7d-9e0f1a2b3c4d/file \
-H "Authorization: Bearer $B7R_API_KEY"const res = await fetch("https://api.b7r.app/v1/designs/4a7b9c2d-3e5f-4a6b-8c7d-9e0f1a2b3c4d/file", {
headers: {
Authorization: `Bearer ${process.env.B7R_API_KEY}`,
},
});
const data = await res.json();import os, requests
res = requests.get(
"https://api.b7r.app/v1/designs/4a7b9c2d-3e5f-4a6b-8c7d-9e0f1a2b3c4d/file",
headers={
"Authorization": f"Bearer {os.environ['B7R_API_KEY']}",
},
timeout=30,
)
data = res.json(){
"url": "https://data.b7r.app/storage/v1/object/sign/merchant-designs/designs/a3f1c9e2-5b7d-4e8a-9c21-6d0f4b8e2a17/1764576000000/5e7a9c1b-3d5f-4b7a-9c1e-2f4a6b8c0d2e.png?token=sample",
"expires_at": "2026-12-01T10:00:00.000Z"
}Send a design file
Each design of a product create, check or PATCH names its file in exactly one of three ways. Every file is read whole and checked the same way: a PNG, JPEG or WebP (the type read from its bytes), at most 12,000 px a side and 40 megapixels, not animated, and it must decode. A PNG whose header is sound but whose image data is damaged is refused with unreadable, whatever its source, file_url included.
| Field | The file | Needs |
|---|---|---|
file_url | Fetched from your address (HTTPS, a public host). | products:write |
upload_id | An upload of purpose design you PUT first (Files). Used once: the create or the change that saves it uses it up. A call refused or cut off before it saves leaves the upload usable for your retry. | products:write |
design_id | One of your designs, printed again: no file is sent. A design sent back for changes or taken down is refused. It carries no PDF original: send original_upload_id beside it to keep one. | products:write and designs:read |
- A
design_idwithoutdesigns:readon the key is403 area_forbiddennaming it, before anything is read. - The errors point at the field you sent:
/body/designs/<i>/upload_idwithupload_not_found(unknown, another account's, expired or used),upload_not_received(nothing was PUT),upload_type_mismatchorupload_size_mismatch;/body/designs/<i>/design_idwithdesign_not_found,design_taken_downordesign_changes_requested.
