Skip to main content
POST
Proxy

Authorizations

Authorization
string
header
required

Format: api-key=<api_key>

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.

Headers

X-Profile-Id
string
required

Profile ID for authentication

Body

application/json
request_body
any
required

The request body that needs to be forwarded: JSON, or an XML document as a string with an XML Content-Type. Other Content-Types are rejected. GET and DELETE send no body.

destination_url
string
required

The non-empty HTTP or HTTPS destination URL. Configured proxy bypass hosts are rejected. IP literals must be publicly routable.

Minimum string length: 1
Example:

"https://api.example.com/endpoint"

headers
object
required

The headers that need to be forwarded

method
enum<string>
required
Available options:
GET,
POST,
PUT,
DELETE,
PATCH
token
string
required

The vault token that is used to fetch sensitive data from the vault

token_type
enum<string>
required
Available options:
tokenization_id,
payment_method_id,
volatile_payment_method_id,
payment_method_token

Response

Proxy request

response
required

The destination's response body: JSON when it parses as JSON, otherwise its text, such as an XML document. Only UTF-8 text is supported. Both variants serialize to the bare value, so a JSON string and text look the same on the wire; this type is serialize-only.

status_code
integer<int32>
required

The status code of the response

Required range: x >= 0
response_headers
object
required

The headers of the response