# Stripe configuration status

`GET /api/v1/gateway-credentials/stripe`

Masked by construction — the repo returns hints, so there is no route-level filtering to forget.

Needs a full-access key (`*`). No narrower scope opens this route.

## Responses

### 200

One entry per mode, configured or not.

JSON Schema:

```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "mode": {
                "type": "string",
                "enum": [
                  "test",
                  "live"
                ]
              },
              "configured": {
                "type": "boolean"
              },
              "secretKeyHint": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Last 4 characters only."
              },
              "publishableKeyHint": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "hasWebhookSecret": {
                "type": "boolean"
              },
              "account_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Stripe account display name from the last successful check."
              },
              "account_id_hint": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Last 4 characters of the Stripe account id."
              },
              "verified_at": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "When Stripe last accepted the key. Null until first checked."
              },
              "checked_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "webhook_registered": {
                "type": "boolean",
                "description": "True while the endpoint in the Stripe account was created by GlobalyMint."
              },
              "webhook_reason": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Why not: restricted_key, existing_endpoint, manual, manual_quiet, no_public_url, limit_reached or error."
              },
              "last_event_at": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Last signature-verified inbound Stripe event."
              },
              "last_event_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "connected",
                  "needs_attention",
                  "not_connected"
                ]
              },
              "reason": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "One short sentence when status is needs_attention."
              },
              "reason_code": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "not_verified",
                  "key_rejected",
                  "webhook_missing",
                  "no_events",
                  "webhook_unverified",
                  null
                ]
              }
            },
            "required": [
              "mode",
              "configured",
              "secretKeyHint",
              "publishableKeyHint",
              "hasWebhookSecret",
              "account_name",
              "account_id_hint",
              "verified_at",
              "checked_at",
              "webhook_registered",
              "webhook_reason",
              "last_event_at",
              "last_event_type",
              "status",
              "reason",
              "reason_code"
            ]
          }
        },
        "webhook_endpoint": {
          "type": "object",
          "properties": {
            "url": {
              "type": [
                "string",
                "null"
              ],
              "description": "The inbound endpoint for this workspace."
            },
            "events": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Exactly the Stripe events the backend handles."
            }
          },
          "required": [
            "url",
            "events"
          ]
        }
      },
      "required": [
        "items",
        "webhook_endpoint"
      ]
    },
    "_agent": {
      "type": "object",
      "properties": {
        "summary": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "ok"
          ]
        },
        "next_actions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "summary",
        "status",
        "next_actions",
        "warnings"
      ]
    },
    "api_version": {
      "type": "string",
      "example": "2026-07-01"
    }
  },
  "required": [
    "data",
    "_agent",
    "api_version"
  ]
}
```
