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

# Upload Image

> Upload an image file to CrowdChange on behalf of the authenticated user, returning a hosted URL you can attach to personal pages or teams.

## Body

<ParamField body="file" type="string" required>
  base-64 encoded image.
</ParamField>

## Response

<ResponseField name="id" type="string">
  Image ID
</ResponseField>

<ResponseField name="url" type="string">
  URL to uploaded image
</ResponseField>

<ResponseField name="success" type="boolean">
  Flag if uploading is successful
</ResponseField>

<ResponseField name="message" type="string">
  Message if uploading is unsuccessful
</ResponseField>

**Other responses**

| Status | Description  |
| ------ | ------------ |
| `401`  | Unauthorized |
| `403`  | Forbidden    |

<ResponseExample>
  ```json theme={null}
  {
    "id": "1eaf5ab2-5d55-11ee-82ef-001c42584fa2",
    "url": 10,
    "success": true,
    "message": "Campaign"
  }
  ```
</ResponseExample>
