API Reference
API Pix: authenticationPOSTGet a token
Billing · AuthenticationPOSTGet a token (Billing)
Billing · NotificationsGETGet a notification
API Pix: authentication

Get a token

POST/oauth/token
Base URL: https://pix.efi.mimicr.dev · provider: https://pix-h.api.efipay.com.br

Issues 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/json
grant_typestringrequired

Grant type. Always client_credentials.

client_credentials
Example: "client_credentials"

Responses

200Token issued.
access_tokenstring

Access token, sent as Authorization: Bearer <token> on every other request.

Example: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.…"
token_typestring

Token type. Always Bearer.

Bearer
Example: "Bearer"
expires_ininteger

Token lifetime in seconds (3600).

Example: 3600
scopestring

Scopes enabled on the application, separated by spaces.

Example: "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.
errorstringrequired

OAuth error code.

invalid_clientinvalid_tokeninsufficient_scopeunsupported_grant_type
error_descriptionstringrequired

Error description.

Example: "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.
errorstringrequired

OAuth error code.

invalid_clientinvalid_tokeninsufficient_scopeunsupported_grant_type
error_descriptionstringrequired

Error description.

Example: "Access token has insufficient scope"