Skip to main content
GET
/
routing
/
active
Routing - Retrieve Config
curl --request GET \
  --url https://sandbox.hyperswitch.io/routing/active \
  --header 'api-key: <api-key>'
{
  "algorithm": {
    "id": "routing_abc123",
    "profile_id": "profile_123",
    "name": "default_card_routing",
    "description": "Primary routing strategy for card payments",
    "algorithm": {
      "type": "single",
      "data": {
        "connector": "authipay",
        "merchant_connector_id": "<string>"
      }
    },
    "created_at": 1718000000000,
    "modified_at": 1718050000000,
    "algorithm_for": "payment"
  }
}

Authorizations

api-key
string
header
required

Use the API key created under your merchant account from the HyperSwitch dashboard. API key is used to authenticate API requests from your merchant server only. Don't expose this key on a website or embed it in a mobile application.

Query Parameters

profile_id
string | null

The unique identifier for a merchant profile

Response

Successfully retrieved active config

Response returned when retrieving routing configuration for a merchant account.

algorithm
object

Routing algorithm configuration created for a merchant.

Represents a fully defined routing strategy scoped to a profile and transaction type.