> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.immix.xyz/api-reference/rest-api/assets/get/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.immix.xyz/_mcp/server. # Get an asset GET /assets/{assetId} One asset by id. A removed asset is 404. Reference: https://docs.immix.xyz/api-reference/rest-api/assets/get ## Authentication - `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer `, where token is your auth token. ## Request ### Path parameters - `assetId` (string, required) — The asset id. ## Response ### 200 The asset. - `assetId` (string, required) — The asset's id. Ids are opaque strings. - `symbol` (string, required) — The asset's symbol, as instrument symbols spell it: the `BTC` in `OKX@BTC/USDT`. - `type` (string, required) — The asset class: `COIN`, `TOKEN`, `FIAT`, `STABLE_COIN`, `INDEX`, `COMMODITY`, `STOCK` or `OTHER`. Append-only: tolerate values you don't know. - `updatedAtNs` (string, required, nullable) — When the asset record last changed, as a sequencer timestamp in epoch nanoseconds. Null when unknown. ## Errors ### 400 Get Assets Request Bad Request Error The request is malformed. - `error` (ErrorBody, required) ### 401 Get Assets Request Unauthorized Error The bearer token is missing or not valid. - `error` (ErrorBody, required) ### 404 Get Assets Request Not Found Error No such resource. - `error` (ErrorBody, required) ### 503 Get Assets Request Service Unavailable Error A store is temporarily unavailable; retry. - `error` (ErrorBody, required) ## Types ### ErrorBody - `code` (string, required) — Machine-readable, UPPER_SNAKE and append-only; tolerate codes you don't know. Branch on this, never on the message. - `message` (string, required) — For display only; its wording may change at any time. - `requestId` (string, required) — The request's id, also sent as X-Request-Id; quote it to support. - `retryable` (boolean, required) — Whether the same request may succeed if retried later. ## Examples **Response** ```json { "assetId": "1", "symbol": "BTC", "type": "COIN", "updatedAtNs": "1758640000000000000" } ``` **SDK Code** ```python import requests url = "https://api.example.com/assets/assetId" headers = {"Authorization": "Bearer "} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript const url = 'https://api.example.com/assets/assetId'; const options = {method: 'GET', headers: {Authorization: 'Bearer '}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.example.com/assets/assetId" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby require 'uri' require 'net/http' url = URI("https://api.example.com/assets/assetId") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://api.example.com/assets/assetId") .header("Authorization", "Bearer ") .asString(); ``` ```php request('GET', 'https://api.example.com/assets/assetId', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://api.example.com/assets/assetId"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://api.example.com/assets/assetId")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```