entitlements:read
Read a Discord member's entitlement snapshot without permission to change it.
Bridge
Connect your own website, game backend, CRM, store, or private service to Bridge. Push entitlement state for a Discord user and reuse it for role automation, Rule Engine conditions, or Network Verification.
Create a credential from Dashboard → Plugins → Custom Provider API. The full brgpk_... secret is shown once. Keep it in server-side secret storage and send it as a Bearer token.
Authorization: Bearer brgpk_your_secret_here
entitlements:readRead a Discord member's entitlement snapshot without permission to change it.
entitlements:writePush single or bulk entitlement updates without permission to read snapshots.
A credential can be read-only, write-only, or read + write. A valid key that calls an endpoint outside its assigned scope receives 403 Forbidden; invalid or revoked keys receive 401 Unauthorized.
GET /api/provider/v1/health
Authorization: Bearer brgpk_...
The readiness response reports the server-scoped provider configuration, the calling credential's scopes, and which read/write capabilities are currently available.
POST /api/provider/v1/entitlements
Content-Type: application/json
Authorization: Bearer brgpk_...
{
"user_id": "123456789012345678",
"entitlement_key": "member",
"active": true,
"event_id": "customer-493-membership-v8",
"metadata": {"plan": "gold"}
}
Use active: false when the member no longer qualifies. Reusing the same event_id makes network retries safe without applying the same mutation twice.
POST /api/provider/v1/entitlements/bulk
Content-Type: application/json
Authorization: Bearer brgpk_...
{
"batch_id": "membership-sync-001",
"updates": [
{"user_id":"123456789012345678","entitlement_key":"member","active":true,"event_id":"member-123-v9"},
{"user_id":"223456789012345678","entitlement_key":"member","active":false,"event_id":"member-223-v4"}
]
}
Bridge accepts up to 500 updates in one bounded bulk request, applies accepted changes atomically in PostgreSQL, and queues targeted reconciliation once per affected Discord user.
GET /api/provider/v1/entitlements/123456789012345678?entitlement_key=member
Authorization: Bearer brgpk_...
For 429 responses, honor Retry-After. For transient network/5xx failures, retry with the same event or batch identifiers.
PROVIDER_API.md and INTEGRATIONS_SETUP.md include cURL, JavaScript, Python, rotation, retry, and provider setup guidance.