Autentica um usuário com base nos dados de um certificado digital em base64 e retorna o access_token e refresh_token usando o grant custom_certificate.
cURL
curl --request POST \ --url https://api-hml.valid.com/api/auth/certificate \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "client_id": 123, "client_secret": "<string>", "certificate": "<string>" } '
{ "token_type": "Bearer", "expires_in": 10800, "access_token": "eyJ0eXAiOiJKV1QiLCJhbGci...", "refresh_token": "def502001234abc..." }
1
seu-client-secret
MIIDdzCCAl+gAwIBAgIEU0B...
Bearer
10800
eyJ0eXAiOiJKV1QiLCJhbGci...
def502001234abc...