# API

***

## Overview

Superstate offers APIs for all information about our tokens/funds including Net Asset Value per Share, AUM, total outstanding shares, pricing, and yield. &#x20;

| Fund | Fund ID |
| ---- | ------- |
| USTB | 1       |
| USCC | 2       |

#### Key examples

The full API Spec can be found here: <https://api.superstate.com/swagger-ui/>.&#x20;

<table><thead><tr><th width="234.4453125">Endpoint</th><th>Request URL</th></tr></thead><tbody><tr><td>USTB Daily NAV</td><td><a href="https://api.superstate.com/v1/funds/1/nav-daily">https://api.superstate.com/v1/funds/1/nav-daily</a></td></tr><tr><td>USTB Yield</td><td><a href="https://api.superstate.com/v1/funds/1/yield">https://api.superstate.com/v1/funds/1/yield</a></td></tr><tr><td>USTB Holdings</td><td><a href="https://api.superstate.com/v2/funds/1/holdings">https://api.superstate.com/v2/funds/1/holdings</a></td></tr><tr><td>USCC Daily NAV</td><td><a href="https://api.superstate.com/v1/funds/2/nav-daily">https://api.superstate.com/v1/funds/2/nav-daily</a></td></tr><tr><td>USCC Yield</td><td><a href="https://api.superstate.com/v1/funds/2/yield">https://api.superstate.com/v1/funds/2/yield</a></td></tr><tr><td>USCC Holdings</td><td><a href="https://api.superstate.com/v2/funds/2/holdings">https://api.superstate.com/v2/funds/2/holdings</a></td></tr></tbody></table>

***

## Authenticated endpoints

There are two types of authenticated endpoints:

1. JWT authenticated endpoints
2. API key authenticated endpoints

#### Using JWT authenticated endpoints

Endpoints authenticated by a JWT can be used by first logging into your Superstate account on the [Superstate website](https://superstate.com/). Once you've logged in, you can call that endpoint in Swagger.

#### Using API key authenticated endpoints

We also provide certain endpoints that require an API key to access. To receive an API key for your entity or organization, please [contact us](https://superstate.com/contact-us).

Once you have your API keypair, you can use our [API key request npmjs package](https://www.npmjs.com/package/@superstateinc/api-key-request) to send a request using Typescript/Javascript:

```
npm install @superstateinc/api-key-request
```

If you prefer to build the request yourself, or are using a different language, the source code and instructions are located here:

<https://github.com/superstateinc/request-with-api-key>


---

# 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.superstate.com/investors/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.
