# Accept a team invitation.

`POST /teams/memberships/{master_user_id}`

> Wheelhouse Revenue Management API. Web version: https://docs.usewheelhouse.com/rm/reference/rm-post-team-membership · OpenAPI spec: https://docs.usewheelhouse.com/rm/openapi.yaml · Operation ID: `rmPostTeamMembership` · Tag: Teams

Accepts a pending invitation to join another Wheelhouse account's team. Does nothing (still returns success) if there is no matching pending invitation.

## Request

`POST https://api.usewheelhouse.com/ss_api/v1/teams/memberships/{master_user_id}`

Authentication: send your RM API key in the `X-Integration-Api-Key` header (see https://docs.usewheelhouse.com/rm/authentication.md). Modifies data; read-only keys get `403 Forbidden`.

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `master_user_id` | integer | yes | The Wheelhouse internal user ID of the team owner (the `user_id` field from a team membership response). |

### Example request

```bash
curl -X POST 'https://api.usewheelhouse.com/ss_api/v1/teams/memberships/{master_user_id}' \
  -H 'X-Integration-Api-Key: <your RM API key>'
```

Only required parameters and body fields are filled in, with placeholder values. Add the optional ones you need from the lists above; some are required in combination, as their descriptions say.

## Responses

### 200

Invitation accepted (or no matching pending invitation existed). The body is an empty object.

Body (`application/json`): object

Example shape (generated from the schema; placeholder values, not a real response):

```json
{}
```

### 401

API key authorization failed.

### 403

Read-only API key cannot accept team invitations.

### 409

A concurrent request for this team is already in progress. Retry after it completes.

### 429

Rate limit exceeded — the API key has sent too many requests. Wait before retrying. See the **Rate Limits** section in the overview for the recommended exponential backoff strategy.

Body (`application/json`): object

- `error` (string, example: `API token is at rate limit`)

Example shape (generated from the schema; placeholder values, not a real response):

```json
{
  "error": "API token is at rate limit"
}
```
