Skip to main content
Emblem Developer Docs
Emblem Connect (Partner Integration)

Contract Reference

Side-by-side comparison of assertion and enrollment contracts.

Assertion vs Enrollment

AspectAssertionEnrollment
PurposeCheck for an existing Emblem passCreate a new Emblem pass after verification
Entry endpointPOST /api/v1/assertions/transactionsPOST /api/v1/credentials/enroll/start
Required fieldsclient_id, redirect_uri, stateclient_id, redirect_uri, state, provider, verification_level, external_verification_id, verified_at
Browser redirect toauthorize_urlenrollment_url
Success callbackcode, statestatus=success, state
Failure callbackerror, error_code, stateerror, error_code, state
Back-channel exchangePOST /api/v1/assertions/tokenNone
TTL10 minutes10 minutes
Code TTL2 minutesN/A
Recovery endpointGET /api/v1/assertions/transactions/{id}None

Common Parameters

ParameterNotes
client_idRequired on both flows. Provisioned by Emblem during onboarding
redirect_uriRequired on both flows. Must exactly match a registered URI
stateYour CSRF or correlation value, echoed back unchanged
AuthAll Connect endpoints require Authorization: Bearer emb_sk_...

SDK Methods Summary

SDK methodPurpose
createAssertionTransaction()Start an assertion transaction and receive authorize_url
exchangeAssertionCode()Exchange an approved code for assertion data
getAssertionTransaction()Reconcile an assertion transaction
startEnrollment()Start enrollment and receive enrollment_url
openAssertionPopup()Open the assertion flow in a popup or new window
handleAssertionPopupCallback()Normalize popup callback params and relay them to the opener

Provisioning

Authorization clients are provisioned by Emblem during partner onboarding. They are not self-serve today.

Practical checklist:

  • Confirm your publisher account exists in the target environment.
  • Confirm you have a secret API key.
  • Confirm your client_id has the correct registered redirect_uri values.
  • Confirm enrollment authority is enabled if you plan to call POST /api/v1/credentials/enroll/start.

On this page