---
title: "Sync Tenant"
method: POST
path: "/v1/portal/sync"
tags: ["Portal"]
---

# Sync Tenant

`POST /v1/portal/sync`

## Request

- Base URL: `https://api.grafomem.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.grafomem.com/v1/portal/sync`
- Auth: none declared

Auto-provision a tenant after Supabase login.

Called by the frontend after a successful Supabase auth (signup, OAuth,
or email confirmation).  Verifies the Supabase JWT from the Authorization
header, then finds-or-creates the linked tenant.

## Request body

- SyncRequest: Tenant sync payload — sent after first Supabase login.
  - `name` string
  - `plan` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/grafomem/apis/grafomem-cloud.md) · [All operations](https://skmtc.dev/grafomem/apis/grafomem-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/grafomem/apis/grafomem-cloud/revisions/a472af705375?raw)
