---
title: "Search for a single team membership"
method: GET
path: "/api/public/v1/team-membership/search"
tags: ["TeamMembershipResourceSearch"]
---

# Search for a single team membership

`GET /api/public/v1/team-membership/search`

## Request

- Base URL: `https://allquiet.app` (the document declares no server; this is the origin it was published from)
- URL: `https://allquiet.app/api/public/v1/team-membership/search`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/allquiet/apis/all-quiet-public-api/docs/api/public/v1/team-membership/search/get.ts> (a function with typed inputs; its response is checked against the schema)

Find one membership by required userId and teamId, optionally filtered by role. Returns 404 when no matching membership exists.

**Required API key permissions**

- **Scope:** `team-memberships:get`
- **Accepted key types:** organization API key (org-wide), organization API key (team-scoped), personal access token (org-wide), personal access token (team-scoped)
- **Access:** Access is checked against the specific resource (team or organization reachability).
- **Required team role (user-linked keys only):** Member
- Organization API keys are not subject to organization or team role checks.

## Query parameters

- `Role` string
- `UserId` string, uuid, required
- `TeamId` string, uuid, required

## Response `200`

OK

- AllQuietApiPublicTeamMembershipsTeamMembershipResourceResponse
  - `id` string, uuid
  - `teamId` string, uuid
  - `userId` string, uuid, nullable
  - `email` string, nullable
  - `role` string, nullable
  - `activatedAt` string, date-time, nullable
  - `isProvisioned` boolean

## Other responses

- `404`: Not Found

---

[API](https://skmtc.dev/allquiet/apis/all-quiet-public-api.md) - [All operations](https://skmtc.dev/allquiet/apis/all-quiet-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/allquiet/apis/all-quiet-public-api/revisions/915aa0b1de95?raw)
