---
title: "Backgrounds list (used by /backgrounds)."
method: GET
path: "/api/v1/backgrounds"
tags: ["Backgrounds"]
---

# Backgrounds list (used by /backgrounds).

`GET /api/v1/backgrounds`

## Request

- Base URL: `https://api.avatarfactory.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.avatarfactory.io/api/v1/backgrounds`
- Auth: one of:
  - API key in cookie `session`
  - HTTP bearer

<br/>Returns all preset backgrounds (owner_id=NULL) plus the caller's<br/>own uploads. Admins additionally see other users' uploads.<br/>Filtering happens in the service layer for presets; per-user<br/>scoping is layered here.

## Query parameters

- `category` string, nullable

## Response `200`

OK

- BackgroundsListResponse
  - `categories` string[]
  - `items` BackgroundCard[], required
    - `category` string, required
    - `id` integer, required
    - `image_file` string, required
    - `is_preset` integer
    - `name` string, required
    - `owner_id` integer, nullable
  - `selected_category` string

## Other responses

- `422`: Unprocessable Entity

---

[API](https://skmtc.dev/avatarfactory/apis/avatarfactory-api.md) · [All operations](https://skmtc.dev/avatarfactory/apis/avatarfactory-api/llms.txt) · [OpenAPI document](https://skmtc.dev/avatarfactory/apis/avatarfactory-api/revisions/66fc7aa3f296?raw)
