---
title: "Accepts invitation for JIT database access"
method: POST
path: "/v1/projects/{ref}/database/jit/invite/accept"
tags: ["Database"]
---

# Accepts invitation for JIT database access

`POST /v1/projects/{ref}/database/jit/invite/accept`

Accepts the invitation to JIT database access

## Path parameters

- `ref` string, required

## Request body

- AcceptInviteExternalUserJitAccessBody
  - `email` string, email, required
  - `token` string, required

## Response `200`

- JitAccessResponse
  - `user_id` string, uuid
  - `user_roles` object[], required
    - `role` string, required
    - `expires_at` number
    - `allowed_networks` object
      - `allowed_cidrs` object[]
        - `cidr` string, required
      - `allowed_cidrs_v6` object[]
        - `cidr` string, required
    - `branches_only` boolean

## Other responses

- `500` — Failed to accept invitation

---

[API](https://skmtc.dev/supabase/apis/management-api.md) · [All operations](https://skmtc.dev/supabase/apis/management-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/supabase/management-api/revisions/a7cb39418064/schema)
