> ## Documentation Index
> Fetch the complete documentation index at: https://getfaceage.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Upload a logo

> Upload a logo image for your business.

Uploads a logo and returns its storage path. Pass that path as the `logo` parameter when you [create](https://getfaceage.com/docs/api-reference/business/create-business.md) or [update](https://getfaceage.com/docs/api-reference/business/update-business.md) a business.

## Path parameters

**business\_id** `integer` *required*

ID of the business.

## Body

**logo** `file` *required*

Logo image. Supported types: `png`, `jpeg`, `jpg`, `ico`. Send as `multipart/form-data`.

## Response

Returns the storage path of the uploaded logo as plain text.

```bash cURL theme={null}
curl --request POST 'https://core.getfaceage.com/api/v1/business/upload-logo/{business_id}' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer your_secret_key' \
  --form 'logo=@"/path/to/logo.png"'
```

```php PHP theme={null}
<?php
$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => 'https://core.getfaceage.com/api/v1/business/upload-logo/{business_id}',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS => ['logo' => new CURLFILE('/path/to/logo.png')],
  CURLOPT_HTTPHEADER => [
    'Accept: application/json',
    'Authorization: Bearer your_secret_key',
  ],
]);

$response = curl_exec($curl);
curl_close($curl);
echo $response;
```

```text 200 theme={null}
storage/logo/1245/670a365bb0dg6adc.png
```

```json 401 theme={null}
{
  "message": "Unauthenticated."
}
```

```json 422 theme={null}
{
  "message": "The logo field is required.",
  "errors": {
    "logo": ["The logo field is required."]
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.