# REST API - Deprecated

{% hint style="danger" %}
The REST API is deprecated! Use the new [GraphQL V2 API](/fast-weigh-knowledge-base/references/api-documentation/graphql-v2-api.md)
{% endhint %}

The REST API generally handles CREATE and UPDATE calls.

The OpenAPI/Swagger docs can be found here: <https://api.fast-weigh.com/swagger>

## Create an API key and get an Endpoint <a href="#create_an_api_key_and_get_endpoint" id="create_an_api_key_and_get_endpoint"></a>

On the Fast-Weigh Web Portal, go to the [API Info](https://portal.fast-weigh.com/APIInfo) page under the settings gear.

<figure><img src="/files/FXB5OMzzhW5Snk7Hh9eO" alt=""><figcaption></figcaption></figure>

You should see the REST API Base Endpoint listed here as well as any available keys.

To create a new key click the "+ New Key" button on the grid and fill in the info required.

**Don't see API Info on your web portal?**

1. You may not be an admin of your Fast-Weigh account. Check with a known admin to see if they can set up this key.
2. Your company's account may not have this enabled. If this is the case you will need to contact your sales or onboarding rep to get it enabled.

## Making requests <a href="#making_requests" id="making_requests"></a>

When making requests to the REST APIs include the following header:

```
x-api-key: your-key-goes-here
```


---

# 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://help.tacinsight.com/fast-weigh-knowledge-base/references/api-documentation/rest-api-deprecated.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.
