API Reference
Get a token
/oauth/tokenhttps://pix.efi.mimicr.dev · provider: https://pix-h.api.efipay.com.brIssues an access token for the API Pix. Send client_id:client_secret as Basic in the Authorization header and {"grant_type": "client_credentials"} in the body. The token lasts 3600 seconds and lists the application's scopes in scope.
At the real Efí, every API Pix request, including this one, requires the application's P12/PEM certificate (mTLS). Mimicr has no certificate: plain HTTPS with Basic is enough.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Body
application/jsonGrant type. Always client_credentials.
client_credentials"client_credentials"Responses
200Token issued.
Access token, sent as Authorization: Bearer <token> on every other request.
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.…"Token type. Always Bearer.
Bearer"Bearer"Token lifetime in seconds (3600).
3600Scopes enabled on the application, separated by spaces.
"cob.write cob.read pix.write pix.read pix.send gn.pix.send.read webhook.write webhook.read payloadlocation.write payloadlocation.read gn.pix.evp.write gn.pix..."400unsupported_grant_type: grant_type other than client_credentials.
OAuth error code.
invalid_clientinvalid_tokeninsufficient_scopeunsupported_grant_typeError description.
"Access token has insufficient scope"401invalid_client: invalid Client_Id or Client_Secret. Efí does not document this body; in Mimicr it follows the PHP SDK's fallback.
OAuth error code.
invalid_clientinvalid_tokeninsufficient_scopeunsupported_grant_typeError description.
"Access token has insufficient scope"