# Our Endpoints

### Reward Program Staked USD Values

<mark style="color:blue;">`GET`</mark> `http://crucible.wtf/api/get-program-staked-usd`

This endpoint will return a JSON object of Reward Programs and the Total Staked Value in USD for each program.<br>

Example GET request (Mainnet):

\`<http://crucible.wtf/api/get-program-staked-usd?network=1>\`

#### Query Parameters

| Name                                      | Type   | Description                                                                                             |
| ----------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------- |
| network<mark style="color:red;">\*</mark> | String | <p>Network ID that data is required for</p><p></p><p>e.g:</p><p>1 = Mainnet</p><p>41334 = Avalanche</p> |

{% tabs %}
{% tab title="200: OK Endpoint will return an array of reward programs and their total staked USD values" %}

```javascript
[{
    rewardProgramAddress, totalStakedUSD
}]
```

{% endtab %}
{% endtabs %}

### Reward Program Reward USD Values

<mark style="color:blue;">`GET`</mark> `http://crucible.wtf/api/get-program-rewards-usd`

This endpoint will return a JSON object of Reward Programs and the Total Rewards Value (of all tokens in the pool) in USD for each program.<br>

Example GET request (Mainnet):

\`<http://crucible.wtf/api/get-program-rewards-usd?network=1>\`

#### Query Parameters

| Name    | Type   | Description                                                                                             |
| ------- | ------ | ------------------------------------------------------------------------------------------------------- |
| network | String | <p>Network ID that data is required for</p><p></p><p>e.g:</p><p>1 = Mainnet</p><p>41334 = Avalanche</p> |

{% tabs %}
{% tab title="200: OK Endpoint will return an array of reward programs and their total rewards (of all tokens within the pool) in USD values" %}

```javascript
[{
    rewardProgramAddress, totalRewardsUSD
}]
```

{% endtab %}
{% endtabs %}


---

# 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.crucible.wtf/developers/our-endpoints.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.
