---
title: "Join Oauth App Team"
method: POST
path: "/v2/oauth/join"
tags: ["oauth"]
---

# Join Oauth App Team

`POST /v2/oauth/join`

## Request

- Base URL: `https://api.hud.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.hud.ai/v2/oauth/join`
- Auth: none declared

Make the OAuth access token's user a member of its application's team.

Idempotent. A user who is already a member keeps their role; a new user
joins as an external member, whom a team admin can promote. A user who was
removed from the team is refused until a team admin invites them again.
Every other endpoint answers ``principal_not_found`` for the token until
its user has joined.

## Response `200`

Successful Response

- OAuthJoinResponse: The token user's membership in the application's team.
  - `membership_id` integer, required
  - `team_id` string, uuid, required
  - `role` 'admin' | 'member' | 'external', required

## Other responses

- `400`: Invalid or malformed request
- `401`: Missing or invalid credentials
- `403`: Caller may not access this resource
- `404`: Referenced entity does not exist
- `409`: Resource already exists
- `429`: Rate limit exceeded; wait at least Retry-After seconds
- `502`: An upstream provider is unavailable
- `503`: The server is at capacity; retry after Retry-After seconds

## Changes

- **2026-10-27** `d642039f5fa6`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/hud/apis/hud-platform/changes/v2/oauth/join/post.md)

---

[API](https://skmtc.dev/hud/apis/hud-platform.md) - [All operations](https://skmtc.dev/hud/apis/hud-platform/llms.txt) - [OpenAPI document](https://skmtc.dev/hud/apis/hud-platform/revisions/d642039f5fa6?raw)
