---
search:
  tags:
    - Images
    - POST
seo:
  description: >-
    Admin only. Returns a presigned URL the console PUTs an… Reference for the
    POST /api/v1/images/branding/upload-url endpoint in the PharmaFlow API.
sidebar:
  label: Create a branding logo upload URL
  badge: POST
title: Create a branding logo upload URL
type: openapi-operation
---
Admin only. Returns a presigned URL the console PUTs an organisation logo to. The key sits under the branding prefix and allows JPEG, PNG, or WebP logos of 2 MB or less.

`POST /api/v1/images/branding/upload-url`

**Request body** (`application/json`, required)

- `content_type` (string, required)
- `size_bytes` (integer, required)

Request body example:

```json
{
  "content_type": "string",
  "size_bytes": 1
}
```

**Responses**

- `200` — The presigned upload and the key it targets
- `400` — The size is not a positive whole number, the content type is not JPEG, PNG, or WebP, or the logo is more than 2 MB
- `401` — Not authenticated
- `403` — Caller is not an admin
- `500` — Image storage is not configured

Response example, 200:

```json
{
  "key": "string",
  "uploadUrl": "string",
  "publicUrl": "string"
}
```
