---
title: "Get user's namespaces or search namespaces"
method: GET
path: "/namespaces"
tags: ["namespaces"]
---

# Get user's namespaces or search namespaces

`GET /namespaces`

When called without query params, returns the authenticated user's namespaces (backwards compatible). When query params are provided, searches public namespaces with pagination. Use ownerId to filter by owner, hasServers/hasSkills to filter by content, q for text search.

## Query parameters

- `q` string
- `ownerId` string
- `hasServers` '0' | '1' | 'true' | 'false'
- `hasSkills` '0' | '1' | 'true' | 'false'
- `page` integer
- `pageSize` integer
- `fields` string

## Response `200`

Successful response

- NamespacesSearchResponse
  - `namespaces` NamespaceSearchResult[], required
    - `name` string, required
  - `pagination` object, required
    - `currentPage` integer, required
    - `pageSize` integer, required
    - `totalPages` integer, required
    - `totalCount` integer, required

## Other responses

- `401` — Unauthorized
- `500` — Server error

---

[API](https://skmtc.net/smithery-ai/apis/smithery-platform-api.md) · [All operations](https://skmtc.net/smithery-ai/apis/smithery-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smithery-ai/smithery-platform-api/revisions/60b8c3d2fecf/schema)
