Integrations
View as Markdown

Install per-tenant Stripe credentials

No API key can call this route. It needs a signed-in dashboard user with the right role; a key answers 403. About scopes

PUT
/api/v1/gateway-credentials/stripe

Authorization

Authorization
Required
Bearer <token>

An API key: gpy_test_… or gpy_live_… (or an agent key, agk_…).

In: header

Request Body

application/jsonOptional

mode
Required
string

Value in: "test" | "live"

secret_key
Required
string

webhook_secretstring

publishable_keystring

curl -X PUT "https://globalymint.com/api/v1/gateway-credentials/stripe" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "test",
    "secret_key": "sk_test_...",
    "webhook_secret": "whsec_...",
    "publishable_key": "pk_test_..."
  }'

Masked status for both modes. The submitted secret is never echoed.

{
  "data": {
    "items": [
      {
        "mode": "test",
        "configured": true,
        "secretKeyHint": "string",
        "publishableKeyHint": "string",
        "hasWebhookSecret": true,
        "account_name": "string",
        "account_id_hint": "string",
        "verified_at": "string",
        "checked_at": "string",
        "webhook_registered": true,
        "webhook_reason": "string",
        "last_event_at": "string",
        "last_event_type": "string",
        "status": "connected",
        "reason": "string",
        "reason_code": "not_verified"
      }
    ],
    "verification": {
      "mode": "test",
      "account_name": "string",
      "webhook_registered": true,
      "webhook_created": true,
      "webhook_reason": "string"
    },
    "webhook_endpoint": {
      "url": "string",
      "events": [
        "string"
      ]
    }
  },
  "_agent": {
    "summary": "string",
    "status": "ok",
    "next_actions": [
      "string"
    ],
    "warnings": [
      "string"
    ]
  },
  "api_version": "2026-07-01"
}