> 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 Labels

GET https://api.megamation.com/CLIENT_ID/DATABASE_ID/rs_booking/@LABELS

Get the list of fields and their real world names (if different)

Reference: https://apidocs.megamation.com/api/room-event-scheduler-booking/get-room-event-scheduler-booking-get-labels

## 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.

## Response

### 200

OK

## Examples

**Response**

```json
{
  "BUILDING_ADDRESS": "Building Address",
  "DESCRIPTION": "Description",
  "END_DATE": "End Date",
  "END_TIME": "End Time",
  "EQUIPMENT_CODE": "Equipment Code",
  "EQUIPMENT_DESCRIPTION": "Description of Equipment",
  "EQUIPMENT_QTY": "Qty",
  "RECURRING_DATE": "Recurring Date",
  "RECURRING_FLAG": "Recurring reservation",
  "RESERVATION_ID": "Reservation#",
  "RESERVATION_STATUS": "Status",
  "RESOURCE_DESCRIPTION": "Resource",
  "RESOURCE_ID": "Resource Id",
  "RS_USER_ID": "Requesting User",
  "R_DAY_DAYS": "R Day Days",
  "R_FREQUENCY": "R Frequency",
  "R_MONTH_DAY": "R Month Day",
  "R_WEEK_DAYS": "R Week Days",
  "R_WEEK_RECUR": "R Week Recur",
  "START_DATE": "Date",
  "START_TIME": "Start Time",
  "TITLE": "Reservation Title",
  "Table": "RS_RESERVATION_MASTER",
  "Usage": "To get, update, and create room reservation booking that will use the DirectLine System",
  "order": [
    "start_date",
    "start_time",
    "end_date",
    "end_time",
    "reservation_id",
    "reservation_status",
    "rs_user_id",
    "resource_id",
    "resource_description",
    "title",
    "recurring_flag",
    "description",
    "recurring_date",
    "building_address",
    "r_frequency",
    "r_day_days",
    "r_week_recur",
    "r_week_days",
    "r_month_day",
    "equipment_code",
    "equipment_description",
    "equipment_qty"
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.megamation.com/CLIENT_ID/DATABASE_ID/rs_booking/@LABELS"

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

print(response.json())
```

```javascript
const url = 'https://api.megamation.com/CLIENT_ID/DATABASE_ID/rs_booking/@LABELS';
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_booking/@LABELS"

	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_booking/@LABELS")

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_booking/@LABELS")
  .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_booking/@LABELS', [
  '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_booking/@LABELS");
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_booking/@LABELS")! 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()
```