Brand Kit
On this page
Brand Kit #
Your saved brand details, for the cards and the logo in a video.
GET /v1/brand #
Your Brand Kit
Key: API key · Credits: Free · Answers now
Request
curl "https://api.oneupai.com/v1/brand" \
-H "Authorization: Bearer $ONEUP_API_KEY"Response (200)
{
"version": 3,
"kit": {
"kit_v": 1,
"headshot_upload": "oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD",
"logo_upload": "oneup_upload_9Jd2LqV6tHn4Xw8ZbR1cMk5PyG",
"name": "Dana Ruiz",
"phone": "+1 555 0142",
"brokerage": "Harbor Realty",
"link": "https://www.example.com/dana",
"cta": "Book a showing",
"accent": "gold",
"card_type": "serif",
"logo_corner": "tr",
"logo_size": 12
},
"files": {
"headshot": {
"file_url": "https://media.oneupai.com/u/oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD/1791523800/Wq4zR7cN2vB9xL1kT6mP3sY8dF5gH0jA7eU2iO9nZ4c",
"bytes": 412336,
"content_type": "image/jpeg"
},
"logo": {
"file_url": "https://media.oneupai.com/u/oneup_upload_9Jd2LqV6tHn4Xw8ZbR1cMk5PyG/1791523800/Wq4zR7cN2vB9xL1kT6mP3sY8dF5gH0jA7eU2iO9nZ4c",
"bytes": 38904,
"content_type": "image/png"
}
},
"missing_assets": []
}Errors: invalid_key, account_disabled, not_found, rate_limited, internal_error, unavailable
| HTTP | Code | What happened | What to do | Credits |
|---|---|---|---|---|
| 401 | invalid_key | The API key is missing, mistyped, revoked, or past the overlap after a rotation. The answer is the same in every case. | Send Authorization: Bearer oneup_live_… with a current key. You can make a new key on your account page. | Not charged. |
| 403 | account_disabled | The account is disabled: its sign-in was removed or blocked. Every key and session of the account answers this. | Write to video@oneupai.com. | Not charged. The account's credits stay. |
| 404 | not_found | What you asked for, such as a ticket, an asset, an upload, a Project or a render, does not exist or is not yours. The answer is the same either way. Extra fields: two cases add one. Asking GET /v1/queue/result/{ticket} before the work is COMPLETED answers not_found with status, the current status. Keep asking for the status, then fetch the result. A render whose Timeline names files that are not yours, or not ready, answers not_found with missing_inputs, the ids it could not use. | Check the id, and that it was made with a key of this account. | Not charged. |
| 429 | rate_limited | You sent requests faster than your plan's rate limit, reached a limit a feature counts on its own, or have two Previews running already. The daily credit limit has its own code, daily_limit_reached. Extra fields: the Retry-After header, in seconds. | Wait that long, then send the same request with the same retry key. | Not charged. |
| 500 | internal_error | Something went wrong on our side that we did not expect. The answer says nothing about the cause. Extra fields: request_id, the same id as the x-request-id header. It names the exact request in our logs. | Send the same request again with the same retry key. If it keeps failing, send us the request_id. | Never charged twice. If we accepted the work before the failure, the same retry key returns it instead of charging again. |
| 503 | unavailable | We are not taking this kind of request for a moment: during maintenance, when a safety limit trips, or when a service we depend on is down. Extra fields: sometimes a Retry-After header, and a request_id when a service we depend on did not answer. | Wait, then send the same request with the same retry key. | Not charged; if it comes after we accepted the work, the charge is refunded. |
PUT /v1/brand #
Save your Brand Kit
Key: API key · Credits: Free · Answers now
Request body
| Field | Required | Type | Description |
|---|---|---|---|
expected_version | yes | whole number, 0–… | The version you last read; 0 for the first save. |
kit | yes | group | |
kit.kit_v | yes | whole number | |
kit.headshot_upload | no | text | One of your uploads. |
kit.logo_upload | no | text | One of your uploads. |
kit.name | no | text, 0–80 characters | |
kit.phone | no | text, 0–32 characters | |
kit.brokerage | no | text, 0–80 characters | |
kit.cta | no | text, 0–80 characters | |
kit.link | no | text, 0–512 characters | A web address (http or https) or a mailto: address with one email. |
kit.accent | no | text | One of gold, rose, silver, teal, plum, white, or a #rrggbb color. |
kit.card_type | no | text, one of: serif, sans, editorial, geometric | |
kit.logo_corner | no | text, one of: tl, tr, bl, br | |
kit.logo_size | no | whole number, 6–30 | |
kit.headshot_size | no | whole number, 70–130 | Percent of the default size. |
kit.headshot_shape | no | text, one of: circle, square | |
kit.auto_logo | no | yes / no | Add the logo to every new video. Absent means off. |
kit.auto_card | no | yes / no | Add the closing card to every new video. Absent means off. |
kit.auto_contact | no | yes / no | Add the contact details to every new video. Absent means off. |
kit.logo_place | no | group | The logo's centre, as shares of the frame, when it was placed anywhere instead of in a corner. |
kit.logo_edge | no | whole number, 0–20 | Distance from the edge; the middle is the default. |
kit.card_bg | no | group | |
kit.card_text | no | group | |
kit.card_logo | no | group | The logo on the closing card: its centre and size. |
Request
curl -X PUT "https://api.oneupai.com/v1/brand" \
-H "Authorization: Bearer $ONEUP_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"expected_version": 2,
"kit": {
"kit_v": 1,
"headshot_upload": "oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD",
"logo_upload": "oneup_upload_9Jd2LqV6tHn4Xw8ZbR1cMk5PyG",
"name": "Dana Ruiz",
"phone": "+1 555 0142",
"brokerage": "Harbor Realty",
"link": "https://www.example.com/dana",
"cta": "Book a showing",
"accent": "gold",
"card_type": "serif",
"logo_corner": "tr",
"logo_size": 12
}
}'Response (200)
{
"version": 3,
"kit": {
"kit_v": 1,
"headshot_upload": "oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD",
"logo_upload": "oneup_upload_9Jd2LqV6tHn4Xw8ZbR1cMk5PyG",
"name": "Dana Ruiz",
"phone": "+1 555 0142",
"brokerage": "Harbor Realty",
"link": "https://www.example.com/dana",
"cta": "Book a showing",
"accent": "gold",
"card_type": "serif",
"logo_corner": "tr",
"logo_size": 12
},
"files": {
"headshot": {
"file_url": "https://media.oneupai.com/u/oneup_upload_4Rk8TzQ1mWc7Yp2NvLx9Bf3HsD/1791523800/Wq4zR7cN2vB9xL1kT6mP3sY8dF5gH0jA7eU2iO9nZ4c",
"bytes": 412336,
"content_type": "image/jpeg"
},
"logo": {
"file_url": "https://media.oneupai.com/u/oneup_upload_9Jd2LqV6tHn4Xw8ZbR1cMk5PyG/1791523800/Wq4zR7cN2vB9xL1kT6mP3sY8dF5gH0jA7eU2iO9nZ4c",
"bytes": 38904,
"content_type": "image/png"
}
},
"missing_assets": []
}Errors: invalid_request, invalid_key, account_disabled, account_frozen, credit_debt, entitlement_required, plan_required, storage_quota_exceeded, version_conflict, payload_too_large, rate_limited, internal_error, unavailable
| HTTP | Code | What happened | What to do | Credits |
|---|---|---|---|---|
| 400 | invalid_request | The request is malformed or breaks the model's input rules: the body is not JSON, a field is missing, has the wrong type or is out of bounds, or the Idempotency-Key header is missing. Extra fields: detail, which names what is wrong, such as "Idempotency-Key header is required" or "input must have required property 'prompt'". | Fix the request using detail and the Alias's input_schema from GET /v1/models, then send it again. You can keep the same retry key: nothing was created. | Not charged. |
| 401 | invalid_key | The API key is missing, mistyped, revoked, or past the overlap after a rotation. The answer is the same in every case. | Send Authorization: Bearer oneup_live_… with a current key. You can make a new key on your account page. | Not charged. |
| 403 | account_disabled | The account is disabled: its sign-in was removed or blocked. Every key and session of the account answers this. | Write to video@oneupai.com. | Not charged. The account's credits stay. |
| 403 | account_frozen | The account is frozen for now, for example while a payment dispute is open. Extra fields: account_url. | See your account page. Reading your results still works. | Not charged. |
| 403 | credit_debt | You have credit debt: a payment for credits you already spent was reversed. Extra fields: account_url. | Settle it from your account page; new work is accepted again once it is paid. | Not charged. |
| 403 | entitlement_required | Your subscription has ended: it was canceled, or a payment failed and the seven days of grace have passed. Extra fields: account_url. | Renew on your account page; the same keys work again. Checking status, reading results and downloading your files still work in the meantime. | Not charged. |
| 403 | plan_required | This key belongs to an account that is no longer on an API plan, Concierge or Concierge Plus. Only keys of accounts on those plans can start work through the API. Extra fields: account_url. | Move the account back to Concierge or Concierge Plus; the key works again. | Not charged. |
| 403 | storage_quota_exceeded | Your account has reached its storage quota, so new uploads, new jobs and new Timeline versions are refused. Extra fields: account_url on most calls. | Delete assets, uploads or Projects you no longer need, or release a hold. Work you already paid for is never deleted because of this. | Not charged. |
| 409 | version_conflict | Someone saved a newer version of this Project's Timeline before you. Extra fields: current_version, the newest version's id. | Read the newest version with GET /v1/projects/{project_id}/timeline, apply your change to it, and send it with parent_version_id set to current_version. | Not charged; saving a Timeline is free. |
| 413 | payload_too_large | The request body is over 1 MB. | Upload files first and send their file_url, instead of putting file contents in the body. | Not charged. |
| 429 | rate_limited | You sent requests faster than your plan's rate limit, reached a limit a feature counts on its own, or have two Previews running already. The daily credit limit has its own code, daily_limit_reached. Extra fields: the Retry-After header, in seconds. | Wait that long, then send the same request with the same retry key. | Not charged. |
| 500 | internal_error | Something went wrong on our side that we did not expect. The answer says nothing about the cause. Extra fields: request_id, the same id as the x-request-id header. It names the exact request in our logs. | Send the same request again with the same retry key. If it keeps failing, send us the request_id. | Never charged twice. If we accepted the work before the failure, the same retry key returns it instead of charging again. |
| 503 | unavailable | We are not taking this kind of request for a moment: during maintenance, when a safety limit trips, or when a service we depend on is down. Extra fields: sometimes a Retry-After header, and a request_id when a service we depend on did not answer. | Wait, then send the same request with the same retry key. | Not charged; if it comes after we accepted the work, the charge is refunded. |