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
Errors: GET /v1/brand
HTTPCodeWhat happenedWhat to doCredits
401invalid_keyThe 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.
403account_disabledThe 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.
404not_foundWhat 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.
429rate_limitedYou 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.
500internal_errorSomething 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.
503unavailableWe 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

Request body
FieldRequiredTypeDescription
expected_versionyeswhole number, 0–…The version you last read; 0 for the first save.
kityesgroup
kit.kit_vyeswhole number
kit.headshot_uploadnotextOne of your uploads.
kit.logo_uploadnotextOne of your uploads.
kit.namenotext, 0–80 characters
kit.phonenotext, 0–32 characters
kit.brokeragenotext, 0–80 characters
kit.ctanotext, 0–80 characters
kit.linknotext, 0–512 charactersA web address (http or https) or a mailto: address with one email.
kit.accentnotextOne of gold, rose, silver, teal, plum, white, or a #rrggbb color.
kit.card_typenotext, one of: serif, sans, editorial, geometric
kit.logo_cornernotext, one of: tl, tr, bl, br
kit.logo_sizenowhole number, 6–30
kit.headshot_sizenowhole number, 70–130Percent of the default size.
kit.headshot_shapenotext, one of: circle, square
kit.auto_logonoyes / noAdd the logo to every new video. Absent means off.
kit.auto_cardnoyes / noAdd the closing card to every new video. Absent means off.
kit.auto_contactnoyes / noAdd the contact details to every new video. Absent means off.
kit.logo_placenogroupThe logo's centre, as shares of the frame, when it was placed anywhere instead of in a corner.
kit.logo_edgenowhole number, 0–20Distance from the edge; the middle is the default.
kit.card_bgnogroup
kit.card_textnogroup
kit.card_logonogroupThe 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
Errors: PUT /v1/brand
HTTPCodeWhat happenedWhat to doCredits
400invalid_requestThe 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.
401invalid_keyThe 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.
403account_disabledThe 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.
403account_frozenThe 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.
403credit_debtYou 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.
403entitlement_requiredYour 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.
403plan_requiredThis 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.
403storage_quota_exceededYour 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.
409version_conflictSomeone 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.
413payload_too_largeThe request body is over 1 MB.Upload files first and send their file_url, instead of putting file contents in the body.Not charged.
429rate_limitedYou 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.
500internal_errorSomething 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.
503unavailableWe 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.