Introduction
Transactions
Buyers
Checkout Sessions
Payment links
Payment options
Refunds
Instruments
- Card schemes
- Card details
- Digital wallets
- Gift cards
- Payment methods
- Payment method definitions
Vault
- Account updater
- Network tokens
- Payment service tokens
- Vault Forward
- Vault Forward endpoints
- Vault Forward authentication
Connections
- All services
- Payment services
- Digital wallets
- Anti-fraud services
Other
- Flow
- Reports
- Report executions
- Webhook subscriptions
Add vault forward authentication
POST
/
vault-forward
/
configs
/
{config_id}
/
authentications
Copy
Ask AI
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.{gr4vy_id}.gr4vy.app/vault-forward/configs/{config_id}/authentications"
payload := strings.NewReader("{\n \"kind\": \"mle\",\n \"display_name\": \"My Message Level Encryption\",\n \"fields\": [\n {\n \"key\": \"private_key\",\n \"value\": \"sk_test_26PHem9AhJZvU623DfE1x4sd\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
Copy
Ask AI
{
"type": "vault-forward-config-authentication",
"id": "faaad066-30b4-4997-a438-242b0752d7e1",
"created_at": "2012-12-12T10:53:43+00:00",
"updated_at": "2012-12-12T10:53:43+00:00",
"kind": "mle",
"label": "My MLE",
"display_name": "My MLE",
"fields": [
{
"key": "secret_key",
"value": "sk_test_26PHem9AhJZvU623DfE1x4sd"
}
],
"creator": {
"id": "77a76f7e-d2de-4bbc-ada9-d6a0015e6bd5",
"name": "John L",
"email_address": "john@example.com"
}
}
This endpoint requires the vault-forward-authentications.write
scope.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
The ID of the Vault Forward configuration.
Example:
"46973e9d-88a7-44a6-abfe-be4ff0134ff4"
Body
application/json
Request body to create a Vault Forward authentication method.
Response
201
application/json
Returns the created Vault Forward authentication method.
A configured Vault Forward authentication method.
Was this page helpful?
Copy
Ask AI
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.{gr4vy_id}.gr4vy.app/vault-forward/configs/{config_id}/authentications"
payload := strings.NewReader("{\n \"kind\": \"mle\",\n \"display_name\": \"My Message Level Encryption\",\n \"fields\": [\n {\n \"key\": \"private_key\",\n \"value\": \"sk_test_26PHem9AhJZvU623DfE1x4sd\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
Copy
Ask AI
{
"type": "vault-forward-config-authentication",
"id": "faaad066-30b4-4997-a438-242b0752d7e1",
"created_at": "2012-12-12T10:53:43+00:00",
"updated_at": "2012-12-12T10:53:43+00:00",
"kind": "mle",
"label": "My MLE",
"display_name": "My MLE",
"fields": [
{
"key": "secret_key",
"value": "sk_test_26PHem9AhJZvU623DfE1x4sd"
}
],
"creator": {
"id": "77a76f7e-d2de-4bbc-ada9-d6a0015e6bd5",
"name": "John L",
"email_address": "john@example.com"
}
}
Assistant
Responses are generated using AI and may contain mistakes.