# Structuring the Request

Now you have the Prompt ID, you can build out the request to use in your own system. We like to test all of our API requests using a tool called [Postman](https://www.postman.com/). Well worth picking it up if you don't have it. It is free to use.&#x20;

What Postman is great at is that it lets you import a CURL request and then try it out instantly. This is great for experimenting and ensuring you have everything set up properly. You can then also get a code snippet for multiple other technologies such as Python, Javascript, NodeJS, and much more.&#x20;

```
curl --location --request POST 'https://prompts.riku.ai/webhook/run' \
--header 'Content-Type: application/json' \
--data-raw '{
	"Name": "NAME OF ACCOUNTHOLDER",
	"Secret": "SECRET KEY (GET FROM MANAGE ACCOUNT)",
	"Prompt ID": "COPY FROM RUN PROMPT PAGES",
	"Input 1": "THE FIRST INPUT",
	"Input 2": "THE SECOND INPUT",
	"Input 3": "THE THIRD INPUT",
	"Input 4": "THE FOURTH INPUT",
	"Input 5": "THE FIFTH INPUT",
	"n": <number of how many varations to generate>
}'
```

This is the request you can use for anything you want to use from Riku. The POST request is going to an endpoint regardless of which technology the prompt is using and we will route it accordingly for you.&#x20;

{% hint style="info" %}
In the code example above, we provide data for Input 1 - 5. Our system will automatically exclude any Inputs that are not relevant to the Prompt ID specified. If you have a Prompt ID with zero inputs, you can still include the Input fields but they won't be used for anything.&#x20;
{% endhint %}

The main points to keep in mind for beginners when using this request are;

* It is a POST request.&#x20;
* There is one header field of "Content-Type": "application/json".&#x20;
* The "n" field is a number and generally, we don't recommend putting that as more than 6. Also, ensure that you do not put that number in quotations. It should be "n": 5 and not "n": "5". Final note to remember is that the final field of the JSON does not have a comma at the end.&#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://docs.riku.ai/exporting-prompts/single-endpoint-export/structuring-the-request.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.
