Info / Venues / Providers
Server info, venues, and providers via REST.
Three lightweight endpoints for reading server configuration and discovering available venues and providers. All are simple GET requests you can issue at any time.
All responses are MessagePack-encoded. Set Accept: application/vnd.msgpack in your request headers.
Authentication — Authorization: Bearer <token> header or ?auth=<token> query param. See Connection & Negotiation for JWT details.
Info
GET /api/v1/infoReturns server settings, protocol version, and configurable parameter bounds. The REST equivalent of GetInfo. Call it to read the defaults and limits you'll need when configuring swap requests.
Example
import { Decoder } from '@msgpack/msgpack';
// useBigInt64 required — 64-bit integer fields (amounts, timestamps)
const decoder = new Decoder({ useBigInt64: true });
// Fetch server info from the Gateway REST endpoint
const res = await fetch(
`${process.env.TITAN_ENDPOINT}/api/v1/info`,
{
headers: {
'Authorization': `Bearer ${process.env.TITAN_API_KEY}`,
'Accept': 'application/vnd.msgpack',
},
}
);
// Decode the MessagePack response
const info = decoder.decode(new Uint8Array(await res.arrayBuffer())) as any;
// Protocol version — major changes are backwards-incompatible
console.log('Protocol version:', info.protocolVersion);
// Quote stream settings — use these bounds when configuring requests
console.log('Default update interval:', info.settings.quoteUpdate.intervalMs.default, 'ms');
console.log('Concurrent streams allowed:', info.settings.connection.concurrentStreams);Venues
Returns the list of on-chain venues available for routing. Each label is a valid value for the dexes and excludeDexes query parameters on Quote Swap and Quote Price.
Query parameters
includeProgramIds—"true"to include the Solana program ID for each venue.
Example
Providers
Returns the list of active quote providers. Each id is a valid value for the providers query parameter on Quote Swap. Each provider independently competes to deliver the best-priced route.
Query parameters
includeIcons—"true"to include 48×48 icon URIs for each provider.
Example
Error responses
400— Invalid parameters. Malformed query parameter value.401— Missing or invalid authentication token. Check your JWT and its claims.
Related pages
GetInfo — Direct (WebSocket) equivalent with full
ServerInfotype definitionsGetVenues / ListProviders — Direct (WebSocket) equivalents with full
VenueInfoandProviderInfotype definitionsConfigure Routing — Use venue and provider IDs to filter and customize quote routing
Titan Direct vs Titan Gateway — Choosing between WebSocket and REST
Last updated

