# Secura Finance > REST API integration guide for AI agents. Secura provides tokenized real-world asset markets, spot trading, perpetuals, portfolio data, staking, and related account operations. See the API reference for documented integration endpoints. ## Documentation - [Complete machine-readable reference](/llms-full.txt): this guide plus the full current API, authentication, supported networks, and roadmap documentation - [Agent integration guide](/ai-agents): workflow and account safety - [API key authentication](/api-key): key creation, HMAC signing, Node.js example - [API reference](/api): current public and user `/v1` routes, parameters, response types, and access levels - [Supported blockchains](/blockchains): Base only (chain ID `8453`) for Seasons 01, 02, and subsequent seasons. Arbitrum support is planned. - [For Business](/business/): tokenization, listing and white-label platforms - [Roadmap](/roadmap): available and planned product features ## Connect - API base URL: `https://api.secura.finance` - API prefix: `/v1` - Public discovery: `GET /v1/assets`, `GET /v1/perpetual/assets`, `GET /v1/fees` - Authenticated reads: `GET /v1/user/information/my`, `GET /v1/orders/for-user`, `GET /v1/perpetual/positions/for-user` - Account writes include spot and perpetual orders, staking deposits/withdrawals, withdrawal requests, and API-key management. Obtain a specific user instruction, validate the request, and show what will be sent before making a write request. Do not automatically retry a write after a timeout without checking its outcome. ## API key authentication Create a key in account settings or through the authenticated `POST /v1/user/api-key/generate` endpoint. Its JSON body requires `validUntil` (a future ISO-8601 timestamp). Only one active key is allowed. Save the returned `apiKey` and `secretKey`; the secret is not returned by `GET /v1/user/api-keys/my`. Keep the secret on a trusted server, outside prompts and client bundles. For each signed request, set `X-Api-Key`, `X-Signature`, `X-Timestamp`, and `X-Nonce`. Compute `X-Signature` as Base64(HMAC-SHA256(key=UTF8(secretKey), message=UTF8(payload))). `X-Timestamp` is Unix seconds and `X-Nonce` must be unique. Server time tolerance applies. The payload consists of exactly five fields separated by `\n`, without a final newline: ```text {timestamp} {nonce} {HTTP_METHOD} {path_and_query} {raw_request_body} ``` Use the path and query exactly as sent. For a request without a body, the fifth field is an empty string. For JSON, sign the same serialized body bytes that you send. Do not assume a request is safe to retry just because the response was lost. ```js import { createHmac, randomUUID } from 'node:crypto' const baseUrl = 'https://api.secura.finance' const apiKey = process.env.SECURA_API_KEY const secret = process.env.SECURA_API_SECRET if (!apiKey || !secret) throw new Error('Set SECURA_API_KEY and SECURA_API_SECRET') const method = 'GET' const pathAndQuery = '/v1/user/information/my' const body = '' const timestamp = Math.floor(Date.now() / 1000).toString() const nonce = randomUUID() const payload = `${timestamp}\n${nonce}\n${method}\n${pathAndQuery}\n${body}` const signature = createHmac('sha256', secret).update(payload, 'utf8').digest('base64') const response = await fetch(`${baseUrl}${pathAndQuery}`, { method, headers: { 'X-Api-Key': apiKey, 'X-Signature': signature, 'X-Timestamp': timestamp, 'X-Nonce': nonce, }, }) if (!response.ok) throw new Error(`Secura API returned HTTP ${response.status}`) console.log(await response.json()) ``` An authenticated user may also use Bearer JWT where the API reference marks authentication as required. Never request or disclose a wallet private key or API secret in the model conversation. Consult the API reference for each endpoint's access level, required parameters, and response type.