> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://apidocs.megamation.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://apidocs.megamation.com/_mcp/server.

# Get Organizations

GET https://api.megamation.com/CLIENT_ID/DATABASE_ID/rs_org

An example of getting organizations information

Reference: https://apidocs.megamation.com/api/room-event-scheduler-organization/get-room-event-scheduler-organization-get-organizations

## Authentication

- `Authorization` header (basic auth, required) — Basic authentication of the form `Basic <base64(username:password)>`.
- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Query parameters

- `client_id` (string, optional)

## Response

### 200

OK

## Examples

**Response**

```json
{
  "_embedded": {
    "Organization": [
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/dev2022/dl/rs_org/10002"
          }
        },
        "organization_id": "10002",
        "organization_name": "AA Group",
        "status": "ACTIVE"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/dev2022/dl/rs_org/10003"
          }
        },
        "organization_id": "10003",
        "organization_name": "Boys and Girls Club of Emerald Valley",
        "status": "ACTIVE"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/dev2022/dl/rs_org/10004"
          }
        },
        "organization_id": "10004",
        "organization_name": "Carry It Forward",
        "status": "ACTIVE"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/dev2022/dl/rs_org/10005"
          }
        },
        "organization_id": "10005",
        "organization_name": "Lane Youth Soccer",
        "status": "ACTIVE"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/dev2022/dl/rs_org/10006"
          }
        },
        "organization_id": "10006",
        "organization_name": "Eugen Metro Futbol Club",
        "status": "ACTIVE"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/dev2022/dl/rs_org/10007"
          }
        },
        "organization_id": "10007",
        "organization_name": "Pelada Football Academy",
        "status": "ACTIVE"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/dev2022/dl/rs_org/10008"
          }
        },
        "organization_id": "10008",
        "organization_name": "Incline Sports",
        "status": "ACTIVE"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/dev2022/dl/rs_org/10009"
          }
        },
        "organization_id": "10009",
        "organization_name": "The Arts & Business Alliance of Eugene",
        "status": "ACTIVE"
      }
    ]
  },
  "_links": {
    "apiEntryPoint": {
      "href": "https://api.megamation.com/dev2022/dl"
    },
    "self": {
      "href": "https://api.megamation.com/dev2022/dl/rs_org?client_id=fuec94KbWAgeHUQWLkWt"
    }
  },
  "cursor": "",
  "has_more": "False",
  "next_page": "",
  "progress": "8/8"
}
```

**SDK Code**

```python
import requests

url = "https://api.megamation.com/CLIENT_ID/DATABASE_ID/rs_org"

querystring = {"client_id":"{{client_id}}"}

response = requests.get(url, params=querystring, auth=("<username>", "<password>"))

print(response.json())
```

```javascript
const url = 'https://api.megamation.com/CLIENT_ID/DATABASE_ID/rs_org?client_id=%7B%7Bclient_id%7D%7D';
const credentials = btoa("<username>:<password>");

const options = {method: 'GET', headers: {Authorization: `Basic ${credentials}`}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.megamation.com/CLIENT_ID/DATABASE_ID/rs_org?client_id=%7B%7Bclient_id%7D%7D"

	req, _ := http.NewRequest("GET", url, nil)

	req.SetBasicAuth("<username>", "<password>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.megamation.com/CLIENT_ID/DATABASE_ID/rs_org?client_id=%7B%7Bclient_id%7D%7D")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request.basic_auth("<username>", "<password>")

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.megamation.com/CLIENT_ID/DATABASE_ID/rs_org?client_id=%7B%7Bclient_id%7D%7D")
  .basicAuth("<username>", "<password>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.megamation.com/CLIENT_ID/DATABASE_ID/rs_org?client_id=%7B%7Bclient_id%7D%7D', [
  'headers' => [
  ],
    'auth' => ['<username>', '<password>'],
]);

echo $response->getBody();
```

```csharp
using RestSharp;
using RestSharp.Authenticators;

var client = new RestClient("https://api.megamation.com/CLIENT_ID/DATABASE_ID/rs_org?client_id=%7B%7Bclient_id%7D%7D");
client.Authenticator = new HttpBasicAuthenticator("<username>", "<password>");
var request = new RestRequest(Method.GET);

IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let credentials = Data("<username>:<password>".utf8).base64EncodedString()

let headers = ["Authorization": "Basic \(credentials)"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.megamation.com/CLIENT_ID/DATABASE_ID/rs_org?client_id=%7B%7Bclient_id%7D%7D")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```