Fetch a snapshot
Path parameters
string
required
The Guild user ID. ULID, prefixed
usr_.Query parameters
integer
default:"consent_default"
Override the ledger window for this read. Must be ≤ the maximum permitted by the consent. Valid values: 30, 60, 90, 365.
Required headers
string
required
Bearer <api_key>. See Authentication.string
required
The active consent ID for this user. ULID, prefixed
cnst_.Example
Response 200
string
User identifier.
string
One of
JOB_SEEKER, TRADER, EMPLOYER.string
One of
Building, Emerging, Trusted, Established.integer
Raw score 0-1000 behind the tier classification.
object
object
object
object
object
Only present if the consent includes the
repayment_history scope.object
string
ISO-8601 of when this snapshot was signed.
string
Ed25519 signature in the format
ed25519:<base64>. See verification guidance.Example response
Verifying the signature
Pull the public keys atGET /partner/v1/keys (cache up to 4 hours). The signature header includes a kid reference; match it to the public key with the same kid.
Verification procedure:
1
Remove the signature field
The signature was computed over the payload without itself.
2
Canonicalise the JSON
Sort keys lexicographically at every level. Serialise with no extra whitespace.
3
Verify
Standard Ed25519 verification of the canonical bytes against the public key.
Error cases
Get the public keys
Response
What to read next
Consent links
How to ask a user for consent before fetching their snapshot.
Disbursements
Disbursing approved credit over OPay payout.