---
title: "List spaces"
method: GET
path: "/spaces"
tags: ["Spaces"]
---

# List spaces

`GET /spaces`

## Request

- Base URL: `https://api.youscan.io/api/external`
- URL: `https://api.youscan.io/api/external/spaces`
- Auth: one of:
  - API key in header `X-API-KEY`
  - API key in query parameter `apiKey`
- TypeScript: <https://skmtc.dev/youscan/apis/youscan-api/docs/spaces/get.ts> (a function with typed inputs; its response is checked against the schema)

List spaces available to the authenticated user.

## Response `200`

Spaces available to the user.

- object
  - `spaces` Space[]
    - `id` integer: Space ID.
    - `name` string: Space name.

## Other responses

- `401`: The API key is missing or invalid.

---

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