# API Integration Layer

## Goals&#x20;

* Simplify calling RESTful APIs&#x20;
* Automatic error handling&#x20;
* Automatic external logging of any API errors&#x20;
* Simplify uploading files&#x20;
* Support for long-running operations ( LROs )&#x20;
  * UX messaging, progress bar, cancel...&#x20;

## Concepts

### API Contracts&#x20;

* The calling construction&#x20;
* The end goal&#x20;
* Determination of success / error&#x20;
* Success / error handling&#x20;


---

# 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://engine.sygnal.com/feature-roadmap/api-integration-layer.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.
