# APIs Integration

## Current API reference <a href="#current-api-reference" id="current-api-reference"></a>

With the current structure, the API requests are sent to the respective recipient member directly. This requires each member to understand the metadata of the recipient member and use their base path while sending.

<figure><img src="/files/6WFmDNU54NNnVhaiUUzH" alt=""><figcaption><p>Existing approach to use the APIs by AA Ecosystem</p></figcaption></figure>

## Using Sahamati Router APIs <a href="#using-sahamati-proxy-apis" id="using-sahamati-proxy-apis"></a>

Sahamati Router makes it easy for the members to send the request to any recipient just by adding the **recipient identifier** in the header under **x-recipient-id**.

<figure><img src="/files/nRyCiCBzQN4AbY2B9tB4" alt=""><figcaption><p>Using Sahamati Router APIs for AA Ecosystem</p></figcaption></figure>

<table><thead><tr><th width="157">Particulars</th><th width="176">Comments</th><th></th></tr></thead><tbody><tr><td>Host</td><td>The base path to use by the members of Sahamati Router.</td><td><a href="https://api.sandbox.sahamati.org.in/proxy">​https://api.sandbox.sahamati.org.in/proxy</a></td></tr><tr><td>Headers</td><td>This will remain same as previous.</td><td><p>​</p><ul><li>x-jws-signature - Authorization</li><li>Token (from sender)</li></ul></td></tr><tr><td>Additional Headers</td><td>The recipient id is a required property. It is the identifier of the receiver to whom the API call needs to be forwarded.</td><td>x-request-meta</td></tr></tbody></table>


---

# 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://developer.sahamati.org.in/no-longer-relevent/technical-specifications/router-api-specs/apis-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.
