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.
STEP 1
Generate a key pair
EC P-256, in your own infrastructure.
STEP 2
Register the public key
One credential = one key, one account, one profile.
STEP 3
Get a token
Short-lived: 60 seconds, any profile.
STEP 4
Sign every request
DPoP proof per call, bound to method, URL and body.
REFERENCE
Errors
What each rejection means and how to fix it.
The addresses
| Environment | Authentication | API |
|---|---|---|
| Sandbox | https://api.sdb.lbpay.com.br/v2/oauth/token | https://api.sdb.lbpay.com.br/v2/* |
| Production | https://api-secure.lbpay.com.br/v2/oauth/token | https://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.