> For the complete documentation index, see [llms.txt](https://docs.flashback.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flashback.tech/support-reference/platform-api-reference/organization/get__organization_-orgid.md).

# get\_\_organization\_{orgId}

`GET /organization/{orgId}`

*Get Organization Details*

Retrieve organization details and settings for the specified organization. The authenticated user must be a member of the organization to access this information. This endpoint is accessible to all users within the organization regardless of their role.

#### TypeScript Client Library

```typescript
// Note: This endpoint doesn't have a direct client method in the provided TypeScript client
// You would need to use the generic makeRequest method:
// this.makeRequest<any>(`organization/${orgId}`, 'GET', null);
```

#### Code Samples

{% tabs %}
{% tab title="Shell" %}

```shell
# You can also use wget
curl -X GET https://backend.flashback.tech/organization/123e4567-e89b-12d3-a456-426614174000 \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'
```

{% endtab %}

{% tab title="HTTP" %}

```http
GET https://backend.flashback.tech/organization/123e4567-e89b-12d3-a456-426614174000 HTTP/1.1
Host: localhost:3000
Accept: application/json
Authorization: Bearer {access-token}
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const headers = {
  'Accept':'application/json',
  'Authorization':'Bearer {access-token}'
};

fetch('https://backend.flashback.tech/organization/123e4567-e89b-12d3-a456-426614174000',
{
  method: 'GET',
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});
```

{% endtab %}

{% tab title="Ruby" %}

```ruby
require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json',
  'Authorization' => 'Bearer {access-token}'
}

result = RestClient.get 'https://backend.flashback.tech/organization/123e4567-e89b-12d3-a456-426614174000',
  params: {
  }, headers: headers

p JSON.parse(result)
```

{% endtab %}

{% tab title="Python" %}

```python
import requests
headers = {
  'Accept': 'application/json',
  'Authorization': 'Bearer {access-token}'
}

r = requests.get('https://backend.flashback.tech/organization/123e4567-e89b-12d3-a456-426614174000', headers = headers)

print(r.json())
```

{% endtab %}

{% tab title="PHP" %}

```php
<?php

require 'vendor/autoload.php';

$headers = array(
    'Accept' => 'application/json',
    'Authorization' => 'Bearer {access-token}',
);

$client = new \GuzzleHttp\Client();

try {
    $response = $client->request('GET','https://backend.flashback.tech/organization/123e4567-e89b-12d3-a456-426614174000', array(
        'headers' => $headers,
       )
    );
    print_r($response->getBody()->getContents());
 }
 catch (\GuzzleHttp\Exception\BadResponseException $e) {
    // handle exception or api errors.
    print_r($e->getMessage());
 }

```

{% endtab %}

{% tab title="Java" %}

```java
URL obj = new URL("https://backend.flashback.tech/organization/123e4567-e89b-12d3-a456-426614174000");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
con.setRequestProperty("Accept", "application/json");
con.setRequestProperty("Authorization", "Bearer {access-token}");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());
```

{% endtab %}

{% tab title="Go" %}

```go
package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        "Authorization": []string{"Bearer {access-token}"},
    }

    data := bytes.NewBuffer([]byte{})
    req, err := http.NewRequest("GET", "https://backend.flashback.tech/organization/123e4567-e89b-12d3-a456-426614174000", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}
```

{% endtab %}
{% endtabs %}

> Example responses

> 200 Response

```json
{
  "success": true,
  "data": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "Acme Corporation",
    "domain": "acme.com",
    "address1": "123 Business St",
    "address2": "Suite 100",
    "city": "New York",
    "zipcode": "10001",
    "phone": "+1-555-0123",
    "state": "NY",
    "country": "US",
    "deletedAt": null,
    "reposDisabled": false,
    "website": "https://acme.com",
    "is_business": true,
    "mfaEnforced": true
  }
}
```

> 403 Response

```json
{
  "success": false,
  "data": null,
  "message": "Access denied: you can only view your own organization"
}
```

> 404 Response

```json
{
  "success": false,
  "data": null,
  "message": "Organization not found"
}
```

> 500 Response

```json
{
  "success": false,
  "data": null,
  "message": "Internal server error"
}
```

#### Path Parameters <a href="#get__organization__orgid-pathparameters" id="get__organization__orgid-pathparameters"></a>

| Name    | Type   | Required | Description                                       |
| ------- | ------ | -------- | ------------------------------------------------- |
| » orgId | string | true     | Unique identifier of the organization to retrieve |

#### Responses <a href="#get__organization__orgid-responses" id="get__organization__orgid-responses"></a>

| Status | Meaning                                                                    | Description                              | Schema |
| ------ | -------------------------------------------------------------------------- | ---------------------------------------- | ------ |
| 200    | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)                    | Organization retrieved successfully      | Inline |
| 403    | [Forbidden](https://tools.ietf.org/html/rfc7235#section-3.3)               | Access denied - user not in organization | Inline |
| 404    | [Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4)             | Organization not found                   | Inline |
| 500    | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | Internal server error                    | Inline |

#### Response Schema <a href="#get__organization__orgid-responseschema" id="get__organization__orgid-responseschema"></a>

Status Code **200**

| Name             | Type               | Required | Restrictions | Description                                     |
| ---------------- | ------------------ | -------- | ------------ | ----------------------------------------------- |
| » success        | boolean            | false    | none         | Indicates if the request was successful         |
| » data           | object             | false    | none         | Organization data                               |
| »» id            | string             | false    | none         | Unique identifier for the organization          |
| »» name          | string             | false    | none         | Organization name                               |
| »» domain        | string             | false    | none         | Organization domain                             |
| »» address1      | string             | false    | none         | Primary address line                            |
| »» address2      | string             | false    | none         | Secondary address line                          |
| »» city          | string             | false    | none         | City                                            |
| »» zipcode       | string             | false    | none         | ZIP/Postal code                                 |
| »» phone         | string             | false    | none         | Phone number                                    |
| »» state         | string             | false    | none         | State/Province                                  |
| »» country       | string             | false    | none         | Country                                         |
| »» deletedAt     | string (date-time) | false    | none         | Deletion timestamp (null if active)             |
| »» reposDisabled | boolean            | false    | none         | Whether repositories are disabled               |
| »» website       | string             | false    | none         | Organization website URL                        |
| »» is\_business  | boolean            | false    | none         | Whether this is a business organization         |
| »» mfaEnforced   | boolean            | false    | none         | Whether multi-factor authentication is enforced |

Status Code **403**

| Name      | Type    | Required | Restrictions | Description                               |
| --------- | ------- | -------- | ------------ | ----------------------------------------- |
| » success | boolean | false    | none         | Indicates if the request was successful   |
| » data    | null    | false    | none         | No data returned                          |
| » message | string  | false    | none         | Error message describing the access issue |

Status Code **404**

| Name      | Type    | Required | Restrictions | Description                             |
| --------- | ------- | -------- | ------------ | --------------------------------------- |
| » success | boolean | false    | none         | Indicates if the request was successful |
| » data    | null    | false    | none         | No data returned                        |
| » message | string  | false    | none         | Error message describing the issue      |

Status Code **500**

| Name      | Type    | Required | Restrictions | Description                               |
| --------- | ------- | -------- | ------------ | ----------------------------------------- |
| » success | boolean | false    | none         | Indicates if the request was successful   |
| » data    | null    | false    | none         | No data returned                          |
| » message | string  | false    | none         | Error message describing the server issue |

#### Security

* **BearerAuth**: Bearer token authentication required
* **Organization Access**: User must be a member of the specified organization
* **Role Requirements**: No specific role requirements - accessible to all organization members

#### Notes

* This endpoint returns basic organization information and settings
* Organization settings are excluded from the response as requested
* Users can only view their own organization's details
* The `deletedAt` field indicates if the organization has been soft-deleted
* Business organizations may have different features and limitations than personal organizations


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.flashback.tech/support-reference/platform-api-reference/organization/get__organization_-orgid.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
