API Reference
API Pix: authenticationPOSTGet a token
Billing · AuthenticationPOSTGet a token (Billing)
Billing · NotificationsGETGet a notification
CNAB 240 statements

Generate SFTP keys

POST/v1/extrato-cnab/gerar-chaves
Base URL: https://extratos.efi.mimicr.dev · provider: https://extratos-h.api.efipay.com.br

Creates a new key pair to fetch statements over SFTP and returns the private key. The previous key stops working. Efí accepts an empty body or {"conta": <number without check digit>}. Mimicr has no SFTP server: the key (Ed25519) is generated only to test the integration.

Authorization

Bearer token in the Authorization: Bearer <token> header. See Authentication.

Body

application/json
contastring

Account number without the check digit. Optional; if sent, it must be the sandbox account.

Responses

200Private key.
privateKeystring

Private key in PEM.

400Conta inválida (invalid account).
mensagemstringrequired

Error description.

Example: "Arquivo não encontrado"
401Missing, invalid or expired token, or a token issued for another API (invalid_token).
errorstringrequired

Authentication error code.

invalid_clientunsupported_grant_typeinvalid_tokeninsufficient_scope
error_descriptionstringrequired

Error description.

Example: "Credenciais inválidas ou inativas"
403The token lacks the scope the route requires (insufficient_scope).
errorstringrequired

Authentication error code.

invalid_clientunsupported_grant_typeinvalid_tokeninsufficient_scope
error_descriptionstringrequired

Error description.

Example: "Credenciais inválidas ou inativas"