API reference · Credit

Credit consent

POST Record a subject's consent for this tenant, for one purpose

POST /credit-scoring/consent

There is deliberately no blanket purpose: **consent given to be lent to is not consent to be marketed at.** A tenant wanting two purposes asks twice. Consent decays. Omitting expiresAt gives the platform maximum; asking for longer is refused. A permission that outlives the reason it was given stops being a permission and becomes a standing arrangement the subject has forgotten agreeing to. grantedVia and evidenceReference are not paperwork. The platform cannot observe whether consent was really obtained; what it can do is make the tenant state how, durably, so a subject disputing it later has something to point at.

Headers

NameNotes
AuthorizationBearer token
X-TenantYour tenant
X-Environmenttest or live
Content-Typeapplication/json

Example

Request body: CreditConsentRequest · Response: CreditConsentResponse

curl -X POST "https://api.bridgemoni.com/credit-scoring/consent" \
  -H "Authorization: Bearer $BRIDGEMONI_TOKEN" \
  -H "X-Tenant: $BRIDGEMONI_TENANT" \
  -H "X-Environment: $BRIDGEMONI_ENV" \
  -H "Content-Type: application/json" \
  -d '{
    "subjectReference": "text",
    "purpose": "LENDING",
    "expiresAt": "2027-03-14T14:30:01",
    "grantedVia": "text",
    "evidenceReference": "text"
  }'

Responses

StatusWhen
200Consent recorded
400The requested term exceeds the maximum
404This tenant holds no link to that subject - the same answer as for a subject that does not exist
409A live consent for that purpose already exists

Generated from the OpenAPI document. Branch on the HTTP status: there is no machine-readable error code on the wire. Errors