# Calling the API

### Configure the requests

For any request you select from the included examples within the collection you will need to change the Type field within the Authorization tab to "**Inherit auth from parent**".

![](/files/Rf0r0JAa0SOHOJ5Tb735)

### Test your settings

At this point you should be able to run any of the requests within the collection - being careful remembering to select "**Inherit auth from parent**" on any request before running it. But there are two provided requests that make this easy.

Within the collection you will see a number of folders containing various FHIR resource requests.  One request at the bottom is "**metadata Get**".

Click on the "**metadata Get**" request, and then click "**SEND**".  All going to plan you will receive back the Capability Statement for the Partner API, a key feature of a standards compliant FHIR API.

![](/files/IWVwtRaduVnkZePJK6PV)

Next to ensure you have the ability to write to the API expand the Patient folder and select `Patient Create`

Click "**SEND**".

This performs a **POST** request and sends a single FHIR Patient resource. Going well you will receive a **201 Created** response, and the body of your response will include the resource you just sent.


---

# 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.geniesolutions.io/genie-partner-api/tutorials-and-examples/connecting-with-postman/calling-the-api.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.
