---
title: "POST Approve an organization by setting hasAccess to true (QA internal)."
description: "This is an internal endpoint for the QA team to approve an organization by setting its 'hasAccess' field to true. Requires a valid QA_SECRET token in the Authorization header."
last_updated: "2026-05-06T07:33:58.009934+00:00"
canonical_url: "https://www.doc0.dev/docs/49c89830-117b-4def-8edc-b5bcc50766e0/api/qa-internal/approveorganization"
---

<APIEndpoint
  method={"POST"}
  path={"/api/qa/approve-org"}
  summary={"Approve an organization by setting hasAccess to true (QA internal)."}
  description={"This is an internal endpoint for the QA team to approve an organization by setting its 'hasAccess' field to true. Requires a valid QA_SECRET token in the Authorization header."}
  deprecated={false}
  baseUrl={""}
/>

## Parameters

<APIParameters parameters={[{"name":"Authorization","in":"header","required":true,"description":"Bearer token containing the QA_SECRET.","schema":{"type":"string"}}]} />

## Request Body

The ID of the organization to approve.

<APIRequestBody
  contentType={"application/json"}
  required={true}
  schema={{"type":"object"}}
/>

## Responses

<APIResponse
  statusCode={"200"}
  description={"Organization approved successfully."}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

<APIResponse
  statusCode={"400"}
  description={"Bad Request, e.g., missing organizationId or invalid JSON."}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

<APIResponse
  statusCode={"401"}
  description={"Unauthorized, if the QA_SECRET is missing or invalid."}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

<APIResponse
  statusCode={"404"}
  description={"Organization not found."}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

<APIResponse
  statusCode={"500"}
  description={"Internal Server Error, e.g., QA_SECRET not configured or database error."}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

## Try It

<APIPlayground
  method={"POST"}
  path={"/api/qa/approve-org"}
  parameters={[{"name":"Authorization","in":"header","required":true,"description":"Bearer token containing the QA_SECRET.","schema":{"type":"string"}}]}
  requestBody={{"contentType":"application/json","required":true,"description":"The ID of the organization to approve.","schema":{"type":"object"}}}
  baseUrl={""}
/>


## Sitemap

See the full [sitemap](https://www.doc0.dev/docs/49c89830-117b-4def-8edc-b5bcc50766e0/llms.txt) for all pages in this wiki.
