Skip to main content

Upload a logo

POST 

/v1/businesses/{businessId}/logos

Uploads a logo image for the business. Send the raw image bytes as the request body with the matching Content-Type. The logo starts in CREATED and becomes FINISHED once its sized variations are generated — poll GET /v1/businesses/{businessId}/logos/{logoId} for the status. The returned id is what you set as branding.logoId on a phone number.

Allowed formats: PNG, JPEG, GIF, checked against both the Content-Type and the image bytes. Maximum size 5 MB. Minimum dimensions 600×600 pixels. An image outside these limits returns 400 with IMAGE_ERROR, and the message says which limit it broke. A request body over 6 MB is refused by the API gateway with 413, without the usual error body.

Path Parameters​


    businessId string<uuid>required

    The ID of the business, assigned by Hiya.

    Example: 9b8a1c4e-2c0f-4f3d-9a1e-7b3a2b4c6d8f

Header Parameters​


    X-Hiya-Request-Id string

    Your own correlation ID for this call, returned as requestId in the response body. Hiya generates one if omitted. A value that doesn't match the pattern is rejected with 400 INVALID_HEADER.

    Possible values: <= 200 characters, Value must match regular expression ^[A-Za-z0-9._:/+=@-]+$

    Example: job-2f9c1a7e-0042

Body

required

    string

Responses​

The logo was uploaded. It is CREATED, with no variations yet.

Response Body

application/json

    requestIdstringrequired

    The X-Hiya-Request-Id this call was handled under — the value you sent, or one Hiya generated if you didn't send one.

    Example: job-2f9c1a7e-0042

    timestampstringrequired

    When Hiya handled the request.

    Format: string<date-time>

    Possible values: Value must match regular expression ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$

    Example: 2026-05-28T14:32:10.264Z

    idstringrequired

    The logo's ID, assigned by Hiya. Set this as branding.logoId on a phone number.

    Format: string<uuid>
    Example: 550e8400-e29b-41d4-a716-446655440000

    statusstringrequired

    A logo's processing status.

    | Value | Meaning | |-------|---------| | CREATED | Uploaded; variations not generated yet. | | FINISHED | Processed; variations are available. | | FAILED | Processing failed — re-upload the logo. | | REMOVED | The logo was removed. There is no delete endpoint — a logo only reaches this state through Hiya-side action, so it is a state you can observe but not cause. |

    Format: phone_LogoStatus (string)

    Possible values: [CREATED, FINISHED, FAILED, REMOVED]

    Example: FINISHED

    extensionstring | null

    The image file extension, once known.

    Example: png

    createdAtstringrequired

    When the logo was uploaded.

    Format: string<date-time>

    Possible values: Value must match regular expression ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$

    Example: 2026-05-28T14:32:10.264Z

    variationsobject[]required

    The generated image variations. Empty until status is FINISHED.

  • Array [


  • urlstringrequired

    URL of this variation.

    Format: string<uri>
    Example: https://cdn.hiya.com/550e8400-e29b-41d4-a716-446655440000_600x600.png

    widthintegerrequired

    Width in pixels.

    Example: 600

    heightintegerrequired

    Height in pixels.

    Example: 600
  • ]

Example from Schema​

{
"requestId": "job-2f9c1a7e-0042",
"timestamp": "2026-05-28T14:32:10.264Z",
"id": "550e8400-e29b-41d4-a716-446655440000",
"status": "FINISHED",
"extension": "png",
"createdAt": "2026-05-28T14:32:10.264Z",
"variations": [
{
"url": "https://cdn.hiya.com/550e8400-e29b-41d4-a716-446655440000_600x600.png",
"width": 600,
"height": 600
}
]
}
{
"requestId": "job-5b9e3a7c-0023",
"timestamp": "2026-05-28T14:32:10.264Z",
"id": "550e8400-e29b-41d4-a716-446655440000",
"status": "CREATED",
"extension": null,
"createdAt": "2026-05-28T14:32:10.264Z",
"variations": []
}