# How to set up and edit API configurations

## Getting started

To create a new API configuration, navigate to the API configurations page in the PIM system and click on the "Create API Configuration" button located in the top right corner.

<figure><img src="/files/dH676aCBJuM5o6s7Kd9V" alt=""><figcaption><p>API configuration page</p></figcaption></figure>

This will present you with the API configurations setup page.

<figure><img src="/files/ASWmbDN6m5LeGLfs0L5S" alt=""><figcaption><p>API configurations setup page</p></figcaption></figure>

To configure the API, first assign a name to the API key for identification purposes. The subsequent fields, "API Key" and "API URL," should contain the generated key and the URL where the API is accessible.

Afterwards you will have the options to specify what kind of access to grant the API key.&#x20;

When you are done with the configurations you can click the "Save"-button in the bottom right to save and generate the key.

## Example of API configurations

In the example below you will see the API key generated, which is needed in order to access the API endpoints. The name of the API key is to clarify that it is made for testing.

<figure><img src="/files/YFCUqvqf28aCz8r6JsDj" alt=""><figcaption><p>Example of API configuration</p></figcaption></figure>


---

# 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.struct.com/tutorials/guides/how-to-use-struct-pims-api/how-to-set-up-and-edit-api-configurations.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.
