> ## Documentation Index
> Fetch the complete documentation index at: https://agenticbanking.backbase.io/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Banking OS training data goes stale. Search https://agenticbanking.backbase.io/mcp or fetch the .md URL before writing connector or unified API code.
> OpenAPI links in llms.txt repeat every calendar version. Use the latest version on the API playground. If a fetch ends before the last operation, the spec was cut off.
> Page titles name the product. Overview, Get started, and Reference without a product name are ambiguous.

# Request Template Connector API

> Execute requests to pre-deployed Template Connector API

## Overview

In this exercise, you will learn how to call a **Banking OS (GC)** connector. You will call a already deployed [Template Connector](https://github.com/bb-ecos-core/grandcentral-connector-template) called **Health connector**.
The [Banking OS Generic API](https://github.com/bb-ecos-core/grandcentral-generic-api) called Health API is already deployed automatically to all Banking OS Connectivity installations and contains a simple endpoint **getVersion** that returns its version.

## Key learning outcomes

* How to obtain an API endpoint.
* How to obtain an API subscription key.
* How to execute a cURL request against Azure API Management (APIM) and verify the output.

***

## Obtain the Connector API URL

To retrieve the connector URL from the APIM resource on the Azure portal the role `dev-apim-ro`
should be assigned in [self-service](https://agenticbanking.backbase.io/agentic-ai/get-started/self-service.md) in order to have access
to APIM pages.

Follow the path in the APIM portal:
`APIs -> Health Api -> v1 -> getVersion -> Request URL field`

![Connector URL and Subscription key location in the Azure portal](https://mintcdn.com/ecosystems-documentation/2c1sXixxo-lynbtO/assets/images/devkits/01_01-azure-apim-request-url.png?fit=max\&auto=format\&n=2c1sXixxo-lynbtO\&q=85\&s=83f3e7b2b7ec543a167fe8251c0a1e6c)

> This is applicable for all connectors, each API deployed is available on this Azure resource.

The API Request URL pattern is:

```
https://api.${runtime}.${installation}.gcservices.io/${api-spec-endpoint}
```

***

## Obtain APIM Product Subscription Key

The APIM Product Subscription key can also be obtained from the Azure Portal under the *Subscription* tab.

To obtain the Banking OS Generic API subscription follow the below steps highlighted in the image below.
The primary key will be the value used in the connector call below.

![Obtain APIM subscription key](https://mintcdn.com/ecosystems-documentation/2c1sXixxo-lynbtO/assets/images/devkits/01_02-azure-apim-subscription-key.png?fit=max\&auto=format\&n=2c1sXixxo-lynbtO\&q=85\&s=fc04505f81518b66ff7aac4a1714ed1f)

***

## Calling the Connector

Now you have retrieved the connector URL and the subscription key from the above steps. It’s now time to call the connector by executing an HTTP `GET` request.

> **Ensure you are on the Backbase VPN and are routing the request through the Backbase proxy.**

![Request Generic API from APIM portal](https://mintcdn.com/ecosystems-documentation/2c1sXixxo-lynbtO/assets/images/devkits/01_03-request-health-api-portal.png?fit=max\&auto=format\&n=2c1sXixxo-lynbtO\&q=85\&s=f47cd883de6b9e1007f70ef2064260eb)

Every request to the APIM needs an `Api-Key` request header for routing and authorization.
This header should contain the subscription key value.

**Ensure the `Api-Key` header value matches the primary key value from the preceding step.**

### Example request

```http theme={"system"}
GET https://api.dev.ecos.gcservices.io/version
Api-Key: <primary-key-from-subscription>
```

***
