# PATCH - Proxy

You can use this method to send a request that use sensitive data in the body with the replaced values of the token.

{% tabs %}
{% tab title="cUrl" %}

```
PATCH /
curl -X PATCH https://api.firstoken.co/proxy/
-H 'ft-access-key: YOUR_ACCESS_KEY'
```

{% endtab %}

{% tab title="Headers of the request" %}

* **ft-url-destiny**: *string*

  URL which proxy API will send the request

  Required: true
* **ft-access-key**: *string*\
  This headers contains the Firstoken API Key\
  Required: true
* **ft-headers**: *JSON*

  This JSON contains the headers that proxy have to add to the request.

  Example: "{"Authorization" : "Bearer ‘YOU\_AUTH\_TOKEN’"}

  Required: false
* **ft-encryption**: *JSON*

  This JSON contains the properties required to apply an encryption in the selected values.

  Must contain the following properties:

  * Key: string

    Is the RSA key,
  * Type: string

    The type of the encryption algorithm.
  * is\_partial: Boolean

    Explains if the encryption is partial or not.

  Example: {"key": "{{your-encryption-key}}", "type": "RSA", "is\_partial": true}

  Required: false
  {% endtab %}

{% tab title="Request Body" %}
In the Proxy body, only a valid token (permanent or temporary) is necessary to extract sensitive data with the actions and filters explained in "[Actions](https://firstoken.gitbook.io/api-docs/api-reference/firstoken-api/proxy/methods/broken-reference)".
{% endtab %}
{% endtabs %}

<details>

<summary>Example body of a Proxy PUT request</summary>

```json
{
    "chd": {
        "card": " {{72a14d9d-5e63-4ff6-b536-094befebc752:transaction | extract:card}}",
        "name": " {{72a14d9d-5e63-4ff6-b536-094befebc752:transaction | extract:name}}",
        "exp": " {{72a14d9d-5e63-4ff6-b536-094befebc752:transaction | extract:expiration | date:MM}}/ {{4242428XsEs24242:detokenize | extract:expiration | date:YY}}",
        "cvv": " {{72a14d9d-5e63-4ff6-b536-094befebc752:transaction | extract:cvv | encrypt}}"
    },
    "order_id":
    "payment_id": "1E481SFCS345GHF4EC",
    "reference": "503423",
    "shopper_interaction": "ecommerce",
    "total": "150.78",
    "currency": “USD”,
    "payment_method": "Diners"
}
```

</details>

### Proxy response body

The Proxy response body will contain the status codes of the call and inside the data object, the response sent by the destination url designated in the header.
