Autentica um usuário via OAuth2 Password Grant e retorna o access_token e refresh_token.
cURL
curl --request POST \ --url https://api-hml.valid.com/api/auth \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "client_id": "<string>", "client_secret": "<string>", "username": "<string>", "password": "<string>" } '
{ "token_type": "Bearer", "expires_in": 3600, "access_token": "eyJ0eXAiOiJKV1Qi...", "refresh_token": "def50200..." }
1
sua-client-secret
[email protected]
homolog
Bearer
3600
eyJ0eXAiOiJKV1Qi...
def50200...