Skip to main content
POST
/
api
/
payments
/
config
Configure Stripe Secret Key
curl --request POST \
  --url https://api.example.com/api/payments/config \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "environment": "test",
  "secretKey": "sk_test_xxx"
}
'
{
  "keys": [
    {
      "environment": "test",
      "hasKey": true,
      "maskedKey": "sk_test_...abcd"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.insforge.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
environment
enum<string>
required
Available options:
test,
live
secretKey
string
required
write-only
Minimum string length: 1
Example:

"sk_test_xxx"

Response

Updated Stripe key configuration

keys
object[]
required