---
title: "Accept Invitation"
method: POST
path: "/api/v1/teams/accept"
tags: ["teams"]
---

# Accept Invitation

`POST /api/v1/teams/accept`

## Request

- Base URL: `https://api.seoproai.co`
- URL: `https://api.seoproai.co/api/v1/teams/accept`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://dajosjnaalanhqksxrpe.supabase.co/auth/v1/authorize`, token URL `https://dajosjnaalanhqksxrpe.supabase.co/auth/v1/token`)

Accept the most recent pending invitation for the currently authenticated user.

## Headers

- `x-user-id` string, nullable

## Response `200`

Successful Response

- AcceptInviteResponse
  - `organization_id` string, required
  - `role` 'owner' | 'admin' | 'editor', required
  - `already_member` boolean

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/seoproai/apis/seopro-ai.md) · [All operations](https://skmtc.dev/seoproai/apis/seopro-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/seoproai/apis/seopro-ai/revisions/5b4b6391ddc9?raw)
