# REST API Integration

HoloFair provides support for custom REST API requests through the SDK. You may call HTTP methods using the **GetRequestHandler** and **PostRequestHandler**.

Add your request handler of choice to an empty object

<div><figure><img src="/files/R3evzhtMQFcddM2o8OIH" alt=""><figcaption></figcaption></figure> <figure><img src="/files/BorL6lXtrdO3dlc2qn7N" alt=""><figcaption></figcaption></figure></div>

You have two unity events that are invoked based on the response from the server. Successful request responses (ex. 200) invoke OnSuccess and errors (ex. 404 or 502) invoke OnFail. You also have a URL input. See [Smart String](/development/features/rest-api-integration/smart-string.md) on how to set it up within your Metaverse. You also have variables that allow you to prase JSON values. In the output (and input in the case of POST), you may specify variable parsers and their behaviours. See [Serialized Variables](/development/features/rest-api-integration/serialized-variables.md) for more clarification.


---

# Agent Instructions: 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.holofair.app/development/features/rest-api-integration.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.
