Skip to main content
POST
cURL

Overview

GetSupportedIntentProtocols returns the intent-protocol versions the Trails API currently serves. Each version identifies a different orchestration + contracts stack; a quote produced for one version cannot be committed against another. Only v1_5 is served — v1 is deprecated (writes requesting it fail with IntentProtocolDeprecated), though stored v1 intents remain readable via GetIntent/receipt/history. Use this alongside GetDefaultIntentProtocol and GetProtocolContracts to negotiate the correct version at runtime instead of hardcoding it.

Request

GetSupportedIntentProtocols takes no parameters.

Response

  • versions (IntentProtocolVersion[]) — supported versions in no particular order. Members: v1_5.

Example

Next Steps

GetDefaultIntentProtocol

Get the API’s current default protocol version

GetProtocolContracts

Resolve on-chain contract addresses for a protocol version

Body

application/json

The body is of type object.

Response

OK

versions
enum<string>[]

[]IntentProtocolVersion

Represented as string on the server side

Available options:
v1,
v1_5