# REST API

## Get FAST Taxonomy

> Get the taxonomy id and the list of assets the authenticated user is\
> authorized to receive. The numeric \`asset\_id\` returned for each asset\
> is scoped to the returned \`taxonomy\_id\`.

```json
{"openapi":"3.0.3","info":{"title":"Stork FAST Distributor API","version":"1.0"},"tags":[{"name":"Taxonomy","description":"Asset taxonomy used to decode FAST messages"}],"servers":[{"url":"https://fast.jp.stork-oracle.network"},{"url":"https://fast.dev.stork-oracle.network"}],"security":[{"token_auth":[]}],"components":{"securitySchemes":{"token_auth":{"description":"Enter your token in the format of \"Basic your-token\"","type":"apiKey","name":"Authorization","in":"header"}},"schemas":{"TaxonomyResponse":{"type":"object","properties":{"taxonomy_id":{"$ref":"#/components/schemas/TaxonomyID"},"assets":{"type":"array","items":{"$ref":"#/components/schemas/TaxonomyAsset"}}},"required":["taxonomy_id","assets"]},"TaxonomyID":{"type":"integer","format":"int32","minimum":0,"maximum":65535,"description":"Identifier for a FAST taxonomy. Stable for the lifetime of a deployment."},"TaxonomyAsset":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/PriceID"},"asset_id":{"$ref":"#/components/schemas/AssetID"}},"required":["name","asset_id"],"description":"Mapping between a human-readable price id and its numeric asset id within a taxonomy."},"PriceID":{"type":"string","description":"Human-readable price identifier (e.g. `BTCUSD`)."},"AssetID":{"type":"integer","format":"int32","minimum":0,"maximum":65535,"description":"Compact numeric asset id used inside FAST messages."},"ErrorResponse":{"type":"object","properties":{"error":{"type":"string"}}}}},"paths":{"/v1/taxonomy":{"get":{"tags":["Taxonomy"],"summary":"Get FAST Taxonomy","description":"Get the taxonomy id and the list of assets the authenticated user is\nauthorized to receive. The numeric `asset_id` returned for each asset\nis scoped to the returned `taxonomy_id`.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxonomyResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}}}
```


---

# 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.stork.network/resources/stork-fast/rest-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.
