Skip to main content

Authentication

Your integration authenticates with a key pair. The private key stays with you and signs every request; we store only the public key and no shared secret.

Nothing that leaks on our side lets anyone impersonate you, because there is nothing on our side to leak. A stolen access token is useless on its own: every call must be signed by a key we never hold.

The addresses​

EnvironmentAuthenticationAPI
Sandboxhttps://api.sdb.lbpay.com.br/v2/oauth/tokenhttps://api.sdb.lbpay.com.br/v2/*
Productionhttps://api-secure.lbpay.com.br/v2/oauth/tokenhttps://api-secure.lbpay.com.br/v2/*

What a request looks like​

What you need to build​

Two short JWTs, both signed ES256 with your private key: the client assertion and the DPoP proof. Any library that signs a JWT does it, and so does your language's standard library. The examples in this section use no dependency for the signing part.